123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580101581101582101583101584101585101586101587101588101589101590101591101592101593101594101595101596101597101598101599101600101601101602101603101604101605101606101607101608101609101610101611101612101613101614101615101616101617101618101619101620101621101622101623101624101625101626101627101628101629101630101631101632101633101634101635101636101637101638101639101640101641101642101643101644101645101646101647101648101649101650101651101652101653101654101655101656101657101658101659101660101661101662101663101664101665101666101667101668101669101670101671101672101673101674101675101676101677101678101679101680101681101682101683101684101685101686101687101688101689101690101691101692101693101694101695101696101697101698101699101700101701101702101703101704101705101706101707101708101709101710101711101712101713101714101715101716101717101718101719101720101721101722101723101724101725101726101727101728101729101730101731101732101733101734101735101736101737101738101739101740101741101742101743101744101745101746101747101748101749101750101751101752101753101754101755101756101757101758101759101760101761101762101763101764101765101766101767101768101769101770101771101772101773101774101775101776101777101778101779101780101781101782101783101784101785101786101787101788101789101790101791101792101793101794101795101796101797101798101799101800101801101802101803101804101805101806101807101808101809101810101811101812101813101814101815101816101817101818101819101820101821101822101823101824101825101826101827101828101829101830101831101832101833101834101835101836101837101838101839101840101841101842101843101844101845101846101847101848101849101850101851101852101853101854101855101856101857101858101859101860101861101862101863101864101865101866101867101868101869101870101871101872101873101874101875101876101877101878101879101880101881101882101883101884101885101886101887101888101889101890101891101892101893101894101895101896101897101898101899101900101901101902101903101904101905101906101907101908101909101910101911101912101913101914101915101916101917101918101919101920101921101922101923101924101925101926101927101928101929101930101931101932101933101934101935101936101937101938101939101940101941101942101943101944101945101946101947101948101949101950101951101952101953101954101955101956101957101958101959101960101961101962101963101964101965101966101967101968101969101970101971101972101973101974101975101976101977101978101979101980101981101982101983101984101985101986101987101988101989101990101991101992101993101994101995101996101997101998101999102000102001102002102003102004102005102006102007102008102009102010102011102012102013102014102015102016102017102018102019102020102021102022102023102024102025102026102027102028102029102030102031102032102033102034102035102036102037102038102039102040102041102042102043102044102045102046102047102048102049102050102051102052102053102054102055102056102057102058102059102060102061102062102063102064102065102066102067102068102069102070102071102072102073102074102075102076102077102078102079102080102081102082102083102084102085102086102087102088102089102090102091102092102093102094102095102096102097102098102099102100102101102102102103102104102105102106102107102108102109102110102111102112102113102114102115102116102117102118102119102120102121102122102123102124102125102126102127102128102129102130102131102132102133102134102135102136102137102138102139102140102141102142102143102144102145102146102147102148102149102150102151102152102153102154102155102156102157102158102159102160102161102162102163102164102165102166102167102168102169102170102171102172102173102174102175102176102177102178102179102180102181102182102183102184102185102186102187102188102189102190102191102192102193102194102195102196102197102198102199102200102201102202102203102204102205102206102207102208102209102210102211102212102213102214102215102216102217102218102219102220102221102222102223102224102225102226102227102228102229102230102231102232102233102234102235102236102237102238102239102240102241102242102243102244102245102246102247102248102249102250102251102252102253102254102255102256102257102258102259102260102261102262102263102264102265102266102267102268102269102270102271102272102273102274102275102276102277102278102279102280102281102282102283102284102285102286102287102288102289102290102291102292102293102294102295102296102297102298102299102300102301102302102303102304102305102306102307102308102309102310102311102312102313102314102315102316102317102318102319102320102321102322102323102324102325102326102327102328102329102330102331102332102333102334102335102336102337102338102339102340102341102342102343102344102345102346102347102348102349102350102351102352102353102354102355102356102357102358102359102360102361102362102363102364102365102366102367102368102369102370102371102372102373102374102375102376102377102378102379102380102381102382102383102384102385102386102387102388102389102390102391102392102393102394102395102396102397102398102399102400102401102402102403102404102405102406102407102408102409102410102411102412102413102414102415102416102417102418102419102420102421102422102423102424102425102426102427102428102429102430102431102432102433102434102435102436102437102438102439102440102441102442102443102444102445102446102447102448102449102450102451102452102453102454102455102456102457102458102459102460102461102462102463102464102465102466102467102468102469102470102471102472102473102474102475102476102477102478102479102480102481102482102483102484102485102486102487102488102489102490102491102492102493102494102495102496102497102498102499102500102501102502102503102504102505102506102507102508102509102510102511102512102513102514102515102516102517102518102519102520102521102522102523102524102525102526102527102528102529102530102531102532102533102534102535102536102537102538102539102540102541102542102543102544102545102546102547102548102549102550102551102552102553102554102555102556102557102558102559102560102561102562102563102564102565102566102567102568102569102570102571102572102573102574102575102576102577102578102579102580102581102582102583102584102585102586102587102588102589102590102591102592102593102594102595102596102597102598102599102600102601102602102603102604102605102606102607102608102609102610102611102612102613102614102615102616102617102618102619102620102621102622102623102624102625102626102627102628102629102630102631102632102633102634102635102636102637102638102639102640102641102642102643102644102645102646102647102648102649102650102651102652102653102654102655102656102657102658102659102660102661102662102663102664102665102666102667102668102669102670102671102672102673102674102675102676102677102678102679102680102681102682102683102684102685102686102687102688102689102690102691102692102693102694102695102696102697102698102699102700102701102702102703102704102705102706102707102708102709102710102711102712102713102714102715102716102717102718102719102720102721102722102723102724102725102726102727102728102729102730102731102732102733102734102735102736102737102738102739102740102741102742102743102744102745102746102747102748102749102750102751102752102753102754102755102756102757102758102759102760102761102762102763102764102765102766102767102768102769102770102771102772102773102774102775102776102777102778102779102780102781102782102783102784102785102786102787102788102789102790102791102792102793102794102795102796102797102798102799102800102801102802102803102804102805102806102807102808102809102810102811102812102813102814102815102816102817102818102819102820102821102822102823102824102825102826102827102828102829102830102831102832102833102834102835102836102837102838102839102840102841102842102843102844102845102846102847102848102849102850102851102852102853102854102855102856102857102858102859102860102861102862102863102864102865102866102867102868102869102870102871102872102873102874102875102876102877102878102879102880102881102882102883102884102885102886102887102888102889102890102891102892102893102894102895102896102897102898102899102900102901102902102903102904102905102906102907102908102909102910102911102912102913102914102915102916102917102918102919102920102921102922102923102924102925102926102927102928102929102930102931102932102933102934102935102936102937102938102939102940102941102942102943102944102945102946102947102948102949102950102951102952102953102954102955102956102957102958102959102960102961102962102963102964102965102966102967102968102969102970102971102972102973102974102975102976102977102978102979102980102981102982102983102984102985102986102987102988102989102990102991102992102993102994102995102996102997102998102999103000103001103002103003103004103005103006103007103008103009103010103011103012103013103014103015103016103017103018103019103020103021103022103023103024103025103026103027103028103029103030103031103032103033103034103035103036103037103038103039103040103041103042103043103044103045103046103047103048103049103050103051103052103053103054103055103056103057103058103059103060103061103062103063103064103065103066103067103068103069103070103071103072103073103074103075103076103077103078103079103080103081103082103083103084103085103086103087103088103089103090103091103092103093103094103095103096103097103098103099103100103101103102103103103104103105103106103107103108103109103110103111103112103113103114103115103116103117103118103119103120103121103122103123103124103125103126103127103128103129103130103131103132103133103134103135103136103137103138103139103140103141103142103143103144103145103146103147103148103149103150103151103152103153103154103155103156103157103158103159103160103161103162103163103164103165103166103167103168103169103170103171103172103173103174103175103176103177103178103179103180103181103182103183103184103185103186103187103188103189103190103191103192103193103194103195103196103197103198103199103200103201103202103203103204103205103206103207103208103209103210103211103212103213103214103215103216103217103218103219103220103221103222103223103224103225103226103227103228103229103230103231103232103233103234103235103236103237103238103239103240103241103242103243103244103245103246103247103248103249103250103251103252103253103254103255103256103257103258103259103260103261103262103263103264103265103266103267103268103269103270103271103272103273103274103275103276103277103278103279103280103281103282103283103284103285103286103287103288103289103290103291103292103293103294103295103296103297103298103299103300103301103302103303103304103305103306103307103308103309103310103311103312103313103314103315103316103317103318103319103320103321103322103323103324103325103326103327103328103329103330103331103332103333103334103335103336103337103338103339103340103341103342103343103344103345103346103347103348103349103350103351103352103353103354103355103356103357103358103359103360103361103362103363103364103365103366103367103368103369103370103371103372103373103374103375103376103377103378103379103380103381103382103383103384103385103386103387103388103389103390103391103392103393103394103395103396103397103398103399103400103401103402103403103404103405103406103407103408103409103410103411103412103413103414103415103416103417103418103419103420103421103422103423103424103425103426103427103428103429103430103431103432103433103434103435103436103437103438103439103440103441103442103443103444103445103446103447103448103449103450103451103452103453103454103455103456103457103458103459103460103461103462103463103464103465103466103467103468103469103470103471103472103473103474103475103476103477103478103479103480103481103482103483103484103485103486103487103488103489103490103491103492103493103494103495103496103497103498103499103500103501103502103503103504103505103506103507103508103509103510103511103512103513103514103515103516103517103518103519103520103521103522103523103524103525103526103527103528103529103530103531103532103533103534103535103536103537103538103539103540103541103542103543103544103545103546103547103548103549103550103551103552103553103554103555103556103557103558103559103560103561103562103563103564103565103566103567103568103569103570103571103572103573103574103575103576103577103578103579103580103581103582103583103584103585103586103587103588103589103590103591103592103593103594103595103596103597103598103599103600103601103602103603103604103605103606103607103608103609103610103611103612103613103614103615103616103617103618103619103620103621103622103623103624103625103626103627103628103629103630103631103632103633103634103635103636103637103638103639103640103641103642103643103644103645103646103647103648103649103650103651103652103653103654103655103656103657103658103659103660103661103662103663103664103665103666103667103668103669103670103671103672103673103674103675103676103677103678103679103680103681103682103683103684103685103686103687103688103689103690103691103692103693103694103695103696103697103698103699103700103701103702103703103704103705103706103707103708103709103710103711103712103713103714103715103716103717103718103719103720103721103722103723103724103725103726103727103728103729103730103731103732103733103734103735103736103737103738103739103740103741103742103743103744103745103746103747103748103749103750103751103752103753103754103755103756103757103758103759103760103761103762103763103764103765103766103767103768103769103770103771103772103773103774103775103776103777103778103779103780103781103782103783103784103785103786103787103788103789103790103791103792103793103794103795103796103797103798103799103800103801103802103803103804103805103806103807103808103809103810103811103812103813103814103815103816103817103818103819103820103821103822103823103824103825103826103827103828103829103830103831103832103833103834103835103836103837103838103839103840103841103842103843103844103845103846103847103848103849103850103851103852103853103854103855103856103857103858103859103860103861103862103863103864103865103866103867103868103869103870103871103872103873103874103875103876103877103878103879103880103881103882103883103884103885103886103887103888103889103890103891103892103893103894103895103896103897103898103899103900103901103902103903103904103905103906103907103908103909103910103911103912103913103914103915103916103917103918103919103920103921103922103923103924103925103926103927103928103929103930103931103932103933103934103935103936103937103938103939103940103941103942103943103944103945103946103947103948103949103950103951103952103953103954103955103956103957103958103959103960103961103962103963103964103965103966103967103968103969103970103971103972103973103974103975103976103977103978103979103980103981103982103983103984103985103986103987103988103989103990103991103992103993103994103995103996103997103998103999104000104001104002104003104004104005104006104007104008104009104010104011104012104013104014104015104016104017104018104019104020104021104022104023104024104025104026104027104028104029104030104031104032104033104034104035104036104037104038104039104040104041104042104043104044104045104046104047104048104049104050104051104052104053104054104055104056104057104058104059104060104061104062104063104064104065104066104067104068104069104070104071104072104073104074104075104076104077104078104079104080104081104082104083104084104085104086104087104088104089104090104091104092104093104094104095104096104097104098104099104100104101104102104103104104104105104106104107104108104109104110104111104112104113104114104115104116104117104118104119104120104121104122104123104124104125104126104127104128104129104130104131104132104133104134104135104136104137104138104139104140104141104142104143104144104145104146104147104148104149104150104151104152104153104154104155104156104157104158104159104160104161104162104163104164104165104166104167104168104169104170104171104172104173104174104175104176104177104178104179104180104181104182104183104184104185104186104187104188104189104190104191104192104193104194104195104196104197104198104199104200104201104202104203104204104205104206104207104208104209104210104211104212104213104214104215104216104217104218104219104220104221104222104223104224104225104226104227104228104229104230104231104232104233104234104235104236104237104238104239104240104241104242104243104244104245104246104247104248104249104250104251104252104253104254104255104256104257104258104259104260104261104262104263104264104265104266104267104268104269104270104271104272104273104274104275104276104277104278104279104280104281104282104283104284104285104286104287104288104289104290104291104292104293104294104295104296104297104298104299104300104301104302104303104304104305104306104307104308104309104310104311104312104313104314104315104316104317104318104319104320104321104322104323104324104325104326104327104328104329104330104331104332104333104334104335104336104337104338104339104340104341104342104343104344104345104346104347104348104349104350104351104352104353104354104355104356104357104358104359104360104361104362104363104364104365104366104367104368104369104370104371104372104373104374104375104376104377104378104379104380104381104382104383104384104385104386104387104388104389104390104391104392104393104394104395104396104397104398104399104400104401104402104403104404104405104406104407104408104409104410104411104412104413104414104415104416104417104418104419104420104421104422104423104424104425104426104427104428104429104430104431104432104433104434104435104436104437104438104439104440104441104442104443104444104445104446104447104448104449104450104451104452104453104454104455104456104457104458104459104460104461104462104463104464104465104466104467104468104469104470104471104472104473104474104475104476104477104478104479104480104481104482104483104484104485104486104487104488104489104490104491104492104493104494104495104496104497104498104499104500104501104502104503104504104505104506104507104508104509104510104511104512104513104514104515104516104517104518104519104520104521104522104523104524104525104526104527104528104529104530104531104532104533104534104535104536104537104538104539104540104541104542104543104544104545104546104547104548104549104550104551104552104553104554104555104556104557104558104559104560104561104562104563104564104565104566104567104568104569104570104571104572104573104574104575104576104577104578104579104580104581104582104583104584104585104586104587104588104589104590104591104592104593104594104595104596104597104598104599104600104601104602104603104604104605104606104607104608104609104610104611104612104613104614104615104616104617104618104619104620104621104622104623104624104625104626104627104628104629104630104631104632104633104634104635104636104637104638104639104640104641104642104643104644104645104646104647104648104649104650104651104652104653104654104655104656104657104658104659104660104661104662104663104664104665104666104667104668104669104670104671104672104673104674104675104676104677104678104679104680104681104682104683104684104685104686104687104688104689104690104691104692104693104694104695104696104697104698104699104700104701104702104703104704104705104706104707104708104709104710104711104712104713104714104715104716104717104718104719104720104721104722104723104724104725104726104727104728104729104730104731104732104733104734104735104736104737104738104739104740104741104742104743104744104745104746104747104748104749104750104751104752104753104754104755104756104757104758104759104760104761104762104763104764104765104766104767104768104769104770104771104772104773104774104775104776104777104778104779104780104781104782104783104784104785104786104787104788104789104790104791104792104793104794104795104796104797104798104799104800104801104802104803104804104805104806104807104808104809104810104811104812104813104814104815104816104817104818104819104820104821104822104823104824104825104826104827104828104829104830104831104832104833104834104835104836104837104838104839104840104841104842104843104844104845104846104847104848104849104850104851104852104853104854104855104856104857104858104859104860104861104862104863104864104865104866104867104868104869104870104871104872104873104874104875104876104877104878104879104880104881104882104883104884104885104886104887104888104889104890104891104892104893104894104895104896104897104898104899104900104901104902104903104904104905104906104907104908104909104910104911104912104913104914104915104916104917104918104919104920104921104922104923104924104925104926104927104928104929104930104931104932104933104934104935104936104937104938104939104940104941104942104943104944104945104946104947104948104949104950104951104952104953104954104955104956104957104958104959104960104961104962104963104964104965104966104967104968104969104970104971104972104973104974104975104976104977104978104979104980104981104982104983104984104985104986104987104988104989104990104991104992104993104994104995104996104997104998104999105000105001105002105003105004105005105006105007105008105009105010105011105012105013105014105015105016105017105018105019105020105021105022105023105024105025105026105027105028105029105030105031105032105033105034105035105036105037105038105039105040105041105042105043105044105045105046105047105048105049105050105051105052105053105054105055105056105057105058105059105060105061105062105063105064105065105066105067105068105069105070105071105072105073105074105075105076105077105078105079105080105081105082105083105084105085105086105087105088105089105090105091105092105093105094105095105096105097105098105099105100105101105102105103105104105105105106105107105108105109105110105111105112105113105114105115105116105117105118105119105120105121105122105123105124105125105126105127105128105129105130105131105132105133105134105135105136105137105138105139105140105141105142105143105144105145105146105147105148105149105150105151105152105153105154105155105156105157105158105159105160105161105162105163105164105165105166105167105168105169105170105171105172105173105174105175105176105177105178105179105180105181105182105183105184105185105186105187105188105189105190105191105192105193105194105195105196105197105198105199105200105201105202105203105204105205105206105207105208105209105210105211105212105213105214105215105216105217105218105219105220105221105222105223105224105225105226105227105228105229105230105231105232105233105234105235105236105237105238105239105240105241105242105243105244105245105246105247105248105249105250105251105252105253105254105255105256105257105258105259105260105261105262105263105264105265105266105267105268105269105270105271105272105273105274105275105276105277105278105279105280105281105282105283105284105285105286105287105288105289105290105291105292105293105294105295105296105297105298105299105300105301105302105303105304105305105306105307105308105309105310105311105312105313105314105315105316105317105318105319105320105321105322105323105324105325105326105327105328105329105330105331105332105333105334105335105336105337105338105339105340105341105342105343105344105345105346105347105348105349105350105351105352105353105354105355105356105357105358105359105360105361105362105363105364105365105366105367105368105369105370105371105372105373105374105375105376105377105378105379105380105381105382105383105384105385105386105387105388105389105390105391105392105393105394105395105396105397105398105399105400105401105402105403105404105405105406105407105408105409105410105411105412105413105414105415105416105417105418105419105420105421105422105423105424105425105426105427105428105429105430105431105432105433105434105435105436105437105438105439105440105441105442105443105444105445105446105447105448105449105450105451105452105453105454105455105456105457105458105459105460105461105462105463105464105465105466105467105468105469105470105471105472105473105474105475105476105477105478105479105480105481105482105483105484105485105486105487105488105489105490105491105492105493105494105495105496105497105498105499105500105501105502105503105504105505105506105507105508105509105510105511105512105513105514105515105516105517105518105519105520105521105522105523105524105525105526105527105528105529105530105531105532105533105534105535105536105537105538105539105540105541105542105543105544105545105546105547105548105549105550105551105552105553105554105555105556105557105558105559105560105561105562105563105564105565105566105567105568105569105570105571105572105573105574105575105576105577105578105579105580105581105582105583105584105585105586105587105588105589105590105591105592105593105594105595105596105597105598105599105600105601105602105603105604105605105606105607105608105609105610105611105612105613105614105615105616105617105618105619105620105621105622105623105624105625105626105627105628105629105630105631105632105633105634105635105636105637105638105639105640105641105642105643105644105645105646105647105648105649105650105651105652105653105654105655105656105657105658105659105660105661105662105663105664105665105666105667105668105669105670105671105672105673105674105675105676105677105678105679105680105681105682105683105684105685105686105687105688105689105690105691105692105693105694105695105696105697105698105699105700105701105702105703105704105705105706105707105708105709105710105711105712105713105714105715105716105717105718105719105720105721105722105723105724105725105726105727105728105729105730105731105732105733105734105735105736105737105738105739105740105741105742105743105744105745105746105747105748105749105750105751105752105753105754105755105756105757105758105759105760105761105762105763105764105765105766105767105768105769105770105771105772105773105774105775105776105777105778105779105780105781105782105783105784105785105786105787105788105789105790105791105792105793105794105795105796105797105798105799105800105801105802105803105804105805105806105807105808105809105810105811105812105813105814105815105816105817105818105819105820105821105822105823105824105825105826105827105828105829105830105831105832105833105834105835105836105837105838105839105840105841105842105843105844105845105846105847105848105849105850105851105852105853105854105855105856105857105858105859105860105861105862105863105864105865105866105867105868105869105870105871105872105873105874105875105876105877105878105879105880105881105882105883105884105885105886105887105888105889105890105891105892105893105894105895105896105897105898105899105900105901105902105903105904105905105906105907105908105909105910105911105912105913105914105915105916105917105918105919105920105921105922105923105924105925105926105927105928105929105930105931105932105933105934105935105936105937105938105939105940105941105942105943105944105945105946105947105948105949105950105951105952105953105954105955105956105957105958105959105960105961105962105963105964105965105966105967105968105969105970105971105972105973105974105975105976105977105978105979105980105981105982105983105984105985105986105987105988105989105990105991105992105993105994105995105996105997105998105999106000106001106002106003106004106005106006106007106008106009106010106011106012106013106014106015106016106017106018106019106020106021106022106023106024106025106026106027106028106029106030106031106032106033106034106035106036106037106038106039106040106041106042106043106044106045106046106047106048106049106050106051106052106053106054106055106056106057106058106059106060106061106062106063106064106065106066106067106068106069106070106071106072106073106074106075106076106077106078106079106080106081106082106083106084106085106086106087106088106089106090106091106092106093106094106095106096106097106098106099106100106101106102106103106104106105106106106107106108106109106110106111106112106113106114106115106116106117106118106119106120106121106122106123106124106125106126106127106128106129106130106131106132106133106134106135106136106137106138106139106140106141106142106143106144106145106146106147106148106149106150106151106152106153106154106155106156106157106158106159106160106161106162106163106164106165106166106167106168106169106170106171106172106173106174106175106176106177106178106179106180106181106182106183106184106185106186106187106188106189106190106191106192106193106194106195106196106197106198106199106200106201106202106203106204106205106206106207106208106209106210106211106212106213106214106215106216106217106218106219106220106221106222106223106224106225106226106227106228106229106230106231106232106233106234106235106236106237106238106239106240106241106242106243106244106245106246106247106248106249106250106251106252106253106254106255106256106257106258106259106260106261106262106263106264106265106266106267106268106269106270106271106272106273106274106275106276106277106278106279106280106281106282106283106284106285106286106287106288106289106290106291106292106293106294106295106296106297106298106299106300106301106302106303106304106305106306106307106308106309106310106311106312106313106314106315106316106317106318106319106320106321106322106323106324106325106326106327106328106329106330106331106332106333106334106335106336106337106338106339106340106341106342106343106344106345106346106347106348106349106350106351106352106353106354106355106356106357106358106359106360106361106362106363106364106365106366106367106368106369106370106371106372106373106374106375106376106377106378106379106380106381106382106383106384106385106386106387106388106389106390106391106392106393106394106395106396106397106398106399106400106401106402106403106404106405106406106407106408106409106410106411106412106413106414106415106416106417106418106419106420106421106422106423106424106425106426106427106428106429106430106431106432106433106434106435106436106437106438106439106440106441106442106443106444106445106446106447106448106449106450106451106452106453106454106455106456106457106458106459106460106461106462106463106464106465106466106467106468106469106470106471106472106473106474106475106476106477106478106479106480106481106482106483106484106485106486106487106488106489106490106491106492106493106494106495106496106497106498106499106500106501106502106503106504106505106506106507106508106509106510106511106512106513106514106515106516106517106518106519106520106521106522106523106524106525106526106527106528106529106530106531106532106533106534106535106536106537106538106539106540106541106542106543106544106545106546106547106548106549106550106551106552106553106554106555106556106557106558106559106560106561106562106563106564106565106566106567106568106569106570106571106572106573106574106575106576106577106578106579106580106581106582106583106584106585106586106587106588106589106590106591106592106593106594106595106596106597106598106599106600106601106602106603106604106605106606106607106608106609106610106611106612106613106614106615106616106617106618106619106620106621106622106623106624106625106626106627106628106629106630106631106632106633106634106635106636106637106638106639106640106641106642106643106644106645106646106647106648106649106650106651106652106653106654106655106656106657106658106659106660106661106662106663106664106665106666106667106668106669106670106671106672106673106674106675106676106677106678106679106680106681106682106683106684106685106686106687106688106689106690106691106692106693106694106695106696106697106698106699106700106701106702106703106704106705106706106707106708106709106710106711106712106713106714106715106716106717106718106719106720106721106722106723106724106725106726106727106728106729106730106731106732106733106734106735106736106737106738106739106740106741106742106743106744106745106746106747106748106749106750106751106752106753106754106755106756106757106758106759106760106761106762106763106764106765106766106767106768106769106770106771106772106773106774106775106776106777106778106779106780106781106782106783106784106785106786106787106788106789106790106791106792106793106794106795106796106797106798106799106800106801106802106803106804106805106806106807106808106809106810106811106812106813106814106815106816106817106818106819106820106821106822106823106824106825106826106827106828106829106830106831106832106833106834106835106836106837106838106839106840106841106842106843106844106845106846106847106848106849106850106851106852106853106854106855106856106857106858106859106860106861106862106863106864106865106866106867106868106869106870106871106872106873106874106875106876106877106878106879106880106881106882106883106884106885106886106887106888106889106890106891106892106893106894106895106896106897106898106899106900106901106902106903106904106905106906106907106908106909106910106911106912106913106914106915106916106917106918106919106920106921106922106923106924106925106926106927106928106929106930106931106932106933106934106935106936106937106938106939106940106941106942106943106944106945106946106947106948106949106950106951106952106953106954106955106956106957106958106959106960106961106962106963106964106965106966106967106968106969106970106971106972106973106974106975106976106977106978106979106980106981106982106983106984106985106986106987106988106989106990106991106992106993106994106995106996106997106998106999107000107001107002107003107004107005107006107007107008107009107010107011107012107013107014107015107016107017107018107019107020107021107022107023107024107025107026107027107028107029107030107031107032107033107034107035107036107037107038107039107040107041107042107043107044107045107046107047107048107049107050107051107052107053107054107055107056107057107058107059107060107061107062107063107064107065107066107067107068107069107070107071107072107073107074107075107076107077107078107079107080107081107082107083107084107085107086107087107088107089107090107091107092107093107094107095107096107097107098107099107100107101107102107103107104107105107106107107107108107109107110107111107112107113107114107115107116107117107118107119107120107121107122107123107124107125107126107127107128107129107130107131107132107133107134107135107136107137107138107139107140107141107142107143107144107145107146107147107148107149107150107151107152107153107154107155107156107157107158107159107160107161107162107163107164107165107166107167107168107169107170107171107172107173107174107175107176107177107178107179107180107181107182107183107184107185107186107187107188107189107190107191107192107193107194107195107196107197107198107199107200107201107202107203107204107205107206107207107208107209107210107211107212107213107214107215107216107217107218107219107220107221107222107223107224107225107226107227107228107229107230107231107232107233107234107235107236107237107238107239107240107241107242107243107244107245107246107247107248107249107250107251107252107253107254107255107256107257107258107259107260107261107262107263107264107265107266107267107268107269107270107271107272107273107274107275107276107277107278107279107280107281107282107283107284107285107286107287107288107289107290107291107292107293107294107295107296107297107298107299107300107301107302107303107304107305107306107307107308107309107310107311107312107313107314107315107316107317107318107319107320107321107322107323107324107325107326107327107328107329107330107331107332107333107334107335107336107337107338107339107340107341107342107343107344107345107346107347107348107349107350107351107352107353107354107355107356107357107358107359107360107361107362107363107364107365107366107367107368107369107370107371107372107373107374107375107376107377107378107379107380107381107382107383107384107385107386107387107388107389107390107391107392107393107394107395107396107397107398107399107400107401107402107403107404107405107406107407107408107409107410107411107412107413107414107415107416107417107418107419107420107421107422107423107424107425107426107427107428107429107430107431107432107433107434107435107436107437107438107439107440107441107442107443107444107445107446107447107448107449107450107451107452107453107454107455107456107457107458107459107460107461107462107463107464107465107466107467107468107469107470107471107472107473107474107475107476107477107478107479107480107481107482107483107484107485107486107487107488107489107490107491107492107493107494107495107496107497107498107499107500107501107502107503107504107505107506107507107508107509107510107511107512107513107514107515107516107517107518107519107520107521107522107523107524107525107526107527107528107529107530107531107532107533107534107535107536107537107538107539107540107541107542107543107544107545107546107547107548107549107550107551107552107553107554107555107556107557107558107559107560107561107562107563107564107565107566107567107568107569107570107571107572107573107574107575107576107577107578107579107580107581107582107583107584107585107586107587107588107589107590107591107592107593107594107595107596107597107598107599107600107601107602107603107604107605107606107607107608107609107610107611107612107613107614107615107616107617107618107619107620107621107622107623107624107625107626107627107628107629107630107631107632107633107634107635107636107637107638107639107640107641107642107643107644107645107646107647107648107649107650107651107652107653107654107655107656107657107658107659107660107661107662107663107664107665107666107667107668107669107670107671107672107673107674107675107676107677107678107679107680107681107682107683107684107685107686107687107688107689107690107691107692107693107694107695107696107697107698107699107700107701107702107703107704107705107706107707107708107709107710107711107712107713107714107715107716107717107718107719107720107721107722107723107724107725107726107727107728107729107730107731107732107733107734107735107736107737107738107739107740107741107742107743107744107745107746107747107748107749107750107751107752107753107754107755107756107757107758107759107760107761107762107763107764107765107766107767107768107769107770107771107772107773107774107775107776107777107778107779107780107781107782107783107784107785107786107787107788107789107790107791107792107793107794107795107796107797107798107799107800107801107802107803107804107805107806107807107808107809107810107811107812107813107814107815107816107817107818107819107820107821107822107823107824107825107826107827107828107829107830107831107832107833107834107835107836107837107838107839107840107841107842107843107844107845107846107847107848107849107850107851107852107853107854107855107856107857107858107859107860107861107862107863107864107865107866107867107868107869107870107871107872107873107874107875107876107877107878107879107880107881107882107883107884107885107886107887107888107889107890107891107892107893107894107895107896107897107898107899107900107901107902107903107904107905107906107907107908107909107910107911107912107913107914107915107916107917107918107919107920107921107922107923107924107925107926107927107928107929107930107931107932107933107934107935107936107937107938107939107940107941107942107943107944107945107946107947107948107949107950107951107952107953107954107955107956107957107958107959107960107961107962107963107964107965107966107967107968107969107970107971107972107973107974107975107976107977107978107979107980107981107982107983107984107985107986107987107988107989107990107991107992107993107994107995107996107997107998107999108000108001108002108003108004108005108006108007108008108009108010108011108012108013108014108015108016108017108018108019108020108021108022108023108024108025108026108027108028108029108030108031108032108033108034108035108036108037108038108039108040108041108042108043108044108045108046108047108048108049108050108051108052108053108054108055108056108057108058108059108060108061108062108063108064108065108066108067108068108069108070108071108072108073108074108075108076108077108078108079108080108081108082108083108084108085108086108087108088108089108090108091108092108093108094108095108096108097108098108099108100108101108102108103108104108105108106108107108108108109108110108111108112108113108114108115108116108117108118108119108120108121108122108123108124108125108126108127108128108129108130108131108132108133108134108135108136108137108138108139108140108141108142108143108144108145108146108147108148108149108150108151108152108153108154108155108156108157108158108159108160108161108162108163108164108165108166108167108168108169108170108171108172108173108174108175108176108177108178108179108180108181108182108183108184108185108186108187108188108189108190108191108192108193108194108195108196108197108198108199108200108201108202108203108204108205108206108207108208108209108210108211108212108213108214108215108216108217108218108219108220108221108222108223108224108225108226108227108228108229108230108231108232108233108234108235108236108237108238108239108240108241108242108243108244108245108246108247108248108249108250108251108252108253108254108255108256108257108258108259108260108261108262108263108264108265108266108267108268108269108270108271108272108273108274108275108276108277108278108279108280108281108282108283108284108285108286108287108288108289108290108291108292108293108294108295108296108297108298108299108300108301108302108303108304108305108306108307108308108309108310108311108312108313108314108315108316108317108318108319108320108321108322108323108324108325108326108327108328108329108330108331108332108333108334108335108336108337108338108339108340108341108342108343108344108345108346108347108348108349108350108351108352108353108354108355108356108357108358108359108360108361108362108363108364108365108366108367108368108369108370108371108372108373108374108375108376108377108378108379108380108381108382108383108384108385108386108387108388108389108390108391108392108393108394108395108396108397108398108399108400108401108402108403108404108405108406108407108408108409108410108411108412108413108414108415108416108417108418108419108420108421108422108423108424108425108426108427108428108429108430108431108432108433108434108435108436108437108438108439108440108441108442108443108444108445108446108447108448108449108450108451108452108453108454108455108456108457108458108459108460108461108462108463108464108465108466108467108468108469108470108471108472108473108474108475108476108477108478 |
- #! /bin/sh
- # Guess values for system-dependent variables and create Makefiles.
- # Generated by GNU Autoconf 2.69.
- #
- #
- # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
- #
- #
- # This configure script is free software; the Free Software Foundation
- # gives unlimited permission to copy, distribute and modify it.
- ## -------------------- ##
- ## M4sh Initialization. ##
- ## -------------------- ##
- # Be more Bourne compatible
- DUALCASE=1; export DUALCASE # for MKS sh
- if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
- else
- case `(set -o) 2>/dev/null` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
- esac
- fi
- as_nl='
- '
- export as_nl
- # Printing a long string crashes Solaris 7 /usr/bin/printf.
- as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
- as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
- as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
- # Prefer a ksh shell builtin over an external printf program on Solaris,
- # but without wasting forks for bash or zsh.
- if test -z "$BASH_VERSION$ZSH_VERSION" \
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='print -r --'
- as_echo_n='print -rn --'
- elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='printf %s\n'
- as_echo_n='printf %s'
- else
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
- as_echo_n='/usr/ucb/echo -n'
- else
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
- as_echo_n_body='eval
- arg=$1;
- case $arg in #(
- *"$as_nl"*)
- expr "X$arg" : "X\\(.*\\)$as_nl";
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
- esac;
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
- '
- export as_echo_n_body
- as_echo_n='sh -c $as_echo_n_body as_echo'
- fi
- export as_echo_body
- as_echo='sh -c $as_echo_body as_echo'
- fi
- # The user is always right.
- if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
- fi
- # IFS
- # We need space, tab and new line, in precisely that order. Quoting is
- # there to prevent editors from complaining about space-tab.
- # (If _AS_PATH_WALK were called with IFS unset, it would disable word
- # splitting by setting IFS to empty value.)
- IFS=" "" $as_nl"
- # Find who we are. Look in the path if we contain no directory separator.
- as_myself=
- case $0 in #((
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
- done
- IFS=$as_save_IFS
- ;;
- esac
- # We did not find ourselves, most probably we were run as `sh COMMAND'
- # in which case we are not to be found in the path.
- if test "x$as_myself" = x; then
- as_myself=$0
- fi
- if test ! -f "$as_myself"; then
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- exit 1
- fi
- # Unset variables that we do not need and which cause bugs (e.g. in
- # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
- # suppresses any "Segmentation fault" message there. '((' could
- # trigger a bug in pdksh 5.2.14.
- for as_var in BASH_ENV ENV MAIL MAILPATH
- do eval test x\${$as_var+set} = xset \
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
- done
- PS1='$ '
- PS2='> '
- PS4='+ '
- # NLS nuisances.
- LC_ALL=C
- export LC_ALL
- LANGUAGE=C
- export LANGUAGE
- # CDPATH.
- (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
- # Use a proper internal environment variable to ensure we don't fall
- # into an infinite loop, continuously re-executing ourselves.
- if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
- _as_can_reexec=no; export _as_can_reexec;
- # We cannot yet assume a decent shell, so we have to provide a
- # neutralization value for shells without unset; and this also
- # works around shells that cannot unset nonexistent variables.
- # Preserve -v and -x to the replacement shell.
- BASH_ENV=/dev/null
- ENV=/dev/null
- (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
- case $- in # ((((
- *v*x* | *x*v* ) as_opts=-vx ;;
- *v* ) as_opts=-v ;;
- *x* ) as_opts=-x ;;
- * ) as_opts= ;;
- esac
- exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
- # Admittedly, this is quite paranoid, since all the known shells bail
- # out after a failed `exec'.
- $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
- as_fn_exit 255
- fi
- # We don't want this to propagate to other subprocesses.
- { _as_can_reexec=; unset _as_can_reexec;}
- if test "x$CONFIG_SHELL" = x; then
- as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '\${1+\"\$@\"}'='\"\$@\"'
- setopt NO_GLOB_SUBST
- else
- case \`(set -o) 2>/dev/null\` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
- esac
- fi
- "
- as_required="as_fn_return () { (exit \$1); }
- as_fn_success () { as_fn_return 0; }
- as_fn_failure () { as_fn_return 1; }
- as_fn_ret_success () { return 0; }
- as_fn_ret_failure () { return 1; }
- exitcode=0
- as_fn_success || { exitcode=1; echo as_fn_success failed.; }
- as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
- as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
- as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
- if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
- else
- exitcode=1; echo positional parameters were not saved.
- fi
- test x\$exitcode = x0 || exit 1
- test -x / || exit 1"
- as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
- as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
- eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
- test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
- test \$(( 1 + 1 )) = 2 || exit 1"
- if (eval "$as_required") 2>/dev/null; then :
- as_have_required=yes
- else
- as_have_required=no
- fi
- if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_found=false
- for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- as_found=:
- case $as_dir in #(
- /*)
- for as_base in sh bash ksh sh5; do
- # Try only shells that exist, to save several forks.
- as_shell=$as_dir/$as_base
- if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
- CONFIG_SHELL=$as_shell as_have_required=yes
- if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
- break 2
- fi
- fi
- done;;
- esac
- as_found=false
- done
- $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
- { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
- CONFIG_SHELL=$SHELL as_have_required=yes
- fi; }
- IFS=$as_save_IFS
- if test "x$CONFIG_SHELL" != x; then :
- export CONFIG_SHELL
- # We cannot yet assume a decent shell, so we have to provide a
- # neutralization value for shells without unset; and this also
- # works around shells that cannot unset nonexistent variables.
- # Preserve -v and -x to the replacement shell.
- BASH_ENV=/dev/null
- ENV=/dev/null
- (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
- case $- in # ((((
- *v*x* | *x*v* ) as_opts=-vx ;;
- *v* ) as_opts=-v ;;
- *x* ) as_opts=-x ;;
- * ) as_opts= ;;
- esac
- exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
- # Admittedly, this is quite paranoid, since all the known shells bail
- # out after a failed `exec'.
- $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
- exit 255
- fi
- if test x$as_have_required = xno; then :
- $as_echo "$0: This script requires a shell more modern than all"
- $as_echo "$0: the shells that I found on your system."
- if test x${ZSH_VERSION+set} = xset ; then
- $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
- $as_echo "$0: be upgraded to zsh 4.3.4 or later."
- else
- $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
- $0: including any error possibly output before this
- $0: message. Then install a modern shell, or manually run
- $0: the script under such a shell if you do have one."
- fi
- exit 1
- fi
- fi
- fi
- SHELL=${CONFIG_SHELL-/bin/sh}
- export SHELL
- # Unset more variables known to interfere with behavior of common tools.
- CLICOLOR_FORCE= GREP_OPTIONS=
- unset CLICOLOR_FORCE GREP_OPTIONS
- ## --------------------- ##
- ## M4sh Shell Functions. ##
- ## --------------------- ##
- # as_fn_unset VAR
- # ---------------
- # Portably unset VAR.
- as_fn_unset ()
- {
- { eval $1=; unset $1;}
- }
- as_unset=as_fn_unset
- # as_fn_set_status STATUS
- # -----------------------
- # Set $? to STATUS, without forking.
- as_fn_set_status ()
- {
- return $1
- } # as_fn_set_status
- # as_fn_exit STATUS
- # -----------------
- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
- as_fn_exit ()
- {
- set +e
- as_fn_set_status $1
- exit $1
- } # as_fn_exit
- # as_fn_mkdir_p
- # -------------
- # Create "$as_dir" as a directory, including parents if necessary.
- as_fn_mkdir_p ()
- {
- case $as_dir in #(
- -*) as_dir=./$as_dir;;
- esac
- test -d "$as_dir" || eval $as_mkdir_p || {
- as_dirs=
- while :; do
- case $as_dir in #(
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
- *) as_qdir=$as_dir;;
- esac
- as_dirs="'$as_qdir' $as_dirs"
- as_dir=`$as_dirname -- "$as_dir" ||
- $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
- $as_echo X"$as_dir" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- test -d "$as_dir" && break
- done
- test -z "$as_dirs" || eval "mkdir $as_dirs"
- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
- } # as_fn_mkdir_p
- # as_fn_executable_p FILE
- # -----------------------
- # Test if FILE is an executable regular file.
- as_fn_executable_p ()
- {
- test -f "$1" && test -x "$1"
- } # as_fn_executable_p
- # as_fn_append VAR VALUE
- # ----------------------
- # Append the text in VALUE to the end of the definition contained in VAR. Take
- # advantage of any shell optimizations that allow amortized linear growth over
- # repeated appends, instead of the typical quadratic growth present in naive
- # implementations.
- if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
- eval 'as_fn_append ()
- {
- eval $1+=\$2
- }'
- else
- as_fn_append ()
- {
- eval $1=\$$1\$2
- }
- fi # as_fn_append
- # as_fn_arith ARG...
- # ------------------
- # Perform arithmetic evaluation on the ARGs, and store the result in the
- # global $as_val. Take advantage of shells that can avoid forks. The arguments
- # must be portable across $(()) and expr.
- if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
- eval 'as_fn_arith ()
- {
- as_val=$(( $* ))
- }'
- else
- as_fn_arith ()
- {
- as_val=`expr "$@" || test $? -eq 1`
- }
- fi # as_fn_arith
- # as_fn_error STATUS ERROR [LINENO LOG_FD]
- # ----------------------------------------
- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
- # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
- # script with STATUS, using 1 if that was 0.
- as_fn_error ()
- {
- as_status=$1; test $as_status -eq 0 && as_status=1
- if test "$4"; then
- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
- fi
- $as_echo "$as_me: error: $2" >&2
- as_fn_exit $as_status
- } # as_fn_error
- if expr a : '\(a\)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
- as_expr=expr
- else
- as_expr=false
- fi
- if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
- as_basename=basename
- else
- as_basename=false
- fi
- if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
- as_dirname=dirname
- else
- as_dirname=false
- fi
- as_me=`$as_basename -- "$0" ||
- $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
- $as_echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{
- s//\1/
- q
- }
- /^X\/\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\/\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- # Avoid depending upon Character Ranges.
- as_cr_letters='abcdefghijklmnopqrstuvwxyz'
- as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
- as_cr_Letters=$as_cr_letters$as_cr_LETTERS
- as_cr_digits='0123456789'
- as_cr_alnum=$as_cr_Letters$as_cr_digits
- as_lineno_1=$LINENO as_lineno_1a=$LINENO
- as_lineno_2=$LINENO as_lineno_2a=$LINENO
- eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
- test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
- # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
- sed -n '
- p
- /[$]LINENO/=
- ' <$as_myself |
- sed '
- s/[$]LINENO.*/&-/
- t lineno
- b
- :lineno
- N
- :loop
- s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
- t loop
- s/-\n.*//
- ' >$as_me.lineno &&
- chmod +x "$as_me.lineno" ||
- { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
- # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
- # already done that, so ensure we don't try to do so again and fall
- # in an infinite loop. This has already happened in practice.
- _as_can_reexec=no; export _as_can_reexec
- # Don't try to exec as it changes $[0], causing all sort of problems
- # (the dirname of $[0] is not the place where we might find the
- # original and so on. Autoconf is especially sensitive to this).
- . "./$as_me.lineno"
- # Exit status is that of the last command.
- exit
- }
- ECHO_C= ECHO_N= ECHO_T=
- case `echo -n x` in #(((((
- -n*)
- case `echo 'xy\c'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- xy) ECHO_C='\c';;
- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
- ECHO_T=' ';;
- esac;;
- *)
- ECHO_N='-n';;
- esac
- rm -f conf$$ conf$$.exe conf$$.file
- if test -d conf$$.dir; then
- rm -f conf$$.dir/conf$$.file
- else
- rm -f conf$$.dir
- mkdir conf$$.dir 2>/dev/null
- fi
- if (echo >conf$$.file) 2>/dev/null; then
- if ln -s conf$$.file conf$$ 2>/dev/null; then
- as_ln_s='ln -s'
- # ... but there are two gotchas:
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -pR'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -pR'
- elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
- else
- as_ln_s='cp -pR'
- fi
- else
- as_ln_s='cp -pR'
- fi
- rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
- rmdir conf$$.dir 2>/dev/null
- if mkdir -p . 2>/dev/null; then
- as_mkdir_p='mkdir -p "$as_dir"'
- else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
- fi
- as_test_x='test -x'
- as_executable_p=as_fn_executable_p
- # Sed expression to map a string onto a valid CPP name.
- as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
- # Sed expression to map a string onto a valid variable name.
- as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
- # Check that we are running under the correct shell.
- SHELL=${CONFIG_SHELL-/bin/sh}
- case X$ECHO in
- X*--fallback-echo)
- # Remove one level of quotation (which was required for Make).
- ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
- ;;
- esac
- echo=${ECHO-echo}
- if test "X$1" = X--no-reexec; then
- # Discard the --no-reexec flag, and continue.
- shift
- elif test "X$1" = X--fallback-echo; then
- # Avoid inline document here, it may be left over
- :
- elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
- # Yippee, $echo works!
- :
- else
- # Restart under the correct shell.
- exec $SHELL "$0" --no-reexec ${1+"$@"}
- fi
- if test "X$1" = X--fallback-echo; then
- # used as fallback echo
- shift
- cat <<EOF
- $*
- EOF
- exit 0
- fi
- # The HP-UX ksh and POSIX shell print the target directory to stdout
- # if CDPATH is set.
- (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
- if test -z "$ECHO"; then
- if test "X${echo_test_string+set}" != Xset; then
- # find a string as large as possible, as long as the shell can cope with it
- for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
- if (echo_test_string=`eval $cmd`) 2>/dev/null &&
- echo_test_string=`eval $cmd` &&
- (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
- then
- break
- fi
- done
- fi
- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- :
- else
- # The Solaris, AIX, and Digital Unix default echo programs unquote
- # backslashes. This makes it impossible to quote backslashes using
- # echo "$something" | sed 's/\\/\\\\/g'
- #
- # So, first we look for a working echo in the user's PATH.
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for dir in $PATH /usr/ucb; do
- IFS="$lt_save_ifs"
- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- echo="$dir/echo"
- break
- fi
- done
- IFS="$lt_save_ifs"
- if test "X$echo" = Xecho; then
- # We didn't find a better echo, so look for alternatives.
- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- # This shell has a builtin print -r that does the trick.
- echo='print -r'
- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
- test "X$CONFIG_SHELL" != X/bin/ksh; then
- # If we have ksh, try running configure again with it.
- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
- export ORIGINAL_CONFIG_SHELL
- CONFIG_SHELL=/bin/ksh
- export CONFIG_SHELL
- exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
- else
- # Try using printf.
- echo='printf %s\n'
- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- # Cool, printf works
- :
- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
- test "X$echo_testing_string" = 'X\t' &&
- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
- export CONFIG_SHELL
- SHELL="$CONFIG_SHELL"
- export SHELL
- echo="$CONFIG_SHELL $0 --fallback-echo"
- elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
- test "X$echo_testing_string" = 'X\t' &&
- echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
- test "X$echo_testing_string" = "X$echo_test_string"; then
- echo="$CONFIG_SHELL $0 --fallback-echo"
- else
- # maybe with a smaller string...
- prev=:
- for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
- then
- break
- fi
- prev="$cmd"
- done
- if test "$prev" != 'sed 50q "$0"'; then
- echo_test_string=`eval $prev`
- export echo_test_string
- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
- else
- # Oops. We lost completely, so just stick with echo.
- echo=echo
- fi
- fi
- fi
- fi
- fi
- fi
- # Copy echo and quote the copy suitably for passing to libtool from
- # the Makefile, instead of quoting the original, which is used later.
- ECHO=$echo
- if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
- ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
- fi
- tagnames=${tagnames+${tagnames},}CXX
- test -n "$DJDIR" || exec 7<&0 </dev/null
- exec 6>&1
- # Name of the host.
- # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
- # so uname gets run too.
- ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
- #
- # Initializations.
- #
- ac_default_prefix=/usr/local
- ac_clean_files=
- ac_config_libobj_dir=.
- LIBOBJS=
- cross_compiling=no
- subdirs=
- MFLAGS=
- MAKEFLAGS=
- # Identity of this package.
- PACKAGE_NAME=
- PACKAGE_TARNAME=
- PACKAGE_VERSION=
- PACKAGE_STRING=
- PACKAGE_BUGREPORT=
- PACKAGE_URL=
- ac_unique_file="README.GIT-RULES"
- # Factoring default headers for most tests.
- ac_includes_default="\
- #include <stdio.h>
- #ifdef HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- #ifdef HAVE_SYS_STAT_H
- # include <sys/stat.h>
- #endif
- #ifdef STDC_HEADERS
- # include <stdlib.h>
- # include <stddef.h>
- #else
- # ifdef HAVE_STDLIB_H
- # include <stdlib.h>
- # endif
- #endif
- #ifdef HAVE_STRING_H
- # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
- # include <memory.h>
- # endif
- # include <string.h>
- #endif
- #ifdef HAVE_STRINGS_H
- # include <strings.h>
- #endif
- #ifdef HAVE_INTTYPES_H
- # include <inttypes.h>
- #endif
- #ifdef HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #ifdef HAVE_UNISTD_H
- # include <unistd.h>
- #endif"
- ac_header_list=
- ac_subst_vars='LTLIBOBJS
- LIBTOOL
- NMEDIT
- DSYMUTIL
- STRIP
- AR
- ECHO
- PHP_VERSION_ID
- PHP_VERSION
- PHP_LIBS
- PHP_LDFLAGS
- PEAR_INSTALLDIR
- NATIVE_RPATHS
- INSTALL_IT
- EXTRA_INCLUDES
- INCLUDES
- ZEND_EXTRA_LIBS
- EXTRA_LIBS
- EXTRA_LDFLAGS_PROGRAM
- EXTRA_LDFLAGS
- EXTENSION_DIR
- DEBUG_CFLAGS
- program_suffix
- program_prefix
- php_abs_top_srcdir
- php_abs_top_builddir
- abs_srcdir
- abs_builddir
- PHP_INSTALLED_SAPIS
- EXPANDED_PHP_CONFIG_FILE_SCAN_DIR
- EXPANDED_PHP_CONFIG_FILE_PATH
- EXPANDED_LOCALSTATEDIR
- EXPANDED_SYSCONFDIR
- EXPANDED_DATADIR
- EXPANDED_LIBDIR
- EXPANDED_MANDIR
- EXPANDED_SBINDIR
- EXPANDED_BINDIR
- EXPANDED_EXTENSION_DIR
- EXPANDED_PEAR_INSTALLDIR
- INCLUDE_PATH
- INLINE_CFLAGS
- MANFMT
- UNZIP
- TOUCH
- RANLIB
- SNMP_CONFIG
- PDO_OCI_VERSION
- PDO_OCI_DIR
- PDO_OCI_SHARED_LIBADD
- PDO_MYSQL_MODULE_TYPE
- ODBC_TYPE
- ODBC_LFLAGS
- ODBC_LIBS
- ODBC_INCLUDE
- OCI8_ORACLE_VERSION
- OCI8_DIR
- OCI8_SHARED_LIBADD
- CXXCPP
- ac_ct_CXX
- CXXFLAGS
- CXX
- ICU_CONFIG
- FB_CONFIG
- OPENSSL_INCDIR_OPT
- KRB5_CONFIG
- LTP_GENHTML
- LTP
- ALLOCA
- LIBOBJS
- PROG_SENDMAIL
- php_fpm_prefix
- php_fpm_localstatedir
- php_fpm_sysconfdir
- php_fpm_group
- php_fpm_user
- php_fpm_systemd
- PKG_CONFIG
- SHLIB_DL_SUFFIX_NAME
- SHLIB_SUFFIX_NAME
- RE2C
- YFLAGS
- YACC
- AWK
- LN_S
- CPP
- OBJEXT
- EXEEXT
- ac_ct_CC
- CPPFLAGS
- LDFLAGS
- CFLAGS
- CC
- target_os
- target_vendor
- target_cpu
- target
- host_os
- host_vendor
- host_cpu
- host
- build_os
- build_vendor
- build_cpu
- build
- CONFIGURE_OPTIONS
- CONFIGURE_COMMAND
- SED
- EGREP
- GREP
- target_alias
- host_alias
- build_alias
- LIBS
- ECHO_T
- ECHO_N
- ECHO_C
- DEFS
- mandir
- localedir
- libdir
- psdir
- pdfdir
- dvidir
- htmldir
- infodir
- docdir
- oldincludedir
- includedir
- runstatedir
- localstatedir
- sharedstatedir
- sysconfdir
- datadir
- datarootdir
- libexecdir
- sbindir
- bindir
- program_transform_name
- prefix
- exec_prefix
- PACKAGE_URL
- PACKAGE_BUGREPORT
- PACKAGE_STRING
- PACKAGE_VERSION
- PACKAGE_TARNAME
- PACKAGE_NAME
- PATH_SEPARATOR
- SHELL'
- ac_subst_files=''
- ac_user_opts='
- enable_option_checking
- with_libdir
- enable_rpath
- enable_re2c_cgoto
- enable_gcc_global_regs
- enable_
- with_apxs2
- enable_cli
- enable_embed
- enable_fpm
- with_fpm_user
- with_fpm_group
- with_fpm_systemd
- with_fpm_acl
- with_litespeed
- enable_phpdbg
- enable_phpdbg_webhelper
- enable_phpdbg_debug
- enable_phpdbg_readline
- enable_cgi
- with_valgrind
- enable_gcov
- enable_debug
- with_layout
- with_config_file_path
- with_config_file_scan_dir
- enable_sigchild
- enable_libgcc
- enable_short_tags
- enable_dmalloc
- enable_ipv6
- enable_dtrace
- enable_fd_setsize
- enable_all
- enable_libxml
- with_libxml_dir
- with_openssl
- with_kerberos
- with_system_ciphers
- with_pcre_regex
- with_pcre_jit
- with_pcre_valgrind
- with_sqlite3
- with_zlib
- with_zlib_dir
- enable_bcmath
- with_bz2
- enable_calendar
- enable_ctype
- with_curl
- enable_dba
- with_qdbm
- with_gdbm
- with_ndbm
- with_db4
- with_db3
- with_db2
- with_db1
- with_dbm
- with_tcadb
- with_lmdb
- with_cdb
- enable_inifile
- enable_flatfile
- enable_dom
- with_enchant
- enable_exif
- enable_fileinfo
- enable_filter
- with_pcre_dir
- enable_ftp
- with_openssl_dir
- with_gd
- with_webp_dir
- with_jpeg_dir
- with_png_dir
- with_xpm_dir
- with_freetype_dir
- enable_gd_jis_conv
- with_gettext
- with_gmp
- with_mhash
- enable_hash
- with_iconv
- with_imap
- with_imap_ssl
- with_interbase
- enable_intl
- with_icu_dir
- enable_json
- with_ldap
- with_ldap_sasl
- enable_mbstring
- enable_mbregex
- enable_mbregex_backtrack
- with_onig
- with_mysqli
- enable_embedded_mysqli
- with_mysql_sock
- with_oci8
- with_odbcver
- with_adabas
- with_sapdb
- with_solid
- with_ibm_db2
- with_empress
- with_empress_bcs
- with_custom_odbc
- with_iodbc
- with_esoob
- with_unixODBC
- with_dbmaker
- enable_opcache
- enable_opcache_file
- enable_huge_code_pages
- enable_pcntl
- enable_pdo
- with_pdo_dblib
- with_pdo_firebird
- with_pdo_mysql
- with_pdo_oci
- with_pdo_odbc
- with_pdo_pgsql
- with_pdo_sqlite
- with_pgsql
- enable_phar
- enable_posix
- with_pspell
- with_libedit
- with_readline
- with_recode
- enable_session
- with_mm
- enable_shmop
- enable_simplexml
- with_snmp
- enable_soap
- enable_sockets
- with_sodium
- with_password_argon2
- enable_sysvmsg
- enable_sysvsem
- enable_sysvshm
- with_tidy
- enable_tokenizer
- enable_wddx
- with_libexpat_dir
- enable_xml
- enable_xmlreader
- with_xmlrpc
- with_iconv_dir
- enable_xmlwriter
- with_xsl
- enable_zend_test
- enable_zip
- with_libzip
- enable_mysqlnd
- enable_mysqlnd_compression_support
- with_pear
- enable_maintainer_zts
- enable_inline_optimization
- enable_zend_signals
- with_tsrm_pth
- with_tsrm_st
- with_tsrm_pthreads
- enable_shared
- enable_static
- enable_fast_install
- with_gnu_ld
- enable_libtool_lock
- with_pic
- with_tags
- '
- ac_precious_vars='build_alias
- host_alias
- target_alias
- CC
- CFLAGS
- LDFLAGS
- LIBS
- CPPFLAGS
- CPP
- YACC
- YFLAGS
- CXX
- CXXFLAGS
- CCC
- CXXCPP'
- # Initialize some variables set by options.
- ac_init_help=
- ac_init_version=false
- ac_unrecognized_opts=
- ac_unrecognized_sep=
- # The variables have the same names as the options, with
- # dashes changed to underlines.
- cache_file=/dev/null
- exec_prefix=NONE
- no_create=
- no_recursion=
- prefix=NONE
- program_prefix=NONE
- program_suffix=NONE
- program_transform_name=s,x,x,
- silent=
- site=
- srcdir=
- verbose=
- x_includes=NONE
- x_libraries=NONE
- # Installation directory options.
- # These are left unexpanded so users can "make install exec_prefix=/foo"
- # and all the variables that are supposed to be based on exec_prefix
- # by default will actually change.
- # Use braces instead of parens because sh, perl, etc. also accept them.
- # (The list follows the same order as the GNU Coding Standards.)
- bindir='${exec_prefix}/bin'
- sbindir='${exec_prefix}/sbin'
- libexecdir='${exec_prefix}/libexec'
- datarootdir='${prefix}/share'
- datadir='${datarootdir}'
- sysconfdir='${prefix}/etc'
- sharedstatedir='${prefix}/com'
- localstatedir='${prefix}/var'
- runstatedir='${localstatedir}/run'
- includedir='${prefix}/include'
- oldincludedir='/usr/include'
- docdir='${datarootdir}/doc/${PACKAGE}'
- infodir='${datarootdir}/info'
- htmldir='${docdir}'
- dvidir='${docdir}'
- pdfdir='${docdir}'
- psdir='${docdir}'
- libdir='${exec_prefix}/lib'
- localedir='${datarootdir}/locale'
- mandir='${datarootdir}/man'
- ac_prev=
- ac_dashdash=
- for ac_option
- do
- # If the previous option needs an argument, assign it.
- if test -n "$ac_prev"; then
- eval $ac_prev=\$ac_option
- ac_prev=
- continue
- fi
- case $ac_option in
- *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
- *=) ac_optarg= ;;
- *) ac_optarg=yes ;;
- esac
- # Accept the important Cygnus configure options, so we can diagnose typos.
- case $ac_dashdash$ac_option in
- --)
- ac_dashdash=yes ;;
- -bindir | --bindir | --bindi | --bind | --bin | --bi)
- ac_prev=bindir ;;
- -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
- bindir=$ac_optarg ;;
- -build | --build | --buil | --bui | --bu)
- ac_prev=build_alias ;;
- -build=* | --build=* | --buil=* | --bui=* | --bu=*)
- build_alias=$ac_optarg ;;
- -cache-file | --cache-file | --cache-fil | --cache-fi \
- | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
- ac_prev=cache_file ;;
- -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
- | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
- cache_file=$ac_optarg ;;
- --config-cache | -C)
- cache_file=config.cache ;;
- -datadir | --datadir | --datadi | --datad)
- ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=*)
- datadir=$ac_optarg ;;
- -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
- | --dataroo | --dataro | --datar)
- ac_prev=datarootdir ;;
- -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
- | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
- datarootdir=$ac_optarg ;;
- -disable-* | --disable-*)
- ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid feature name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
- "enable_$ac_useropt"
- "*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval enable_$ac_useropt=no ;;
- -docdir | --docdir | --docdi | --doc | --do)
- ac_prev=docdir ;;
- -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
- docdir=$ac_optarg ;;
- -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
- ac_prev=dvidir ;;
- -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
- dvidir=$ac_optarg ;;
- -enable-* | --enable-*)
- ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid feature name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
- "enable_$ac_useropt"
- "*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval enable_$ac_useropt=\$ac_optarg ;;
- -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
- | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
- | --exec | --exe | --ex)
- ac_prev=exec_prefix ;;
- -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
- | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
- | --exec=* | --exe=* | --ex=*)
- exec_prefix=$ac_optarg ;;
- -gas | --gas | --ga | --g)
- # Obsolete; use --with-gas.
- with_gas=yes ;;
- -help | --help | --hel | --he | -h)
- ac_init_help=long ;;
- -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
- ac_init_help=recursive ;;
- -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
- ac_init_help=short ;;
- -host | --host | --hos | --ho)
- ac_prev=host_alias ;;
- -host=* | --host=* | --hos=* | --ho=*)
- host_alias=$ac_optarg ;;
- -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
- ac_prev=htmldir ;;
- -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
- | --ht=*)
- htmldir=$ac_optarg ;;
- -includedir | --includedir | --includedi | --included | --include \
- | --includ | --inclu | --incl | --inc)
- ac_prev=includedir ;;
- -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
- | --includ=* | --inclu=* | --incl=* | --inc=*)
- includedir=$ac_optarg ;;
- -infodir | --infodir | --infodi | --infod | --info | --inf)
- ac_prev=infodir ;;
- -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
- infodir=$ac_optarg ;;
- -libdir | --libdir | --libdi | --libd)
- ac_prev=libdir ;;
- -libdir=* | --libdir=* | --libdi=* | --libd=*)
- libdir=$ac_optarg ;;
- -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
- | --libexe | --libex | --libe)
- ac_prev=libexecdir ;;
- -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
- | --libexe=* | --libex=* | --libe=*)
- libexecdir=$ac_optarg ;;
- -localedir | --localedir | --localedi | --localed | --locale)
- ac_prev=localedir ;;
- -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
- localedir=$ac_optarg ;;
- -localstatedir | --localstatedir | --localstatedi | --localstated \
- | --localstate | --localstat | --localsta | --localst | --locals)
- ac_prev=localstatedir ;;
- -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
- localstatedir=$ac_optarg ;;
- -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
- ac_prev=mandir ;;
- -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
- mandir=$ac_optarg ;;
- -nfp | --nfp | --nf)
- # Obsolete; use --without-fp.
- with_fp=no ;;
- -no-create | --no-create | --no-creat | --no-crea | --no-cre \
- | --no-cr | --no-c | -n)
- no_create=yes ;;
- -no-recursion | --no-recursion | --no-recursio | --no-recursi \
- | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
- no_recursion=yes ;;
- -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
- | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
- | --oldin | --oldi | --old | --ol | --o)
- ac_prev=oldincludedir ;;
- -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
- | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
- | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
- oldincludedir=$ac_optarg ;;
- -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
- ac_prev=prefix ;;
- -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
- prefix=$ac_optarg ;;
- -program-prefix | --program-prefix | --program-prefi | --program-pref \
- | --program-pre | --program-pr | --program-p)
- ac_prev=program_prefix ;;
- -program-prefix=* | --program-prefix=* | --program-prefi=* \
- | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
- program_prefix=$ac_optarg ;;
- -program-suffix | --program-suffix | --program-suffi | --program-suff \
- | --program-suf | --program-su | --program-s)
- ac_prev=program_suffix ;;
- -program-suffix=* | --program-suffix=* | --program-suffi=* \
- | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
- program_suffix=$ac_optarg ;;
- -program-transform-name | --program-transform-name \
- | --program-transform-nam | --program-transform-na \
- | --program-transform-n | --program-transform- \
- | --program-transform | --program-transfor \
- | --program-transfo | --program-transf \
- | --program-trans | --program-tran \
- | --progr-tra | --program-tr | --program-t)
- ac_prev=program_transform_name ;;
- -program-transform-name=* | --program-transform-name=* \
- | --program-transform-nam=* | --program-transform-na=* \
- | --program-transform-n=* | --program-transform-=* \
- | --program-transform=* | --program-transfor=* \
- | --program-transfo=* | --program-transf=* \
- | --program-trans=* | --program-tran=* \
- | --progr-tra=* | --program-tr=* | --program-t=*)
- program_transform_name=$ac_optarg ;;
- -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
- ac_prev=pdfdir ;;
- -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
- pdfdir=$ac_optarg ;;
- -psdir | --psdir | --psdi | --psd | --ps)
- ac_prev=psdir ;;
- -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
- psdir=$ac_optarg ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- silent=yes ;;
- -runstatedir | --runstatedir | --runstatedi | --runstated \
- | --runstate | --runstat | --runsta | --runst | --runs \
- | --run | --ru | --r)
- ac_prev=runstatedir ;;
- -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
- | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
- | --run=* | --ru=* | --r=*)
- runstatedir=$ac_optarg ;;
- -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
- ac_prev=sbindir ;;
- -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
- | --sbi=* | --sb=*)
- sbindir=$ac_optarg ;;
- -sharedstatedir | --sharedstatedir | --sharedstatedi \
- | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
- | --sharedst | --shareds | --shared | --share | --shar \
- | --sha | --sh)
- ac_prev=sharedstatedir ;;
- -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
- | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
- | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
- | --sha=* | --sh=*)
- sharedstatedir=$ac_optarg ;;
- -site | --site | --sit)
- ac_prev=site ;;
- -site=* | --site=* | --sit=*)
- site=$ac_optarg ;;
- -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
- ac_prev=srcdir ;;
- -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
- srcdir=$ac_optarg ;;
- -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
- | --syscon | --sysco | --sysc | --sys | --sy)
- ac_prev=sysconfdir ;;
- -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
- | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
- sysconfdir=$ac_optarg ;;
- -target | --target | --targe | --targ | --tar | --ta | --t)
- ac_prev=target_alias ;;
- -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
- target_alias=$ac_optarg ;;
- -v | -verbose | --verbose | --verbos | --verbo | --verb)
- verbose=yes ;;
- -version | --version | --versio | --versi | --vers | -V)
- ac_init_version=: ;;
- -with-* | --with-*)
- ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid package name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
- "with_$ac_useropt"
- "*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval with_$ac_useropt=\$ac_optarg ;;
- -without-* | --without-*)
- ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
- # Reject names that are not valid shell variable names.
- expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
- as_fn_error $? "invalid package name: $ac_useropt"
- ac_useropt_orig=$ac_useropt
- ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
- case $ac_user_opts in
- *"
- "with_$ac_useropt"
- "*) ;;
- *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
- ac_unrecognized_sep=', ';;
- esac
- eval with_$ac_useropt=no ;;
- --x)
- # Obsolete; use --with-x.
- with_x=yes ;;
- -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
- | --x-incl | --x-inc | --x-in | --x-i)
- ac_prev=x_includes ;;
- -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
- | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
- x_includes=$ac_optarg ;;
- -x-libraries | --x-libraries | --x-librarie | --x-librari \
- | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
- ac_prev=x_libraries ;;
- -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
- | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
- x_libraries=$ac_optarg ;;
- -*) as_fn_error $? "unrecognized option: \`$ac_option'
- Try \`$0 --help' for more information"
- ;;
- *=*)
- ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
- # Reject names that are not valid shell variable names.
- case $ac_envvar in #(
- '' | [0-9]* | *[!_$as_cr_alnum]* )
- as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
- esac
- eval $ac_envvar=\$ac_optarg
- export $ac_envvar ;;
- *)
- # FIXME: should be removed in autoconf 3.0.
- $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
- expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
- $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
- : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
- ;;
- esac
- done
- if test -n "$ac_prev"; then
- ac_option=--`echo $ac_prev | sed 's/_/-/g'`
- as_fn_error $? "missing argument to $ac_option"
- fi
- if test -n "$ac_unrecognized_opts"; then
- case $enable_option_checking in
- no) ;;
- fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
- *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
- esac
- fi
- # Check all directory arguments for consistency.
- for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
- datadir sysconfdir sharedstatedir localstatedir includedir \
- oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
- libdir localedir mandir runstatedir
- do
- eval ac_val=\$$ac_var
- # Remove trailing slashes.
- case $ac_val in
- */ )
- ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
- eval $ac_var=\$ac_val;;
- esac
- # Be sure to have absolute directory names.
- case $ac_val in
- [\\/$]* | ?:[\\/]* ) continue;;
- NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
- esac
- as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
- done
- # There might be people who depend on the old broken behavior: `$host'
- # used to hold the argument of --host etc.
- # FIXME: To remove some day.
- build=$build_alias
- host=$host_alias
- target=$target_alias
- # FIXME: To remove some day.
- if test "x$host_alias" != x; then
- if test "x$build_alias" = x; then
- cross_compiling=maybe
- elif test "x$build_alias" != "x$host_alias"; then
- cross_compiling=yes
- fi
- fi
- ac_tool_prefix=
- test -n "$host_alias" && ac_tool_prefix=$host_alias-
- test "$silent" = yes && exec 6>/dev/null
- ac_pwd=`pwd` && test -n "$ac_pwd" &&
- ac_ls_di=`ls -di .` &&
- ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
- as_fn_error $? "working directory cannot be determined"
- test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
- as_fn_error $? "pwd does not report name of working directory"
- # Find the source files, if location was not specified.
- if test -z "$srcdir"; then
- ac_srcdir_defaulted=yes
- # Try the directory containing this script, then the parent directory.
- ac_confdir=`$as_dirname -- "$as_myself" ||
- $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_myself" : 'X\(//\)[^/]' \| \
- X"$as_myself" : 'X\(//\)$' \| \
- X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
- $as_echo X"$as_myself" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- srcdir=$ac_confdir
- if test ! -r "$srcdir/$ac_unique_file"; then
- srcdir=..
- fi
- else
- ac_srcdir_defaulted=no
- fi
- if test ! -r "$srcdir/$ac_unique_file"; then
- test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
- as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
- fi
- ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
- ac_abs_confdir=`(
- cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
- pwd)`
- # When building in place, set srcdir=.
- if test "$ac_abs_confdir" = "$ac_pwd"; then
- srcdir=.
- fi
- # Remove unnecessary trailing slashes from srcdir.
- # Double slashes in file names in object file debugging info
- # mess up M-x gdb in Emacs.
- case $srcdir in
- */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
- esac
- for ac_var in $ac_precious_vars; do
- eval ac_env_${ac_var}_set=\${${ac_var}+set}
- eval ac_env_${ac_var}_value=\$${ac_var}
- eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
- eval ac_cv_env_${ac_var}_value=\$${ac_var}
- done
- #
- # Report the --help message.
- #
- if test "$ac_init_help" = "long"; then
- # Omit some internal or obsolete options to make the list less imposing.
- # This message is too long to be a string in the A/UX 3.1 sh.
- cat <<_ACEOF
- \`configure' configures this package to adapt to many kinds of systems.
- Usage: $0 [OPTION]... [VAR=VALUE]...
- To assign environment variables (e.g., CC, CFLAGS...), specify them as
- VAR=VALUE. See below for descriptions of some of the useful variables.
- Defaults for the options are specified in brackets.
- Configuration:
- -h, --help display this help and exit
- --help=short display options specific to this package
- --help=recursive display the short help of all the included packages
- -V, --version display version information and exit
- -q, --quiet, --silent do not print \`checking ...' messages
- --cache-file=FILE cache test results in FILE [disabled]
- -C, --config-cache alias for \`--cache-file=config.cache'
- -n, --no-create do not create output files
- --srcdir=DIR find the sources in DIR [configure dir or \`..']
- Installation directories:
- --prefix=PREFIX install architecture-independent files in PREFIX
- [$ac_default_prefix]
- --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
- [PREFIX]
- By default, \`make install' will install all the files in
- \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
- an installation prefix other than \`$ac_default_prefix' using \`--prefix',
- for instance \`--prefix=\$HOME'.
- For better control, use the options below.
- Fine tuning of the installation directories:
- --bindir=DIR user executables [EPREFIX/bin]
- --sbindir=DIR system admin executables [EPREFIX/sbin]
- --libexecdir=DIR program executables [EPREFIX/libexec]
- --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
- --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
- --localstatedir=DIR modifiable single-machine data [PREFIX/var]
- --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
- --libdir=DIR object code libraries [EPREFIX/lib]
- --includedir=DIR C header files [PREFIX/include]
- --oldincludedir=DIR C header files for non-gcc [/usr/include]
- --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
- --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
- --infodir=DIR info documentation [DATAROOTDIR/info]
- --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
- --mandir=DIR man documentation [DATAROOTDIR/man]
- --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
- --htmldir=DIR html documentation [DOCDIR]
- --dvidir=DIR dvi documentation [DOCDIR]
- --pdfdir=DIR pdf documentation [DOCDIR]
- --psdir=DIR ps documentation [DOCDIR]
- _ACEOF
- cat <<\_ACEOF
- System types:
- --build=BUILD configure for building on BUILD [guessed]
- --host=HOST cross-compile to build programs to run on HOST [BUILD]
- --target=TARGET configure for building compilers for TARGET [HOST]
- _ACEOF
- fi
- if test -n "$ac_init_help"; then
- cat <<\_ACEOF
- Optional Features and Packages:
- --disable-option-checking ignore unrecognized --enable/--with options
- --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
- --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --with-libdir=NAME Look for libraries in .../NAME rather than .../lib
- --disable-rpath Disable passing additional runtime library
- search paths
- --enable-re2c-cgoto Enable -g flag to re2c to use computed goto gcc extension
- --disable-gcc-global-regs
- whether to enable GCC global register variables
- SAPI modules:
- --with-apxs2=FILE Build shared Apache 2.0 Handler module. FILE is the optional
- pathname to the Apache apxs tool apxs
- --disable-cli Disable building CLI version of PHP
- (this forces --without-pear)
- --enable-embed=TYPE EXPERIMENTAL: Enable building of embedded SAPI library
- TYPE is either 'shared' or 'static'. TYPE=shared
- --enable-fpm Enable building of the fpm SAPI executable
- --with-fpm-user=USER Set the user for php-fpm to run as. (default: nobody)
- --with-fpm-group=GRP Set the group for php-fpm to run as. For a system user, this
- should usually be set to match the fpm username (default: nobody)
- --with-fpm-systemd Activate systemd integration
- --with-fpm-acl Use POSIX Access Control Lists
- --with-litespeed Build PHP as litespeed module
- --enable-phpdbg Build phpdbg
- --enable-phpdbg-webhelper
- Build phpdbg web SAPI support
- --enable-phpdbg-debug Build phpdbg in debug mode
- --enable-phpdbg-readline Enable readline support in phpdbg (depends on static ext/readline)
- --disable-cgi Disable building CGI version of PHP
- --with-valgrind=DIR Enable valgrind support
- General settings:
- --enable-gcov Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!
- --enable-debug Compile with debugging symbols
- --with-layout=TYPE Set how installed files will be laid out. Type can
- be either PHP or GNU [PHP]
- --with-config-file-path=PATH
- Set the path in which to look for php.ini [PREFIX/lib]
- --with-config-file-scan-dir=PATH
- Set the path where to scan for configuration files
- --enable-sigchild Enable PHP's own SIGCHLD handler
- --enable-libgcc Enable explicitly linking against libgcc
- --disable-short-tags Disable the short-form <? start tag by default
- --enable-dmalloc Enable dmalloc
- --disable-ipv6 Disable IPv6 support
- --enable-dtrace Enable DTrace support
- --enable-fd-setsize Set size of descriptor sets
- Extensions:
- --with-EXTENSION=shared[,PATH]
- NOTE: Not all extensions can be build as 'shared'.
- Example: --with-foobar=shared,/usr/local/foobar/
- o Builds the foobar extension as shared extension.
- o foobar package install prefix is /usr/local/foobar/
- --disable-all Disable all extensions which are enabled by default
- --disable-libxml Disable LIBXML support
- --with-libxml-dir=DIR LIBXML: libxml2 install prefix
- --with-openssl=DIR Include OpenSSL support (requires OpenSSL >= 1.0.1)
- --with-kerberos=DIR OPENSSL: Include Kerberos support
- --with-system-ciphers OPENSSL: Use system default cipher list instead of hardcoded value
- --with-pcre-regex=DIR Include Perl Compatible Regular Expressions support.
- DIR is the PCRE install prefix BUNDLED
- --with-pcre-jit Enable PCRE JIT functionality (BUNDLED only)
- --with-pcre-valgrind=DIR
- Enable PCRE valgrind support. Developers only!
- --without-sqlite3=DIR Do not include SQLite3 support. DIR is the prefix to
- SQLite3 installation directory.
- --with-zlib=DIR Include ZLIB support (requires zlib >= 1.2.0.4)
- --with-zlib-dir=<DIR> Define the location of zlib install directory
- --enable-bcmath Enable bc style precision math functions
- --with-bz2=DIR Include BZip2 support
- --enable-calendar Enable support for calendar conversion
- --disable-ctype Disable ctype functions
- --with-curl=DIR Include cURL support
- --enable-dba Build DBA with bundled modules. To build shared DBA
- extension use --enable-dba=shared
- --with-qdbm=DIR DBA: QDBM support
- --with-gdbm=DIR DBA: GDBM support
- --with-ndbm=DIR DBA: NDBM support
- --with-db4=DIR DBA: Oracle Berkeley DB 4.x or 5.x support
- --with-db3=DIR DBA: Oracle Berkeley DB 3.x support
- --with-db2=DIR DBA: Oracle Berkeley DB 2.x support
- --with-db1=DIR DBA: Oracle Berkeley DB 1.x support/emulation
- --with-dbm=DIR DBA: DBM support
- --with-tcadb=DIR DBA: Tokyo Cabinet abstract DB support
- --with-lmdb=DIR DBA: Lightning memory-mapped database support
- --without-cdb=DIR DBA: CDB support (bundled)
- --disable-inifile DBA: INI support (bundled)
- --disable-flatfile DBA: FlatFile support (bundled)
- --disable-dom Disable DOM support
- --with-libxml-dir=DIR DOM: libxml2 install prefix
- --with-enchant=DIR Include enchant support.
- GNU Aspell version 1.1.3 or higher required.
- --enable-exif Enable EXIF (metadata from images) support
- --disable-fileinfo Disable fileinfo support
- --disable-filter Disable input filter support
- --with-pcre-dir FILTER: pcre install prefix
- --enable-ftp Enable FTP support
- --with-openssl-dir=DIR FTP: openssl install prefix
- --with-gd=DIR Include GD support. DIR is the GD library base
- install directory BUNDLED
- --with-webp-dir=DIR GD: Set the path to libwebp install prefix
- --with-jpeg-dir=DIR GD: Set the path to libjpeg install prefix
- --with-png-dir=DIR GD: Set the path to libpng install prefix
- --with-zlib-dir=DIR GD: Set the path to libz install prefix
- --with-xpm-dir=DIR GD: Set the path to libXpm install prefix
- --with-freetype-dir=DIR GD: Set the path to FreeType 2 install prefix
- --enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support
- --with-gettext=DIR Include GNU gettext support
- --with-gmp=DIR Include GNU MP support
- --with-mhash=DIR Include mhash support
- --disable-hash Disable hash support
- --without-iconv=DIR Exclude iconv support
- --with-imap=DIR Include IMAP support. DIR is the c-client install prefix
- --with-kerberos=DIR IMAP: Include Kerberos support. DIR is the Kerberos install prefix
- --with-imap-ssl=DIR IMAP: Include SSL support. DIR is the OpenSSL install prefix
- --with-interbase=DIR Include Firebird support. DIR is the Firebird base
- install directory /opt/firebird
- --enable-intl Enable internationalization support
- --with-icu-dir=DIR Specify where ICU libraries and headers can be found
- --disable-json Disable JavaScript Object Serialization support
- --with-ldap=DIR Include LDAP support
- --with-ldap-sasl=DIR LDAP: Include Cyrus SASL support
- --enable-mbstring Enable multibyte string support
- --disable-mbregex MBSTRING: Disable multibyte regex support
- --disable-mbregex-backtrack
- MBSTRING: Disable multibyte regex backtrack check
- --with-onig=DIR MBSTRING: Use external oniguruma. DIR is the oniguruma install prefix.
- If DIR is not set, the bundled oniguruma will be used
- --with-mysqli=FILE Include MySQLi support. FILE is the path
- to mysql_config. If no value or mysqlnd is passed
- as FILE, the MySQL native driver will be used
- --enable-embedded-mysqli
- MYSQLi: Enable embedded support
- Note: Does not work with MySQL native driver!
- --with-mysql-sock=SOCKPATH
- MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer.
- If unspecified, the default locations are searched
- --with-oci8=DIR Include Oracle Database OCI8 support. DIR defaults to $ORACLE_HOME.
- Use --with-oci8=instantclient,/path/to/instant/client/lib
- to use an Oracle Instant Client installation
- --with-odbcver=HEX Force support for the passed ODBC version. A hex number is expected, default 0x0350.
- Use the special value of 0 to prevent an explicit ODBCVER to be defined.
- --with-adabas=DIR Include Adabas D support /usr/local
- --with-sapdb=DIR Include SAP DB support /usr/local
- --with-solid=DIR Include Solid support /usr/local/solid
- --with-ibm-db2=DIR Include IBM DB2 support /home/db2inst1/sqllib
- --with-empress=DIR Include Empress support \$EMPRESSPATH
- (Empress Version >= 8.60 required)
- --with-empress-bcs=DIR Include Empress Local Access support \$EMPRESSPATH
- (Empress Version >= 8.60 required)
- --with-custom-odbc=DIR Include user defined ODBC support. DIR is ODBC install base
- directory /usr/local. Make sure to define CUSTOM_ODBC_LIBS and
- have some odbc.h in your include dirs. f.e. you should define
- following for Sybase SQL Anywhere 5.5.00 on QNX, prior to
- running this configure script:
- CPPFLAGS=\"-DODBC_QNX -DSQLANY_BUG\"
- LDFLAGS=-lunix
- CUSTOM_ODBC_LIBS=\"-ldblib -lodbc\"
- --with-iodbc=DIR Include iODBC support /usr/local
- --with-esoob=DIR Include Easysoft OOB support /usr/local/easysoft/oob/client
- --with-unixODBC=DIR Include unixODBC support /usr/local
- --with-dbmaker=DIR Include DBMaker support
- --disable-opcache Disable Zend OPcache support
- --disable-opcache-file Disable file based caching
- --disable-huge-code-pages
- Disable copying PHP CODE pages into HUGE PAGES
- --enable-pcntl Enable pcntl support (CLI/CGI only)
- --disable-pdo Disable PHP Data Objects support
- --with-pdo-dblib=DIR PDO: DBLIB-DB support. DIR is the FreeTDS home directory
- --with-pdo-firebird=DIR PDO: Firebird support. DIR is the Firebird base
- install directory /opt/firebird
- --with-pdo-mysql=DIR PDO: MySQL support. DIR is the MySQL base directory
- If no value or mysqlnd is passed as DIR, the
- MySQL native driver will be used
- --with-zlib-dir=DIR PDO_MySQL: Set the path to libz install prefix
- --with-pdo-oci=DIR PDO: Oracle OCI support. DIR defaults to $ORACLE_HOME.
- Use --with-pdo-oci=instantclient,/path/to/instant/client/lib
- for an Oracle Instant Client installation.
- --with-pdo-odbc=flavour,dir
- PDO: Support for 'flavour' ODBC driver.
- include and lib dirs are looked for under 'dir'.
- 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic
- If ',dir' part is omitted, default for the flavour
- you have selected will be used. e.g.:
- --with-pdo-odbc=unixODBC
- will check for unixODBC under /usr/local. You may attempt
- to use an otherwise unsupported driver using the 'generic'
- flavour. The syntax for generic ODBC support is:
- --with-pdo-odbc=generic,dir,libname,ldflags,cflags
- When built as 'shared' the extension filename is always pdo_odbc.so
- --with-pdo-pgsql=DIR PDO: PostgreSQL support. DIR is the PostgreSQL base
- install directory or the path to pg_config
- --without-pdo-sqlite=DIR
- PDO: sqlite 3 support. DIR is the sqlite base
- install directory BUNDLED
- --with-pgsql=DIR Include PostgreSQL support. DIR is the PostgreSQL
- base install directory or the path to pg_config
- --disable-phar Disable phar support
- --disable-posix Disable POSIX-like functions
- --with-pspell=DIR Include PSPELL support.
- GNU Aspell version 0.50.0 or higher required
- --with-libedit=DIR Include libedit readline replacement (CLI/CGI only)
- --with-readline=DIR Include readline support (CLI/CGI only)
- --with-recode=DIR Include recode support
- --disable-session Disable session support
- --with-mm=DIR SESSION: Include mm support for session storage
- --enable-shmop Enable shmop support
- --disable-simplexml Disable SimpleXML support
- --with-libxml-dir=DIR SimpleXML: libxml2 install prefix
- --with-snmp=DIR Include SNMP support
- --with-openssl-dir=DIR SNMP: openssl install prefix
- --enable-soap Enable SOAP support
- --with-libxml-dir=DIR SOAP: libxml2 install prefix
- --enable-sockets Enable sockets support
- --with-sodium=DIR Include sodium support
- --with-password-argon2=DIR
- Include Argon2 support in password_*. DIR is the Argon2 shared library path
- --enable-sysvmsg Enable sysvmsg support
- --enable-sysvsem Enable System V semaphore support
- --enable-sysvshm Enable the System V shared memory support
- --with-tidy=DIR Include TIDY support
- --disable-tokenizer Disable tokenizer support
- --enable-wddx Enable WDDX support
- --with-libxml-dir=DIR WDDX: libxml2 install prefix
- --with-libexpat-dir=DIR WDDX: libexpat dir for XMLRPC-EPI (deprecated)
- --disable-xml Disable XML support
- --with-libxml-dir=DIR XML: libxml2 install prefix
- --with-libexpat-dir=DIR XML: libexpat install prefix (deprecated)
- --disable-xmlreader Disable XMLReader support
- --with-libxml-dir=DIR XMLReader: libxml2 install prefix
- --with-xmlrpc=DIR Include XMLRPC-EPI support
- --with-libxml-dir=DIR XMLRPC-EPI: libxml2 install prefix
- --with-libexpat-dir=DIR XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated)
- --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI
- --disable-xmlwriter Disable XMLWriter support
- --with-libxml-dir=DIR XMLWriter: libxml2 install prefix
- --with-xsl=DIR Include XSL support. DIR is the libxslt base
- install directory (libxslt >= 1.1.0 required)
- --enable-zend-test Enable zend-test extension
- --enable-zip Include Zip read/write support
- --with-zlib-dir=DIR ZIP: Set the path to libz install prefix
- --with-pcre-dir ZIP: pcre install prefix
- --with-libzip=DIR ZIP: use libzip
- --enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly
- when required by other extensions
- --disable-mysqlnd-compression-support
- Disable support for the MySQL compressed protocol in mysqlnd
- --with-zlib-dir=DIR mysqlnd: Set the path to libz install prefix
- PEAR:
- --with-pear=DIR Install PEAR in DIR [PREFIX/lib/php]
- --without-pear Do not install PEAR
- Zend:
- --enable-maintainer-zts Enable thread safety - for code maintainers only!!
- --disable-inline-optimization
- If building zend_execute.lo fails, try this switch
- --disable-zend-signals whether to enable zend signal handling
- TSRM:
- --with-tsrm-pth=pth-config
- Use GNU Pth
- --with-tsrm-st Use SGI's State Threads
- --with-tsrm-pthreads Use POSIX threads (default)
- Libtool:
- --enable-shared=PKGS Build shared libraries default=yes
- --enable-static=PKGS Build static libraries default=yes
- --enable-fast-install=PKGS
- Optimize for fast installation default=yes
- --with-gnu-ld Assume the C compiler uses GNU ld default=no
- --disable-libtool-lock Avoid locking (might break parallel builds)
- --with-pic Try to use only PIC/non-PIC objects default=use both
- --with-tags=TAGS Include additional configurations automatic
- Some influential environment variables:
- CC C compiler command
- CFLAGS C compiler flags
- LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
- nonstandard directory <lib dir>
- LIBS libraries to pass to the linker, e.g. -l<library>
- CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
- you have headers in a nonstandard directory <include dir>
- CPP C preprocessor
- YACC The `Yet Another Compiler Compiler' implementation to use.
- Defaults to the first program found out of: `bison -y', `byacc',
- `yacc'.
- YFLAGS The list of arguments that will be passed by default to $YACC.
- This script will default YFLAGS to the empty string to avoid a
- default value of `-d' given by some make applications.
- CXX C++ compiler command
- CXXFLAGS C++ compiler flags
- CXXCPP C++ preprocessor
- Use these variables to override the choices made by `configure' or to help
- it to find libraries and programs with nonstandard names/locations.
- Report bugs to the package provider.
- _ACEOF
- ac_status=$?
- fi
- if test "$ac_init_help" = "recursive"; then
- # If there are subdirs, report their specific --help.
- for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
- test -d "$ac_dir" ||
- { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
- continue
- ac_builddir=.
- case "$ac_dir" in
- .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *)
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
- # A ".." for each directory in $ac_dir_suffix.
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
- case $ac_top_builddir_sub in
- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
- esac ;;
- esac
- ac_abs_top_builddir=$ac_pwd
- ac_abs_builddir=$ac_pwd$ac_dir_suffix
- # for backward compatibility:
- ac_top_builddir=$ac_top_build_prefix
- case $srcdir in
- .) # We are building in place.
- ac_srcdir=.
- ac_top_srcdir=$ac_top_builddir_sub
- ac_abs_top_srcdir=$ac_pwd ;;
- [\\/]* | ?:[\\/]* ) # Absolute name.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir
- ac_abs_top_srcdir=$srcdir ;;
- *) # Relative name.
- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_build_prefix$srcdir
- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
- esac
- ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
- cd "$ac_dir" || { ac_status=$?; continue; }
- # Check for guested configure.
- if test -f "$ac_srcdir/configure.gnu"; then
- echo &&
- $SHELL "$ac_srcdir/configure.gnu" --help=recursive
- elif test -f "$ac_srcdir/configure"; then
- echo &&
- $SHELL "$ac_srcdir/configure" --help=recursive
- else
- $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
- fi || ac_status=$?
- cd "$ac_pwd" || { ac_status=$?; break; }
- done
- fi
- test -n "$ac_init_help" && exit $ac_status
- if $ac_init_version; then
- cat <<\_ACEOF
- configure
- generated by GNU Autoconf 2.69
- Copyright (C) 2012 Free Software Foundation, Inc.
- This configure script is free software; the Free Software Foundation
- gives unlimited permission to copy, distribute and modify it.
- _ACEOF
- exit
- fi
- ## ------------------------ ##
- ## Autoconf initialization. ##
- ## ------------------------ ##
- # ac_fn_c_try_compile LINENO
- # --------------------------
- # Try to compile conftest.$ac_ext, and return whether this succeeded.
- ac_fn_c_try_compile ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext
- if { { ac_try="$ac_compile"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compile") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_c_try_compile
- # ac_fn_c_try_cpp LINENO
- # ----------------------
- # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
- ac_fn_c_try_cpp ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if { { ac_try="$ac_cpp conftest.$ac_ext"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } > conftest.i && {
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
- test ! -s conftest.err
- }; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_c_try_cpp
- # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
- # -------------------------------------------------------
- # Tests whether HEADER exists, giving a warning if it cannot be compiled using
- # the include files in INCLUDES and setting the cache variable VAR
- # accordingly.
- ac_fn_c_check_header_mongrel ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if eval \${$3+:} false; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
- $as_echo_n "checking for $2... " >&6; }
- if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
- fi
- eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- else
- # Is the header compilable?
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
- $as_echo_n "checking $2 usability... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- #include <$2>
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_header_compiler=yes
- else
- ac_header_compiler=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
- $as_echo "$ac_header_compiler" >&6; }
- # Is the header present?
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
- $as_echo_n "checking $2 presence... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <$2>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- ac_header_preproc=yes
- else
- ac_header_preproc=no
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
- $as_echo "$ac_header_preproc" >&6; }
- # So? What about this header?
- case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
- yes:no: )
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
- $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
- $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
- ;;
- no:yes:* )
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
- $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
- $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
- $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
- $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
- $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
- $as_echo_n "checking for $2... " >&6; }
- if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- eval "$3=\$ac_header_compiler"
- fi
- eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- } # ac_fn_c_check_header_mongrel
- # ac_fn_c_try_run LINENO
- # ----------------------
- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
- # that executables *can* be run.
- ac_fn_c_try_run ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if { { ac_try="$ac_link"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then :
- ac_retval=0
- else
- $as_echo "$as_me: program exited with status $ac_status" >&5
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=$ac_status
- fi
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_c_try_run
- # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
- # -------------------------------------------------------
- # Tests whether HEADER exists and can be compiled using the include files in
- # INCLUDES, setting the cache variable VAR accordingly.
- ac_fn_c_check_header_compile ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
- $as_echo_n "checking for $2... " >&6; }
- if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- #include <$2>
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- eval "$3=yes"
- else
- eval "$3=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- } # ac_fn_c_check_header_compile
- # ac_fn_c_try_link LINENO
- # -----------------------
- # Try to link conftest.$ac_ext, and return whether this succeeded.
- ac_fn_c_try_link ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext conftest$ac_exeext
- if { { ac_try="$ac_link"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_c_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest$ac_exeext && {
- test "$cross_compiling" = yes ||
- test -x conftest$ac_exeext
- }; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
- # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
- # interfere with the next link command; also delete a directory that is
- # left behind by Apple's compiler. We do this before executing the actions.
- rm -rf conftest.dSYM conftest_ipa8_conftest.oo
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_c_try_link
- # ac_fn_c_check_func LINENO FUNC VAR
- # ----------------------------------
- # Tests whether FUNC exists, setting the cache variable VAR accordingly
- ac_fn_c_check_func ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
- $as_echo_n "checking for $2... " >&6; }
- if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
- For example, HP-UX 11i <limits.h> declares gettimeofday. */
- #define $2 innocuous_$2
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $2 (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- #undef $2
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char $2 ();
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined __stub_$2 || defined __stub___$2
- choke me
- #endif
- int
- main ()
- {
- return $2 ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$3=yes"
- else
- eval "$3=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- } # ac_fn_c_check_func
- # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
- # ----------------------------------------------------
- # Tries to find if the field MEMBER exists in type AGGR, after including
- # INCLUDES, setting cache variable VAR accordingly.
- ac_fn_c_check_member ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
- $as_echo_n "checking for $2.$3... " >&6; }
- if eval \${$4+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $5
- int
- main ()
- {
- static $2 ac_aggr;
- if (ac_aggr.$3)
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- eval "$4=yes"
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $5
- int
- main ()
- {
- static $2 ac_aggr;
- if (sizeof ac_aggr.$3)
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- eval "$4=yes"
- else
- eval "$4=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- eval ac_res=\$$4
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- } # ac_fn_c_check_member
- # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
- # ---------------------------------------------
- # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
- # accordingly.
- ac_fn_c_check_decl ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- as_decl_name=`echo $2|sed 's/ *(.*//'`
- as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
- $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
- if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- #ifndef $as_decl_name
- #ifdef __cplusplus
- (void) $as_decl_use;
- #else
- (void) $as_decl_name;
- #endif
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- eval "$3=yes"
- else
- eval "$3=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- } # ac_fn_c_check_decl
- # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
- # --------------------------------------------
- # Tries to find the compile-time value of EXPR in a program that includes
- # INCLUDES, setting VAR accordingly. Returns whether the value could be
- # computed
- ac_fn_c_compute_int ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if test "$cross_compiling" = yes; then
- # Depending upon the size, compute the lo and hi bounds.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- static int test_array [1 - 2 * !(($2) >= 0)];
- test_array [0] = 0;
- return test_array [0];
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_lo=0 ac_mid=0
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- static int test_array [1 - 2 * !(($2) <= $ac_mid)];
- test_array [0] = 0;
- return test_array [0];
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_hi=$ac_mid; break
- else
- as_fn_arith $ac_mid + 1 && ac_lo=$as_val
- if test $ac_lo -le $ac_mid; then
- ac_lo= ac_hi=
- break
- fi
- as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- done
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- static int test_array [1 - 2 * !(($2) < 0)];
- test_array [0] = 0;
- return test_array [0];
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_hi=-1 ac_mid=-1
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- static int test_array [1 - 2 * !(($2) >= $ac_mid)];
- test_array [0] = 0;
- return test_array [0];
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_lo=$ac_mid; break
- else
- as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
- if test $ac_mid -le $ac_hi; then
- ac_lo= ac_hi=
- break
- fi
- as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- done
- else
- ac_lo= ac_hi=
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- # Binary search between lo and hi bounds.
- while test "x$ac_lo" != "x$ac_hi"; do
- as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- static int test_array [1 - 2 * !(($2) <= $ac_mid)];
- test_array [0] = 0;
- return test_array [0];
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_hi=$ac_mid
- else
- as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- done
- case $ac_lo in #((
- ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
- '') ac_retval=1 ;;
- esac
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- static long int longval () { return $2; }
- static unsigned long int ulongval () { return $2; }
- #include <stdio.h>
- #include <stdlib.h>
- int
- main ()
- {
- FILE *f = fopen ("conftest.val", "w");
- if (! f)
- return 1;
- if (($2) < 0)
- {
- long int i = longval ();
- if (i != ($2))
- return 1;
- fprintf (f, "%ld", i);
- }
- else
- {
- unsigned long int i = ulongval ();
- if (i != ($2))
- return 1;
- fprintf (f, "%lu", i);
- }
- /* Do not output a trailing newline, as this causes \r\n confusion
- on some platforms. */
- return ferror (f) || fclose (f) != 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- echo >>conftest.val; read $3 <conftest.val; ac_retval=0
- else
- ac_retval=1
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- rm -f conftest.val
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_c_compute_int
- # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
- # -------------------------------------------
- # Tests whether TYPE exists after having included INCLUDES, setting cache
- # variable VAR accordingly.
- ac_fn_c_check_type ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
- $as_echo_n "checking for $2... " >&6; }
- if eval \${$3+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- eval "$3=no"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- if (sizeof ($2))
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $4
- int
- main ()
- {
- if (sizeof (($2)))
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- else
- eval "$3=yes"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- eval ac_res=\$$3
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- } # ac_fn_c_check_type
- # ac_fn_cxx_try_compile LINENO
- # ----------------------------
- # Try to compile conftest.$ac_ext, and return whether this succeeded.
- ac_fn_cxx_try_compile ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- rm -f conftest.$ac_objext
- if { { ac_try="$ac_compile"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compile") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && {
- test -z "$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- } && test -s conftest.$ac_objext; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_cxx_try_compile
- # ac_fn_cxx_try_cpp LINENO
- # ------------------------
- # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
- ac_fn_cxx_try_cpp ()
- {
- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- if { { ac_try="$ac_cpp conftest.$ac_ext"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- grep -v '^ *+' conftest.err >conftest.er1
- cat conftest.er1 >&5
- mv -f conftest.er1 conftest.err
- fi
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } > conftest.i && {
- test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
- test ! -s conftest.err
- }; then :
- ac_retval=0
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- ac_retval=1
- fi
- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- as_fn_set_status $ac_retval
- } # ac_fn_cxx_try_cpp
- cat >config.log <<_ACEOF
- This file contains any messages produced by compilers while
- running configure, to aid debugging if configure makes a mistake.
- It was created by $as_me, which was
- generated by GNU Autoconf 2.69. Invocation command line was
- $ $0 $@
- _ACEOF
- exec 5>>config.log
- {
- cat <<_ASUNAME
- ## --------- ##
- ## Platform. ##
- ## --------- ##
- hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
- uname -m = `(uname -m) 2>/dev/null || echo unknown`
- uname -r = `(uname -r) 2>/dev/null || echo unknown`
- uname -s = `(uname -s) 2>/dev/null || echo unknown`
- uname -v = `(uname -v) 2>/dev/null || echo unknown`
- /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
- /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
- /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
- /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
- /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
- /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
- /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
- /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
- /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
- _ASUNAME
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- $as_echo "PATH: $as_dir"
- done
- IFS=$as_save_IFS
- } >&5
- cat >&5 <<_ACEOF
- ## ----------- ##
- ## Core tests. ##
- ## ----------- ##
- _ACEOF
- # Keep a trace of the command line.
- # Strip out --no-create and --no-recursion so they do not pile up.
- # Strip out --silent because we don't want to record it for future runs.
- # Also quote any args containing shell meta-characters.
- # Make two passes to allow for proper duplicate-argument suppression.
- ac_configure_args=
- ac_configure_args0=
- ac_configure_args1=
- ac_must_keep_next=false
- for ac_pass in 1 2
- do
- for ac_arg
- do
- case $ac_arg in
- -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil)
- continue ;;
- *\'*)
- ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
- esac
- case $ac_pass in
- 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
- 2)
- as_fn_append ac_configure_args1 " '$ac_arg'"
- if test $ac_must_keep_next = true; then
- ac_must_keep_next=false # Got value, back to normal.
- else
- case $ac_arg in
- *=* | --config-cache | -C | -disable-* | --disable-* \
- | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
- | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
- | -with-* | --with-* | -without-* | --without-* | --x)
- case "$ac_configure_args0 " in
- "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
- esac
- ;;
- -* ) ac_must_keep_next=true ;;
- esac
- fi
- as_fn_append ac_configure_args " '$ac_arg'"
- ;;
- esac
- done
- done
- { ac_configure_args0=; unset ac_configure_args0;}
- { ac_configure_args1=; unset ac_configure_args1;}
- # When interrupted or exit'd, cleanup temporary files, and complete
- # config.log. We remove comments because anyway the quotes in there
- # would cause problems or look ugly.
- # WARNING: Use '\'' to represent an apostrophe within the trap.
- # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
- trap 'exit_status=$?
- # Save into config.log some information that might help in debugging.
- {
- echo
- $as_echo "## ---------------- ##
- ## Cache variables. ##
- ## ---------------- ##"
- echo
- # The following way of writing the cache mishandles newlines in values,
- (
- for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
- eval ac_val=\$$ac_var
- case $ac_val in #(
- *${as_nl}*)
- case $ac_var in #(
- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
- $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
- esac
- case $ac_var in #(
- _ | IFS | as_nl) ;; #(
- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
- *) { eval $ac_var=; unset $ac_var;} ;;
- esac ;;
- esac
- done
- (set) 2>&1 |
- case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
- *${as_nl}ac_space=\ *)
- sed -n \
- "s/'\''/'\''\\\\'\'''\''/g;
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
- ;; #(
- *)
- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
- ;;
- esac |
- sort
- )
- echo
- $as_echo "## ----------------- ##
- ## Output variables. ##
- ## ----------------- ##"
- echo
- for ac_var in $ac_subst_vars
- do
- eval ac_val=\$$ac_var
- case $ac_val in
- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
- esac
- $as_echo "$ac_var='\''$ac_val'\''"
- done | sort
- echo
- if test -n "$ac_subst_files"; then
- $as_echo "## ------------------- ##
- ## File substitutions. ##
- ## ------------------- ##"
- echo
- for ac_var in $ac_subst_files
- do
- eval ac_val=\$$ac_var
- case $ac_val in
- *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
- esac
- $as_echo "$ac_var='\''$ac_val'\''"
- done | sort
- echo
- fi
- if test -s confdefs.h; then
- $as_echo "## ----------- ##
- ## confdefs.h. ##
- ## ----------- ##"
- echo
- cat confdefs.h
- echo
- fi
- test "$ac_signal" != 0 &&
- $as_echo "$as_me: caught signal $ac_signal"
- $as_echo "$as_me: exit $exit_status"
- } >&5
- rm -f core *.core core.conftest.* &&
- rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
- exit $exit_status
- ' 0
- for ac_signal in 1 2 13 15; do
- trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
- done
- ac_signal=0
- # confdefs.h avoids OS command line length limits that DEFS can exceed.
- rm -f -r conftest* confdefs.h
- $as_echo "/* confdefs.h */" > confdefs.h
- # Predefined preprocessor variables.
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE_NAME "$PACKAGE_NAME"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE_VERSION "$PACKAGE_VERSION"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE_STRING "$PACKAGE_STRING"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define PACKAGE_URL "$PACKAGE_URL"
- _ACEOF
- # Let the site file select an alternate cache file if it wants to.
- # Prefer an explicitly selected file to automatically selected ones.
- ac_site_file1=NONE
- ac_site_file2=NONE
- if test -n "$CONFIG_SITE"; then
- # We do not want a PATH search for config.site.
- case $CONFIG_SITE in #((
- -*) ac_site_file1=./$CONFIG_SITE;;
- */*) ac_site_file1=$CONFIG_SITE;;
- *) ac_site_file1=./$CONFIG_SITE;;
- esac
- elif test "x$prefix" != xNONE; then
- ac_site_file1=$prefix/share/config.site
- ac_site_file2=$prefix/etc/config.site
- else
- ac_site_file1=$ac_default_prefix/share/config.site
- ac_site_file2=$ac_default_prefix/etc/config.site
- fi
- for ac_site_file in "$ac_site_file1" "$ac_site_file2"
- do
- test "x$ac_site_file" = xNONE && continue
- if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
- $as_echo "$as_me: loading site script $ac_site_file" >&6;}
- sed 's/^/| /' "$ac_site_file" >&5
- . "$ac_site_file" \
- || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "failed to load site script $ac_site_file
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- done
- if test -r "$cache_file"; then
- # Some versions of bash will fail to source /dev/null (special files
- # actually), so we avoid doing that. DJGPP emulates it as a regular file.
- if test /dev/null != "$cache_file" && test -f "$cache_file"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
- $as_echo "$as_me: loading cache $cache_file" >&6;}
- case $cache_file in
- [\\/]* | ?:[\\/]* ) . "$cache_file";;
- *) . "./$cache_file";;
- esac
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
- $as_echo "$as_me: creating cache $cache_file" >&6;}
- >$cache_file
- fi
- as_fn_append ac_header_list " utime.h"
- # Check that the precious variables saved in the cache have kept the same
- # value.
- ac_cache_corrupted=false
- for ac_var in $ac_precious_vars; do
- eval ac_old_set=\$ac_cv_env_${ac_var}_set
- eval ac_new_set=\$ac_env_${ac_var}_set
- eval ac_old_val=\$ac_cv_env_${ac_var}_value
- eval ac_new_val=\$ac_env_${ac_var}_value
- case $ac_old_set,$ac_new_set in
- set,)
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
- $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
- ac_cache_corrupted=: ;;
- ,set)
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
- $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
- ac_cache_corrupted=: ;;
- ,);;
- *)
- if test "x$ac_old_val" != "x$ac_new_val"; then
- # differences in whitespace do not lead to failure.
- ac_old_val_w=`echo x $ac_old_val`
- ac_new_val_w=`echo x $ac_new_val`
- if test "$ac_old_val_w" != "$ac_new_val_w"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
- $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
- ac_cache_corrupted=:
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
- $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
- eval $ac_var=\$ac_old_val
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
- $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
- $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
- fi;;
- esac
- # Pass precious variables to config.status.
- if test "$ac_new_set" = set; then
- case $ac_new_val in
- *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
- *) ac_arg=$ac_var=$ac_new_val ;;
- esac
- case " $ac_configure_args " in
- *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
- *) as_fn_append ac_configure_args " '$ac_arg'" ;;
- esac
- fi
- done
- if $ac_cache_corrupted; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
- $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
- as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
- fi
- ## -------------------- ##
- ## Main body of script. ##
- ## -------------------- ##
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
- $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
- if ${ac_cv_path_GREP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -z "$GREP"; then
- ac_path_GREP_found=false
- # Loop through the user's path and test for each of PROGNAME-LIST
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in grep ggrep; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
- as_fn_executable_p "$ac_path_GREP" || continue
- # Check for GNU ac_path_GREP and select it if it is found.
- # Check for GNU $ac_path_GREP
- case `"$ac_path_GREP" --version 2>&1` in
- *GNU*)
- ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
- *)
- ac_count=0
- $as_echo_n 0123456789 >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- $as_echo 'GREP' >> "conftest.nl"
- "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
- as_fn_arith $ac_count + 1 && ac_count=$as_val
- if test $ac_count -gt ${ac_path_GREP_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_GREP="$ac_path_GREP"
- ac_path_GREP_max=$ac_count
- fi
- # 10*(2^10) chars as input seems more than enough
- test $ac_count -gt 10 && break
- done
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
- esac
- $ac_path_GREP_found && break 3
- done
- done
- done
- IFS=$as_save_IFS
- if test -z "$ac_cv_path_GREP"; then
- as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
- fi
- else
- ac_cv_path_GREP=$GREP
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
- $as_echo "$ac_cv_path_GREP" >&6; }
- GREP="$ac_cv_path_GREP"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
- $as_echo_n "checking for egrep... " >&6; }
- if ${ac_cv_path_EGREP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
- then ac_cv_path_EGREP="$GREP -E"
- else
- if test -z "$EGREP"; then
- ac_path_EGREP_found=false
- # Loop through the user's path and test for each of PROGNAME-LIST
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in egrep; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
- as_fn_executable_p "$ac_path_EGREP" || continue
- # Check for GNU ac_path_EGREP and select it if it is found.
- # Check for GNU $ac_path_EGREP
- case `"$ac_path_EGREP" --version 2>&1` in
- *GNU*)
- ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
- *)
- ac_count=0
- $as_echo_n 0123456789 >"conftest.in"
- while :
- do
- cat "conftest.in" "conftest.in" >"conftest.tmp"
- mv "conftest.tmp" "conftest.in"
- cp "conftest.in" "conftest.nl"
- $as_echo 'EGREP' >> "conftest.nl"
- "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
- diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
- as_fn_arith $ac_count + 1 && ac_count=$as_val
- if test $ac_count -gt ${ac_path_EGREP_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_EGREP="$ac_path_EGREP"
- ac_path_EGREP_max=$ac_count
- fi
- # 10*(2^10) chars as input seems more than enough
- test $ac_count -gt 10 && break
- done
- rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
- esac
- $ac_path_EGREP_found && break 3
- done
- done
- done
- IFS=$as_save_IFS
- if test -z "$ac_cv_path_EGREP"; then
- as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
- fi
- else
- ac_cv_path_EGREP=$EGREP
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
- $as_echo "$ac_cv_path_EGREP" >&6; }
- EGREP="$ac_cv_path_EGREP"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
- $as_echo_n "checking for a sed that does not truncate output... " >&6; }
- if ${lt_cv_path_SED+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # Loop through the user's path and test for sed and gsed.
- # Then use that list of sed's as ones to test for truncation.
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for lt_ac_prog in sed gsed; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then
- lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
- fi
- done
- done
- done
- lt_ac_max=0
- lt_ac_count=0
- # Add /usr/xpg4/bin/sed as it is typically found on Solaris
- # along with /bin/sed that truncates output.
- for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
- test ! -f $lt_ac_sed && continue
- cat /dev/null > conftest.in
- lt_ac_count=0
- echo $ECHO_N "0123456789$ECHO_C" >conftest.in
- # Check for GNU sed and select it if it is found.
- if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
- lt_cv_path_SED=$lt_ac_sed
- break
- fi
- while true; do
- cat conftest.in conftest.in >conftest.tmp
- mv conftest.tmp conftest.in
- cp conftest.in conftest.nl
- echo >>conftest.nl
- $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
- cmp -s conftest.out conftest.nl || break
- # 10000 chars as input seems more than enough
- test $lt_ac_count -gt 10 && break
- lt_ac_count=`expr $lt_ac_count + 1`
- if test $lt_ac_count -gt $lt_ac_max; then
- lt_ac_max=$lt_ac_count
- lt_cv_path_SED=$lt_ac_sed
- fi
- done
- done
- fi
- SED=$lt_cv_path_SED
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
- $as_echo "$SED" >&6; }
- PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP"
- PHP_VAR_SUBST="$PHP_VAR_SUBST SED"
- test -f config.nice && mv config.nice config.nice.old
- rm -f config.nice.old
- cat >config.nice<<EOF
- #! /bin/sh
- #
- # Created by configure
- EOF
- clean_configure_args=$ac_configure_args
- for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
- eval val=\$$var
- if test -n "$val"; then
- echo "$var='$val' \\" >> config.nice
- if test `expr "X$ac_configure_args" : ".*${var}.*"` != 0; then
- clean_configure_args=$(echo $clean_configure_args | sed -e "s#'$var=$val'##")
- fi
- fi
- done
- echo "'$0' \\" >> config.nice
- if test `expr " $0" : " '.*"` = 0; then
- CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
- else
- CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
- fi
- CONFIGURE_ARGS="$clean_configure_args"
- while test "X$CONFIGURE_ARGS" != "X";
- do
- if CURRENT_ARG=`expr "X$CONFIGURE_ARGS" : "X *\('[^']*'\)"`
- then
- CONFIGURE_ARGS=`expr "X$CONFIGURE_ARGS" : "X *'[^']*' \(.*\)"`
- elif CURRENT_ARG=`expr "X$CONFIGURE_ARGS" : "X *\([^ ]*\)"`
- then
- CONFIGURE_ARGS=`expr "X$CONFIGURE_ARGS" : "X *[^ ]* \(.*\)"`
- CURRENT_ARG="'$CURRENT_ARG'"
- else
- break
- fi
- $as_echo "$CURRENT_ARG \\" >>config.nice
- CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $CURRENT_ARG"
- done
- echo '"$@"' >> config.nice
- chmod +x config.nice
- CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND"
- PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS"
- ac_aux_dir=
- for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
- if test -f "$ac_dir/install-sh"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install-sh -c"
- break
- elif test -f "$ac_dir/install.sh"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/install.sh -c"
- break
- elif test -f "$ac_dir/shtool"; then
- ac_aux_dir=$ac_dir
- ac_install_sh="$ac_aux_dir/shtool install -c"
- break
- fi
- done
- if test -z "$ac_aux_dir"; then
- as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
- fi
- # These three variables are undocumented and unsupported,
- # and are intended to be withdrawn in a future Autoconf release.
- # They can cause serious problems if a builder's source tree is in a directory
- # whose full name contains unusual characters.
- ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
- ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
- ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
- # Make sure we can run config.sub.
- $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
- as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
- $as_echo_n "checking build system type... " >&6; }
- if ${ac_cv_build+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_build_alias=$build_alias
- test "x$ac_build_alias" = x &&
- ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
- test "x$ac_build_alias" = x &&
- as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
- ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
- $as_echo "$ac_cv_build" >&6; }
- case $ac_cv_build in
- *-*-*) ;;
- *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
- esac
- build=$ac_cv_build
- ac_save_IFS=$IFS; IFS='-'
- set x $ac_cv_build
- shift
- build_cpu=$1
- build_vendor=$2
- shift; shift
- # Remember, the first character of IFS is used to create $*,
- # except with old shells:
- build_os=$*
- IFS=$ac_save_IFS
- case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
- $as_echo_n "checking host system type... " >&6; }
- if ${ac_cv_host+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "x$host_alias" = x; then
- ac_cv_host=$ac_cv_build
- else
- ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
- $as_echo "$ac_cv_host" >&6; }
- case $ac_cv_host in
- *-*-*) ;;
- *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
- esac
- host=$ac_cv_host
- ac_save_IFS=$IFS; IFS='-'
- set x $ac_cv_host
- shift
- host_cpu=$1
- host_vendor=$2
- shift; shift
- # Remember, the first character of IFS is used to create $*,
- # except with old shells:
- host_os=$*
- IFS=$ac_save_IFS
- case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
- $as_echo_n "checking target system type... " >&6; }
- if ${ac_cv_target+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "x$target_alias" = x; then
- ac_cv_target=$ac_cv_host
- else
- ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
- as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
- $as_echo "$ac_cv_target" >&6; }
- case $ac_cv_target in
- *-*-*) ;;
- *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
- esac
- target=$ac_cv_target
- ac_save_IFS=$IFS; IFS='-'
- set x $ac_cv_target
- shift
- target_cpu=$1
- target_vendor=$2
- shift; shift
- # Remember, the first character of IFS is used to create $*,
- # except with old shells:
- target_os=$*
- IFS=$ac_save_IFS
- case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
- # The aliases save the names the user supplied, while $host etc.
- # will get canonicalized.
- test -n "$target_alias" &&
- test "$program_prefix$program_suffix$program_transform_name" = \
- NONENONEs,x,x, &&
- program_prefix=${target_alias}-
- if test -z "$host_alias" && test -n "$host"; then
- host_alias=$host
- fi
- if test -z "$host_alias"; then
- as_fn_error $? "host_alias is not set!" "$LINENO" 5
- fi
- ac_config_headers="$ac_config_headers main/php_config.h"
- PHP_MAJOR_VERSION=7
- PHP_MINOR_VERSION=3
- PHP_RELEASE_VERSION=28
- PHP_EXTRA_VERSION=""
- PHP_VERSION="$PHP_MAJOR_VERSION.$PHP_MINOR_VERSION.$PHP_RELEASE_VERSION$PHP_EXTRA_VERSION"
- PHP_VERSION_ID=`expr $PHP_MAJOR_VERSION \* 10000 + $PHP_MINOR_VERSION \* 100 + $PHP_RELEASE_VERSION`
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MAJOR_VERSION"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MINOR_VERSION"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RELEASE_VERSION"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXTRA_VERSION"
- echo "/* automatically generated by configure */" > php_version.h.new
- echo "/* edit configure.ac to change version number */" >> php_version.h.new
- echo "#define PHP_MAJOR_VERSION $PHP_MAJOR_VERSION" >> php_version.h.new
- echo "#define PHP_MINOR_VERSION $PHP_MINOR_VERSION" >> php_version.h.new
- echo "#define PHP_RELEASE_VERSION $PHP_RELEASE_VERSION" >> php_version.h.new
- echo "#define PHP_EXTRA_VERSION \"$PHP_EXTRA_VERSION\"" >> php_version.h.new
- echo "#define PHP_VERSION \"$PHP_VERSION\"" >> php_version.h.new
- echo "#define PHP_VERSION_ID $PHP_VERSION_ID" >> php_version.h.new
- cmp php_version.h.new $srcdir/main/php_version.h >/dev/null 2>&1
- if test $? -ne 0 ; then
- rm -f $srcdir/main/php_version.h && mv php_version.h.new $srcdir/main/php_version.h && \
- echo 'Updated main/php_version.h'
- else
- rm -f php_version.h.new
- fi
- cwd=`pwd`
- php_shtool=$srcdir/build/shtool
- T_MD=`$php_shtool echo -n -e %B`
- T_ME=`$php_shtool echo -n -e %b`
- test -d include || $php_shtool mkdir include
- > Makefile.objects
- > Makefile.fragments
- pattern=define
- $EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null
- test -z "$CFLAGS" && auto_cflags=1
- abs_srcdir=`(cd $srcdir; pwd)`
- abs_builddir=`pwd`
- php_abs_top_srcdir=$abs_srcdir
- php_abs_top_builddir=$abs_builddir
- $php_shtool mkdir -p libs
- rm -f libs/*
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test -n "$ac_tool_prefix"; then
- for ac_prog in cc gcc
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CC=$ac_cv_prog_CC
- if test -n "$CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
- $as_echo "$CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$CC" && break
- done
- fi
- if test -z "$CC"; then
- ac_ct_CC=$CC
- for ac_prog in cc gcc
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CC="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
- if test -n "$ac_ct_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
- $as_echo "$ac_ct_CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_CC" && break
- done
- if test "x$ac_ct_CC" = x; then
- CC=""
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- CC=$ac_ct_CC
- fi
- fi
- test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "no acceptable C compiler found in \$PATH
- See \`config.log' for more details" "$LINENO" 5; }
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- done
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- ac_clean_files_save=$ac_clean_files
- ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
- # Try to create an executable without -o first, disregard a.out.
- # It will help us diagnose broken compilers, and finding out an intuition
- # of exeext.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
- $as_echo_n "checking whether the C compiler works... " >&6; }
- ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
- # The possible output files:
- ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
- ac_rmfiles=
- for ac_file in $ac_files
- do
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
- * ) ac_rmfiles="$ac_rmfiles $ac_file";;
- esac
- done
- rm -f $ac_rmfiles
- if { { ac_try="$ac_link_default"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link_default") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then :
- # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
- # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
- # in a Makefile. We should not override ac_cv_exeext if it was cached,
- # so that the user can short-circuit this test for compilers unknown to
- # Autoconf.
- for ac_file in $ac_files ''
- do
- test -f "$ac_file" || continue
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
- ;;
- [ab].out )
- # We found the default executable, but exeext='' is most
- # certainly right.
- break;;
- *.* )
- if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
- then :; else
- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- fi
- # We set ac_cv_exeext here because the later test for it is not
- # safe: cross compilers may not add the suffix if given an `-o'
- # argument, so we may need to know it at that point already.
- # Even if this section looks crufty: it has the advantage of
- # actually working.
- break;;
- * )
- break;;
- esac
- done
- test "$ac_cv_exeext" = no && ac_cv_exeext=
- else
- ac_file=''
- fi
- if test -z "$ac_file"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "C compiler cannot create executables
- See \`config.log' for more details" "$LINENO" 5; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
- $as_echo_n "checking for C compiler default output file name... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
- $as_echo "$ac_file" >&6; }
- ac_exeext=$ac_cv_exeext
- rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
- ac_clean_files=$ac_clean_files_save
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
- $as_echo_n "checking for suffix of executables... " >&6; }
- if { { ac_try="$ac_link"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then :
- # If both `conftest.exe' and `conftest' are `present' (well, observable)
- # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
- # work properly (i.e., refer to `conftest.exe'), while it won't with
- # `rm'.
- for ac_file in conftest.exe conftest conftest.*; do
- test -f "$ac_file" || continue
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- break;;
- * ) break;;
- esac
- done
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "cannot compute suffix of executables: cannot compile and link
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- rm -f conftest conftest$ac_cv_exeext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
- $as_echo "$ac_cv_exeext" >&6; }
- rm -f conftest.$ac_ext
- EXEEXT=$ac_cv_exeext
- ac_exeext=$EXEEXT
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- int
- main ()
- {
- FILE *f = fopen ("conftest.out", "w");
- return ferror (f) || fclose (f) != 0;
- ;
- return 0;
- }
- _ACEOF
- ac_clean_files="$ac_clean_files conftest.out"
- # Check that the compiler produces executables we can run. If not, either
- # the compiler is broken, or we cross compile.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
- $as_echo_n "checking whether we are cross compiling... " >&6; }
- if test "$cross_compiling" != yes; then
- { { ac_try="$ac_link"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_link") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- if { ac_try='./conftest$ac_cv_exeext'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then
- cross_compiling=no
- else
- if test "$cross_compiling" = maybe; then
- cross_compiling=yes
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "cannot run C compiled programs.
- If you meant to cross compile, use \`--host'.
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
- $as_echo "$cross_compiling" >&6; }
- rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
- ac_clean_files=$ac_clean_files_save
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
- $as_echo_n "checking for suffix of object files... " >&6; }
- if ${ac_cv_objext+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- rm -f conftest.o conftest.obj
- if { { ac_try="$ac_compile"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compile") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then :
- for ac_file in conftest.o conftest.obj conftest.*; do
- test -f "$ac_file" || continue;
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
- *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
- break;;
- esac
- done
- else
- $as_echo "$as_me: failed program was:" >&5
- sed 's/^/| /' conftest.$ac_ext >&5
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "cannot compute suffix of object files: cannot compile
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- rm -f conftest.$ac_cv_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
- $as_echo "$ac_cv_objext" >&6; }
- OBJEXT=$ac_cv_objext
- ac_objext=$OBJEXT
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
- $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
- if ${ac_cv_c_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- #ifndef __GNUC__
- choke me
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
- else
- ac_compiler_gnu=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_c_compiler_gnu=$ac_compiler_gnu
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
- $as_echo "$ac_cv_c_compiler_gnu" >&6; }
- if test $ac_compiler_gnu = yes; then
- GCC=yes
- else
- GCC=
- fi
- ac_test_CFLAGS=${CFLAGS+set}
- ac_save_CFLAGS=$CFLAGS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
- $as_echo_n "checking whether $CC accepts -g... " >&6; }
- if ${ac_cv_prog_cc_g+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_save_c_werror_flag=$ac_c_werror_flag
- ac_c_werror_flag=yes
- ac_cv_prog_cc_g=no
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
- else
- CFLAGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- else
- ac_c_werror_flag=$ac_save_c_werror_flag
- CFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_g=yes
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_c_werror_flag=$ac_save_c_werror_flag
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
- $as_echo "$ac_cv_prog_cc_g" >&6; }
- if test "$ac_test_CFLAGS" = set; then
- CFLAGS=$ac_save_CFLAGS
- elif test $ac_cv_prog_cc_g = yes; then
- if test "$GCC" = yes; then
- CFLAGS="-g -O0"
- else
- CFLAGS="-g"
- fi
- else
- if test "$GCC" = yes; then
- CFLAGS="-O0"
- else
- CFLAGS=
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
- $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
- if ${ac_cv_prog_cc_c89+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_prog_cc_c89=no
- ac_save_CC=$CC
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdarg.h>
- #include <stdio.h>
- struct stat;
- /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
- struct buf { int x; };
- FILE * (*rcsopen) (struct buf *, struct stat *, int);
- static char *e (p, i)
- char **p;
- int i;
- {
- return p[i];
- }
- static char *f (char * (*g) (char **, int), char **p, ...)
- {
- char *s;
- va_list v;
- va_start (v,p);
- s = g (p, va_arg (v,int));
- va_end (v);
- return s;
- }
- /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
- function prototypes and stuff, but not '\xHH' hex character constants.
- These don't provoke an error unfortunately, instead are silently treated
- as 'x'. The following induces an error, until -std is added to get
- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
- array size at least. It's necessary to write '\x00'==0 to get something
- that's true only with -std. */
- int osf4_cc_array ['\x00' == 0 ? 1 : -1];
- /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
- inside strings and character constants. */
- #define FOO(x) 'x'
- int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
- int test (int i, double x);
- struct s1 {int (*f) (int a);};
- struct s2 {int (*f) (double a);};
- int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
- int argc;
- char **argv;
- int
- main ()
- {
- return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
- ;
- return 0;
- }
- _ACEOF
- for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
- do
- CC="$ac_save_CC $ac_arg"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_prog_cc_c89=$ac_arg
- fi
- rm -f core conftest.err conftest.$ac_objext
- test "x$ac_cv_prog_cc_c89" != "xno" && break
- done
- rm -f conftest.$ac_ext
- CC=$ac_save_CC
- fi
- # AC_CACHE_VAL
- case "x$ac_cv_prog_cc_c89" in
- x)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
- $as_echo "none needed" >&6; } ;;
- xno)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
- $as_echo "unsupported" >&6; } ;;
- *)
- CC="$CC $ac_cv_prog_cc_c89"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
- $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
- esac
- if test "x$ac_cv_prog_cc_c89" != xno; then :
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
- $as_echo_n "checking how to run the C preprocessor... " >&6; }
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- if ${ac_cv_prog_CPP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # Double quotes because CPP needs to be expanded
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
- do
- ac_preproc_ok=false
- for ac_c_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- break
- fi
- done
- ac_cv_prog_CPP=$CPP
- fi
- CPP=$ac_cv_prog_CPP
- else
- ac_cv_prog_CPP=$CPP
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
- $as_echo "$CPP" >&6; }
- ac_preproc_ok=false
- for ac_c_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- ICC="no"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc" >&5
- $as_echo_n "checking for icc... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- __INTEL_COMPILER
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then :
- ICC="no"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- ICC="yes"
- GCC="no"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- rm -f conftest*
- SUNCC="no"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5
- $as_echo_n "checking for suncc... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- __SUNPRO_C
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then :
- SUNCC="no"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- SUNCC="yes"
- GCC="no"
- test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload"
- GCC=""
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- rm -f conftest*
- if test "x$CC" != xcc; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
- $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
- $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
- fi
- set dummy $CC; ac_cc=`$as_echo "$2" |
- sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
- if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- # Make sure it works both with $CC and with simple cc.
- # We do the test twice because some compilers refuse to overwrite an
- # existing .o file with -o, though they will create one.
- ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
- rm -f conftest2.*
- if { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } &&
- test -f conftest2.$ac_objext && { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; };
- then
- eval ac_cv_prog_cc_${ac_cc}_c_o=yes
- if test "x$CC" != xcc; then
- # Test first that cc exists at all.
- if { ac_try='cc -c conftest.$ac_ext >&5'
- { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then
- ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
- rm -f conftest2.*
- if { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } &&
- test -f conftest2.$ac_objext && { { case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; };
- then
- # cc works too.
- :
- else
- # cc exists but doesn't like -o.
- eval ac_cv_prog_cc_${ac_cc}_c_o=no
- fi
- fi
- fi
- else
- eval ac_cv_prog_cc_${ac_cc}_c_o=no
- fi
- rm -f core conftest*
- fi
- if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
- $as_echo_n "checking how to run the C preprocessor... " >&6; }
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- if ${ac_cv_prog_CPP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # Double quotes because CPP needs to be expanded
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
- do
- ac_preproc_ok=false
- for ac_c_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- break
- fi
- done
- ac_cv_prog_CPP=$CPP
- fi
- CPP=$ac_cv_prog_CPP
- else
- ac_cv_prog_CPP=$CPP
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
- $as_echo "$CPP" >&6; }
- ac_preproc_ok=false
- for ac_c_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
- $as_echo_n "checking for ANSI C header files... " >&6; }
- if ${ac_cv_header_stdc+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_header_stdc=yes
- else
- ac_cv_header_stdc=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "memchr" >/dev/null 2>&1; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "free" >/dev/null 2>&1; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then :
- :
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ctype.h>
- #include <stdlib.h>
- #if ((' ' & 0x0FF) == 0x020)
- # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #else
- # define ISLOWER(c) \
- (('a' <= (c) && (c) <= 'i') \
- || ('j' <= (c) && (c) <= 'r') \
- || ('s' <= (c) && (c) <= 'z'))
- # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
- #endif
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int
- main ()
- {
- int i;
- for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i))
- || toupper (i) != TOUPPER (i))
- return 2;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
- $as_echo "$ac_cv_header_stdc" >&6; }
- if test $ac_cv_header_stdc = yes; then
- $as_echo "#define STDC_HEADERS 1" >>confdefs.h
- fi
- # On IRIX 5.3, sys/types and inttypes.h are conflicting.
- for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
- inttypes.h stdint.h unistd.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
- "
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
- if test "x$ac_cv_header_minix_config_h" = xyes; then :
- MINIX=yes
- else
- MINIX=
- fi
- if test "$MINIX" = yes; then
- $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
- $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
- $as_echo "#define _MINIX 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
- $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
- if ${ac_cv_safe_to_define___extensions__+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- # define __EXTENSIONS__ 1
- $ac_includes_default
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_safe_to_define___extensions__=yes
- else
- ac_cv_safe_to_define___extensions__=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
- $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
- test $ac_cv_safe_to_define___extensions__ = yes &&
- $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
- $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
- $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
- $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
- $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
- $as_echo_n "checking whether ln -s works... " >&6; }
- LN_S=$as_ln_s
- if test "$LN_S" = "ln -s"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
- $as_echo "no, using $LN_S" >&6; }
- fi
- php_with_libdir=lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5
- $as_echo_n "checking for system library directory... " >&6; }
- # Check whether --with-libdir was given.
- if test "${with_libdir+set}" = set; then :
- withval=$with_libdir; PHP_LIBDIR=$withval
- else
- PHP_LIBDIR=lib
- fi
- ext_output=$PHP_LIBDIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_enable_rpath=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable runpaths" >&5
- $as_echo_n "checking whether to enable runpaths... " >&6; }
- # Check whether --enable-rpath was given.
- if test "${enable_rpath+set}" = set; then :
- enableval=$enable_rpath; PHP_RPATH=$enableval
- else
- PHP_RPATH=yes
- fi
- ext_output=$PHP_RPATH
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5
- $as_echo_n "checking if compiler supports -R... " >&6; }
- if ${php_cv_cc_dashr+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- SAVE_LIBS=$LIBS
- LIBS="-R /usr/$PHP_LIBDIR $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- php_cv_cc_dashr=yes
- else
- php_cv_cc_dashr=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$SAVE_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5
- $as_echo "$php_cv_cc_dashr" >&6; }
- if test $php_cv_cc_dashr = "yes"; then
- ld_runpath_switch=-R
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5
- $as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; }
- if ${php_cv_cc_rpath+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- SAVE_LIBS=$LIBS
- LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- php_cv_cc_rpath=yes
- else
- php_cv_cc_rpath=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$SAVE_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5
- $as_echo "$php_cv_cc_rpath" >&6; }
- if test $php_cv_cc_rpath = "yes"; then
- ld_runpath_switch=-Wl,-rpath,
- else
- ld_runpath_switch=-L
- fi
- fi
- if test "$PHP_RPATH" = "no"; then
- ld_runpath_switch=
- fi
- for ac_prog in gawk nawk awk mawk
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_AWK+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$AWK"; then
- ac_cv_prog_AWK="$AWK" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="/usr/xpg4/bin/:$PATH"
- for as_dir in $as_dummy
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_AWK="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- AWK=$ac_cv_prog_AWK
- if test -n "$AWK"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
- $as_echo "$AWK" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$AWK" && break
- done
- test -n "$AWK" || AWK="bork"
- case "$AWK" in
- *mawk)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5
- $as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;}
- ;;
- *gawk)
- ;;
- bork)
- as_fn_error $? "Could not find awk; Install GNU awk" "$LINENO" 5
- ;;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5
- $as_echo_n "checking if $AWK is broken... " >&6; }
- if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- as_fn_error $? "You should install GNU awk" "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- ;;
- esac
- PHP_VAR_SUBST="$PHP_VAR_SUBST AWK"
- for ac_prog in 'bison -y' byacc
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_YACC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$YACC"; then
- ac_cv_prog_YACC="$YACC" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_YACC="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- YACC=$ac_cv_prog_YACC
- if test -n "$YACC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
- $as_echo "$YACC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$YACC" && break
- done
- test -n "$YACC" || YACC="yacc"
- # we only support certain bison versions;
- # min: 2.4 (i.e. 204, major * 100 + minor for easier comparison)
- bison_version_min="204"
- # non-working versions, e.g. "3.0 3.2";
- # remove "none" when introducing the first incompatible bison version an
- # separate any following additions by spaces
- bison_version_exclude=""
- # for standalone build of Zend Engine
- test -z "$SED" && SED=sed
- bison_version=none
- if test "$YACC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5
- $as_echo_n "checking for bison version... " >&6; }
- if ${php_cv_bison_version+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /g' | tr -d a-z`
- php_cv_bison_version=invalid
- if test -n "$bison_version_vars"; then
- set $bison_version_vars
- bison_version="${1}.${2}"
- bison_version_num="`expr ${1} \* 100 + ${2}`"
- if test $bison_version_num -ge $bison_version_min; then
- php_cv_bison_version="$bison_version (ok)"
- for bison_check_version in $bison_version_exclude; do
- if test "$bison_version" = "$bison_check_version"; then
- php_cv_bison_version=invalid
- break
- fi
- done
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5
- $as_echo "$php_cv_bison_version" >&6; }
- fi
- case $php_cv_bison_version in
- ""|invalid)
- bison_msg="This bison version is not supported for regeneration of the Zend/PHP parsers (found: $bison_version, min: $bison_version_min, excluded: $bison_version_exclude)."
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bison_msg" >&5
- $as_echo "$as_me: WARNING: $bison_msg" >&2;}
- YACC="exit 0;"
- ;;
- esac
- PHP_VAR_SUBST="$PHP_VAR_SUBST YACC"
- # Extract the first word of "re2c", so it can be a program name with args.
- set dummy re2c; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_RE2C+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$RE2C"; then
- ac_cv_prog_RE2C="$RE2C" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_RE2C="re2c"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- RE2C=$ac_cv_prog_RE2C
- if test -n "$RE2C"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5
- $as_echo "$RE2C" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test -n "$RE2C"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5
- $as_echo_n "checking for re2c version... " >&6; }
- if ${php_cv_re2c_version+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- re2c_vernum=`$RE2C --vernum 2>/dev/null`
- if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1304"; then
- php_cv_re2c_version=invalid
- else
- php_cv_re2c_version="`$RE2C --version | cut -d ' ' -f 2 2>/dev/null` (ok)"
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_re2c_version" >&5
- $as_echo "$php_cv_re2c_version" >&6; }
- fi
- case $php_cv_re2c_version in
- ""|invalid)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&5
- $as_echo "$as_me: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&2;}
- RE2C="exit 0;"
- ;;
- esac
- PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C"
- case $php_cv_bison_version in
- ""|invalid)
- if ! test -f "$abs_srcdir/Zend/zend_language_parser.h" || ! test -f "$abs_srcdir/Zend/zend_language_parser.c" ; then
- as_fn_error $? "bison is required to build PHP/Zend when building a GIT checkout!" "$LINENO" 5
- fi
- ;;
- esac
- php_enable_re2c_cgoto=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable computed goto gcc extension with re2c" >&5
- $as_echo_n "checking whether to enable computed goto gcc extension with re2c... " >&6; }
- # Check whether --enable-re2c-cgoto was given.
- if test "${enable_re2c_cgoto+set}" = set; then :
- enableval=$enable_re2c_cgoto; PHP_RE2C_CGOTO=$enableval
- else
- PHP_RE2C_CGOTO=no
- fi
- ext_output=$PHP_RE2C_CGOTO
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_RE2C_CGOTO" = "no"; then
- RE2C_FLAGS=""
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether re2c -g works" >&5
- $as_echo_n "checking whether re2c -g works... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- int main(int argc, const char **argv)
- {
- argc = argc;
- argv = argv;
- label1:
- label2:
- static void *adr[] = { &&label1, &&label2};
- goto *adr[0];
- return 0;
- }
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- RE2C_FLAGS=""
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- RE2C_FLAGS="-g"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C_FLAGS"
- case $host_cpu in
- alpha*)
- if test "$GCC" = "yes"; then
- CFLAGS="$CFLAGS -mieee"
- else
- CFLAGS="$CFLAGS -ieee"
- fi
- ;;
- sparc*)
- if test "$SUNCC" = "yes"; then
- CFLAGS="$CFLAGS -xmemalign=8s"
- fi
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
- $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
- if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ax_check_save_flags=$CFLAGS
- CFLAGS="$CFLAGS -fvisibility=hidden"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ax_cv_check_cflags___fvisibility_hidden=yes
- else
- ax_cv_check_cflags___fvisibility_hidden=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CFLAGS=$ax_check_save_flags
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5
- $as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; }
- if test "x$ax_cv_check_cflags___fvisibility_hidden" = xyes; then :
- CFLAGS="$CFLAGS -fvisibility=hidden"
- else
- :
- fi
- case $host_alias in
- *solaris*)
- CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
- if test "${enable_libgcc+set}" != "set" && test "$GCC" = "yes"; then
- enable_libgcc=yes
- fi
- ;;
- *dgux*)
- CPPFLAGS="$CPPFLAGS -D_BSD_TIMEOFDAY_FLAVOR"
- ;;
- *darwin*|*rhapsody*)
- if test -n "$GCC"; then
- gcc_arg_name=ac_cv_gcc_arg_no_cpp_precomp
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -no-cpp-precomp" >&5
- $as_echo_n "checking whether $CC supports -no-cpp-precomp... " >&6; }
- if ${ac_cv_gcc_arg_no_cpp_precomp+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- echo 'void somefunc() { };' > conftest.c
- cmd='$CC -no-cpp-precomp -c conftest.c'
- if eval $cmd 2>&1 | $EGREP -e -no-cpp-precomp >/dev/null ; then
- ac_result=no
- else
- ac_result=yes
- fi
- eval $gcc_arg_name=$ac_result
- rm -f conftest.*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_arg_no_cpp_precomp" >&5
- $as_echo "$ac_cv_gcc_arg_no_cpp_precomp" >&6; }
- if eval test "\$$gcc_arg_name" = "yes"; then
- gcc_no_cpp_precomp=yes
- else
- :
- fi
- if test "$gcc_no_cpp_precomp" = "yes"; then
- CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
- fi
- fi
- php_multiple_shlib_versions_ok=yes
- ;;
- *beos*)
- beos_threads=1
- LIBS="$LIBS -lbe -lroot"
- ;;
- *mips*)
- CPPFLAGS="$CPPFLAGS -D_XPG_IV"
- ;;
- *hpux*)
- if test "$GCC" = "yes"; then
- CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
- fi
- ;;
- esac
- # Disable PIC mode by default where it is known to be safe to do so,
- # to avoid the performance hit from the lost register
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force non-PIC code in shared modules" >&5
- $as_echo_n "checking whether to force non-PIC code in shared modules... " >&6; }
- case $host_alias in
- i?86-*-linux*|i?86-*-freebsd*)
- if test "${with_pic+set}" != "set" || test "$with_pic" = "no"; then
- with_pic=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- ;;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/urandom exists" >&5
- $as_echo_n "checking whether /dev/urandom exists... " >&6; }
- if test -r "/dev/urandom" && test -c "/dev/urandom"; then
- $as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/arandom exists" >&5
- $as_echo_n "checking whether /dev/arandom exists... " >&6; }
- if test -r "/dev/arandom" && test -c "/dev/arandom"; then
- $as_echo "#define HAVE_DEV_ARANDOM 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Check whether --enable-gcc-global-regs was given.
- if test "${enable_gcc_global_regs+set}" = set; then :
- enableval=$enable_gcc_global_regs;
- ZEND_GCC_GLOBAL_REGS=$enableval
- else
- ZEND_GCC_GLOBAL_REGS=yes
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global register variables support" >&5
- $as_echo_n "checking for global register variables support... " >&6; }
- if test "$ZEND_GCC_GLOBAL_REGS" != "no"; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #if defined(__GNUC__)
- # define ZEND_GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
- #else
- # define ZEND_GCC_VERSION 0
- #endif
- #if defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(i386)
- # define ZEND_VM_FP_GLOBAL_REG "%esi"
- # define ZEND_VM_IP_GLOBAL_REG "%edi"
- #elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__x86_64__)
- # define ZEND_VM_FP_GLOBAL_REG "%r14"
- # define ZEND_VM_IP_GLOBAL_REG "%r15"
- #elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__powerpc64__)
- # define ZEND_VM_FP_GLOBAL_REG "r28"
- # define ZEND_VM_IP_GLOBAL_REG "r29"
- #elif defined(__IBMC__) && ZEND_GCC_VERSION >= 4002 && defined(__powerpc64__)
- # define ZEND_VM_FP_GLOBAL_REG "r28"
- # define ZEND_VM_IP_GLOBAL_REG "r29"
- #else
- # error "global register variables are not supported"
- #endif
- typedef int (*opcode_handler_t)(void);
- register void *FP __asm__(ZEND_VM_FP_GLOBAL_REG);
- register const opcode_handler_t *IP __asm__(ZEND_VM_IP_GLOBAL_REG);
- int emu(const opcode_handler_t *ip, void *fp) {
- const opcode_handler_t *orig_ip = IP;
- void *orig_fp = FP;
- IP = ip;
- FP = fp;
- while ((*ip)());
- FP = orig_fp;
- IP = orig_ip;
- }
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ZEND_GCC_GLOBAL_REGS=yes
- else
- ZEND_GCC_GLOBAL_REGS=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if test "$ZEND_GCC_GLOBAL_REGS" = "yes"; then
- $as_echo "#define HAVE_GCC_GLOBAL_REGS 1" >>confdefs.h
- else
- HAVE_GCC_GLOBAL_REGS=no
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_GCC_GLOBAL_REGS" >&5
- $as_echo "$ZEND_GCC_GLOBAL_REGS" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts NAN" >&5
- $as_echo_n "checking whether atof() accepts NAN... " >&6; }
- if ${ac_cv_atof_accept_nan+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_atof_accept_nan=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <math.h>
- #include <stdlib.h>
- #ifdef HAVE_ISNAN
- #define zend_isnan(a) isnan(a)
- #elif defined(HAVE_FPCLASS)
- #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
- #else
- #define zend_isnan(a) 0
- #endif
- int main(int argc, char** argv)
- {
- return zend_isnan(atof("NAN")) ? 0 : 1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_atof_accept_nan=yes
- else
- ac_cv_atof_accept_nan=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_nan" >&5
- $as_echo "$ac_cv_atof_accept_nan" >&6; }
- if test "$ac_cv_atof_accept_nan" = "yes"; then
- $as_echo "#define HAVE_ATOF_ACCEPTS_NAN 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atof() accepts INF" >&5
- $as_echo_n "checking whether atof() accepts INF... " >&6; }
- if ${ac_cv_atof_accept_inf+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_atof_accept_inf=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <math.h>
- #include <stdlib.h>
- #ifdef HAVE_ISINF
- #define zend_isinf(a) isinf(a)
- #elif defined(INFINITY)
- /* Might not work, but is required by ISO C99 */
- #define zend_isinf(a) (((a)==INFINITY)?1:0)
- #elif defined(HAVE_FPCLASS)
- #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
- #else
- #define zend_isinf(a) 0
- #endif
- int main(int argc, char** argv)
- {
- return zend_isinf(atof("INF")) && zend_isinf(atof("-INF")) ? 0 : 1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_atof_accept_inf=yes
- else
- ac_cv_atof_accept_inf=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_atof_accept_inf" >&5
- $as_echo "$ac_cv_atof_accept_inf" >&6; }
- if test "$ac_cv_atof_accept_inf" = "yes"; then
- $as_echo "#define HAVE_ATOF_ACCEPTS_INF 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL == INF" >&5
- $as_echo_n "checking whether HUGE_VAL == INF... " >&6; }
- if ${ac_cv_huge_val_inf+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_huge_val_inf=yes
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <math.h>
- #include <stdlib.h>
- #ifdef HAVE_ISINF
- #define zend_isinf(a) isinf(a)
- #elif defined(INFINITY)
- /* Might not work, but is required by ISO C99 */
- #define zend_isinf(a) (((a)==INFINITY)?1:0)
- #elif defined(HAVE_FPCLASS)
- #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
- #else
- #define zend_isinf(a) 0
- #endif
- int main(int argc, char** argv)
- {
- return zend_isinf(HUGE_VAL) ? 0 : 1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_huge_val_inf=yes
- else
- ac_cv_huge_val_inf=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_inf" >&5
- $as_echo "$ac_cv_huge_val_inf" >&6; }
- if test "$ac_cv_huge_val_inf" = "yes"; then
- $as_echo "#define HAVE_HUGE_VAL_INF 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL + -HUGEVAL == NAN" >&5
- $as_echo_n "checking whether HUGE_VAL + -HUGEVAL == NAN... " >&6; }
- if ${ac_cv_huge_val_nan+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_huge_val_nan=yes
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <math.h>
- #include <stdlib.h>
- #ifdef HAVE_ISNAN
- #define zend_isnan(a) isnan(a)
- #elif defined(HAVE_FPCLASS)
- #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
- #else
- #define zend_isnan(a) 0
- #endif
- int main(int argc, char** argv)
- {
- #if defined(__sparc__) && !(__GNUC__ >= 3)
- /* prevent bug #27830 */
- return 1;
- #else
- return zend_isnan(HUGE_VAL + -HUGE_VAL) ? 0 : 1;
- #endif
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_huge_val_nan=yes
- else
- ac_cv_huge_val_nan=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_nan" >&5
- $as_echo "$ac_cv_huge_val_nan" >&6; }
- if test "$ac_cv_huge_val_nan" = "yes"; then
- $as_echo "#define HAVE_HUGE_VAL_NAN 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __cpuid_count is available" >&5
- $as_echo_n "checking whether __cpuid_count is available... " >&6; }
- if ${ac_cv_cpuid_count_available+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <cpuid.h>
- int
- main ()
- {
- unsigned eax, ebx, ecx, edx;
- __cpuid_count(0, 0, eax, ebx, ecx, edx);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_cpuid_count_available=yes
- else
- ac_cv_cpuid_count_available=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpuid_count_available" >&5
- $as_echo "$ac_cv_cpuid_count_available" >&6; }
- if test "$ac_cv_cpuid_count_available" = "yes"; then
- $as_echo "#define HAVE_CPUID_COUNT 1" >>confdefs.h
- fi
- # ==================================================================================
- # https://www.gnu.org/software/autoconf-archive/ax_func_which_gethostbyname_r.html
- # ==================================================================================
- #
- # SYNOPSIS
- #
- # AX_FUNC_WHICH_GETHOSTBYNAME_R
- #
- # DESCRIPTION
- #
- # Determines which historical variant of the gethostbyname_r() call
- # (taking three, five, or six arguments) is available on the system and
- # defines one of the following macros accordingly:
- #
- # HAVE_FUNC_GETHOSTBYNAME_R_6
- # HAVE_FUNC_GETHOSTBYNAME_R_5
- # HAVE_FUNC_GETHOSTBYNAME_R_3
- #
- # as well as
- #
- # HAVE_GETHOSTBYNAME_R
- #
- # If used in conjunction with gethostname.c, the API demonstrated in
- # test.c can be used regardless of which gethostbyname_r() is available.
- # These example files can be found at
- # http://www.csn.ul.ie/~caolan/publink/gethostbyname_r
- #
- # based on David Arnold's autoconf suggestion in the threads faq
- #
- # Originally named "AC_caolan_FUNC_WHICH_GETHOSTBYNAME_R". Rewritten for
- # Autoconf 2.5x, and updated for 2.68 by Daniel Richard G.
- #
- # LICENSE
- #
- # Copyright (c) 2008 Caolan McNamara <caolan@skynet.ie>
- # Copyright (c) 2008 Daniel Richard G. <skunk@iskunk.org>
- #
- # This program is free software; you can redistribute it and/or modify it
- # under the terms of the GNU General Public License as published by the
- # Free Software Foundation; either version 2 of the License, or (at your
- # option) any later version.
- #
- # This program is distributed in the hope that it will be useful, but
- # WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
- # Public License for more details.
- #
- # You should have received a copy of the GNU General Public License along
- # with this program. If not, see <https://www.gnu.org/licenses/>.
- #
- # As a special exception, the respective Autoconf Macro's copyright owner
- # gives unlimited permission to copy, distribute and modify the configure
- # scripts that are the output of Autoconf when processing the Macro. You
- # need not follow the terms of the GNU General Public License when using
- # or distributing such scripts, even though portions of the text of the
- # Macro appear in them. The GNU General Public License (GPL) does govern
- # all other use of the material that constitutes the Autoconf Macro.
- #
- # This special exception to the GPL applies to versions of the Autoconf
- # Macro released by the Autoconf Archive. When you make and distribute a
- # modified version of the Autoconf Macro, you may extend this special
- # exception to the GPL to apply to your modified version as well.
- #serial 8
- save_CFLAGS=$CFLAGS
- save_LIBS=$LIBS
- if test -n "$ac_cv_pthreads_lib"; then
- LIBS="$LIBS -l$ac_cv_pthreads_lib"
- fi
- if test -n "$ac_cv_pthreads_cflags"; then
- CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
- fi
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- #include <stddef.h>
- void *thread_routine(void *data) {
- return data;
- }
- int main() {
- pthread_t thd;
- pthread_mutexattr_t mattr;
- int data = 1;
- pthread_mutexattr_init(&mattr);
- return pthread_create(&thd, NULL, thread_routine, &data);
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- pthreads_checked=yes
- else
- pthreads_checked=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$save_LIBS
- CFLAGS=$save_CFLAGS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5
- $as_echo_n "checking for pthreads_cflags... " >&6; }
- if ${ac_cv_pthreads_cflags+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_pthreads_cflags=
- if test "$pthreads_working" != "yes"; then
- for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do
- ac_save=$CFLAGS
- CFLAGS="$CFLAGS $flag"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- #include <stddef.h>
- void *thread_routine(void *data) {
- return data;
- }
- int main() {
- pthread_t thd;
- pthread_mutexattr_t mattr;
- int data = 1;
- pthread_mutexattr_init(&mattr);
- return pthread_create(&thd, NULL, thread_routine, &data);
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- pthreads_checked=yes
- else
- pthreads_checked=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CFLAGS=$ac_save
- if test "$pthreads_checked" = "yes"; then
- ac_cv_pthreads_cflags=$flag
- break
- fi
- done
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5
- $as_echo "$ac_cv_pthreads_cflags" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5
- $as_echo_n "checking for pthreads_lib... " >&6; }
- if ${ac_cv_pthreads_lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_pthreads_lib=
- if test "$pthreads_working" != "yes"; then
- for lib in pthread pthreads c_r; do
- ac_save=$LIBS
- LIBS="$LIBS -l$lib"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- #include <stddef.h>
- void *thread_routine(void *data) {
- return data;
- }
- int main() {
- pthread_t thd;
- pthread_mutexattr_t mattr;
- int data = 1;
- pthread_mutexattr_init(&mattr);
- return pthread_create(&thd, NULL, thread_routine, &data);
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- pthreads_checked=yes
- else
- pthreads_checked=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_save
- if test "$pthreads_checked" = "yes"; then
- ac_cv_pthreads_lib=$lib
- break
- fi
- done
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5
- $as_echo "$ac_cv_pthreads_lib" >&6; }
- if test "x$ac_cv_pthreads_cflags" != "x" -o "x$ac_cv_pthreads_lib" != "x"; then
- pthreads_working="yes"
- fi
- if test "$pthreads_working" = "yes"; then
- threads_result="POSIX-Threads found"
- else
- threads_result="POSIX-Threads not found"
- fi
- # Check whether --enable- was given.
- if test "${enable_+set}" = set; then :
- enableval=$enable_;
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME"
- PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME"
- SHLIB_SUFFIX_NAME=so
- SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
- case $host_alias in
- *hpux*)
- SHLIB_SUFFIX_NAME=sl
- SHLIB_DL_SUFFIX_NAME=sl
- ;;
- *darwin*)
- SHLIB_SUFFIX_NAME=dylib
- SHLIB_DL_SUFFIX_NAME=so
- ;;
- esac
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- PHP_SAPI=none
- SAPI_SHARED=libs/libphp$PHP_MAJOR_VERSION.$SHLIB_DL_SUFFIX_NAME
- SAPI_STATIC=libs/libphp$PHP_MAJOR_VERSION.a
- SAPI_LIBTOOL=libphp$PHP_MAJOR_VERSION.la
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring SAPI modules${T_ME}" >&5
- $as_echo "${T_MD}Configuring SAPI modules${T_ME}" >&6; }
- php_with_apxs2=no
- # Check whether --with-apxs2 was given.
- if test "${with_apxs2+set}" = set; then :
- withval=$with_apxs2; PHP_APXS2=$withval
- else
- PHP_APXS2=no
- fi
- ext_output=$PHP_APXS2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apache 2.0 handler-module support via DSO through APXS" >&5
- $as_echo_n "checking for Apache 2.0 handler-module support via DSO through APXS... " >&6; }
- if test "$PHP_APXS2" != "no"; then
- if test "$PHP_APXS2" = "yes"; then
- APXS=apxs
- $APXS -q CFLAGS >/dev/null 2>&1
- if test "$?" != "0" && test -x /usr/sbin/apxs; then
- APXS=/usr/sbin/apxs
- fi
- else
- if test -z "$PHP_APXS2" || echo "$PHP_APXS2" | grep '^/' >/dev/null ; then
- APXS=$PHP_APXS2
- else
- ep_dir=`echo $PHP_APXS2|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- APXS="$ep_realdir"/`basename "$PHP_APXS2"`
- fi
- fi
- $APXS -q CFLAGS >/dev/null 2>&1
- if test "$?" != "0"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, I cannot run apxs. Possible reasons follow:" >&5
- $as_echo "Sorry, I cannot run apxs. Possible reasons follow:" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: 1. Perl is not installed" >&5
- $as_echo "1. Perl is not installed" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&5
- $as_echo "2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&5
- $as_echo "3. Apache was not built using --enable-so (the apxs usage page is displayed)" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: The output of $APXS follows:" >&5
- $as_echo "The output of $APXS follows:" >&6; }
- $APXS -q CFLAGS
- as_fn_error $? "Aborting" "$LINENO" 5
- fi
- APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR`
- APXS_BINDIR=`$APXS -q BINDIR`
- APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
- APXS_CFLAGS=`$APXS -q CFLAGS`
- APU_BINDIR=`$APXS -q APU_BINDIR`
- APR_BINDIR=`$APXS -q APR_BINDIR`
- # Pick up ap[ru]-N-config if using httpd >=2.1
- APR_CONFIG=`$APXS -q APR_CONFIG 2>/dev/null ||
- echo $APR_BINDIR/apr-config`
- APU_CONFIG=`$APXS -q APU_CONFIG 2>/dev/null ||
- echo $APU_BINDIR/apu-config`
- APR_CFLAGS="`$APR_CONFIG --cppflags --includes`"
- APU_CFLAGS="`$APU_CONFIG --includes`"
- for flag in $APXS_CFLAGS; do
- case $flag in
- -D*) APACHE_CPPFLAGS="$APACHE_CPPFLAGS $flag";;
- esac
- done
- APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
- # Test that we're trying to configure with apache 2.x
- ac_output=`$APXS_HTTPD -v 2>&1 | grep version | $SED -e 's/Oracle-HTTP-//'`
- ac_IFS=$IFS
- IFS="- /.
- "
- set $ac_output
- IFS=$ac_IFS
- APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
- if test "$APACHE_VERSION" -le 2000000; then
- as_fn_error $? "You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropriate switch --with-apxs (without the 2)" "$LINENO" 5
- elif test "$APACHE_VERSION" -lt 2000044; then
- as_fn_error $? "Please note that Apache version >= 2.0.44 is required" "$LINENO" 5
- fi
- APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR`
- if test -z `$APXS -q SYSCONFDIR`; then
- INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
- $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
- -i -n php7"
- else
- APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR`
- INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \
- \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \
- $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \
- -S SYSCONFDIR='$APXS_SYSCONFDIR' \
- -i -a -n php7"
- fi
- case $host_alias in
- *aix*)
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-brtl -Wl,-bI:$APXS_LIBEXECDIR/httpd.exp"
- if test "shared" = "program"; then
- PHP_BINARIES="$PHP_BINARIES apache2handler"
- elif test "$PHP_SAPI" != "none"; then
- as_fn_error $? "
- +--------------------------------------------------------------------+
- | *** ATTENTION *** |
- | |
- | You've configured multiple SAPIs to be build. You can build only |
- | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
- +--------------------------------------------------------------------+
- " "$LINENO" 5
- else
- PHP_SAPI=apache2handler
- fi
- BUILD_DIR="$BUILD_DIR sapi/apache2handler"
- PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
- case "shared" in
- static)
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
- php_sapi_module=static
- ;;
- shared)
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
- php_sapi_module=shared
- php_c_pre=$shared_c_pre
- php_c_meta=$shared_c_meta
- php_c_post=$shared_c_post
- php_cxx_pre=$shared_cxx_pre
- php_cxx_meta=$shared_cxx_meta
- php_cxx_post=$shared_cxx_post
- php_lo=$shared_lo
- ;;
- bundle)
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
- php_sapi_module=static
- ;;
- esac
- install_sapi="install-sapi"
- case sapi/apache2handler in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in mod_php7.c sapi_apache2.c apache_config.c php_functions.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
- ;;
- *darwin*)
- if test -x "$APR_CONFIG"; then
- MH_BUNDLE_FLAGS="`$APR_CONFIG --ldflags --link-ld --libs`"
- fi
- if test -x "$APU_CONFIG"; then
- MH_BUNDLE_FLAGS="`$APU_CONFIG --ldflags --link-ld --libs` $MH_BUNDLE_FLAGS"
- fi
- MH_BUNDLE_FLAGS="-bundle -bundle_loader $APXS_HTTPD $MH_BUNDLE_FLAGS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST MH_BUNDLE_FLAGS"
- if test "bundle" = "program"; then
- PHP_BINARIES="$PHP_BINARIES apache2handler"
- elif test "$PHP_SAPI" != "none"; then
- as_fn_error $? "
- +--------------------------------------------------------------------+
- | *** ATTENTION *** |
- | |
- | You've configured multiple SAPIs to be build. You can build only |
- | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
- +--------------------------------------------------------------------+
- " "$LINENO" 5
- else
- PHP_SAPI=apache2handler
- fi
- BUILD_DIR="$BUILD_DIR sapi/apache2handler"
- PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
- case "bundle" in
- static)
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
- php_sapi_module=static
- ;;
- shared)
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
- php_sapi_module=shared
- php_c_pre=$shared_c_pre
- php_c_meta=$shared_c_meta
- php_c_post=$shared_c_post
- php_cxx_pre=$shared_cxx_pre
- php_cxx_meta=$shared_cxx_meta
- php_cxx_post=$shared_cxx_post
- php_lo=$shared_lo
- ;;
- bundle)
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
- php_sapi_module=static
- ;;
- esac
- install_sapi="install-sapi"
- case sapi/apache2handler in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in mod_php7.c sapi_apache2.c apache_config.c php_functions.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- SAPI_SHARED=libs/libphp7.so
- INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
- ;;
- *)
- if test "shared" = "program"; then
- PHP_BINARIES="$PHP_BINARIES apache2handler"
- elif test "$PHP_SAPI" != "none"; then
- as_fn_error $? "
- +--------------------------------------------------------------------+
- | *** ATTENTION *** |
- | |
- | You've configured multiple SAPIs to be build. You can build only |
- | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
- +--------------------------------------------------------------------+
- " "$LINENO" 5
- else
- PHP_SAPI=apache2handler
- fi
- BUILD_DIR="$BUILD_DIR sapi/apache2handler"
- PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS apache2handler"
- case "shared" in
- static)
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
- php_sapi_module=static
- ;;
- shared)
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
- php_sapi_module=shared
- php_c_pre=$shared_c_pre
- php_c_meta=$shared_c_meta
- php_c_post=$shared_c_post
- php_cxx_pre=$shared_cxx_pre
- php_cxx_meta=$shared_cxx_meta
- php_cxx_post=$shared_cxx_post
- php_lo=$shared_lo
- ;;
- bundle)
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
- php_sapi_module=static
- ;;
- esac
- install_sapi="install-sapi"
- case sapi/apache2handler in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "sapi/apache2handler"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/sapi/apache2handler/"; ac_bdir="sapi/apache2handler/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in mod_php7.c sapi_apache2.c apache_config.c php_functions.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $APACHE_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $APACHE_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
- ;;
- esac
- if test "$APACHE_VERSION" -lt 2004001; then
- APXS_MPM=`$APXS -q MPM_NAME`
- if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
- enable_maintainer_zts=yes
- if test "$pthreads_working" != "yes"; then
- as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
- fi
- fi
- else
- APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
- if test -n "$APACHE_THREADED_MPM"; then
- enable_maintainer_zts=yes
- if test "$pthreads_working" != "yes"; then
- as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PHP_VAR_SUBST="$PHP_VAR_SUBST APXS"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- php_enable_cli=yes
- # Check whether --enable-cli was given.
- if test "${enable_cli+set}" = set; then :
- enableval=$enable_cli; PHP_CLI=$enableval
- else
- PHP_CLI=yes
- fi
- ext_output=$PHP_CLI
- for ac_func in setproctitle
- do :
- ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
- if test "x$ac_cv_func_setproctitle" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SETPROCTITLE 1
- _ACEOF
- fi
- done
- for ac_header in sys/pstat.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default"
- if test "x$ac_cv_header_sys_pstat_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SYS_PSTAT_H 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PS_STRINGS" >&5
- $as_echo_n "checking for PS_STRINGS... " >&6; }
- if ${cli_cv_var_PS_STRINGS+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <machine/vmparam.h>
- #include <sys/exec.h>
- int
- main ()
- {
- PS_STRINGS->ps_nargvstr = 1;
- PS_STRINGS->ps_argvstr = "foo";
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- cli_cv_var_PS_STRINGS=yes
- else
- cli_cv_var_PS_STRINGS=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cli_cv_var_PS_STRINGS" >&5
- $as_echo "$cli_cv_var_PS_STRINGS" >&6; }
- if test "$cli_cv_var_PS_STRINGS" = yes ; then
- $as_echo "#define HAVE_PS_STRINGS /**/" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CLI build" >&5
- $as_echo_n "checking for CLI build... " >&6; }
- if test "$PHP_CLI" != "no"; then
- src=$abs_srcdir/sapi/cli/Makefile.frag
- ac_srcdir=$ext_srcdir
- ac_builddir=$ext_builddir
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- SAPI_CLI_PATH=sapi/cli/php
- if test "program" = "program"; then
- PHP_BINARIES="$PHP_BINARIES cli"
- elif test "$PHP_SAPI" != "none"; then
- as_fn_error $? "
- +--------------------------------------------------------------------+
- | *** ATTENTION *** |
- | |
- | You've configured multiple SAPIs to be build. You can build only |
- | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
- +--------------------------------------------------------------------+
- " "$LINENO" 5
- else
- PHP_SAPI=cli
- fi
- BUILD_DIR="$BUILD_DIR sapi/cli"
- PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cli"
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- install_binaries="install-binaries"
- install_binary_targets="$install_binary_targets install-cli"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CLI_OBJS"
- case sapi/cli in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "sapi/cli"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/sapi/cli/"; ac_bdir="sapi/cli/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_cli.c php_http_parser.c php_cli_server.c ps_title.c php_cli_process_title.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- case $host_alias in
- *aix*)
- if test "$php_sapi_module" = "shared"; then
- BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
- else
- BUILD_CLI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
- fi
- ;;
- *darwin*)
- BUILD_CLI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_CLI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
- ;;
- *)
- BUILD_CLI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CLI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CLI_PATH)"
- ;;
- esac
- PHP_EXECUTABLE="\$(top_builddir)/\$(SAPI_CLI_PATH)"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
- PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CLI_PATH"
- PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CLI"
- PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cli/php.1"
- for header_file in sapi/cli/cli.h; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CLI" >&5
- $as_echo "$PHP_CLI" >&6; }
- php_enable_embed=no
- # Check whether --enable-embed was given.
- if test "${enable_embed+set}" = set; then :
- enableval=$enable_embed; PHP_EMBED=$enableval
- else
- PHP_EMBED=no
- fi
- ext_output=$PHP_EMBED
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for embedded SAPI library support" >&5
- $as_echo_n "checking for embedded SAPI library support... " >&6; }
- if test "$PHP_EMBED" != "no"; then
- case "$PHP_EMBED" in
- yes|shared)
- PHP_EMBED_TYPE=shared
- INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0755 $SAPI_SHARED \$(INSTALL_ROOT)\$(prefix)/lib"
- ;;
- static)
- PHP_EMBED_TYPE=static
- INSTALL_IT="\$(mkinstalldirs) \$(INSTALL_ROOT)\$(prefix)/lib; \$(INSTALL) -m 0644 $SAPI_STATIC \$(INSTALL_ROOT)\$(prefix)/lib"
- ;;
- *)
- PHP_EMBED_TYPE=no
- ;;
- esac
- if test "$PHP_EMBED_TYPE" != "no"; then
- if test "$PHP_EMBED_TYPE" = "program"; then
- PHP_BINARIES="$PHP_BINARIES embed"
- elif test "$PHP_SAPI" != "none"; then
- as_fn_error $? "
- +--------------------------------------------------------------------+
- | *** ATTENTION *** |
- | |
- | You've configured multiple SAPIs to be build. You can build only |
- | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
- +--------------------------------------------------------------------+
- " "$LINENO" 5
- else
- PHP_SAPI=embed
- fi
- BUILD_DIR="$BUILD_DIR sapi/embed"
- PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS embed"
- case "$PHP_EMBED_TYPE" in
- static)
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
- php_sapi_module=static
- ;;
- shared)
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
- php_sapi_module=shared
- php_c_pre=$shared_c_pre
- php_c_meta=$shared_c_meta
- php_c_post=$shared_c_post
- php_cxx_pre=$shared_cxx_pre
- php_cxx_meta=$shared_cxx_meta
- php_cxx_post=$shared_cxx_post
- php_lo=$shared_lo
- ;;
- bundle)
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- OVERALL_TARGET=libs/libphp$PHP_MAJOR_VERSION.bundle
- php_sapi_module=static
- ;;
- esac
- install_sapi="install-sapi"
- case sapi/embed in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "sapi/embed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/sapi/embed/"; ac_bdir="sapi/embed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_embed.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- for header_file in sapi/embed/php_embed.h; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_EMBED_TYPE" >&5
- $as_echo "$PHP_EMBED_TYPE" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- php_enable_fpm=no
- # Check whether --enable-fpm was given.
- if test "${enable_fpm+set}" = set; then :
- enableval=$enable_fpm; PHP_FPM=$enableval
- else
- PHP_FPM=no
- fi
- ext_output=$PHP_FPM
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPM build" >&5
- $as_echo_n "checking for FPM build... " >&6; }
- if test "$PHP_FPM" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_FPM" >&5
- $as_echo "$PHP_FPM" >&6; }
- for ac_func in setenv clearenv setproctitle setproctitle_fast
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
- $as_echo_n "checking for library containing socket... " >&6; }
- if ${ac_cv_search_socket+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_func_search_save_LIBS=$LIBS
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char socket ();
- int
- main ()
- {
- return socket ();
- ;
- return 0;
- }
- _ACEOF
- for ac_lib in '' socket; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- fi
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_search_socket=$ac_res
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_socket+:} false; then :
- break
- fi
- done
- if ${ac_cv_search_socket+:} false; then :
- else
- ac_cv_search_socket=no
- fi
- rm conftest.$ac_ext
- LIBS=$ac_func_search_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
- $as_echo "$ac_cv_search_socket" >&6; }
- ac_res=$ac_cv_search_socket
- if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_addr" >&5
- $as_echo_n "checking for library containing inet_addr... " >&6; }
- if ${ac_cv_search_inet_addr+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_func_search_save_LIBS=$LIBS
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char inet_addr ();
- int
- main ()
- {
- return inet_addr ();
- ;
- return 0;
- }
- _ACEOF
- for ac_lib in '' nsl; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- fi
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_search_inet_addr=$ac_res
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_inet_addr+:} false; then :
- break
- fi
- done
- if ${ac_cv_search_inet_addr+:} false; then :
- else
- ac_cv_search_inet_addr=no
- fi
- rm conftest.$ac_ext
- LIBS=$ac_func_search_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_addr" >&5
- $as_echo "$ac_cv_search_inet_addr" >&6; }
- ac_res=$ac_cv_search_inet_addr
- if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- fi
- for ac_header in errno.h fcntl.h stdio.h stdlib.h unistd.h sys/uio.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_header in sys/select.h sys/socket.h sys/time.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_header in arpa/inet.h netinet/in.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_header in sysexits.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
- if test "x$ac_cv_header_sysexits_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SYSEXITS_H 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl" >&5
- $as_echo_n "checking for prctl... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/prctl.h>
- int
- main ()
- {
- prctl(0, 0, 0, 0, 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- $as_echo "#define HAVE_PRCTL 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- have_clock_gettime=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime" >&5
- $as_echo_n "checking for clock_gettime... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <time.h>
- int
- main ()
- {
- struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_clock_gettime=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test "$have_clock_gettime" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
- $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
- SAVED_LIBS="$LIBS"
- LIBS="$LIBS -lrt"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <time.h>
- int
- main ()
- {
- struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_clock_gettime=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- LIBS="$SAVED_LIBS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- if test "$have_clock_gettime" = "yes"; then
- $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
- fi
- have_clock_get_time=no
- if test "$have_clock_gettime" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_get_time" >&5
- $as_echo_n "checking for clock_get_time... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (cross-compiling)" >&5
- $as_echo "no (cross-compiling)" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <mach/mach.h>
- #include <mach/clock.h>
- #include <mach/mach_error.h>
- int main()
- {
- kern_return_t ret; clock_serv_t aClock; mach_timespec_t aTime;
- ret = host_get_clock_service(mach_host_self(), REALTIME_CLOCK, &aClock);
- if (ret != KERN_SUCCESS) {
- return 1;
- }
- ret = clock_get_time(aClock, &aTime);
- if (ret != KERN_SUCCESS) {
- return 2;
- }
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- have_clock_get_time=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- if test "$have_clock_get_time" = "yes"; then
- $as_echo "#define HAVE_CLOCK_GET_TIME 1" >>confdefs.h
- fi
- have_ptrace=no
- have_broken_ptrace=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrace" >&5
- $as_echo_n "checking for ptrace... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/ptrace.h>
- int
- main ()
- {
- ptrace(0, 0, (void *) 0, 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- have_ptrace=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- if test "$have_ptrace" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ptrace works" >&5
- $as_echo_n "checking whether ptrace works... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross-compiling)" >&5
- $as_echo "skipped (cross-compiling)" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <unistd.h>
- #include <signal.h>
- #include <sys/wait.h>
- #include <sys/types.h>
- #include <sys/ptrace.h>
- #include <errno.h>
- #if !defined(PTRACE_ATTACH) && defined(PT_ATTACH)
- #define PTRACE_ATTACH PT_ATTACH
- #endif
- #if !defined(PTRACE_DETACH) && defined(PT_DETACH)
- #define PTRACE_DETACH PT_DETACH
- #endif
- #if !defined(PTRACE_PEEKDATA) && defined(PT_READ_D)
- #define PTRACE_PEEKDATA PT_READ_D
- #endif
- int main()
- {
- long v1 = (unsigned int) -1; /* copy will fail if sizeof(long) == 8 and we've got "int ptrace()" */
- long v2;
- pid_t child;
- int status;
- if ( (child = fork()) ) { /* parent */
- int ret = 0;
- if (0 > ptrace(PTRACE_ATTACH, child, 0, 0)) {
- return 2;
- }
- waitpid(child, &status, 0);
- #ifdef PT_IO
- struct ptrace_io_desc ptio = {
- .piod_op = PIOD_READ_D,
- .piod_offs = &v1,
- .piod_addr = &v2,
- .piod_len = sizeof(v1)
- };
- if (0 > ptrace(PT_IO, child, (void *) &ptio, 0)) {
- ret = 3;
- }
- #else
- errno = 0;
- v2 = ptrace(PTRACE_PEEKDATA, child, (void *) &v1, 0);
- if (errno) {
- ret = 4;
- }
- #endif
- ptrace(PTRACE_DETACH, child, (void *) 1, 0);
- kill(child, SIGKILL);
- return ret ? ret : (v1 != v2);
- }
- else { /* child */
- sleep(10);
- return 0;
- }
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_ptrace=no
- have_broken_ptrace=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- if test "$have_ptrace" = "yes"; then
- $as_echo "#define HAVE_PTRACE 1" >>confdefs.h
- fi
- have_mach_vm_read=no
- if test "$have_broken_ptrace" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mach_vm_read" >&5
- $as_echo_n "checking for mach_vm_read... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <mach/mach.h>
- #include <mach/mach_vm.h>
- int
- main ()
- {
- mach_vm_read((vm_map_t)0, (mach_vm_address_t)0, (mach_vm_size_t)0, (vm_offset_t *)0, (mach_msg_type_number_t*)0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- have_mach_vm_read=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if test "$have_mach_vm_read" = "yes"; then
- $as_echo "#define HAVE_MACH_VM_READ 1" >>confdefs.h
- fi
- proc_mem_file=""
- if test -r /proc/$$/mem ; then
- proc_mem_file="mem"
- else
- if test -r /proc/$$/as ; then
- proc_mem_file="as"
- fi
- fi
- if test -n "$proc_mem_file" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for proc mem file" >&5
- $as_echo_n "checking for proc mem file... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped (cross-compiling)" >&5
- $as_echo "skipped (cross-compiling)" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _GNU_SOURCE
- #define _FILE_OFFSET_BITS 64
- #include <stdint.h>
- #include <unistd.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <stdio.h>
- int main()
- {
- long v1 = (unsigned int) -1, v2 = 0;
- char buf[128];
- int fd;
- sprintf(buf, "/proc/%d/$proc_mem_file", getpid());
- fd = open(buf, O_RDONLY);
- if (0 > fd) {
- return 1;
- }
- if (sizeof(long) != pread(fd, &v2, sizeof(long), (uintptr_t) &v1)) {
- close(fd);
- return 1;
- }
- close(fd);
- return v1 != v2;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $proc_mem_file" >&5
- $as_echo "$proc_mem_file" >&6; }
- else
- proc_mem_file=""
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- if test -n "$proc_mem_file"; then
- cat >>confdefs.h <<_ACEOF
- #define PROC_MEM_FILE "$proc_mem_file"
- _ACEOF
- fi
- fpm_trace_type=""
- if test "$have_ptrace" = "yes"; then
- fpm_trace_type=ptrace
- elif test -n "$proc_mem_file"; then
- fpm_trace_type=pread
- elif test "$have_mach_vm_read" = "yes" ; then
- fpm_trace_type=mach
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&5
- $as_echo "$as_me: WARNING: FPM Trace - ptrace, pread, or mach: could not be found" >&2;}
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports __sync_bool_compare_and_swap" >&5
- $as_echo_n "checking if gcc supports __sync_bool_compare_and_swap... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- int variable = 1;
- return (__sync_bool_compare_and_swap(&variable, 1, 2)
- && __sync_add_and_fetch(&variable, 1)) ? 1 : 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- have_lq=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP_INFO" >&5
- $as_echo_n "checking for TCP_INFO... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <netinet/tcp.h>
- int
- main ()
- {
- struct tcp_info ti; int x = TCP_INFO;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- have_lq=tcp_info
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- if test "$have_lq" = "tcp_info"; then
- $as_echo "#define HAVE_LQ_TCP_INFO 1" >>confdefs.h
- fi
- if test "$have_lq" = "no" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_LISTENQLEN" >&5
- $as_echo_n "checking for SO_LISTENQLEN... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/socket.h>
- int
- main ()
- {
- int x = SO_LISTENQLIMIT; int y = SO_LISTENQLEN;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- have_lq=so_listenq
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- if test "$have_lq" = "tcp_info"; then
- $as_echo "#define HAVE_LQ_SO_LISTENQ 1" >>confdefs.h
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
- $as_echo_n "checking for sysconf... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <unistd.h>
- int
- main ()
- {
- sysconf(_SC_CLK_TCK);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times" >&5
- $as_echo_n "checking for times... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/times.h>
- int
- main ()
- {
- struct tms t; times(&t);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- $as_echo "#define HAVE_TIMES 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
- $as_echo_n "checking for kqueue... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/event.h>
- #include <sys/time.h>
- int
- main ()
- {
- int kfd;
- struct kevent k;
- kfd = kqueue();
- /* 0 -> STDIN_FILENO */
- EV_SET(&k, 0, EVFILT_READ , EV_ADD | EV_CLEAR, 0, 0, NULL);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port framework" >&5
- $as_echo_n "checking for port framework... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <port.h>
- int
- main ()
- {
- int port;
- port = port_create();
- if (port < 0) {
- return 1;
- }
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- $as_echo "#define HAVE_PORT 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
- $as_echo_n "checking for /dev/poll... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- #include <sys/devpoll.h>
- int
- main ()
- {
- int n, dp;
- struct dvpoll dvp;
- dp = 0;
- dvp.dp_fds = NULL;
- dvp.dp_nfds = 0;
- dvp.dp_timeout = 0;
- n = ioctl(dp, DP_POLL, &dvp)
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
- $as_echo_n "checking for epoll... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/epoll.h>
- int
- main ()
- {
- int epollfd;
- struct epoll_event e;
- epollfd = epoll_create(1);
- if (epollfd < 0) {
- return 1;
- }
- e.events = EPOLLIN | EPOLLET;
- e.data.fd = 0;
- if (epoll_ctl(epollfd, EPOLL_CTL_ADD, 0, &e) == -1) {
- return 1;
- }
- e.events = 0;
- if (epoll_wait(epollfd, &e, 1, 1) < 0) {
- return 1;
- }
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll" >&5
- $as_echo_n "checking for poll... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <poll.h>
- int
- main ()
- {
- struct pollfd fds[2];
- fds[0].fd = 0;
- fds[0].events = POLLIN;
- fds[1].fd = 0;
- fds[1].events = POLLIN;
- poll(fds, 2, 1);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- $as_echo "#define HAVE_POLL 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
- $as_echo_n "checking for select... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* According to POSIX.1-2001 */
- #include <sys/select.h>
- /* According to earlier standards */
- #include <sys/time.h>
- #include <sys/types.h>
- #include <unistd.h>
- int
- main ()
- {
- fd_set fds;
- struct timeval t;
- t.tv_sec = 0;
- t.tv_usec = 42;
- FD_ZERO(&fds);
- /* 0 -> STDIN_FILENO */
- FD_SET(0, &fds);
- select(FD_SETSIZE, &fds, NULL, NULL, &t);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- $as_echo "#define HAVE_SELECT 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for apparmor" >&5
- $as_echo_n "checking for apparmor... " >&6; }
- SAVED_LIBS="$LIBS"
- LIBS="$LIBS -lapparmor"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/apparmor.h>
- int
- main ()
- {
- change_hat("test", 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- $as_echo "#define HAVE_APPARMOR 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- LIBS="$SAVED_LIBS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- php_with_fpm_user=nobody
- # Check whether --with-fpm-user was given.
- if test "${with_fpm_user+set}" = set; then :
- withval=$with_fpm_user; PHP_FPM_USER=$withval
- else
- PHP_FPM_USER=nobody
- fi
- ext_output=$PHP_FPM_USER
- php_with_fpm_group=nobody
- # Check whether --with-fpm-group was given.
- if test "${with_fpm_group+set}" = set; then :
- withval=$with_fpm_group; PHP_FPM_GROUP=$withval
- else
- PHP_FPM_GROUP=nobody
- fi
- ext_output=$PHP_FPM_GROUP
- php_with_fpm_systemd=no
- # Check whether --with-fpm-systemd was given.
- if test "${with_fpm_systemd+set}" = set; then :
- withval=$with_fpm_systemd; PHP_FPM_SYSTEMD=$withval
- else
- PHP_FPM_SYSTEMD=no
- fi
- ext_output=$PHP_FPM_SYSTEMD
- php_with_fpm_acl=no
- # Check whether --with-fpm-acl was given.
- if test "${with_fpm_acl+set}" = set; then :
- withval=$with_fpm_acl; PHP_FPM_ACL=$withval
- else
- PHP_FPM_ACL=no
- fi
- ext_output=$PHP_FPM_ACL
- if test "$PHP_FPM_SYSTEMD" != "no" ; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- unset SYSTEMD_LIBS
- unset SYSTEMD_INCS
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libsystemd; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
- $as_echo_n "checking for libsystemd... " >&6; }
- SYSTEMD_LIBS=`$PKG_CONFIG --libs libsystemd`
- SYSTEMD_INCS=`$PKG_CONFIG --cflags-only-I libsystemd`
- SYSTEMD_VERS=`$PKG_CONFIG --modversion libsystemd`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $SYSTEMD_VERS" >&5
- $as_echo "version $SYSTEMD_VERS" >&6; }
- elif test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libsystemd-daemon; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5
- $as_echo_n "checking for libsystemd-daemon... " >&6; }
- SYSTEMD_LIBS=`$PKG_CONFIG --libs libsystemd-daemon`
- SYSTEMD_INCS=`$PKG_CONFIG --cflags-only-I libsystemd-daemon`
- SYSTEMD_VERS=`$PKG_CONFIG --modversion libsystemd-daemon`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $SYSTEMD_VERS" >&5
- $as_echo "version $SYSTEMD_VERS" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd-daemon" >&5
- $as_echo_n "checking for sd_notify in -lsystemd-daemon... " >&6; }
- if ${ac_cv_lib_systemd_daemon_sd_notify+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsystemd-daemon $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char sd_notify ();
- int
- main ()
- {
- return sd_notify ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_systemd_daemon_sd_notify=yes
- else
- ac_cv_lib_systemd_daemon_sd_notify=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_daemon_sd_notify" >&5
- $as_echo "$ac_cv_lib_systemd_daemon_sd_notify" >&6; }
- if test "x$ac_cv_lib_systemd_daemon_sd_notify" = xyes; then :
- SYSTEMD_LIBS="-lsystemd-daemon"
- fi
- fi
- for ac_header in systemd/sd-daemon.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default"
- if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SYSTEMD_SD_DAEMON_H 1
- _ACEOF
- HAVE_SD_DAEMON_H="yes"
- else
- HAVE_SD_DAEMON_H="no"
- fi
- done
- if test $HAVE_SD_DAEMON_H = "no" || test -z "${SYSTEMD_LIBS}"; then
- as_fn_error $? "Your system does not support systemd." "$LINENO" 5
- else
- $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
- PHP_FPM_SD_FILES="fpm/fpm_systemd.c"
- for ac_i in $SYSTEMD_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- ="$ -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- ;;
- esac
- done
- for ac_i in $SYSTEMD_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- php_fpm_systemd=notify
- fi
- else
- php_fpm_systemd=simple
- fi
- if test "$PHP_FPM_ACL" != "no" ; then
- for ac_header in sys/acl.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
- if test "x$ac_cv_header_sys_acl_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SYS_ACL_H 1
- _ACEOF
- fi
- done
- ac_fn_c_check_func "$LINENO" "acl_free" "ac_cv_func_acl_free"
- if test "x$ac_cv_func_acl_free" = xyes; then :
- $as_echo "#define HAVE_FPM_ACL 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_free in -lacl" >&5
- $as_echo_n "checking for acl_free in -lacl... " >&6; }
- if ${ac_cv_lib_acl_acl_free+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lacl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char acl_free ();
- int
- main ()
- {
- return acl_free ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_acl_acl_free=yes
- else
- ac_cv_lib_acl_acl_free=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_free" >&5
- $as_echo "$ac_cv_lib_acl_acl_free" >&6; }
- if test "x$ac_cv_lib_acl_acl_free" = xyes; then :
- case acl in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lacl $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_FPM_ACL 1" >>confdefs.h
- else
- as_fn_error $? "libacl required not found" "$LINENO" 5
- fi
- fi
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_systemd"
- cat >>confdefs.h <<_ACEOF
- #define PHP_FPM_SYSTEMD "$php_fpm_systemd"
- _ACEOF
- if test -z "$PHP_FPM_USER" -o "$PHP_FPM_USER" = "yes" -o "$PHP_FPM_USER" = "no"; then
- php_fpm_user="nobody"
- else
- php_fpm_user="$PHP_FPM_USER"
- fi
- if test -z "$PHP_FPM_GROUP" -o "$PHP_FPM_GROUP" = "yes" -o "$PHP_FPM_GROUP" = "no"; then
- php_fpm_group="nobody"
- else
- php_fpm_group="$PHP_FPM_GROUP"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_user"
- PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_group"
- php_fpm_sysconfdir=`eval echo $sysconfdir`
- PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_sysconfdir"
- php_fpm_localstatedir=`eval echo $localstatedir`
- PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_localstatedir"
- php_fpm_prefix=`eval echo $prefix`
- PHP_VAR_SUBST="$PHP_VAR_SUBST php_fpm_prefix"
- cat >>confdefs.h <<_ACEOF
- #define PHP_FPM_USER "$php_fpm_user"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define PHP_FPM_GROUP "$php_fpm_group"
- _ACEOF
- BUILD_DIR="$BUILD_DIR sapi/fpm/fpm"
- BUILD_DIR="$BUILD_DIR sapi/fpm/fpm/events"
- PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/fpm/php-fpm.conf sapi/fpm/www.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html"
- src=$abs_srcdir/sapi/fpm/Makefile.frag
- ac_srcdir=$ext_srcdir
- ac_builddir=$ext_builddir
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- SAPI_FPM_PATH=sapi/fpm/php-fpm
- if test "$fpm_trace_type" && test -f "$abs_srcdir/sapi/fpm/fpm/fpm_trace_$fpm_trace_type.c"; then
- PHP_FPM_TRACE_FILES="fpm/fpm_trace.c fpm/fpm_trace_$fpm_trace_type.c"
- fi
- PHP_FPM_CFLAGS="-I$abs_srcdir/sapi/fpm"
- PHP_FPM_FILES="fpm/fpm.c \
- fpm/fpm_children.c \
- fpm/fpm_cleanup.c \
- fpm/fpm_clock.c \
- fpm/fpm_conf.c \
- fpm/fpm_env.c \
- fpm/fpm_events.c \
- fpm/fpm_log.c \
- fpm/fpm_main.c \
- fpm/fpm_php.c \
- fpm/fpm_php_trace.c \
- fpm/fpm_process_ctl.c \
- fpm/fpm_request.c \
- fpm/fpm_shm.c \
- fpm/fpm_scoreboard.c \
- fpm/fpm_signals.c \
- fpm/fpm_sockets.c \
- fpm/fpm_status.c \
- fpm/fpm_stdio.c \
- fpm/fpm_unix.c \
- fpm/fpm_worker_pool.c \
- fpm/zlog.c \
- fpm/events/select.c \
- fpm/events/poll.c \
- fpm/events/epoll.c \
- fpm/events/kqueue.c \
- fpm/events/devpoll.c \
- fpm/events/port.c \
- "
- if test "program" = "program"; then
- PHP_BINARIES="$PHP_BINARIES fpm"
- elif test "$PHP_SAPI" != "none"; then
- as_fn_error $? "
- +--------------------------------------------------------------------+
- | *** ATTENTION *** |
- | |
- | You've configured multiple SAPIs to be build. You can build only |
- | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
- +--------------------------------------------------------------------+
- " "$LINENO" 5
- else
- PHP_SAPI=fpm
- fi
- BUILD_DIR="$BUILD_DIR sapi/fpm"
- PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS fpm"
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- install_binaries="install-binaries"
- install_binary_targets="$install_binary_targets install-fpm"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FPM_OBJS"
- case sapi/fpm in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "sapi/fpm"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/sapi/fpm/"; ac_bdir="sapi/fpm/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $PHP_FPM_FILES $PHP_FPM_TRACE_FILES $PHP_FPM_SD_FILES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_FPM_OBJS="$PHP_FPM_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $PHP_FPM_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_FPM_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- case $host_alias in
- *aix*)
- BUILD_FPM="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FPM_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
- ;;
- *darwin*)
- BUILD_FPM="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_FASTCGI_OBJS:.lo=.o) \$(PHP_FPM_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
- ;;
- *)
- BUILD_FPM="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_FPM_OBJS) \$(EXTRA_LIBS) \$(FPM_EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_FPM_PATH)"
- ;;
- esac
- PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_FPM_PATH"
- PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_FPM"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LiteSpeed support" >&5
- $as_echo_n "checking for LiteSpeed support... " >&6; }
- php_with_litespeed=no
- # Check whether --with-litespeed was given.
- if test "${with_litespeed+set}" = set; then :
- withval=$with_litespeed; PHP_LITESPEED=$withval
- else
- PHP_LITESPEED=no
- test "$PHP_ENABLE_ALL" && PHP_LITESPEED=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_LITESPEED in
- shared,*)
- PHP_LITESPEED=`echo "$PHP_LITESPEED"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_LITESPEED=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- if test "$PHP_LITESPEED" != "no"; then
- src=$abs_srcdir/sapi/litespeed/Makefile.frag
- ac_srcdir=$abs_srcdir/sapi/litespeed
- ac_builddir=sapi/litespeed
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- SAPI_LITESPEED_PATH=sapi/litespeed/php
- if test "program" = "program"; then
- PHP_BINARIES="$PHP_BINARIES litespeed"
- elif test "$PHP_SAPI" != "none"; then
- as_fn_error $? "
- +--------------------------------------------------------------------+
- | *** ATTENTION *** |
- | |
- | You've configured multiple SAPIs to be build. You can build only |
- | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
- +--------------------------------------------------------------------+
- " "$LINENO" 5
- else
- PHP_SAPI=litespeed
- fi
- BUILD_DIR="$BUILD_DIR sapi/litespeed"
- PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS litespeed"
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- install_binaries="install-binaries"
- install_binary_targets="$install_binary_targets install-litespeed"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LITESPEED_OBJS"
- case sapi/litespeed in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "sapi/litespeed"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/sapi/litespeed/"; ac_bdir="sapi/litespeed/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in lsapi_main.c lsapilib.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_LITESPEED_OBJS="$PHP_LITESPEED_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre "" $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre "" $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- case $host_alias in
- *darwin*)
- BUILD_LITESPEED="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_LITESPEED_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
- ;;
- *cygwin*)
- SAPI_LITESPEED_PATH=sapi/litespeed/php.exe
- BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_LITESPEED_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
- ;;
- *)
- BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_LITESPEED_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
- ;;
- esac
- PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_LITESPEED_PATH"
- PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_LITESPEED"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_LITESPEED" >&5
- $as_echo "$PHP_LITESPEED" >&6; }
- php_enable_phpdbg=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg support" >&5
- $as_echo_n "checking for phpdbg support... " >&6; }
- # Check whether --enable-phpdbg was given.
- if test "${enable_phpdbg+set}" = set; then :
- enableval=$enable_phpdbg; PHP_PHPDBG=$enableval
- else
- PHP_PHPDBG=yes
- test "$PHP_ENABLE_ALL" && PHP_PHPDBG=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PHPDBG in
- shared,*)
- PHP_PHPDBG=`echo "$PHP_PHPDBG"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PHPDBG=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_enable_phpdbg_webhelper=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg web SAPI support" >&5
- $as_echo_n "checking for phpdbg web SAPI support... " >&6; }
- # Check whether --enable-phpdbg-webhelper was given.
- if test "${enable_phpdbg_webhelper+set}" = set; then :
- enableval=$enable_phpdbg_webhelper; PHP_PHPDBG_WEBHELPER=$enableval
- else
- PHP_PHPDBG_WEBHELPER=no
- test "$PHP_ENABLE_ALL" && PHP_PHPDBG_WEBHELPER=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PHPDBG_WEBHELPER in
- shared,*)
- PHP_PHPDBG_WEBHELPER=`echo "$PHP_PHPDBG_WEBHELPER"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PHPDBG_WEBHELPER=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_enable_phpdbg_debug=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg debug build" >&5
- $as_echo_n "checking for phpdbg debug build... " >&6; }
- # Check whether --enable-phpdbg-debug was given.
- if test "${enable_phpdbg_debug+set}" = set; then :
- enableval=$enable_phpdbg_debug; PHP_PHPDBG_DEBUG=$enableval
- else
- PHP_PHPDBG_DEBUG=no
- fi
- ext_output=$PHP_PHPDBG_DEBUG
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_enable_phpdbg_readline=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg readline support" >&5
- $as_echo_n "checking for phpdbg readline support... " >&6; }
- # Check whether --enable-phpdbg-readline was given.
- if test "${enable_phpdbg_readline+set}" = set; then :
- enableval=$enable_phpdbg_readline; PHP_PHPDBG_READLINE=$enableval
- else
- PHP_PHPDBG_READLINE=no
- fi
- ext_output=$PHP_PHPDBG_READLINE
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$BUILD_PHPDBG" = "" && test "$PHP_PHPDBG" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
- $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
- if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <termios.h>
- #ifdef TIOCGWINSZ
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- ac_cv_sys_tiocgwinsz_in_termios_h=yes
- else
- ac_cv_sys_tiocgwinsz_in_termios_h=no
- fi
- rm -f conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
- $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
- if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
- $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
- if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/ioctl.h>
- #ifdef TIOCGWINSZ
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
- else
- ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
- fi
- rm -f conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
- $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
- if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
- $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
- fi
- fi
- $as_echo "#define HAVE_PHPDBG 1" >>confdefs.h
- if test "$PHP_PHPDBG_DEBUG" != "no"; then
- $as_echo "#define PHPDBG_DEBUG 1" >>confdefs.h
- else
- $as_echo "#define PHPDBG_DEBUG 0" >>confdefs.h
- fi
- PHP_PHPDBG_CFLAGS="-D_GNU_SOURCE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
- PHP_PHPDBG_FILES="phpdbg.c phpdbg_parser.c phpdbg_lexer.c phpdbg_prompt.c phpdbg_help.c phpdbg_break.c phpdbg_print.c phpdbg_bp.c phpdbg_opcode.c phpdbg_list.c phpdbg_utils.c phpdbg_info.c phpdbg_cmd.c phpdbg_set.c phpdbg_frame.c phpdbg_watch.c phpdbg_btree.c phpdbg_sigsafe.c phpdbg_wait.c phpdbg_io.c phpdbg_eol.c phpdbg_out.c"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phpdbg and readline integration" >&5
- $as_echo_n "checking for phpdbg and readline integration... " >&6; }
- if test "$PHP_PHPDBG_READLINE" = "yes"; then
- if test "$PHP_READLINE" != "no" -o "$PHP_LIBEDIT" != "no"; then
- $as_echo "#define HAVE_PHPDBG_READLINE 1" >>confdefs.h
- PHPDBG_EXTRA_LIBS="$PHP_READLINE_LIBS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
- $as_echo "ok" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: readline is not available" >&5
- $as_echo "readline is not available" >&6; }
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
- $as_echo "disabled" >&6; }
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PHPDBG_CFLAGS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PHPDBG_FILES"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHPDBG_EXTRA_LIBS"
- src=$abs_srcdir/sapi/phpdbg/Makefile.frag
- ac_srcdir=$abs_srcdir/sapi/phpdbg
- ac_builddir=$abs_builddir/sapi/phpdbg
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- if test "program" = "program"; then
- PHP_BINARIES="$PHP_BINARIES phpdbg"
- elif test "$PHP_SAPI" != "none"; then
- as_fn_error $? "
- +--------------------------------------------------------------------+
- | *** ATTENTION *** |
- | |
- | You've configured multiple SAPIs to be build. You can build only |
- | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
- +--------------------------------------------------------------------+
- " "$LINENO" 5
- else
- PHP_SAPI=phpdbg
- fi
- BUILD_DIR="$BUILD_DIR sapi/phpdbg"
- PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS phpdbg"
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- install_binaries="install-binaries"
- install_binary_targets="$install_binary_targets install-phpdbg"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PHPDBG_OBJS"
- case sapi/phpdbg in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "sapi/phpdbg"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/sapi/phpdbg/"; ac_bdir="sapi/phpdbg/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $PHP_PHPDBG_FILES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_PHPDBG_OBJS="$PHP_PHPDBG_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $PHP_PHPDBG_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $PHP_PHPDBG_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $PHP_PHPDBG_CFLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_PHPDBG_CFLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- BUILD_BINARY="sapi/phpdbg/phpdbg"
- BUILD_SHARED="sapi/phpdbg/libphpdbg.la"
- BUILD_PHPDBG="\$(LIBTOOL) --mode=link \
- \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \
- \$(PHP_GLOBAL_OBJS) \
- \$(PHP_BINARY_OBJS) \
- \$(PHP_PHPDBG_OBJS) \
- \$(EXTRA_LIBS) \
- \$(PHPDBG_EXTRA_LIBS) \
- \$(ZEND_EXTRA_LIBS) \
- \$(PHP_FRAMEWORKS) \
- -o \$(BUILD_BINARY)"
- BUILD_PHPDBG_SHARED="\$(LIBTOOL) --mode=link \
- \$(CC) -shared -Wl,-soname,libphpdbg.so -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \
- \$(PHP_GLOBAL_OBJS) \
- \$(PHP_BINARY_OBJS) \
- \$(PHP_PHPDBG_OBJS) \
- \$(EXTRA_LIBS) \
- \$(PHPDBG_EXTRA_LIBS) \
- \$(ZEND_EXTRA_LIBS) \
- \-DPHPDBG_SHARED \
- -o \$(BUILD_SHARED)"
- PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_BINARY"
- PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_SHARED"
- PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_PHPDBG"
- PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_PHPDBG_SHARED"
- PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/phpdbg/phpdbg.1"
- fi
- if test "$PHP_PHPDBG_WEBHELPER" != "no"; then
- ext_builddir=sapi/phpdbg
- ext_srcdir=$abs_srcdir/sapi/phpdbg
- ext_dir=sapi/phpdbg
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PHPDBG_WEBHELPER_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in phpdbg_rinit_hook.c phpdbg_webdata_transfer.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC phpdbg_webhelper;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC phpdbg_webhelper;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PHPDBG_WEBHELPER_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in phpdbg_rinit_hook.c phpdbg_webdata_transfer.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_phpdbg_webhelper="$shared_objects_phpdbg_webhelper $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phpdbg_webhelper.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/phpdbg_webhelper.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_phpdbg_webhelper"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/phpdbg_webhelper.$suffix: $ext_builddir/phpdbg_webhelper.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/phpdbg_webhelper.$suffix \$(phplibdir)
- $ext_builddir/phpdbg_webhelper.$suffix: \$(shared_objects_phpdbg_webhelper) \$(PHPDBG_WEBHELPER_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_phpdbg_webhelper) \$(PHPDBG_WEBHELPER_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PHPDBG_WEBHELPER 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PHPDBG_WEBHELPER_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in phpdbg_rinit_hook.c phpdbg_webdata_transfer.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC phpdbg_webhelper;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in phpdbg_rinit_hook.c phpdbg_webdata_transfer.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC phpdbg_webhelper;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=phpdbg_webhelper
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- fi
- php_enable_cgi=yes
- # Check whether --enable-cgi was given.
- if test "${enable_cgi+set}" = set; then :
- enableval=$enable_cgi; PHP_CGI=$enableval
- else
- PHP_CGI=yes
- fi
- ext_output=$PHP_CGI
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CGI build" >&5
- $as_echo_n "checking for CGI build... " >&6; }
- if test "$PHP_CGI" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
- $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/socket.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "socklen_t" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f conftest*
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sun_len in sys/un.h" >&5
- $as_echo_n "checking for sun_len in sys/un.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/un.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "sun_len" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_SOCKADDR_UN_SUN_LEN 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f conftest*
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cross-process locking is required by accept()" >&5
- $as_echo_n "checking whether cross-process locking is required by accept()... " >&6; }
- case "`uname -sr`" in
- IRIX\ 5.* | SunOS\ 5.* | UNIX_System_V\ 4.0)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define USE_LOCKING 1" >>confdefs.h
- ;;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- ;;
- esac
- src=$abs_srcdir/sapi/cgi/Makefile.frag
- ac_srcdir=$ext_srcdir
- ac_builddir=$ext_builddir
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- case $host_alias in
- *cygwin* )
- SAPI_CGI_PATH=sapi/cgi/php-cgi.exe
- ;;
- * )
- SAPI_CGI_PATH=sapi/cgi/php-cgi
- ;;
- esac
- if test "program" = "program"; then
- PHP_BINARIES="$PHP_BINARIES cgi"
- elif test "$PHP_SAPI" != "none"; then
- as_fn_error $? "
- +--------------------------------------------------------------------+
- | *** ATTENTION *** |
- | |
- | You've configured multiple SAPIs to be build. You can build only |
- | one SAPI module plus CGI, CLI and FPM binaries at the same time. |
- +--------------------------------------------------------------------+
- " "$LINENO" 5
- else
- PHP_SAPI=cgi
- fi
- BUILD_DIR="$BUILD_DIR sapi/cgi"
- PHP_INSTALLED_SAPIS="$PHP_INSTALLED_SAPIS cgi"
- php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
- php_c_post=
- php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
- php_cxx_post=
- php_lo=lo
- case $with_pic in
- yes) pic_setting='-prefer-pic';;
- no) pic_setting='-prefer-non-pic';;
- esac
- shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
- shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
- shared_c_post=
- shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
- shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
- shared_cxx_post=
- shared_lo=lo
- install_binaries="install-binaries"
- install_binary_targets="$install_binary_targets install-cgi"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_CGI_OBJS"
- case sapi/cgi in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "sapi/cgi"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/sapi/cgi/"; ac_bdir="sapi/cgi/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in cgi_main.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_CGI_OBJS="$PHP_CGI_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- case $host_alias in
- *aix*)
- if test "$php_sapi_module" = "shared"; then
- BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/.libs\/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
- else
- BUILD_CGI="echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg \`echo \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_CGI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'\` | \$(AWK) '{ if (((\$\$2 == \"T\") || (\$\$2 == \"D\") || (\$\$2 == \"B\")) && (substr(\$\$3,1,1) != \".\")) { print \$\$3 } }' | sort -u >> php.sym && \$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
- fi
- ;;
- *darwin*)
- BUILD_CGI="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_FASTCGI_OBJS:.lo=.o) \$(PHP_CGI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
- ;;
- *)
- BUILD_CGI="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_FASTCGI_OBJS) \$(PHP_CGI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_CGI_PATH)"
- ;;
- esac
- PHP_VAR_SUBST="$PHP_VAR_SUBST SAPI_CGI_PATH"
- PHP_VAR_SUBST="$PHP_VAR_SUBST BUILD_CGI"
- PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES sapi/cgi/php-cgi.1"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chosen SAPI module" >&5
- $as_echo_n "checking for chosen SAPI module... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_SAPI" >&5
- $as_echo "$PHP_SAPI" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable SAPI binaries" >&5
- $as_echo_n "checking for executable SAPI binaries... " >&6; }
- if test "$PHP_BINARIES"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_BINARIES" >&5
- $as_echo "$PHP_BINARIES" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
- $as_echo "none" >&6; }
- fi
- if test -z "$PHP_INSTALLED_SAPIS"; then
- as_fn_error $? "Nothing to build." "$LINENO" 5
- fi
- if test "$enable_maintainer_zts" = "yes"; then
- if test -n "$ac_cv_pthreads_lib"; then
- LIBS="$LIBS -l$ac_cv_pthreads_lib"
- fi
- if test -n "$ac_cv_pthreads_cflags"; then
- CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
- fi
- if test -z "$host_alias" && test -n "$host"; then
- host_alias=$host
- fi
- if test -z "$host_alias"; then
- as_fn_error $? "host_alias is not set. Make sure to run config.guess" "$LINENO" 5
- fi
- case $host_alias in
- *solaris*)
- PTHREAD_FLAGS="-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT";;
- *freebsd*)
- PTHREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE";;
- *linux*)
- PTHREAD_FLAGS=-D_REENTRANT;;
- *aix*)
- PTHREAD_FLAGS=-D_THREAD_SAFE;;
- *irix*)
- PTHREAD_FLAGS=-D_POSIX_THREAD_SAFE_FUNCTIONS;;
- *hpux*)
- PTHREAD_FLAGS=-D_REENTRANT;;
- *sco*)
- PTHREAD_FLAGS=-D_REENTRANT;;
- esac
- if test -n "$PTHREAD_FLAGS"; then
- CPPFLAGS="$CPPFLAGS $PTHREAD_FLAGS"
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Running system checks${T_ME}" >&5
- $as_echo "${T_MD}Running system checks${T_ME}" >&6; }
- PHP_ALT_PATH=/usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib
- # Extract the first word of "sendmail", so it can be a program name with args.
- set dummy sendmail; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PROG_SENDMAIL+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PROG_SENDMAIL in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PROG_SENDMAIL="$PROG_SENDMAIL" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="$PATH:$PHP_ALT_PATH"
- for as_dir in $as_dummy
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PROG_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PROG_SENDMAIL" && ac_cv_path_PROG_SENDMAIL="/usr/sbin/sendmail"
- ;;
- esac
- fi
- PROG_SENDMAIL=$ac_cv_path_PROG_SENDMAIL
- if test -n "$PROG_SENDMAIL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROG_SENDMAIL" >&5
- $as_echo "$PROG_SENDMAIL" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST PROG_SENDMAIL"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses EBCDIC" >&5
- $as_echo_n "checking whether system uses EBCDIC... " >&6; }
- if ${ac_cv_ebcdic+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_ebcdic=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int main(void) {
- return (unsigned char)'A' != (unsigned char)0xC1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_ebcdic=yes
- else
- ac_cv_ebcdic=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ebcdic" >&5
- $as_echo "$ac_cv_ebcdic" >&6; }
- if test "$ac_cv_ebcdic" = "yes"; then
- $as_echo "#define CHARSET_EBCDIC 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
- $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
- if ${ac_cv_c_bigendian_php+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_c_bigendian_php=unknown
- if test "$cross_compiling" = yes; then :
- ac_cv_c_bigendian_php=unknown
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int main(void)
- {
- short one = 1;
- char *cp = (char *)&one;
- if (*cp == 0) {
- return(0);
- } else {
- return(1);
- }
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_c_bigendian_php=yes
- else
- ac_cv_c_bigendian_php=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5
- $as_echo "$ac_cv_c_bigendian_php" >&6; }
- if test $ac_cv_c_bigendian_php = yes; then
- $as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether writing to stdout works" >&5
- $as_echo_n "checking whether writing to stdout works... " >&6; }
- if ${ac_cv_write_stdout+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_write_stdout=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- #define TEXT "This is the test message -- "
- main()
- {
- int n;
- n = write(1, TEXT, sizeof(TEXT)-1);
- return (!(n == sizeof(TEXT)-1));
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_write_stdout=yes
- else
- ac_cv_write_stdout=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_write_stdout" >&5
- $as_echo "$ac_cv_write_stdout" >&6; }
- if test "$ac_cv_write_stdout" = "yes"; then
- $as_echo "#define PHP_WRITE_STDOUT 1" >>confdefs.h
- fi
- if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then
- CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
- LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
- fi
- test -d /usr/ucblib &&
- if test "/usr/ucblib" != "/usr/$PHP_LIBDIR" && test "/usr/ucblib" != "/usr/lib"; then
- if test -z "/usr/ucblib" || echo "/usr/ucblib" | grep '^/' >/dev/null ; then
- ai_p=/usr/ucblib
- else
- ep_dir=`echo /usr/ucblib|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "/usr/ucblib"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- unset ac_cv_func_socket
- unset ac_cv_func___socket
- unset found
- ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
- if test "x$ac_cv_func_socket" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__socket" "ac_cv_func___socket"
- if test "x$ac_cv_func___socket" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
- ac_cv_func_socket=yes
- ;;
- *)
- unset ac_cv_lib_socket_socket
- unset ac_cv_lib_socket___socket
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
- $as_echo_n "checking for socket in -lsocket... " >&6; }
- if ${ac_cv_lib_socket_socket+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char socket ();
- int
- main ()
- {
- return socket ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket_socket=yes
- else
- ac_cv_lib_socket_socket=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
- $as_echo "$ac_cv_lib_socket_socket" >&6; }
- if test "x$ac_cv_lib_socket_socket" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socket in -lsocket" >&5
- $as_echo_n "checking for __socket in -lsocket... " >&6; }
- if ${ac_cv_lib_socket___socket+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __socket ();
- int
- main ()
- {
- return __socket ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket___socket=yes
- else
- ac_cv_lib_socket___socket=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socket" >&5
- $as_echo "$ac_cv_lib_socket___socket" >&6; }
- if test "x$ac_cv_lib_socket___socket" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lsocket"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case socket in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsocket $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_SOCKET 1" >>confdefs.h
- $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
- ac_cv_func_socket=yes
- else
- :
- fi
- ;;
- esac
- unset ac_cv_func_socketpair
- unset ac_cv_func___socketpair
- unset found
- ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
- if test "x$ac_cv_func_socketpair" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__socketpair" "ac_cv_func___socketpair"
- if test "x$ac_cv_func___socketpair" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
- ac_cv_func_socketpair=yes
- ;;
- *)
- unset ac_cv_lib_socket_socketpair
- unset ac_cv_lib_socket___socketpair
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5
- $as_echo_n "checking for socketpair in -lsocket... " >&6; }
- if ${ac_cv_lib_socket_socketpair+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char socketpair ();
- int
- main ()
- {
- return socketpair ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket_socketpair=yes
- else
- ac_cv_lib_socket_socketpair=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5
- $as_echo "$ac_cv_lib_socket_socketpair" >&6; }
- if test "x$ac_cv_lib_socket_socketpair" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __socketpair in -lsocket" >&5
- $as_echo_n "checking for __socketpair in -lsocket... " >&6; }
- if ${ac_cv_lib_socket___socketpair+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __socketpair ();
- int
- main ()
- {
- return __socketpair ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket___socketpair=yes
- else
- ac_cv_lib_socket___socketpair=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___socketpair" >&5
- $as_echo "$ac_cv_lib_socket___socketpair" >&6; }
- if test "x$ac_cv_lib_socket___socketpair" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lsocket"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case socket in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsocket $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
- $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
- ac_cv_func_socketpair=yes
- else
- :
- fi
- ;;
- esac
- unset ac_cv_func_htonl
- unset ac_cv_func___htonl
- unset found
- ac_fn_c_check_func "$LINENO" "htonl" "ac_cv_func_htonl"
- if test "x$ac_cv_func_htonl" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__htonl" "ac_cv_func___htonl"
- if test "x$ac_cv_func___htonl" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_HTONL 1" >>confdefs.h
- ac_cv_func_htonl=yes
- ;;
- *)
- unset ac_cv_lib_socket_htonl
- unset ac_cv_lib_socket___htonl
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htonl in -lsocket" >&5
- $as_echo_n "checking for htonl in -lsocket... " >&6; }
- if ${ac_cv_lib_socket_htonl+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char htonl ();
- int
- main ()
- {
- return htonl ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket_htonl=yes
- else
- ac_cv_lib_socket_htonl=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_htonl" >&5
- $as_echo "$ac_cv_lib_socket_htonl" >&6; }
- if test "x$ac_cv_lib_socket_htonl" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __htonl in -lsocket" >&5
- $as_echo_n "checking for __htonl in -lsocket... " >&6; }
- if ${ac_cv_lib_socket___htonl+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __htonl ();
- int
- main ()
- {
- return __htonl ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket___htonl=yes
- else
- ac_cv_lib_socket___htonl=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___htonl" >&5
- $as_echo "$ac_cv_lib_socket___htonl" >&6; }
- if test "x$ac_cv_lib_socket___htonl" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lsocket"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case socket in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsocket $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_HTONL 1" >>confdefs.h
- $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
- ac_cv_func_htonl=yes
- else
- :
- fi
- ;;
- esac
- unset ac_cv_func_gethostname
- unset ac_cv_func___gethostname
- unset found
- ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
- if test "x$ac_cv_func_gethostname" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__gethostname" "ac_cv_func___gethostname"
- if test "x$ac_cv_func___gethostname" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
- ac_cv_func_gethostname=yes
- ;;
- *)
- unset ac_cv_lib_nsl_gethostname
- unset ac_cv_lib_nsl___gethostname
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
- $as_echo_n "checking for gethostname in -lnsl... " >&6; }
- if ${ac_cv_lib_nsl_gethostname+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lnsl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gethostname ();
- int
- main ()
- {
- return gethostname ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_nsl_gethostname=yes
- else
- ac_cv_lib_nsl_gethostname=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
- $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
- if test "x$ac_cv_lib_nsl_gethostname" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostname in -lnsl" >&5
- $as_echo_n "checking for __gethostname in -lnsl... " >&6; }
- if ${ac_cv_lib_nsl___gethostname+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lnsl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __gethostname ();
- int
- main ()
- {
- return __gethostname ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_nsl___gethostname=yes
- else
- ac_cv_lib_nsl___gethostname=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostname" >&5
- $as_echo "$ac_cv_lib_nsl___gethostname" >&6; }
- if test "x$ac_cv_lib_nsl___gethostname" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lnsl"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case nsl in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lnsl $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
- $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
- ac_cv_func_gethostname=yes
- else
- :
- fi
- ;;
- esac
- unset ac_cv_func_gethostbyaddr
- unset ac_cv_func___gethostbyaddr
- unset found
- ac_fn_c_check_func "$LINENO" "gethostbyaddr" "ac_cv_func_gethostbyaddr"
- if test "x$ac_cv_func_gethostbyaddr" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__gethostbyaddr" "ac_cv_func___gethostbyaddr"
- if test "x$ac_cv_func___gethostbyaddr" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
- ac_cv_func_gethostbyaddr=yes
- ;;
- *)
- unset ac_cv_lib_nsl_gethostbyaddr
- unset ac_cv_lib_nsl___gethostbyaddr
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lnsl" >&5
- $as_echo_n "checking for gethostbyaddr in -lnsl... " >&6; }
- if ${ac_cv_lib_nsl_gethostbyaddr+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lnsl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gethostbyaddr ();
- int
- main ()
- {
- return gethostbyaddr ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_nsl_gethostbyaddr=yes
- else
- ac_cv_lib_nsl_gethostbyaddr=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyaddr" >&5
- $as_echo "$ac_cv_lib_nsl_gethostbyaddr" >&6; }
- if test "x$ac_cv_lib_nsl_gethostbyaddr" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gethostbyaddr in -lnsl" >&5
- $as_echo_n "checking for __gethostbyaddr in -lnsl... " >&6; }
- if ${ac_cv_lib_nsl___gethostbyaddr+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lnsl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __gethostbyaddr ();
- int
- main ()
- {
- return __gethostbyaddr ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_nsl___gethostbyaddr=yes
- else
- ac_cv_lib_nsl___gethostbyaddr=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___gethostbyaddr" >&5
- $as_echo "$ac_cv_lib_nsl___gethostbyaddr" >&6; }
- if test "x$ac_cv_lib_nsl___gethostbyaddr" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lnsl"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case nsl in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lnsl $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
- $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
- ac_cv_func_gethostbyaddr=yes
- else
- :
- fi
- ;;
- esac
- unset ac_cv_func_yp_get_default_domain
- unset ac_cv_func___yp_get_default_domain
- unset found
- ac_fn_c_check_func "$LINENO" "yp_get_default_domain" "ac_cv_func_yp_get_default_domain"
- if test "x$ac_cv_func_yp_get_default_domain" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__yp_get_default_domain" "ac_cv_func___yp_get_default_domain"
- if test "x$ac_cv_func___yp_get_default_domain" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h
- ac_cv_func_yp_get_default_domain=yes
- ;;
- *)
- unset ac_cv_lib_nsl_yp_get_default_domain
- unset ac_cv_lib_nsl___yp_get_default_domain
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yp_get_default_domain in -lnsl" >&5
- $as_echo_n "checking for yp_get_default_domain in -lnsl... " >&6; }
- if ${ac_cv_lib_nsl_yp_get_default_domain+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lnsl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char yp_get_default_domain ();
- int
- main ()
- {
- return yp_get_default_domain ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_nsl_yp_get_default_domain=yes
- else
- ac_cv_lib_nsl_yp_get_default_domain=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
- $as_echo "$ac_cv_lib_nsl_yp_get_default_domain" >&6; }
- if test "x$ac_cv_lib_nsl_yp_get_default_domain" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __yp_get_default_domain in -lnsl" >&5
- $as_echo_n "checking for __yp_get_default_domain in -lnsl... " >&6; }
- if ${ac_cv_lib_nsl___yp_get_default_domain+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lnsl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __yp_get_default_domain ();
- int
- main ()
- {
- return __yp_get_default_domain ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_nsl___yp_get_default_domain=yes
- else
- ac_cv_lib_nsl___yp_get_default_domain=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl___yp_get_default_domain" >&5
- $as_echo "$ac_cv_lib_nsl___yp_get_default_domain" >&6; }
- if test "x$ac_cv_lib_nsl___yp_get_default_domain" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lnsl"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case nsl in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lnsl $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_YP_GET_DEFAULT_DOMAIN 1" >>confdefs.h
- $as_echo "#define HAVE_LIBNSL 1" >>confdefs.h
- ac_cv_func_yp_get_default_domain=yes
- else
- :
- fi
- ;;
- esac
- unset ac_cv_func_dlopen
- unset ac_cv_func___dlopen
- unset found
- ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
- if test "x$ac_cv_func_dlopen" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__dlopen" "ac_cv_func___dlopen"
- if test "x$ac_cv_func___dlopen" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
- ac_cv_func_dlopen=yes
- ;;
- *)
- unset ac_cv_lib_dl_dlopen
- unset ac_cv_lib_dl___dlopen
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
- $as_echo_n "checking for dlopen in -ldl... " >&6; }
- if ${ac_cv_lib_dl_dlopen+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dlopen ();
- int
- main ()
- {
- return dlopen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dl_dlopen=yes
- else
- ac_cv_lib_dl_dlopen=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
- $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
- if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dlopen in -ldl" >&5
- $as_echo_n "checking for __dlopen in -ldl... " >&6; }
- if ${ac_cv_lib_dl___dlopen+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __dlopen ();
- int
- main ()
- {
- return __dlopen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dl___dlopen=yes
- else
- ac_cv_lib_dl___dlopen=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl___dlopen" >&5
- $as_echo "$ac_cv_lib_dl___dlopen" >&6; }
- if test "x$ac_cv_lib_dl___dlopen" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -ldl"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case dl in
- c|c_r|pthread*) ;;
- *)
- LIBS="-ldl $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
- $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
- ac_cv_func_dlopen=yes
- else
- :
- fi
- ;;
- esac
- if test "$ac_cv_func_dlopen" = "yes"; then
- $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
- $as_echo_n "checking for sin in -lm... " >&6; }
- if ${ac_cv_lib_m_sin+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char sin ();
- int
- main ()
- {
- return sin ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_m_sin=yes
- else
- ac_cv_lib_m_sin=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
- $as_echo "$ac_cv_lib_m_sin" >&6; }
- if test "x$ac_cv_lib_m_sin" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBM 1
- _ACEOF
- LIBS="-lm $LIBS"
- fi
- unset ac_cv_func_inet_aton
- unset ac_cv_func___inet_aton
- unset found
- ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
- if test "x$ac_cv_func_inet_aton" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__inet_aton" "ac_cv_func___inet_aton"
- if test "x$ac_cv_func___inet_aton" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
- ac_cv_func_inet_aton=yes
- ;;
- *)
- unset ac_cv_lib_resolv_inet_aton
- unset ac_cv_lib_resolv___inet_aton
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
- $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv_inet_aton+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char inet_aton ();
- int
- main ()
- {
- return inet_aton ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv_inet_aton=yes
- else
- ac_cv_lib_resolv_inet_aton=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
- $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
- if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lresolv" >&5
- $as_echo_n "checking for __inet_aton in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv___inet_aton+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __inet_aton ();
- int
- main ()
- {
- return __inet_aton ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv___inet_aton=yes
- else
- ac_cv_lib_resolv___inet_aton=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___inet_aton" >&5
- $as_echo "$ac_cv_lib_resolv___inet_aton" >&6; }
- if test "x$ac_cv_lib_resolv___inet_aton" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lresolv"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case resolv in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lresolv $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
- $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
- ac_cv_func_inet_aton=yes
- else
- unset ac_cv_lib_bind_inet_aton
- unset ac_cv_lib_bind___inet_aton
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lbind" >&5
- $as_echo_n "checking for inet_aton in -lbind... " >&6; }
- if ${ac_cv_lib_bind_inet_aton+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char inet_aton ();
- int
- main ()
- {
- return inet_aton ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind_inet_aton=yes
- else
- ac_cv_lib_bind_inet_aton=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_aton" >&5
- $as_echo "$ac_cv_lib_bind_inet_aton" >&6; }
- if test "x$ac_cv_lib_bind_inet_aton" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inet_aton in -lbind" >&5
- $as_echo_n "checking for __inet_aton in -lbind... " >&6; }
- if ${ac_cv_lib_bind___inet_aton+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __inet_aton ();
- int
- main ()
- {
- return __inet_aton ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind___inet_aton=yes
- else
- ac_cv_lib_bind___inet_aton=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___inet_aton" >&5
- $as_echo "$ac_cv_lib_bind___inet_aton" >&6; }
- if test "x$ac_cv_lib_bind___inet_aton" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lbind"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case bind in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lbind $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
- $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
- ac_cv_func_inet_aton=yes
- else
- :
- fi
- fi
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
- $as_echo_n "checking for ANSI C header files... " >&6; }
- if ${ac_cv_header_stdc+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_header_stdc=yes
- else
- ac_cv_header_stdc=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "memchr" >/dev/null 2>&1; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "free" >/dev/null 2>&1; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then :
- :
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ctype.h>
- #include <stdlib.h>
- #if ((' ' & 0x0FF) == 0x020)
- # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #else
- # define ISLOWER(c) \
- (('a' <= (c) && (c) <= 'i') \
- || ('j' <= (c) && (c) <= 'r') \
- || ('s' <= (c) && (c) <= 'z'))
- # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
- #endif
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int
- main ()
- {
- int i;
- for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i))
- || toupper (i) != TOUPPER (i))
- return 2;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
- $as_echo "$ac_cv_header_stdc" >&6; }
- if test $ac_cv_header_stdc = yes; then
- $as_echo "#define STDC_HEADERS 1" >>confdefs.h
- fi
- ac_header_dirent=no
- for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
- as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
- $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
- if eval \${$as_ac_Header+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <$ac_hdr>
- int
- main ()
- {
- if ((DIR *) 0)
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- eval "$as_ac_Header=yes"
- else
- eval "$as_ac_Header=no"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- eval ac_res=\$$as_ac_Header
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
- _ACEOF
- ac_header_dirent=$ac_hdr; break
- fi
- done
- # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
- if test $ac_header_dirent = dirent.h; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
- $as_echo_n "checking for library containing opendir... " >&6; }
- if ${ac_cv_search_opendir+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_func_search_save_LIBS=$LIBS
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char opendir ();
- int
- main ()
- {
- return opendir ();
- ;
- return 0;
- }
- _ACEOF
- for ac_lib in '' dir; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- fi
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_search_opendir=$ac_res
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_opendir+:} false; then :
- break
- fi
- done
- if ${ac_cv_search_opendir+:} false; then :
- else
- ac_cv_search_opendir=no
- fi
- rm conftest.$ac_ext
- LIBS=$ac_func_search_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
- $as_echo "$ac_cv_search_opendir" >&6; }
- ac_res=$ac_cv_search_opendir
- if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
- $as_echo_n "checking for library containing opendir... " >&6; }
- if ${ac_cv_search_opendir+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_func_search_save_LIBS=$LIBS
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char opendir ();
- int
- main ()
- {
- return opendir ();
- ;
- return 0;
- }
- _ACEOF
- for ac_lib in '' x; do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- fi
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_search_opendir=$ac_res
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_opendir+:} false; then :
- break
- fi
- done
- if ${ac_cv_search_opendir+:} false; then :
- else
- ac_cv_search_opendir=no
- fi
- rm conftest.$ac_ext
- LIBS=$ac_func_search_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
- $as_echo "$ac_cv_search_opendir" >&6; }
- ac_res=$ac_cv_search_opendir
- if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
- fi
- fi
- for ac_header in \
- inttypes.h \
- stdint.h \
- dirent.h \
- ApplicationServices/ApplicationServices.h \
- sys/param.h \
- sys/types.h \
- sys/time.h \
- netinet/in.h \
- alloca.h \
- arpa/inet.h \
- arpa/nameser.h \
- assert.h \
- crypt.h \
- dns.h \
- fcntl.h \
- grp.h \
- ieeefp.h \
- langinfo.h \
- limits.h \
- locale.h \
- monetary.h \
- netdb.h \
- poll.h \
- pwd.h \
- resolv.h \
- signal.h \
- stdarg.h \
- stdlib.h \
- string.h \
- syslog.h \
- sysexits.h \
- sys/ioctl.h \
- sys/file.h \
- sys/mman.h \
- sys/mount.h \
- sys/poll.h \
- sys/resource.h \
- sys/select.h \
- sys/socket.h \
- sys/stat.h \
- sys/statfs.h \
- sys/statvfs.h \
- sys/vfs.h \
- sys/sysexits.h \
- sys/varargs.h \
- sys/wait.h \
- sys/loadavg.h \
- termios.h \
- unistd.h \
- unix.h \
- utime.h \
- sys/utsname.h \
- sys/ipc.h \
- dlfcn.h \
- assert.h \
- tmmintrin.h \
- nmmintrin.h \
- immintrin.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
- #ifdef HAVE_SYS_PARAM_H
- #include <sys/param.h>
- #endif
- #ifdef HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- #ifdef HAVE_NETINET_IN_H
- #include <netinet/in.h>
- #endif
- #ifdef HAVE_ARPA_NAMESER_H
- #include <arpa/nameser.h>
- #endif
- "
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
- if test "x$ac_cv_func_fopencookie" = xyes; then :
- have_glibc_fopencookie=yes
- fi
- if test "$have_glibc_fopencookie" = "yes"; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _GNU_SOURCE
- #include <stdio.h>
- int
- main ()
- {
- cookie_io_functions_t cookie;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- have_cookie_io_functions_t=yes
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- if test "$have_cookie_io_functions_t" = "yes"; then
- cookie_io_functions_t=cookie_io_functions_t
- have_fopen_cookie=yes
- if test "$cross_compiling" = yes; then :
- cookie_io_functions_use_off64_t=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _GNU_SOURCE
- #include <stdio.h>
- struct cookiedata {
- __off64_t pos;
- };
- __ssize_t reader(void *cookie, char *buffer, size_t size)
- { return size; }
- __ssize_t writer(void *cookie, const char *buffer, size_t size)
- { return size; }
- int closer(void *cookie)
- { return 0; }
- int seeker(void *cookie, __off64_t *position, int whence)
- { ((struct cookiedata*)cookie)->pos = *position; return 0; }
- cookie_io_functions_t funcs = {reader, writer, seeker, closer};
- int main() {
- struct cookiedata g = { 0 };
- FILE *fp = fopencookie(&g, "r", funcs);
- if (fp && fseek(fp, 8192, SEEK_SET) == 0 && g.pos == 8192)
- return 0;
- return 1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- cookie_io_functions_use_off64_t=yes
- else
- cookie_io_functions_use_off64_t=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _GNU_SOURCE
- #include <stdio.h>
- int
- main ()
- {
- _IO_cookie_io_functions_t cookie;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- have_IO_cookie_io_functions_t=yes
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- if test "$have_cookie_io_functions_t" = "yes" ; then
- cookie_io_functions_t=_IO_cookie_io_functions_t
- have_fopen_cookie=yes
- fi
- fi
- if test "$have_fopen_cookie" = "yes" ; then
- $as_echo "#define HAVE_FOPENCOOKIE 1" >>confdefs.h
- cat >>confdefs.h <<_ACEOF
- #define COOKIE_IO_FUNCTIONS_T $cookie_io_functions_t
- _ACEOF
- if test "$cookie_io_functions_use_off64_t" = "yes" ; then
- $as_echo "#define COOKIE_SEEKER_USES_OFF64_T 1" >>confdefs.h
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken getcwd" >&5
- $as_echo_n "checking for broken getcwd... " >&6; }
- os=`uname -sr 2>/dev/null`
- case $os in
- SunOS*)
- $as_echo "#define HAVE_BROKEN_GETCWD 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; };;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; };;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken libc stdio" >&5
- $as_echo_n "checking for broken libc stdio... " >&6; }
- if ${_cv_have_broken_glibc_fopen_append+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <features.h>
- int
- main ()
- {
- #if !__GLIBC_PREREQ(2,2)
- choke me
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- _cv_have_broken_glibc_fopen_append=yes
- else
- _cv_have_broken_glibc_fopen_append=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- #include <unistd.h>
- int main(int argc, char *argv[])
- {
- FILE *fp;
- long position;
- char *filename = tmpnam(NULL);
- fp = fopen(filename, "w");
- if (fp == NULL) {
- perror("fopen");
- return 2;
- }
- fputs("foobar", fp);
- fclose(fp);
- fp = fopen(filename, "a+");
- position = ftell(fp);
- fclose(fp);
- unlink(filename);
- if (position == 0)
- return 1;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- _cv_have_broken_glibc_fopen_append=no
- else
- _cv_have_broken_glibc_fopen_append=yes
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- if test "$_cv_have_broken_glibc_fopen_append" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_BROKEN_GLIBC_FOPEN_APPEND 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "$GCC" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken gcc optimize-strlen" >&5
- $as_echo_n "checking for broken gcc optimize-strlen... " >&6; }
- if ${ac_cv_have_broken_gcc_strlen_opt+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_have_broken_gcc_strlen_opt=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- #include <string.h>
- #include <stdio.h>
- struct s
- {
- int i;
- char c[1];
- };
- int main()
- {
- struct s *s = malloc(sizeof(struct s) + 3);
- s->i = 3;
- strcpy(s->c, "foo");
- return strlen(s->c+1) == 2;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_have_broken_gcc_strlen_opt=yes
- else
- ac_cv_have_broken_gcc_strlen_opt=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_broken_gcc_strlen_opt" >&5
- $as_echo "$ac_cv_have_broken_gcc_strlen_opt" >&6; }
- if test "$ac_cv_have_broken_gcc_strlen_opt" = "yes"; then
- CFLAGS="$CFLAGS -fno-optimize-strlen"
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
- $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
- if ${ac_cv_struct_tm+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <time.h>
- int
- main ()
- {
- struct tm tm;
- int *p = &tm.tm_sec;
- return !p;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_struct_tm=time.h
- else
- ac_cv_struct_tm=sys/time.h
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
- $as_echo "$ac_cv_struct_tm" >&6; }
- if test $ac_cv_struct_tm = sys/time.h; then
- $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
- fi
- ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
- #include <$ac_cv_struct_tm>
- "
- if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_TM_TM_ZONE 1
- _ACEOF
- fi
- if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
- $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
- else
- ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
- "
- if test "x$ac_cv_have_decl_tzname" = xyes; then :
- ac_have_decl=1
- else
- ac_have_decl=0
- fi
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DECL_TZNAME $ac_have_decl
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
- $as_echo_n "checking for tzname... " >&6; }
- if ${ac_cv_var_tzname+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <time.h>
- #if !HAVE_DECL_TZNAME
- extern char *tzname[];
- #endif
- int
- main ()
- {
- return tzname[0][0];
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_var_tzname=yes
- else
- ac_cv_var_tzname=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
- $as_echo "$ac_cv_var_tzname" >&6; }
- if test $ac_cv_var_tzname = yes; then
- $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing declarations of reentrant functions" >&5
- $as_echo_n "checking for missing declarations of reentrant functions... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <time.h>
- int
- main ()
- {
- struct tm *(*func)() = localtime_r
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- :
- else
- $as_echo "#define MISSING_LOCALTIME_R_DECL 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <time.h>
- int
- main ()
- {
- struct tm *(*func)() = gmtime_r
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- :
- else
- $as_echo "#define MISSING_GMTIME_R_DECL 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <time.h>
- int
- main ()
- {
- char *(*func)() = asctime_r
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- :
- else
- $as_echo "#define MISSING_ASCTIME_R_DECL 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <time.h>
- int
- main ()
- {
- char *(*func)() = ctime_r
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- :
- else
- $as_echo "#define MISSING_CTIME_R_DECL 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- int
- main ()
- {
- char *(*func)() = strtok_r
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- :
- else
- $as_echo "#define MISSING_STRTOK_R_DECL 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
- $as_echo "done" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fclose declaration" >&5
- $as_echo_n "checking for fclose declaration... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- int
- main ()
- {
- int (*func)() = fclose
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- $as_echo "#define MISSING_FCLOSE_DECL 0" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
- $as_echo "ok" >&6; }
- else
- $as_echo "#define MISSING_FCLOSE_DECL 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5
- $as_echo "missing" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
- $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
- if ${ac_cv_struct_tm_gmtoff+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <$ac_cv_struct_tm>
- int
- main ()
- {
- struct tm tm; tm.tm_gmtoff;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_struct_tm_gmtoff=yes
- else
- ac_cv_struct_tm_gmtoff=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
- $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
- if test "$ac_cv_struct_tm_gmtoff" = yes; then
- $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct flock" >&5
- $as_echo_n "checking for struct flock... " >&6; }
- if ${ac_cv_struct_flock+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <unistd.h>
- #include <fcntl.h>
- int
- main ()
- {
- struct flock x;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_struct_flock=yes
- else
- ac_cv_struct_flock=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_flock" >&5
- $as_echo "$ac_cv_struct_flock" >&6; }
- if test "$ac_cv_struct_flock" = "yes" ; then
- $as_echo "#define HAVE_STRUCT_FLOCK 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
- $as_echo_n "checking for socklen_t... " >&6; }
- if ${ac_cv_socklen_t+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/socket.h>
- int
- main ()
- {
- socklen_t x;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_socklen_t=yes
- else
- ac_cv_socklen_t=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_socklen_t" >&5
- $as_echo "$ac_cv_socklen_t" >&6; }
- if test "$ac_cv_socklen_t" = "yes"; then
- $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
- fi
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
- $as_echo_n "checking size of size_t... " >&6; }
- if ${ac_cv_sizeof_size_t+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_size_t" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (size_t)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_size_t=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
- $as_echo "$ac_cv_sizeof_size_t" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
- $as_echo_n "checking size of long long... " >&6; }
- if ${ac_cv_sizeof_long_long+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long long)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_long=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
- $as_echo "$ac_cv_sizeof_long_long" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
- $as_echo_n "checking size of long long int... " >&6; }
- if ${ac_cv_sizeof_long_long_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long_long_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long long int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_long_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
- $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
- $as_echo_n "checking size of long... " >&6; }
- if ${ac_cv_sizeof_long+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
- $as_echo "$ac_cv_sizeof_long" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG $ac_cv_sizeof_long
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
- $as_echo_n "checking size of int... " >&6; }
- if ${ac_cv_sizeof_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
- $as_echo "$ac_cv_sizeof_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_INT $ac_cv_sizeof_int
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
- $as_echo_n "checking size of intmax_t... " >&6; }
- php_cache_value=php_cv_sizeof_intmax_t
- if ${php_cv_sizeof_intmax_t+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- old_LIBS=$LIBS
- LIBS=
- old_LDFLAGS=$LDFLAGS
- LDFLAGS=
- if test "$cross_compiling" = yes; then :
- eval $php_cache_value=0
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- #ifdef HAVE_INTTYPES_H
- #include <inttypes.h>
- #endif
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- int main()
- {
- FILE *fp = fopen("conftestval", "w");
- if (!fp) return(1);
- fprintf(fp, "%d\n", sizeof(intmax_t));
- return(0);
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- eval $php_cache_value=`cat conftestval`
- else
- eval $php_cache_value=0
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LDFLAGS=$old_LDFLAGS
- LIBS=$old_LIBS
- fi
- if eval test "\$$php_cache_value" != "0"; then
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_INTMAX_T $php_cv_sizeof_intmax_t
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INTMAX_T 1
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_intmax_t" >&5
- $as_echo "$php_cv_sizeof_intmax_t" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
- $as_echo_n "checking size of ssize_t... " >&6; }
- php_cache_value=php_cv_sizeof_ssize_t
- if ${php_cv_sizeof_ssize_t+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- old_LIBS=$LIBS
- LIBS=
- old_LDFLAGS=$LDFLAGS
- LDFLAGS=
- if test "$cross_compiling" = yes; then :
- eval $php_cache_value=8
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- #ifdef HAVE_INTTYPES_H
- #include <inttypes.h>
- #endif
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- int main()
- {
- FILE *fp = fopen("conftestval", "w");
- if (!fp) return(1);
- fprintf(fp, "%d\n", sizeof(ssize_t));
- return(0);
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- eval $php_cache_value=`cat conftestval`
- else
- eval $php_cache_value=0
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LDFLAGS=$old_LDFLAGS
- LIBS=$old_LIBS
- fi
- if eval test "\$$php_cache_value" != "0"; then
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_SSIZE_T $php_cv_sizeof_ssize_t
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SSIZE_T 1
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ssize_t" >&5
- $as_echo "$php_cv_sizeof_ssize_t" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
- $as_echo_n "checking size of ptrdiff_t... " >&6; }
- php_cache_value=php_cv_sizeof_ptrdiff_t
- if ${php_cv_sizeof_ptrdiff_t+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- old_LIBS=$LIBS
- LIBS=
- old_LDFLAGS=$LDFLAGS
- LDFLAGS=
- if test "$cross_compiling" = yes; then :
- eval $php_cache_value=8
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- #ifdef HAVE_INTTYPES_H
- #include <inttypes.h>
- #endif
- #ifdef HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- int main()
- {
- FILE *fp = fopen("conftestval", "w");
- if (!fp) return(1);
- fprintf(fp, "%d\n", sizeof(ptrdiff_t));
- return(0);
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- eval $php_cache_value=`cat conftestval`
- else
- eval $php_cache_value=0
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LDFLAGS=$old_LDFLAGS
- LIBS=$old_LIBS
- fi
- if eval test "\$$php_cache_value" != "0"; then
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_PTRDIFF_T $php_cv_sizeof_ptrdiff_t
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PTRDIFF_T 1
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_sizeof_ptrdiff_t" >&5
- $as_echo "$php_cv_sizeof_ptrdiff_t" >&6; }
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
- $as_echo_n "checking size of short... " >&6; }
- if ${ac_cv_sizeof_short+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_short" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (short)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_short=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
- $as_echo "$ac_cv_sizeof_short" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_SHORT $ac_cv_sizeof_short
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
- $as_echo_n "checking size of int... " >&6; }
- if ${ac_cv_sizeof_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
- $as_echo "$ac_cv_sizeof_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_INT $ac_cv_sizeof_int
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
- $as_echo_n "checking size of long... " >&6; }
- if ${ac_cv_sizeof_long+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
- $as_echo "$ac_cv_sizeof_long" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG $ac_cv_sizeof_long
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
- $as_echo_n "checking size of long long... " >&6; }
- if ${ac_cv_sizeof_long_long+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long long)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_long=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
- $as_echo "$ac_cv_sizeof_long_long" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
- _ACEOF
- ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_int8" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT8 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_int16" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT16 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_int32" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT32 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "int64" "ac_cv_type_int64" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_int64" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT64 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_int8_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT8_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_int16_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT16_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_int32_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT32_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_int64_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT64_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint8" "ac_cv_type_uint8" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_uint8" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT8 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint16" "ac_cv_type_uint16" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_uint16" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT16 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint32" "ac_cv_type_uint32" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_uint32" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT32 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint64" "ac_cv_type_uint64" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_uint64" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT64 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_uint8_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT8_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_uint16_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT16_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_uint32_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT32_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_uint64_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT64_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_u_int8_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_U_INT8_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_u_int16_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_U_INT16_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_u_int32_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_U_INT32_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "
- #if HAVE_STDINT_H
- # include <stdint.h>
- #endif
- #if HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- "
- if test "x$ac_cv_type_u_int64_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_U_INT64_T 1
- _ACEOF
- fi
- $as_echo "#define PHP_HAVE_STDINT_TYPES 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
- $as_echo_n "checking for __builtin_expect... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return __builtin_expect(1,1) ? 1 : 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_builtin_expect=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_builtin_expect=0
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_BUILTIN_EXPECT $have_builtin_expect
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
- $as_echo_n "checking for __builtin_clz... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return __builtin_clz(1) ? 1 : 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_builtin_clz=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_builtin_clz=0
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_BUILTIN_CLZ $have_builtin_clz
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzl" >&5
- $as_echo_n "checking for __builtin_ctzl... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return __builtin_ctzl(2L) ? 1 : 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_builtin_ctzl=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_builtin_ctzl=0
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_BUILTIN_CTZL $have_builtin_ctzl
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzll" >&5
- $as_echo_n "checking for __builtin_ctzll... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return __builtin_ctzll(2LL) ? 1 : 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_builtin_ctzll=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_builtin_ctzll=0
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_BUILTIN_CTZLL $have_builtin_ctzll
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_smull_overflow" >&5
- $as_echo_n "checking for __builtin_smull_overflow... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- long tmpvar;
- return __builtin_smull_overflow(3, 7, &tmpvar);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_builtin_smull_overflow=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_builtin_smull_overflow=0
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_BUILTIN_SMULL_OVERFLOW $have_builtin_smull_overflow
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_smulll_overflow" >&5
- $as_echo_n "checking for __builtin_smulll_overflow... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- long long tmpvar;
- return __builtin_smulll_overflow(3, 7, &tmpvar);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_builtin_smulll_overflow=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_builtin_smulll_overflow=0
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_BUILTIN_SMULLL_OVERFLOW $have_builtin_smulll_overflow
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_saddl_overflow" >&5
- $as_echo_n "checking for __builtin_saddl_overflow... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- long tmpvar;
- return __builtin_saddl_overflow(3, 7, &tmpvar);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_builtin_saddl_overflow=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_builtin_saddl_overflow=0
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_BUILTIN_SADDL_OVERFLOW $have_builtin_saddl_overflow
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_saddll_overflow" >&5
- $as_echo_n "checking for __builtin_saddll_overflow... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- long long tmpvar;
- return __builtin_saddll_overflow(3, 7, &tmpvar);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_builtin_saddll_overflow=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_builtin_saddll_overflow=0
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_BUILTIN_SADDLL_OVERFLOW $have_builtin_saddll_overflow
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ssubl_overflow" >&5
- $as_echo_n "checking for __builtin_ssubl_overflow... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- long tmpvar;
- return __builtin_ssubl_overflow(3, 7, &tmpvar);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_builtin_ssubl_overflow=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_builtin_ssubl_overflow=0
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_BUILTIN_SSUBL_OVERFLOW $have_builtin_ssubl_overflow
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ssubll_overflow" >&5
- $as_echo_n "checking for __builtin_ssubll_overflow... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- long long tmpvar;
- return __builtin_ssubll_overflow(3, 7, &tmpvar);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_builtin_ssubll_overflow=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_builtin_ssubll_overflow=0
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_BUILTIN_SSUBLL_OVERFLOW $have_builtin_ssubll_overflow
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_cpu_init" >&5
- $as_echo_n "checking for __builtin_cpu_init... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return __builtin_cpu_init()? 1 : 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_builtin_cpu_init=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_builtin_cpu_init=0
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_BUILTIN_CPU_INIT $have_builtin_cpu_init
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_cpu_supports" >&5
- $as_echo_n "checking for __builtin_cpu_supports... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- return __builtin_cpu_supports("sse")? 1 : 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- have_builtin_cpu_supports=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- have_builtin_cpu_supports=0
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_BUILTIN_CPU_SUPPORTS $have_builtin_cpu_supports
- _ACEOF
- have_ext_instructions=0
- if test $have_builtin_cpu_supports = 1; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssse3 instructions supports" >&5
- $as_echo_n "checking for ssse3 instructions supports... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int main() {
- return __builtin_cpu_supports("ssse3")? 0 : 1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- have_ext_instructions=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_SSSE3_INSTRUCTIONS $have_ext_instructions
- _ACEOF
- have_ext_instructions=0
- if test $have_builtin_cpu_supports = 1; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sse4.2 instructions supports" >&5
- $as_echo_n "checking for sse4.2 instructions supports... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int main() {
- return __builtin_cpu_supports("sse4.2")? 0 : 1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- have_ext_instructions=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_SSE4_2_INSTRUCTIONS $have_ext_instructions
- _ACEOF
- have_ext_instructions=0
- if test $have_builtin_cpu_supports = 1; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avx instructions supports" >&5
- $as_echo_n "checking for avx instructions supports... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int main() {
- return __builtin_cpu_supports("avx")? 0 : 1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- have_ext_instructions=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_AVX_INSTRUCTIONS $have_ext_instructions
- _ACEOF
- have_ext_instructions=0
- if test $have_builtin_cpu_supports = 1; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avx2 instructions supports" >&5
- $as_echo_n "checking for avx2 instructions supports... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int main() {
- return __builtin_cpu_supports("avx2")? 0 : 1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- have_ext_instructions=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- cat >>confdefs.h <<_ACEOF
- #define PHP_HAVE_AVX2_INSTRUCTIONS $have_ext_instructions
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __SSE4_2__ is defined" >&5
- $as_echo_n "checking whether __SSE4_2__ is defined... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int main() {
- #if defined(__SSE4_2__)
- return 0;
- #else
- return 1;
- #endif
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_SSE4_2_DEF 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
- if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
- _ACEOF
- fi
- ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
- if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_STAT_ST_RDEV 1
- _ACEOF
- fi
- if test "`uname -s 2>/dev/null`" != "QNX"; then
- ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
- if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_STAT_ST_BLOCKS 1
- _ACEOF
- $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
- else
- case " $LIBOBJS " in
- *" fileblocks.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
- ;;
- esac
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: warnings level for cc set to 0" >&5
- $as_echo "$as_me: WARNING: warnings level for cc set to 0" >&2;}
- WARNING_LEVEL=0
- fi
- ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
- if test "x$ac_cv_type_size_t" = xyes; then :
- else
- cat >>confdefs.h <<_ACEOF
- #define size_t unsigned int
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
- $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
- if ${ac_cv_type_uid_t+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "uid_t" >/dev/null 2>&1; then :
- ac_cv_type_uid_t=yes
- else
- ac_cv_type_uid_t=no
- fi
- rm -f conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
- $as_echo "$ac_cv_type_uid_t" >&6; }
- if test $ac_cv_type_uid_t = no; then
- $as_echo "#define uid_t int" >>confdefs.h
- $as_echo "#define gid_t int" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
- $as_echo_n "checking for struct sockaddr_storage... " >&6; }
- if ${ac_cv_sockaddr_storage+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/socket.h>
- int
- main ()
- {
- struct sockaddr_storage s; s
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sockaddr_storage=yes
- else
- ac_cv_sockaddr_storage=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_storage" >&5
- $as_echo "$ac_cv_sockaddr_storage" >&6; }
- if test "$ac_cv_sockaddr_storage" = "yes"; then
- $as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field sa_len in struct sockaddr" >&5
- $as_echo_n "checking for field sa_len in struct sockaddr... " >&6; }
- if ${ac_cv_sockaddr_sa_len+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/socket.h>
- int
- main ()
- {
- static struct sockaddr sa; int n = (int) sa.sa_len; return n;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sockaddr_sa_len=yes
- else
- ac_cv_sockaddr_sa_len=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sockaddr_sa_len" >&5
- $as_echo "$ac_cv_sockaddr_sa_len" >&6; }
- if test "$ac_cv_sockaddr_sa_len" = "yes"; then
- $as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
- fi
- case $host_alias in #(
- *-*-*android*|*-*-*uclibc*|*-*-*musl*|*freebsd*) :
- true ;; #(
- *) :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((ifunc))" >&5
- $as_echo_n "checking for __attribute__((ifunc))... " >&6; }
- if ${ax_cv_have_func_attribute_ifunc+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int my_foo( void ) { return 0; }
- static int (*resolve_foo(void))(void) { return my_foo; }
- int foo( void ) __attribute__((ifunc("resolve_foo")));
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- if test -s conftest.err; then :
- ax_cv_have_func_attribute_ifunc=no
- else
- ax_cv_have_func_attribute_ifunc=yes
- fi
- else
- ax_cv_have_func_attribute_ifunc=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_ifunc" >&5
- $as_echo "$ax_cv_have_func_attribute_ifunc" >&6; }
- if test yes = $ax_cv_have_func_attribute_ifunc; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_FUNC_ATTRIBUTE_IFUNC 1
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((target))" >&5
- $as_echo_n "checking for __attribute__((target))... " >&6; }
- if ${ax_cv_have_func_attribute_target+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- static int bar( void ) __attribute__((target("sse2")));
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- if test -s conftest.err; then :
- ax_cv_have_func_attribute_target=no
- else
- ax_cv_have_func_attribute_target=yes
- fi
- else
- ax_cv_have_func_attribute_target=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_target" >&5
- $as_echo "$ax_cv_have_func_attribute_target" >&6; }
- if test yes = $ax_cv_have_func_attribute_target; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_FUNC_ATTRIBUTE_TARGET 1
- _ACEOF
- fi
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 support" >&5
- $as_echo_n "checking for IPv6 support... " >&6; }
- if ${ac_cv_ipv6_support+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- int
- main ()
- {
- struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_ipv6_support=yes
- else
- ac_cv_ipv6_support=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ipv6_support" >&5
- $as_echo "$ac_cv_ipv6_support" >&6; }
- for ac_func in vprintf
- do :
- ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
- if test "x$ac_cv_func_vprintf" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_VPRINTF 1
- _ACEOF
- ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
- if test "x$ac_cv_func__doprnt" = xyes; then :
- $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
- fi
- fi
- done
- for ac_func in alphasort \
- asctime_r \
- chroot \
- ctime_r \
- cuserid \
- crypt \
- explicit_memset \
- flock \
- ftok \
- funopen \
- gai_strerror \
- gcvt \
- getloadavg \
- getlogin \
- getprotobyname \
- getprotobynumber \
- getservbyname \
- getservbyport \
- gethostname \
- getrusage \
- gettimeofday \
- gmtime_r \
- getpwnam_r \
- getgrnam_r \
- getpwuid_r \
- grantpt \
- inet_ntoa \
- inet_ntop \
- inet_pton \
- isascii \
- link \
- localtime_r \
- lockf \
- lchown \
- lrand48 \
- memcpy \
- memmove \
- mkstemp \
- mmap \
- nl_langinfo \
- perror \
- poll \
- ptsname \
- putenv \
- realpath \
- random \
- rand_r \
- scandir \
- setitimer \
- setlocale \
- localeconv \
- setenv \
- setpgid \
- setsockopt \
- setvbuf \
- shutdown \
- sin \
- snprintf \
- srand48 \
- srandom \
- statfs \
- statvfs \
- std_syslog \
- strcasecmp \
- strcoll \
- strdup \
- strerror \
- strftime \
- strnlen \
- strptime \
- strstr \
- strtok_r \
- symlink \
- tempnam \
- tzset \
- unlockpt \
- unsetenv \
- usleep \
- utime \
- vsnprintf \
- vasprintf \
- asprintf \
- nanosleep \
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- unset ac_cv_lib_rt_nanosleep
- unset ac_cv_lib_rt___nanosleep
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
- $as_echo_n "checking for nanosleep in -lrt... " >&6; }
- if ${ac_cv_lib_rt_nanosleep+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lrt $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char nanosleep ();
- int
- main ()
- {
- return nanosleep ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_rt_nanosleep=yes
- else
- ac_cv_lib_rt_nanosleep=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
- $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
- if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __nanosleep in -lrt" >&5
- $as_echo_n "checking for __nanosleep in -lrt... " >&6; }
- if ${ac_cv_lib_rt___nanosleep+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lrt $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __nanosleep ();
- int
- main ()
- {
- return __nanosleep ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_rt___nanosleep=yes
- else
- ac_cv_lib_rt___nanosleep=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt___nanosleep" >&5
- $as_echo "$ac_cv_lib_rt___nanosleep" >&6; }
- if test "x$ac_cv_lib_rt___nanosleep" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lrt"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case rt in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lrt $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
- $as_echo "#define HAVE_LIBRT 1" >>confdefs.h
- ac_cv_func_nanosleep=yes
- else
- :
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
- $as_echo_n "checking for getaddrinfo... " >&6; }
- if ${ac_cv_func_getaddrinfo+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <netdb.h>
- int
- main ()
- {
- struct addrinfo *g,h;g=&h;getaddrinfo("","",g,&g);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- if test "$cross_compiling" = yes; then :
- ac_cv_func_getaddrinfo=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- #include <netdb.h>
- #include <sys/types.h>
- #ifndef AF_INET
- # include <sys/socket.h>
- #endif
- int main(void) {
- struct addrinfo *ai, *pai, hints;
- memset(&hints, 0, sizeof(hints));
- hints.ai_flags = AI_NUMERICHOST;
- if (getaddrinfo("127.0.0.1", 0, &hints, &ai) < 0) {
- return 1;
- }
- if (ai == 0) {
- return 1;
- }
- pai = ai;
- while (pai) {
- if (pai->ai_family != AF_INET) {
- /* 127.0.0.1/NUMERICHOST should only resolve ONE way */
- return 1;
- }
- if (pai->ai_addr->sa_family != AF_INET) {
- /* 127.0.0.1/NUMERICHOST should only resolve ONE way */
- return 1;
- }
- pai = pai->ai_next;
- }
- freeaddrinfo(ai);
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_getaddrinfo=yes
- else
- ac_cv_func_getaddrinfo=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- else
- ac_cv_func_getaddrinfo=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
- $as_echo "$ac_cv_func_getaddrinfo" >&6; }
- if test "$ac_cv_func_getaddrinfo" = yes; then
- $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add" >&5
- $as_echo_n "checking for __sync_fetch_and_add... " >&6; }
- if ${ac_cv_func_sync_fetch_and_add+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- int x;__sync_fetch_and_add(&x,1);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_func_sync_fetch_and_add=yes
- else
- ac_cv_func_sync_fetch_and_add=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sync_fetch_and_add" >&5
- $as_echo "$ac_cv_func_sync_fetch_and_add" >&6; }
- if test "$ac_cv_func_sync_fetch_and_add" = yes; then
- $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
- fi
- ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
- if test "x$ac_cv_func_strlcat" = xyes; then :
- $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
- else
- case " $LIBOBJS " in
- *" strlcat.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
- ;;
- esac
- fi
- ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
- if test "x$ac_cv_func_strlcpy" = xyes; then :
- $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
- else
- case " $LIBOBJS " in
- *" strlcpy.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
- ;;
- esac
- fi
- ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
- if test "x$ac_cv_func_explicit_bzero" = xyes; then :
- $as_echo "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
- else
- case " $LIBOBJS " in
- *" explicit_bzero.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext"
- ;;
- esac
- fi
- ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
- if test "x$ac_cv_func_getopt" = xyes; then :
- $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
- else
- case " $LIBOBJS " in
- *" getopt.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
- ;;
- esac
- fi
- for ac_header in $ac_header_list
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
- "
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
- $as_echo_n "checking whether utime accepts a null argument... " >&6; }
- if ${ac_cv_func_utime_null+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- rm -f conftest.data; >conftest.data
- # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
- if test "$cross_compiling" = yes; then :
- ac_cv_func_utime_null='guessing yes'
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- #ifdef HAVE_UTIME_H
- # include <utime.h>
- #endif
- int
- main ()
- {
- struct stat s, t;
- return ! (stat ("conftest.data", &s) == 0
- && utime ("conftest.data", 0) == 0
- && stat ("conftest.data", &t) == 0
- && t.st_mtime >= s.st_mtime
- && t.st_mtime - s.st_mtime < 120);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_utime_null=yes
- else
- ac_cv_func_utime_null=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
- $as_echo "$ac_cv_func_utime_null" >&6; }
- if test "x$ac_cv_func_utime_null" != xno; then
- ac_cv_func_utime_null=yes
- $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
- fi
- rm -f conftest.data
- # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
- # for constant arguments. Useless!
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
- $as_echo_n "checking for working alloca.h... " >&6; }
- if ${ac_cv_working_alloca_h+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <alloca.h>
- int
- main ()
- {
- char *p = (char *) alloca (2 * sizeof (int));
- if (p) return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_working_alloca_h=yes
- else
- ac_cv_working_alloca_h=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
- $as_echo "$ac_cv_working_alloca_h" >&6; }
- if test $ac_cv_working_alloca_h = yes; then
- $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
- $as_echo_n "checking for alloca... " >&6; }
- if ${ac_cv_func_alloca_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __GNUC__
- # define alloca __builtin_alloca
- #else
- # ifdef _MSC_VER
- # include <malloc.h>
- # define alloca _alloca
- # else
- # ifdef HAVE_ALLOCA_H
- # include <alloca.h>
- # else
- # ifdef _AIX
- #pragma alloca
- # else
- # ifndef alloca /* predefined by HP cc +Olibcalls */
- void *alloca (size_t);
- # endif
- # endif
- # endif
- # endif
- #endif
- int
- main ()
- {
- char *p = (char *) alloca (1);
- if (p) return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_func_alloca_works=yes
- else
- ac_cv_func_alloca_works=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
- $as_echo "$ac_cv_func_alloca_works" >&6; }
- if test $ac_cv_func_alloca_works = yes; then
- $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
- else
- # The SVR3 libPW and SVR4 libucb both contain incompatible functions
- # that cause trouble. Some versions do not even contain alloca or
- # contain a buggy version. If you still want to use their alloca,
- # use ar to extract alloca.o from them instead of compiling alloca.c.
- ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
- $as_echo "#define C_ALLOCA 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
- $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
- if ${ac_cv_os_cray+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #if defined CRAY && ! defined CRAY2
- webecray
- #else
- wenotbecray
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "webecray" >/dev/null 2>&1; then :
- ac_cv_os_cray=yes
- else
- ac_cv_os_cray=no
- fi
- rm -f conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
- $as_echo "$ac_cv_os_cray" >&6; }
- if test $ac_cv_os_cray = yes; then
- for ac_func in _getb67 GETB67 getb67; do
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define CRAY_STACKSEG_END $ac_func
- _ACEOF
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
- $as_echo_n "checking stack direction for C alloca... " >&6; }
- if ${ac_cv_c_stack_direction+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_c_stack_direction=0
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- int
- find_stack_direction (int *addr, int depth)
- {
- int dir, dummy = 0;
- if (! addr)
- addr = &dummy;
- *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
- dir = depth ? find_stack_direction (addr, depth - 1) : 0;
- return dir + dummy;
- }
- int
- main (int argc, char **argv)
- {
- return find_stack_direction (0, argc + !argv + 20) < 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_c_stack_direction=1
- else
- ac_cv_c_stack_direction=-1
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
- $as_echo "$ac_cv_c_stack_direction" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define STACK_DIRECTION $ac_cv_c_stack_direction
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for declared timezone" >&5
- $as_echo_n "checking for declared timezone... " >&6; }
- if ${ac_cv_declared_timezone+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <time.h>
- #ifdef HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif
- int
- main ()
- {
- time_t foo = (time_t) timezone;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_declared_timezone=yes
- else
- ac_cv_declared_timezone=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declared_timezone" >&5
- $as_echo "$ac_cv_declared_timezone" >&6; }
- if test "$ac_cv_declared_timezone" = "yes"; then
- $as_echo "#define HAVE_DECLARED_TIMEZONE 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of reentrant time-related functions" >&5
- $as_echo_n "checking for type of reentrant time-related functions... " >&6; }
- if ${ac_cv_time_r_type+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_time_r_type=POSIX
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <time.h>
- main() {
- char buf[27];
- struct tm t;
- time_t old = 0;
- int r, s;
- s = gmtime_r(&old, &t);
- r = (int) asctime_r(&t, buf, 26);
- if (r == s && s == 0) return (0);
- return (1);
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_time_r_type=hpux
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_time_r_type=POSIX
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <time.h>
- main() {
- struct tm t, *s;
- time_t old = 0;
- char buf[27], *p;
- s = gmtime_r(&old, &t);
- p = asctime_r(&t, buf, 26);
- if (p == buf && s == &t) return (0);
- return (1);
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_time_r_type=irix
- else
- ac_cv_time_r_type=POSIX
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_time_r_type" >&5
- $as_echo "$ac_cv_time_r_type" >&6; }
- case $ac_cv_time_r_type in
- hpux)
- $as_echo "#define PHP_HPUX_TIME_R 1" >>confdefs.h
- ;;
- irix)
- $as_echo "#define PHP_IRIX_TIME_R 1" >>confdefs.h
- ;;
- esac
- ac_fn_c_check_func "$LINENO" "readdir_r" "ac_cv_func_readdir_r"
- if test "x$ac_cv_func_readdir_r" = xyes; then :
- ac_cv_func_readdir_r=yes
- else
- ac_cv_func_readdir=no
- fi
- if test "$ac_cv_func_readdir_r" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of readdir_r" >&5
- $as_echo_n "checking for type of readdir_r... " >&6; }
- if ${ac_cv_what_readdir_r+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_what_readdir_r=none
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _REENTRANT
- #include <sys/types.h>
- #include <dirent.h>
- #include <unistd.h>
- #ifndef PATH_MAX
- #define PATH_MAX 1024
- #endif
- int main() {
- DIR *dir;
- char entry[sizeof(struct dirent)+PATH_MAX];
- struct dirent *pentry = (struct dirent *) &entry;
- dir = opendir("/");
- if (!dir)
- return 1;
- if (readdir_r(dir, (struct dirent *) entry, &pentry) == 0) {
- close(dir);
- return 0;
- }
- close(dir);
- return 1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_what_readdir_r=POSIX
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _REENTRANT
- #include <sys/types.h>
- #include <dirent.h>
- int readdir_r(DIR *, struct dirent *);
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- ac_cv_what_readdir_r=old-style
- else
- ac_cv_what_readdir_r=none
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_what_readdir_r" >&5
- $as_echo "$ac_cv_what_readdir_r" >&6; }
- case $ac_cv_what_readdir_r in
- POSIX)
- $as_echo "#define HAVE_POSIX_READDIR_R 1" >>confdefs.h
- ;;
- old-style)
- $as_echo "#define HAVE_OLD_READDIR_R 1" >>confdefs.h
- ;;
- esac
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
- $as_echo_n "checking for in_addr_t... " >&6; }
- if ${ac_cv_type_in_addr_t+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- #ifdef HAVE_NETINET_IN_H
- #include <netinet/in.h>
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
- ac_cv_type_in_addr_t=yes
- else
- ac_cv_type_in_addr_t=no
- fi
- rm -f conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_in_addr_t" >&5
- $as_echo "$ac_cv_type_in_addr_t" >&6; }
- if test $ac_cv_type_in_addr_t = no; then
- $as_echo "#define in_addr_t u_int" >>confdefs.h
- fi
- for ac_func in crypt_r
- do :
- ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r"
- if test "x$ac_cv_func_crypt_r" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_CRYPT_R 1
- _ACEOF
- php_crypt_r="1"
- else
- php_crypt_r="0"
- fi
- done
- if test "x$php_crypt_r" = "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking which data struct is used by crypt_r" >&5
- $as_echo_n "checking which data struct is used by crypt_r... " >&6; }
- if ${php_cv_crypt_r_style+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- php_cv_crypt_r_style=none
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _REENTRANT 1
- #include <crypt.h>
- int
- main ()
- {
- CRYPTD buffer;
- crypt_r("passwd", "hash", &buffer);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- php_cv_crypt_r_style=cryptd
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- if test "$php_cv_crypt_r_style" = "none"; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _REENTRANT 1
- #include <crypt.h>
- int
- main ()
- {
- struct crypt_data buffer;
- crypt_r("passwd", "hash", &buffer);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- php_cv_crypt_r_style=struct_crypt_data
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- if test "$php_cv_crypt_r_style" = "none"; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _REENTRANT 1
- #define _GNU_SOURCE
- #include <crypt.h>
- int
- main ()
- {
- struct crypt_data buffer;
- crypt_r("passwd", "hash", &buffer);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- php_cv_crypt_r_style=struct_crypt_data_gnu_source
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_crypt_r_style" >&5
- $as_echo "$php_cv_crypt_r_style" >&6; }
- if test "$php_cv_crypt_r_style" = "cryptd"; then
- $as_echo "#define CRYPT_R_CRYPTD 1" >>confdefs.h
- fi
- if test "$php_cv_crypt_r_style" = "struct_crypt_data" -o "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then
- $as_echo "#define CRYPT_R_STRUCT_CRYPT_DATA 1" >>confdefs.h
- fi
- if test "$php_cv_crypt_r_style" = "struct_crypt_data_gnu_source"; then
- $as_echo "#define CRYPT_R_GNU_SOURCE 1" >>confdefs.h
- fi
- if test "$php_cv_crypt_r_style" = "none"; then
- as_fn_error $? "Unable to detect data struct used by crypt_r" "$LINENO" 5
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asm goto" >&5
- $as_echo_n "checking for asm goto... " >&6; }
- if ${ac_cv__asm_goto+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv__asm_goto=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int main(void) {
- __asm__ goto("jmp %l0\n" :::: end);
- end:
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv__asm_goto=yes
- else
- ac_cv__asm_goto=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv__asm_goto" >&5
- $as_echo "$ac_cv__asm_goto" >&6; }
- if test "$ac_cv__asm_goto" = yes; then
- $as_echo "#define HAVE_ASM_GOTO 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports VLA" >&5
- $as_echo_n "checking whether compiler supports VLA... " >&6; }
- if ${ac_cv__compiler_c99_vla+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv__compiler_c99_vla=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- int main(void) {
- int i[rand()%10];
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv__compiler_c99_vla=yes
- else
- ac_cv__compiler_c99_vla=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv__compiler_c99_vla" >&5
- $as_echo "$ac_cv__compiler_c99_vla" >&6; }
- if test "$ac_cv__compiler_c99_vla" = yes; then
- $as_echo "#define HAVE_COMPILER_C99_VLA 1" >>confdefs.h
- fi
- php_with_valgrind=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind support" >&5
- $as_echo_n "checking whether to enable valgrind support... " >&6; }
- # Check whether --with-valgrind was given.
- if test "${with_valgrind+set}" = set; then :
- withval=$with_valgrind; PHP_VALGRIND=$withval
- else
- PHP_VALGRIND=yes
- fi
- ext_output=$PHP_VALGRIND
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_VALGRIND" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valgrind header" >&5
- $as_echo_n "checking for valgrind header... " >&6; }
- if test "$PHP_VALGRIND" = "yes"; then
- SEARCH_PATH="/usr/local /usr"
- else
- SEARCH_PATH="$PHP_VALGRIND"
- fi
- SEARCH_FOR="/include/valgrind/valgrind.h"
- for i in $SEARCH_PATH ; do
- if test -r $i/$SEARCH_FOR; then
- VALGRIND_DIR=$i
- fi
- done
- if test -z "$VALGRIND_DIR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $VALGRIND_DIR" >&5
- $as_echo "found in $VALGRIND_DIR" >&6; }
- $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}General settings${T_ME}" >&5
- $as_echo "${T_MD}General settings${T_ME}" >&6; }
- # Check whether --enable- was given.
- if test "${enable_+set}" = set; then :
- enableval=$enable_;
- fi
- php_enable_gcov=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include gcov symbols" >&5
- $as_echo_n "checking whether to include gcov symbols... " >&6; }
- # Check whether --enable-gcov was given.
- if test "${enable_gcov+set}" = set; then :
- enableval=$enable_gcov; PHP_GCOV=$enableval
- else
- PHP_GCOV=no
- fi
- ext_output=$PHP_GCOV
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_GCOV" = "yes"; then
- if test "$GCC" != "yes"; then
- as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
- fi
- case `$php_shtool path $CC` in
- *ccache*) gcc_ccache=yes;;
- *) gcc_ccache=no;;
- esac
- if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
- as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
- fi
- ltp_version_min="105"
- ltp_version_exclude="1.8"
- # Extract the first word of "lcov", so it can be a program name with args.
- set dummy lcov; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_LTP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$LTP"; then
- ac_cv_prog_LTP="$LTP" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_LTP="lcov"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- LTP=$ac_cv_prog_LTP
- if test -n "$LTP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
- $as_echo "$LTP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "genhtml", so it can be a program name with args.
- set dummy genhtml; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_LTP_GENHTML+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$LTP_GENHTML"; then
- ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_LTP_GENHTML="genhtml"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
- if test -n "$LTP_GENHTML"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
- $as_echo "$LTP_GENHTML" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST LTP"
- PHP_VAR_SUBST="$PHP_VAR_SUBST LTP_GENHTML"
- if test "$LTP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
- $as_echo_n "checking for ltp version... " >&6; }
- if ${php_cv_ltp_version+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- php_cv_ltp_version=invalid
- ltp_version_vars=`$LTP -v 2>/dev/null | $SED -e 's/^.* //' -e 's/\./ /g' | tr -d a-z`
- if test -n "$ltp_version_vars"; then
- set $ltp_version_vars
- ltp_version="${1}.${2}"
- ltp_version_num="`expr ${1} \* 100 + ${2}`"
- if test $ltp_version_num -ge $ltp_version_min; then
- php_cv_ltp_version="$ltp_version (ok)"
- for ltp_check_version in $ltp_version_exclude; do
- if test "$ltp_version" = "$ltp_check_version"; then
- php_cv_ltp_version=invalid
- break
- fi
- done
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_ltp_version" >&5
- $as_echo "$php_cv_ltp_version" >&6; }
- else
- ltp_msg="To enable code coverage reporting you must have LTP installed"
- as_fn_error $? "$ltp_msg" "$LINENO" 5
- fi
- case $php_cv_ltp_version in
- ""|invalid)
- ltp_msg="This LTP version is not supported (found: $ltp_version, min: $ltp_version_min, excluded: $ltp_version_exclude)."
- as_fn_error $? "$ltp_msg" "$LINENO" 5
- LTP="exit 0;"
- ;;
- esac
- if test -z "$LTP_GENHTML"; then
- as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
- fi
- $as_echo "#define HAVE_GCOV 1" >>confdefs.h
- src=$abs_srcdir/Makefile.gcov
- ac_srcdir=$abs_srcdir
- ac_builddir=$ext_builddir
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
- CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
- CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
- CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
- fi
- php_enable_debug=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include debugging symbols" >&5
- $as_echo_n "checking whether to include debugging symbols... " >&6; }
- # Check whether --enable-debug was given.
- if test "${enable_debug+set}" = set; then :
- enableval=$enable_debug; PHP_DEBUG=$enableval
- else
- PHP_DEBUG=no
- fi
- ext_output=$PHP_DEBUG
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_DEBUG" = "yes"; then
- PHP_DEBUG=1
- ZEND_DEBUG=yes
- CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
- CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
- if test "$GCC" = "yes" || test "$ICC" = "yes"; then
- CFLAGS="$CFLAGS -O0"
- CXXFLAGS="$CXXFLAGS -g -O0"
- fi
- if test "$SUNCC" = "yes"; then
- if test -n "$auto_cflags"; then
- CFLAGS="-g"
- CXXFLAGS="-g"
- else
- CFLAGS="$CFLAGS -g"
- CXXFLAGS="$CFLAGS -g"
- fi
- fi
- else
- PHP_DEBUG=0
- ZEND_DEBUG=no
- fi
- php_with_layout=PHP
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking layout of installed files" >&5
- $as_echo_n "checking layout of installed files... " >&6; }
- # Check whether --with-layout was given.
- if test "${with_layout+set}" = set; then :
- withval=$with_layout; PHP_LAYOUT=$withval
- else
- PHP_LAYOUT=PHP
- fi
- ext_output=$PHP_LAYOUT
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- case $PHP_LAYOUT in
- GNU)
- oldstyleextdir=no
- ;;
- *)
- oldstyleextdir=yes
- ;;
- esac
- php_with_config_file_path=DEFAULT
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to configuration file" >&5
- $as_echo_n "checking path to configuration file... " >&6; }
- # Check whether --with-config-file-path was given.
- if test "${with_config_file_path+set}" = set; then :
- withval=$with_config_file_path; PHP_CONFIG_FILE_PATH=$withval
- else
- PHP_CONFIG_FILE_PATH=DEFAULT
- fi
- ext_output=$PHP_CONFIG_FILE_PATH
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_CONFIG_FILE_PATH" = "DEFAULT"; then
- case $PHP_LAYOUT in
- GNU)
- PHP_CONFIG_FILE_PATH=$sysconfdir
- ;;
- *)
- PHP_CONFIG_FILE_PATH=$libdir
- ;;
- esac
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to scan for configuration files" >&5
- $as_echo_n "checking where to scan for configuration files... " >&6; }
- php_with_config_file_scan_dir=DEFAULT
- # Check whether --with-config-file-scan-dir was given.
- if test "${with_config_file_scan_dir+set}" = set; then :
- withval=$with_config_file_scan_dir; PHP_CONFIG_FILE_SCAN_DIR=$withval
- else
- PHP_CONFIG_FILE_SCAN_DIR=DEFAULT
- fi
- ext_output=$PHP_CONFIG_FILE_SCAN_DIR
- if test "$PHP_CONFIG_FILE_SCAN_DIR" = "DEFAULT"; then
- PHP_CONFIG_FILE_SCAN_DIR=
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_CONFIG_FILE_SCAN_DIR" >&5
- $as_echo "$PHP_CONFIG_FILE_SCAN_DIR" >&6; }
- test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
- php_enable_sigchild=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP's own SIGCHLD handler" >&5
- $as_echo_n "checking whether to enable PHP's own SIGCHLD handler... " >&6; }
- # Check whether --enable-sigchild was given.
- if test "${enable_sigchild+set}" = set; then :
- enableval=$enable_sigchild; PHP_SIGCHILD=$enableval
- else
- PHP_SIGCHILD=no
- fi
- ext_output=$PHP_SIGCHILD
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_SIGCHILD" = "yes"; then
- $as_echo "#define PHP_SIGCHILD 1" >>confdefs.h
- else
- $as_echo "#define PHP_SIGCHILD 0" >>confdefs.h
- fi
- php_enable_libgcc=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to explicitly link against libgcc" >&5
- $as_echo_n "checking whether to explicitly link against libgcc... " >&6; }
- # Check whether --enable-libgcc was given.
- if test "${enable_libgcc+set}" = set; then :
- enableval=$enable_libgcc; PHP_LIBGCC=$enableval
- else
- PHP_LIBGCC=no
- fi
- ext_output=$PHP_LIBGCC
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_LIBGCC" = "yes"; then
- libgcc_libpath=`gcc --print-libgcc-file-name|$SED 's%/*[^/][^/]*$%%'`
- if test -z "$libgcc_libpath"; then
- as_fn_error $? "Cannot locate libgcc. Make sure that gcc is in your path" "$LINENO" 5
- fi
- if test "$libgcc_libpath" != "/usr/$PHP_LIBDIR" && test "$libgcc_libpath" != "/usr/lib"; then
- if test -z "$libgcc_libpath" || echo "$libgcc_libpath" | grep '^/' >/dev/null ; then
- ai_p=$libgcc_libpath
- else
- ep_dir=`echo $libgcc_libpath|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$libgcc_libpath"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- case gcc in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -lgcc"
- ;;
- esac
- fi
- php_enable_short_tags=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable short tags by default" >&5
- $as_echo_n "checking whether to enable short tags by default... " >&6; }
- # Check whether --enable-short-tags was given.
- if test "${enable_short_tags+set}" = set; then :
- enableval=$enable_short_tags; PHP_SHORT_TAGS=$enableval
- else
- PHP_SHORT_TAGS=yes
- fi
- ext_output=$PHP_SHORT_TAGS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_SHORT_TAGS" = "yes"; then
- $as_echo "#define DEFAULT_SHORT_OPEN_TAG \"1\"" >>confdefs.h
- else
- $as_echo "#define DEFAULT_SHORT_OPEN_TAG \"0\"" >>confdefs.h
- fi
- php_enable_dmalloc=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dmalloc" >&5
- $as_echo_n "checking whether to enable dmalloc... " >&6; }
- # Check whether --enable-dmalloc was given.
- if test "${enable_dmalloc+set}" = set; then :
- enableval=$enable_dmalloc; PHP_DMALLOC=$enableval
- else
- PHP_DMALLOC=no
- fi
- ext_output=$PHP_DMALLOC
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_DMALLOC" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_error in -ldmalloc" >&5
- $as_echo_n "checking for dmalloc_error in -ldmalloc... " >&6; }
- if ${ac_cv_lib_dmalloc_dmalloc_error+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldmalloc $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dmalloc_error ();
- int
- main ()
- {
- return dmalloc_error ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dmalloc_dmalloc_error=yes
- else
- ac_cv_lib_dmalloc_dmalloc_error=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_error" >&5
- $as_echo "$ac_cv_lib_dmalloc_dmalloc_error" >&6; }
- if test "x$ac_cv_lib_dmalloc_dmalloc_error" = xyes; then :
- case dmalloc in
- c|c_r|pthread*) ;;
- *)
- LIBS="-ldmalloc $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_DMALLOC 1" >>confdefs.h
- CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK"
- else
- as_fn_error $? "Problem with enabling dmalloc. Please check config.log for details." "$LINENO" 5
- fi
- fi
- php_enable_ipv6=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6 support" >&5
- $as_echo_n "checking whether to enable IPv6 support... " >&6; }
- # Check whether --enable-ipv6 was given.
- if test "${enable_ipv6+set}" = set; then :
- enableval=$enable_ipv6; PHP_IPV6=$enableval
- else
- PHP_IPV6=yes
- fi
- ext_output=$PHP_IPV6
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_IPV6" != "no" && test "$ac_cv_ipv6_support" = yes; then
- $as_echo "#define HAVE_IPV6 1" >>confdefs.h
- fi
- php_enable_dtrace=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DTrace support" >&5
- $as_echo_n "checking whether to enable DTrace support... " >&6; }
- # Check whether --enable-dtrace was given.
- if test "${enable_dtrace+set}" = set; then :
- enableval=$enable_dtrace; PHP_DTRACE=$enableval
- else
- PHP_DTRACE=no
- fi
- ext_output=$PHP_DTRACE
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_DTRACE" = "yes"; then
- for ac_header in sys/sdt.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
- if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SYS_SDT_H 1
- _ACEOF
- case "" in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir;;
- /*) ac_srcdir=`echo ""|cut -c 2-`"/"; ac_bdir=$ac_srcdir;;
- *) ac_srcdir="$abs_srcdir/Zend/zend_dtrace.d/"; ac_bdir="/";;
- esac
- ac_provsrc=Zend/zend_dtrace.d
- old_IFS=$IFS
- IFS=.
- set $ac_provsrc
- ac_provobj=$1
- IFS=$old_IFS
- ac_hdrobj=Zend/zend_dtrace_gen.h
- case $host_alias in
- *freebsd*)
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.o"
- PHP_LDFLAGS="$PHP_LDFLAGS -lelf"
- ;;
- *solaris*)
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo"
- ;;
- *linux*)
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_provsrc.lo"
- ;;
- esac
- old_IFS=$IFS
- for ac_src in main/main.c Zend/zend_API.c \
- Zend/zend_execute.c Zend/zend_exceptions.c \
- Zend/zend_dtrace.c Zend/zend.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_DTRACE_OBJS="$PHP_DTRACE_OBJS $ac_bdir$ac_obj.lo"
- done;
- case $php_sapi_module in
- shared)
- for ac_lo in $PHP_DTRACE_OBJS; do
- dtrace_objs="$dtrace_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`"
- done;
- ;;
- *)
- dtrace_objs='$(PHP_DTRACE_OBJS:.lo=.o)'
- ;;
- esac
- cat>>Makefile.objects<<EOF
- $abs_srcdir/$ac_provsrc:;
- $ac_bdir$ac_hdrobj: $abs_srcdir/$ac_provsrc
- CFLAGS="\$(CFLAGS_CLEAN)" dtrace -h -C -s $ac_srcdir$ac_provsrc -o \$@.bak && \$(SED) -e 's,PHP_,DTRACE_,g' \$@.bak > \$@
- \$(PHP_DTRACE_OBJS): $ac_bdir$ac_hdrobj
- EOF
- case $host_alias in
- *solaris*|*linux*)
- dtrace_prov_name="`echo $ac_provsrc | $SED -e 's#\(.*\)\/##'`.o"
- dtrace_lib_dir="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/[^/]*#\1#'`/.libs"
- dtrace_d_obj="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/\([^/]*\)#\1/.libs/\2#'`.o"
- dtrace_nolib_objs='$(PHP_DTRACE_OBJS:.lo=.o)'
- for ac_lo in $PHP_DTRACE_OBJS; do
- dtrace_lib_objs="$dtrace_lib_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`"
- done;
- cat>>Makefile.objects<<EOF
- $ac_bdir$ac_provsrc.lo: \$(PHP_DTRACE_OBJS)
- echo "# Generated by Makefile for libtool" > \$@
- @test -d "$dtrace_lib_dir" || mkdir $dtrace_lib_dir
- if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $dtrace_d_obj -s $abs_srcdir/$ac_provsrc $dtrace_lib_objs 2> /dev/null && test -f "$dtrace_d_obj"; then \\
- echo "pic_object='.libs/$dtrace_prov_name'" >> \$@ ;\\
- else \\
- echo "pic_object='none'" >> \$@ ;\\
- fi
- if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $ac_bdir$ac_provsrc.o -s $abs_srcdir/$ac_provsrc $dtrace_nolib_objs 2> /dev/null && test -f "$ac_bdir$ac_provsrc.o"; then \\
- echo "non_pic_object='$dtrace_prov_name'" >> \$@ ;\\
- else \\
- echo "non_pic_object='none'" >> \$@ ;\\
- fi
- EOF
- ;;
- *)
- cat>>Makefile.objects<<EOF
- $ac_bdir$ac_provsrc.o: \$(PHP_DTRACE_OBJS)
- CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o \$@ -s $abs_srcdir/$ac_provsrc $dtrace_objs
- EOF
- ;;
- esac
- $as_echo "#define HAVE_DTRACE 1" >>confdefs.h
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_DTRACE_OBJS"
- else
- as_fn_error $? "Cannot find sys/sdt.h which is required for DTrace support" "$LINENO" 5
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how big to make fd sets" >&5
- $as_echo_n "checking how big to make fd sets... " >&6; }
- php_enable_fd_setsize=no
- # Check whether --enable-fd-setsize was given.
- if test "${enable_fd_setsize+set}" = set; then :
- enableval=$enable_fd_setsize; PHP_FD_SETSIZE=$enableval
- else
- PHP_FD_SETSIZE=no
- fi
- ext_output=$PHP_FD_SETSIZE
- if test "$PHP_FD_SETSIZE" != "no"; then
- if test "0$PHP_FD_SETSIZE" -gt 0 2>/dev/null; then
- CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=$PHP_FD_SETSIZE"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PHP_FD_SETSIZE" >&5
- $as_echo "using $PHP_FD_SETSIZE" >&6; }
- else
- as_fn_error $? "Invalid value passed to --enable-fd-setsize!" "$LINENO" 5
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system default" >&5
- $as_echo "using system default" >&6; }
- fi
- # Check whether --enable- was given.
- if test "${enable_+set}" = set; then :
- enableval=$enable_;
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring extensions${T_ME}" >&5
- $as_echo "${T_MD}Configuring extensions${T_ME}" >&6; }
- # Check whether --enable-all was given.
- if test "${enable_all+set}" = set; then :
- enableval=$enable_all;
- PHP_ENABLE_ALL=$enableval
- fi
- # reading config stubs
- for ac_header in \
- strings.h \
- io.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_func in strtoll atoll
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- PHP_DATE_CFLAGS="-I@ext_builddir@/lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DHAVE_TIMELIB_CONFIG_H=1"
- timelib_sources="lib/astro.c lib/dow.c lib/parse_date.c lib/parse_tz.c
- lib/timelib.c lib/tm2unixtime.c lib/unixtime2tm.c lib/parse_iso_intervals.c lib/interval.c"
- ext_builddir=ext/date
- ext_srcdir=$abs_srcdir/ext/date
- ext_dir=ext/date
- ac_extra=`echo "$PHP_DATE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
- PHP_DATE_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_date.c $timelib_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC date;$ext_dir"
- if test "no" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC date;$ext_dir"
- fi
- else
- if test "no" = "shared" || test "no" = "yes"; then
- PHP_DATE_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_date.c $timelib_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_date="$shared_objects_date $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/date.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/date.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_date"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/date.$suffix: $ext_builddir/date.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/date.$suffix \$(phplibdir)
- $ext_builddir/date.$suffix: \$(shared_objects_date) \$(DATE_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_date) \$(DATE_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_DATE 1
- _ACEOF
- fi
- fi
- if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
- PHP_DATE_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_date.c $timelib_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC date;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_date.c $timelib_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC date;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=date
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- $php_shtool mkdir -p $ext_builddir/lib
- if test "$ext_builddir/lib" != "/usr/include"; then
- if test -z "$ext_builddir/lib" || echo "$ext_builddir/lib" | grep '^/' >/dev/null ; then
- ai_p=$ext_builddir/lib
- else
- ep_dir=`echo $ext_builddir/lib|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ext_builddir/lib"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_srcdir/lib" != "/usr/include"; then
- if test -z "$ext_srcdir/lib" || echo "$ext_srcdir/lib" | grep '^/' >/dev/null ; then
- ai_p=$ext_srcdir/lib
- else
- ep_dir=`echo $ext_srcdir/lib|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ext_srcdir/lib"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- header_path=ext/date
- for header_file in php_date.h lib/timelib.h lib/timelib_config.h; do
- hp_hf="$header_path/$header_file"
- unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
- fi
- done
- $as_echo "#define HAVE_TIMELIB_CONFIG_H 1" >>confdefs.h
- cat > $ext_builddir/lib/timelib_config.h <<EOF
- #ifdef PHP_WIN32
- # include "config.w32.h"
- #else
- # include <php_config.h>
- #endif
- #include <php_stdint.h>
- #define TIMELIB_OMIT_STDINT 1
- #include "zend.h"
- #define timelib_malloc emalloc
- #define timelib_realloc erealloc
- #define timelib_calloc ecalloc
- #define timelib_strdup estrdup
- #define timelib_free efree
- EOF
- php_enable_libxml=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable LIBXML support" >&5
- $as_echo_n "checking whether to enable LIBXML support... " >&6; }
- # Check whether --enable-libxml was given.
- if test "${enable_libxml+set}" = set; then :
- enableval=$enable_libxml; PHP_LIBXML=$enableval
- else
- PHP_LIBXML=yes
- test "$PHP_ENABLE_ALL" && PHP_LIBXML=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_LIBXML in
- shared,*)
- PHP_LIBXML=`echo "$PHP_LIBXML"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_LIBXML=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_LIBXML_DIR"; then
- php_with_libxml_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
- $as_echo_n "checking libxml2 install dir... " >&6; }
- # Check whether --with-libxml-dir was given.
- if test "${with_libxml_dir+set}" = set; then :
- withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
- else
- PHP_LIBXML_DIR=no
- fi
- ext_output=$PHP_LIBXML_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- if test "$PHP_LIBXML" != "no"; then
- ext_shared=no
- found_libxml=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
- $as_echo_n "checking for xml2-config path... " >&6; }
- if ${ac_cv_php_xml2_config_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- for i in $PHP_LIBXML_DIR /usr/local /usr; do
- if test -x "$i/bin/xml2-config"; then
- ac_cv_php_xml2_config_path="$i/bin/xml2-config"
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
- $as_echo "$ac_cv_php_xml2_config_path" >&6; }
- if test -x "$ac_cv_php_xml2_config_path"; then
- XML2_CONFIG="$ac_cv_php_xml2_config_path"
- libxml_full_version=`$XML2_CONFIG --version`
- ac_IFS=$IFS
- IFS="."
- set $libxml_full_version
- IFS=$ac_IFS
- LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
- if test "$LIBXML_VERSION" -ge "2006011"; then
- found_libxml=yes
- LIBXML_LIBS=`$XML2_CONFIG --libs`
- LIBXML_INCS=`$XML2_CONFIG --cflags`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- if test "$found_libxml" = "no"; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libxml-2.0; then
- if $PKG_CONFIG --atleast-version=2.6.11 libxml-2.0; then
- found_libxml=yes
- LIBXML_LIBS=`$PKG_CONFIG --libs libxml-2.0`
- LIBXML_INCS=`$PKG_CONFIG --cflags-only-I libxml-2.0`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- fi
- if test "$found_libxml" = "yes"; then
- for ac_i in $LIBXML_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LIBXML_SHARED_LIBADD="$LIBXML_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LIBXML_SHARED_LIBADD="-L$ai_p $LIBXML_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LIBXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $LIBXML_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $LIBXML_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
- $as_echo_n "checking whether libxml build works... " >&6; }
- if ${php_cv_libxml_build_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- old_LIBS=$LIBS
- LIBS="
- $LIBXML_SHARED_LIBADD
- $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char xmlInitParser();
- int main() {
- xmlInitParser();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- php_cv_libxml_build_works=yes
- else
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
- $as_echo "$php_cv_libxml_build_works" >&6; }
- if test "$php_cv_libxml_build_works" = "yes"; then
- $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
- fi
- $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
- ext_builddir=ext/libxml
- ext_srcdir=$abs_srcdir/ext/libxml
- ext_dir=ext/libxml
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_LIBXML_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in libxml.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC libxml;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC libxml;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_LIBXML_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in libxml.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_libxml="$shared_objects_libxml $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/libxml.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/libxml.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_libxml"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/libxml.$suffix: $ext_builddir/libxml.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/libxml.$suffix \$(phplibdir)
- $ext_builddir/libxml.$suffix: \$(shared_objects_libxml) \$(LIBXML_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_libxml) \$(LIBXML_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_LIBXML 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_LIBXML_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in libxml.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC libxml;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in libxml.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC libxml;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=libxml
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- for header_file in ext/libxml/php_libxml.h; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- else
- as_fn_error $? "libxml2 not found. Please check your libxml2 installation." "$LINENO" 5
- fi
- fi
- php_with_openssl=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL support" >&5
- $as_echo_n "checking for OpenSSL support... " >&6; }
- # Check whether --with-openssl was given.
- if test "${with_openssl+set}" = set; then :
- withval=$with_openssl; PHP_OPENSSL=$withval
- else
- PHP_OPENSSL=no
- test "$PHP_ENABLE_ALL" && PHP_OPENSSL=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_OPENSSL in
- shared,*)
- PHP_OPENSSL=`echo "$PHP_OPENSSL"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_OPENSSL=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_kerberos=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kerberos support" >&5
- $as_echo_n "checking for Kerberos support... " >&6; }
- # Check whether --with-kerberos was given.
- if test "${with_kerberos+set}" = set; then :
- withval=$with_kerberos; PHP_KERBEROS=$withval
- else
- PHP_KERBEROS=no
- fi
- ext_output=$PHP_KERBEROS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_system_ciphers=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use system default cipher list instead of hardcoded value" >&5
- $as_echo_n "checking whether to use system default cipher list instead of hardcoded value... " >&6; }
- # Check whether --with-system-ciphers was given.
- if test "${with_system_ciphers+set}" = set; then :
- withval=$with_system_ciphers; PHP_SYSTEM_CIPHERS=$withval
- else
- PHP_SYSTEM_CIPHERS=no
- fi
- ext_output=$PHP_SYSTEM_CIPHERS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_OPENSSL" != "no"; then
- ext_builddir=ext/openssl
- ext_srcdir=$abs_srcdir/ext/openssl
- ext_dir=ext/openssl
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_OPENSSL_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in openssl.c xp_ssl.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC openssl;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC openssl;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_OPENSSL_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in openssl.c xp_ssl.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_openssl="$shared_objects_openssl $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/openssl.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/openssl.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_openssl"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/openssl.$suffix: $ext_builddir/openssl.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/openssl.$suffix \$(phplibdir)
- $ext_builddir/openssl.$suffix: \$(shared_objects_openssl) \$(OPENSSL_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_openssl) \$(OPENSSL_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_OPENSSL 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_OPENSSL_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in openssl.c xp_ssl.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC openssl;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in openssl.c xp_ssl.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC openssl;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=openssl
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST OPENSSL_SHARED_LIBADD"
- if test "$PHP_KERBEROS" != "no"; then
- found_kerberos=no
- unset KERBEROS_CFLAGS
- unset KERBEROS_LIBS
- if test -z "$KRB5_CONFIG"; then
- # Extract the first word of "krb5-config", so it can be a program name with args.
- set dummy krb5-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_KRB5_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $KRB5_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin"
- for as_dir in $as_dummy
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
- ;;
- esac
- fi
- KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
- if test -n "$KRB5_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
- $as_echo "$KRB5_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test "$PHP_KERBEROS" != "no" && test -x "$KRB5_CONFIG"; then
- KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi`
- KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
- if test -n "$KERBEROS_LIBS"; then
- found_kerberos=yes
- for ac_i in $KERBEROS_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $KERBEROS_CFLAGS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- fi
- if test "$found_kerberos" = "no"; then
- if test "$PHP_KERBEROS" = "yes"; then
- PHP_KERBEROS="/usr/kerberos /usr/local /usr"
- fi
- for i in $PHP_KERBEROS; do
- if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then
- PHP_KERBEROS_DIR=$i
- break
- fi
- done
- if test "$PHP_KERBEROS_DIR"; then
- found_kerberos=yes
- if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case gssapi_krb5 in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lgssapi_krb5"
- else
- case gssapi_krb5 in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -lgssapi_krb5"
- ;;
- esac
- fi
- ;;
- esac
- case krb5 in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lkrb5"
- else
- case krb5 in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -lkrb5"
- ;;
- esac
- fi
- ;;
- esac
- case k5crypto in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lk5crypto"
- else
- case k5crypto in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -lk5crypto"
- ;;
- esac
- fi
- ;;
- esac
- case com_err in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -lcom_err"
- else
- case com_err in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -lcom_err"
- ;;
- esac
- fi
- ;;
- esac
- if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then
- if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$PHP_KERBEROS_DIR/include
- else
- ep_dir=`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- fi
- fi
- if test "$found_kerberos" = "yes"; then
- :
- fi
- fi
- for ac_func in RAND_egd
- do :
- ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
- if test "x$ac_cv_func_RAND_egd" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_RAND_EGD 1
- _ACEOF
- fi
- done
- found_openssl=no
- unset OPENSSL_INCDIR
- unset OPENSSL_LIBDIR
- test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
- test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
- if test "$PHP_OPENSSL" != "no"; then
- PHP_OPENSSL_DIR=$PHP_OPENSSL
- elif test "$PHP_IMAP_SSL" != "no"; then
- PHP_OPENSSL_DIR=$PHP_IMAP_SSL
- fi
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
- if $PKG_CONFIG --atleast-version=1.0.1 openssl; then
- found_openssl=yes
- OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
- OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
- OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
- else
- as_fn_error $? "OpenSSL version 1.0.1 or greater required." "$LINENO" 5
- fi
- if test -n "$OPENSSL_LIBS"; then
- for ac_i in $OPENSSL_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="$OPENSSL_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- if test -n "$OPENSSL_INCS"; then
- for ac_i in $OPENSSL_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- fi
- if test "$found_openssl" = "no"; then
- if test "$PHP_OPENSSL_DIR" = "yes"; then
- PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
- fi
- for i in $PHP_OPENSSL_DIR; do
- if test -r $i/include/openssl/evp.h; then
- OPENSSL_INCDIR=$i/include
- fi
- if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
- OPENSSL_LIBDIR=$i/$PHP_LIBDIR
- fi
- test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
- done
- if test -z "$OPENSSL_INCDIR"; then
- as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
- fi
- if test -z "$OPENSSL_LIBDIR"; then
- as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
- fi
- old_CPPFLAGS=$CPPFLAGS
- CPPFLAGS=-I$OPENSSL_INCDIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
- $as_echo_n "checking for OpenSSL version... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <openssl/opensslv.h>
- #if OPENSSL_VERSION_NUMBER >= 0x10001001L
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 1.0.1" >&5
- $as_echo ">= 1.0.1" >&6; }
- else
- as_fn_error $? "OpenSSL version 1.0.1 or greater required." "$LINENO" 5
- fi
- rm -f conftest*
- CPPFLAGS=$old_CPPFLAGS
- if test "$OPENSSL_INCDIR" != "/usr/include"; then
- if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$OPENSSL_INCDIR
- else
- ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$OPENSSL_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
- $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
- if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcrypto $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char CRYPTO_free ();
- int
- main ()
- {
- return CRYPTO_free ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_crypto_CRYPTO_free=yes
- else
- ac_cv_lib_crypto_CRYPTO_free=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
- $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
- if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- case crypto in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD"
- else
- case crypto in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lcrypto $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_crypto_CRYPTO_free
- as_fn_error $? "libcrypto not found!" "$LINENO" 5
- fi
- old_LIBS=$LIBS
- LIBS="$LIBS -lcrypto"
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$OPENSSL_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
- $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
- if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lssl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char SSL_CTX_set_ssl_version ();
- int
- main ()
- {
- return SSL_CTX_set_ssl_version ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
- else
- ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
- $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
- if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- found_openssl=yes
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
- as_fn_error $? "libssl not found!" "$LINENO" 5
- fi
- LIBS=$old_LIBS
- case ssl in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="-lssl $OPENSSL_SHARED_LIBADD"
- else
- case ssl in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lssl $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- case crypto in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="-lcrypto $OPENSSL_SHARED_LIBADD"
- else
- case crypto in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lcrypto $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
- if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$OPENSSL_LIBDIR
- else
- ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- OPENSSL_SHARED_LIBADD="-L$ai_p $OPENSSL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && OPENSSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $OPENSSL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- if test "$found_openssl" = "yes"; then
- OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
- $as_echo "#define HAVE_OPENSSL_EXT 1" >>confdefs.h
- else
- as_fn_error $? "OpenSSL check failed. Please check config.log for more information." "$LINENO" 5
- fi
- if test "$PHP_SYSTEM_CIPHERS" != "no"; then
- $as_echo "#define USE_OPENSSL_SYSTEM_CIPHERS 1" >>confdefs.h
- fi
- fi
- php_with_pcre_regex=yes
- # Check whether --with-pcre-regex was given.
- if test "${with_pcre_regex+set}" = set; then :
- withval=$with_pcre_regex; PHP_PCRE_REGEX=$withval
- else
- PHP_PCRE_REGEX=yes
- fi
- ext_output=$PHP_PCRE_REGEX
- php_with_pcre_jit=yes
- # Check whether --with-pcre-jit was given.
- if test "${with_pcre_jit+set}" = set; then :
- withval=$with_pcre_jit; PHP_PCRE_JIT=$withval
- else
- PHP_PCRE_JIT=yes
- fi
- ext_output=$PHP_PCRE_JIT
- if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then
- if test "$PHP_PCRE_REGEX" = "/usr"; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -x "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE2 10.30 or greater" >&5
- $as_echo_n "checking for PCRE2 10.30 or greater... " >&6; }
- if $PKG_CONFIG --atleast-version 10.30 libpcre2-8; then
- PCRE2_VER=`$PKG_CONFIG --modversion libpcre2-8`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE2_VER" >&5
- $as_echo "$PCRE2_VER" >&6; }
- else
- as_fn_error $? "PCRE2 version 10.30 or later is required to compile php with PCRE2 support" "$LINENO" 5
- fi
- PCRE2_LIB=`$PKG_CONFIG --libs libpcre2-8`
- PCRE2_INC=`$PKG_CONFIG --cflags libpcre2-8`
- fi
- fi
- if test -z "$PCRE2_LIB"; then
- PCRE2_CONF=$PHP_PCRE_REGEX/bin/pcre2-config
- if test -x "$PCRE2_CONF"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE2 10.30 or greater" >&5
- $as_echo_n "checking for PCRE2 10.30 or greater... " >&6; }
- PCRE2_VER=`$PCRE2_CONF --version`
- if test "`echo $PCRE2_VER | $SED 's/\([0-9]*\)\.\([0-9]*\).*/\1\2/g'`" -lt "1030"; then
- as_fn_error $? "PCRE2 version 10.30 or later is required to compile php with PCRE2 support" "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE2_VER" >&5
- $as_echo "$PCRE2_VER" >&6; }
- fi
- PCRE2_LIB=`$PCRE2_CONF --libs8`
- PCRE2_INC=`$PCRE2_CONF --cflags`
- else
- as_fn_error $? "Couldn't find pcre2-config" "$LINENO" 5
- fi
- fi
- for ac_i in $PCRE2_INC; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $PCRE2_LIB; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- ="$ -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- ;;
- esac
- done
- $as_echo "#define PCRE2_CODE_UNIT_WIDTH 8" >>confdefs.h
- $as_echo "#define HAVE_PCRE 1" >>confdefs.h
- if test "$PHP_PCRE_JIT" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JIT support in PCRE2" >&5
- $as_echo_n "checking for JIT support in PCRE2... " >&6; }
- if test "$cross_compiling" = yes; then :
- case $host_cpu in
- arm*|i3456786|x86_64|mips*|powerpc*|sparc)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_PCRE_JIT_SUPPORT 1" >>confdefs.h
- ;;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- ;;
- esac
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pcre2.h>
- #include <stdlib.h>
- int main(void) {
- uint32_t have_jit;
- pcre2_config_8(PCRE2_CONFIG_JIT, &have_jit);
- return !have_jit;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_PCRE_JIT_SUPPORT 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- ext_builddir=ext/pcre
- ext_srcdir=$abs_srcdir/ext/pcre
- ext_dir=ext/pcre
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
- PHP_PCRE_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_pcre.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pcre;$ext_dir"
- if test "no" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pcre;$ext_dir"
- fi
- else
- if test "no" = "shared" || test "no" = "yes"; then
- PHP_PCRE_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_pcre.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pcre="$shared_objects_pcre $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcre.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcre.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pcre.$suffix: $ext_builddir/pcre.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pcre.$suffix \$(phplibdir)
- $ext_builddir/pcre.$suffix: \$(shared_objects_pcre) \$(PCRE_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pcre) \$(PCRE_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PCRE 1
- _ACEOF
- fi
- fi
- if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
- PHP_PCRE_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_pcre.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pcre;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_pcre.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pcre;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pcre
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- header_path=ext/pcre
- for header_file in php_pcre.h; do
- hp_hf="$header_path/$header_file"
- unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
- fi
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE library to use" >&5
- $as_echo_n "checking for PCRE library to use... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
- $as_echo "bundled" >&6; }
- pcrelib_sources="pcre2lib/pcre2_auto_possess.c pcre2lib/pcre2_chartables.c pcre2lib/pcre2_compile.c \
- pcre2lib/pcre2_config.c pcre2lib/pcre2_context.c pcre2lib/pcre2_dfa_match.c pcre2lib/pcre2_error.c \
- pcre2lib/pcre2_jit_compile.c pcre2lib/pcre2_maketables.c pcre2lib/pcre2_match.c pcre2lib/pcre2_match_data.c \
- pcre2lib/pcre2_newline.c pcre2lib/pcre2_ord2utf.c pcre2lib/pcre2_pattern_info.c pcre2lib/pcre2_serialize.c \
- pcre2lib/pcre2_string_utils.c pcre2lib/pcre2_study.c pcre2lib/pcre2_substitute.c pcre2lib/pcre2_substring.c \
- pcre2lib/pcre2_tables.c pcre2lib/pcre2_ucd.c pcre2lib/pcre2_valid_utf.c pcre2lib/pcre2_xclass.c \
- pcre2lib/pcre2_find_bracket.c pcre2lib/pcre2_convert.c pcre2lib/pcre2_extuni.c"
- PHP_PCRE_CFLAGS="-DHAVE_CONFIG_H -I@ext_srcdir@/pcre2lib -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
- ext_builddir=ext/pcre
- ext_srcdir=$abs_srcdir/ext/pcre
- ext_dir=ext/pcre
- ac_extra=`echo "$PHP_PCRE_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
- PHP_PCRE_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $pcrelib_sources php_pcre.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pcre;$ext_dir"
- if test "no" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pcre;$ext_dir"
- fi
- else
- if test "no" = "shared" || test "no" = "yes"; then
- PHP_PCRE_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in $pcrelib_sources php_pcre.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pcre="$shared_objects_pcre $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcre.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcre.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcre"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pcre.$suffix: $ext_builddir/pcre.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pcre.$suffix \$(phplibdir)
- $ext_builddir/pcre.$suffix: \$(shared_objects_pcre) \$(PCRE_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pcre) \$(PCRE_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PCRE 1
- _ACEOF
- fi
- fi
- if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
- PHP_PCRE_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $pcrelib_sources php_pcre.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pcre;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $pcrelib_sources php_pcre.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pcre;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pcre
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir/pcre2lib"
- header_path=ext/pcre
- for header_file in php_pcre.h pcre2lib/; do
- hp_hf="$header_path/$header_file"
- unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
- fi
- done
- $as_echo "#define HAVE_BUNDLED_PCRE 1" >>confdefs.h
- $as_echo "#define PCRE2_CODE_UNIT_WIDTH 8" >>confdefs.h
- if test "$PHP_PCRE_REGEX" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PCRE JIT functionality" >&5
- $as_echo_n "checking whether to enable PCRE JIT functionality... " >&6; }
- if test "$PHP_PCRE_JIT" != "no"; then
- $as_echo "#define HAVE_PCRE_JIT_SUPPORT 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- fi
- php_with_pcre_valgrind=no
- # Check whether --with-pcre-valgrind was given.
- if test "${with_pcre_valgrind+set}" = set; then :
- withval=$with_pcre_valgrind; PHP_PCRE_VALGRIND=$withval
- else
- PHP_PCRE_VALGRIND=no
- fi
- ext_output=$PHP_PCRE_VALGRIND
- if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PHP is going to be linked with an external PCRE, --with-pcre-valgrind has no effect" >&5
- $as_echo "$as_me: WARNING: PHP is going to be linked with an external PCRE, --with-pcre-valgrind has no effect" >&2;}
- else
- if test "$PHP_PCRE_VALGRIND" != "no"; then
- PHP_PCRE_VALGRIND_INCDIR=
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Valgrind headers location" >&5
- $as_echo_n "checking for Valgrind headers location... " >&6; }
- for i in $PHP_PCRE_VALGRIND $PHP_PCRE_VALGRIND/include $PHP_PCRE_VALGRIND/local/include /usr/include /usr/local/include; do
- if test -f $i/valgrind/memcheck.h
- then
- PHP_PCRE_VALGRIND_INCDIR=$i
- break
- fi
- done
- if test -z "$PHP_PCRE_VALGRIND_INCDIR"
- then
- as_fn_error $? "Could not find valgrind/memcheck.h" "$LINENO" 5
- else
- $as_echo "#define HAVE_PCRE_VALGRIND_SUPPORT 1" >>confdefs.h
- if test "$PHP_PCRE_VALGRIND_INCDIR" != "/usr/include"; then
- if test -z "$PHP_PCRE_VALGRIND_INCDIR" || echo "$PHP_PCRE_VALGRIND_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_PCRE_VALGRIND_INCDIR
- else
- ep_dir=`echo $PHP_PCRE_VALGRIND_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_PCRE_VALGRIND_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_PCRE_VALGRIND_INCDIR" >&5
- $as_echo "$PHP_PCRE_VALGRIND_INCDIR" >&6; }
- fi
- fi
- fi
- php_with_sqlite3=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the SQLite3 extension" >&5
- $as_echo_n "checking whether to enable the SQLite3 extension... " >&6; }
- # Check whether --with-sqlite3 was given.
- if test "${with_sqlite3+set}" = set; then :
- withval=$with_sqlite3; PHP_SQLITE3=$withval
- else
- PHP_SQLITE3=yes
- test "$PHP_ENABLE_ALL" && PHP_SQLITE3=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SQLITE3 in
- shared,*)
- PHP_SQLITE3=`echo "$PHP_SQLITE3"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SQLITE3=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test $PHP_SQLITE3 != "no"; then
- sqlite3_extra_sources=""
- PHP_SQLITE3_CFLAGS=" -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 "
- if test -z "$enable_maintainer_zts"; then
- if test -f "$phpincludedir/main/php_config.h"; then
- ZTS=`grep '#define ZTS' $phpincludedir/main/php_config.h|$SED 's/#define ZTS//'`
- if test "$ZTS" -eq "1"; then
- enable_maintainer_zts="yes"
- fi
- fi
- fi
- if test $PHP_SQLITE3 != "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 files in default path" >&5
- $as_echo_n "checking for sqlite3 files in default path... " >&6; }
- for i in $PHP_SQLITE3 /usr/local /usr; do
- if test -r $i/include/sqlite3.h; then
- SQLITE3_DIR=$i
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
- $as_echo "found in $i" >&6; }
- break
- fi
- done
- if test -z "$SQLITE3_DIR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- as_fn_error $? "Please reinstall the sqlite distribution from http://www.sqlite.org" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite 3.3.9+" >&5
- $as_echo_n "checking for SQLite 3.3.9+... " >&6; }
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$SQLITE3_DIR/$PHP_LIBDIR -lm
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5
- $as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; }
- if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsqlite3 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char sqlite3_prepare_v2 ();
- int
- main ()
- {
- return sqlite3_prepare_v2 ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes
- else
- ac_cv_lib_sqlite3_sqlite3_prepare_v2=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5
- $as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; }
- if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
- $as_echo "found" >&6; }
- if test "$ext_shared" = "yes"; then
- SQLITE3_SHARED_LIBADD="-lsqlite3 $SQLITE3_SHARED_LIBADD"
- if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then
- if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$SQLITE3_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$SQLITE3_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- SQLITE3_SHARED_LIBADD="-L$ai_p $SQLITE3_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && SQLITE3_SHARED_LIBADD="$ld_runpath_switch$ai_p $SQLITE3_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$SQLITE3_DIR/$PHP_LIBDIR"; then
- if test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$SQLITE3_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$SQLITE3_DIR/$PHP_LIBDIR" || echo "$SQLITE3_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$SQLITE3_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $SQLITE3_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$SQLITE3_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case sqlite3 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsqlite3 $LIBS"
- ;;
- esac
- fi
- if test "$SQLITE3_DIR/include" != "/usr/include"; then
- if test -z "$SQLITE3_DIR/include" || echo "$SQLITE3_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$SQLITE3_DIR/include
- else
- ep_dir=`echo $SQLITE3_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$SQLITE3_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_sqlite3_sqlite3_prepare_v2
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- as_fn_error $? "Please install SQLite 3.3.9 first or check libsqlite3 is present" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5
- $as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; }
- if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsqlite3 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char sqlite3_key ();
- int
- main ()
- {
- return sqlite3_key ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_sqlite3_sqlite3_key=yes
- else
- ac_cv_lib_sqlite3_sqlite3_key=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
- $as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
- if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_SQLITE3_KEY 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_sqlite3_sqlite3_key
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_table_name in -lsqlite3" >&5
- $as_echo_n "checking for sqlite3_column_table_name in -lsqlite3... " >&6; }
- if ${ac_cv_lib_sqlite3_sqlite3_column_table_name+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsqlite3 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char sqlite3_column_table_name ();
- int
- main ()
- {
- return sqlite3_column_table_name ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_sqlite3_sqlite3_column_table_name=yes
- else
- ac_cv_lib_sqlite3_sqlite3_column_table_name=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_table_name" >&5
- $as_echo "$ac_cv_lib_sqlite3_sqlite3_column_table_name" >&6; }
- if test "x$ac_cv_lib_sqlite3_sqlite3_column_table_name" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define SQLITE_ENABLE_COLUMN_METADATA 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_sqlite3_sqlite3_column_table_name
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_errstr in -lsqlite3" >&5
- $as_echo_n "checking for sqlite3_errstr in -lsqlite3... " >&6; }
- if ${ac_cv_lib_sqlite3_sqlite3_errstr+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsqlite3 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char sqlite3_errstr ();
- int
- main ()
- {
- return sqlite3_errstr ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_sqlite3_sqlite3_errstr=yes
- else
- ac_cv_lib_sqlite3_sqlite3_errstr=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_errstr" >&5
- $as_echo "$ac_cv_lib_sqlite3_sqlite3_errstr" >&6; }
- if test "x$ac_cv_lib_sqlite3_sqlite3_errstr" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_SQLITE3_ERRSTR 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_sqlite3_sqlite3_errstr
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5
- $as_echo_n "checking for sqlite3_load_extension in -lsqlite3... " >&6; }
- if ${ac_cv_lib_sqlite3_sqlite3_load_extension+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsqlite3 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char sqlite3_load_extension ();
- int
- main ()
- {
- return sqlite3_load_extension ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_sqlite3_sqlite3_load_extension=yes
- else
- ac_cv_lib_sqlite3_sqlite3_load_extension=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
- $as_echo "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
- if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_sqlite3_sqlite3_load_extension
- $as_echo "#define SQLITE_OMIT_LOAD_EXTENSION 1" >>confdefs.h
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking bundled sqlite3 library" >&5
- $as_echo_n "checking bundled sqlite3 library... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- sqlite3_extra_sources="libsqlite/sqlite3.c"
- if test "$enable_maintainer_zts" = "yes"; then
- threadsafe_flags="-DSQLITE_THREADSAFE=1"
- else
- threadsafe_flags="-DSQLITE_THREADSAFE=0"
- fi
- if test "$ZEND_DEBUG" = "yes"; then
- debug_flags="-DSQLITE_DEBUG=1"
- fi
- other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS4=1 -DSQLITE_ENABLE_FTS5=1 -DSQLITE_ENABLE_JSON1=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
- if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then
- other_flags="$other_flags -DSQLITE_ENABLE_ICU=1"
- fi
- $as_echo "#define HAVE_SQLITE3_ERRSTR 1" >>confdefs.h
- PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags"
- for header_file in ext/sqlite3/libsqlite/sqlite3.h; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- fi
- $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
- sqlite3_sources="sqlite3.c $sqlite3_extra_sources"
- ext_builddir=ext/sqlite3
- ext_srcdir=$abs_srcdir/ext/sqlite3
- ext_dir=ext/sqlite3
- ac_extra=`echo "$PHP_SQLITE3_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_SQLITE3_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $sqlite3_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC sqlite3;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite3;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_SQLITE3_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in $sqlite3_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_sqlite3="$shared_objects_sqlite3 $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sqlite3.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/sqlite3.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sqlite3"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/sqlite3.$suffix: $ext_builddir/sqlite3.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/sqlite3.$suffix \$(phplibdir)
- $ext_builddir/sqlite3.$suffix: \$(shared_objects_sqlite3) \$(SQLITE3_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_sqlite3) \$(SQLITE3_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_SQLITE3 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_SQLITE3_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $sqlite3_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC sqlite3;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $sqlite3_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC sqlite3;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=sqlite3
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir/libsqlite"
- PHP_VAR_SUBST="$PHP_VAR_SUBST SQLITE3_SHARED_LIBADD"
- fi
- php_with_zlib=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support" >&5
- $as_echo_n "checking for ZLIB support... " >&6; }
- # Check whether --with-zlib was given.
- if test "${with_zlib+set}" = set; then :
- withval=$with_zlib; PHP_ZLIB=$withval
- else
- PHP_ZLIB=no
- test "$PHP_ENABLE_ALL" && PHP_ZLIB=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_ZLIB in
- shared,*)
- PHP_ZLIB=`echo "$PHP_ZLIB"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_ZLIB=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_zlib_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the location of ZLIB install directory is defined" >&5
- $as_echo_n "checking if the location of ZLIB install directory is defined... " >&6; }
- # Check whether --with-zlib-dir was given.
- if test "${with_zlib_dir+set}" = set; then :
- withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
- else
- PHP_ZLIB_DIR=no
- fi
- ext_output=$PHP_ZLIB_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_ZLIB" != "no" || test "$PHP_ZLIB_DIR" != "no"; then
- ext_builddir=ext/zlib
- ext_srcdir=$abs_srcdir/ext/zlib
- ext_dir=ext/zlib
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_ZLIB_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC zlib;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC zlib;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_ZLIB_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_zlib="$shared_objects_zlib $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zlib.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/zlib.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zlib"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/zlib.$suffix: $ext_builddir/zlib.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/zlib.$suffix \$(phplibdir)
- $ext_builddir/zlib.$suffix: \$(shared_objects_zlib) \$(ZLIB_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_zlib) \$(ZLIB_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_ZLIB 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_ZLIB_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC zlib;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in zlib.c zlib_fopen_wrapper.c zlib_filter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC zlib;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=zlib
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST ZLIB_SHARED_LIBADD"
- if test "$PHP_ZLIB" != "yes" -a "$PHP_ZLIB" != "no"; then
- if test -f $PHP_ZLIB/include/zlib/zlib.h; then
- ZLIB_DIR=$PHP_ZLIB
- ZLIB_INCDIR=$ZLIB_DIR/include/zlib
- elif test -f $PHP_ZLIB/include/zlib.h; then
- ZLIB_DIR=$PHP_ZLIB
- ZLIB_INCDIR=$ZLIB_DIR/include
- fi
- else
- for i in /usr/local /usr $PHP_ZLIB_DIR; do
- if test -f $i/include/zlib/zlib.h; then
- ZLIB_DIR=$i
- ZLIB_INCDIR=$i/include/zlib
- elif test -f $i/include/zlib.h; then
- ZLIB_DIR=$i
- ZLIB_INCDIR=$i/include
- fi
- done
- fi
- if test -z "$ZLIB_DIR"; then
- as_fn_error $? "Cannot find zlib" "$LINENO" 5
- fi
- case $ZLIB_DIR in
- /usr) ac_extra= ;;
- *) ac_extra=-L$ZLIB_DIR/$PHP_LIBDIR ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib version >= 1.2.0.4" >&5
- $as_echo_n "checking for zlib version >= 1.2.0.4... " >&6; }
- ZLIB_VERSION=`$EGREP "define ZLIB_VERSION" $ZLIB_INCDIR/zlib.h | $SED -e 's/[^0-9\.]//g'`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZLIB_VERSION" >&5
- $as_echo "$ZLIB_VERSION" >&6; }
- if test `echo $ZLIB_VERSION | $SED -e 's/[^0-9]/ /g' | $AWK '{print $1*1000000 + $2*10000 + $3*100 + $4}'` -lt 1020004; then
- as_fn_error $? "zlib version greater or equal to 1.2.0.4 required" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $ac_extra
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
- $as_echo_n "checking for gzgets in -lz... " >&6; }
- if ${ac_cv_lib_z_gzgets+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lz $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gzgets ();
- int
- main ()
- {
- return gzgets ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_z_gzgets=yes
- else
- ac_cv_lib_z_gzgets=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
- $as_echo "$ac_cv_lib_z_gzgets" >&6; }
- if test "x$ac_cv_lib_z_gzgets" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_z_gzgets
- as_fn_error $? "ZLIB extension requires gzgets in zlib" "$LINENO" 5
- fi
- if test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$ZLIB_DIR/$PHP_LIBDIR" || echo "$ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$ZLIB_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ZLIB_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- ZLIB_SHARED_LIBADD="-L$ai_p $ZLIB_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && ZLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZLIB_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- PHP_ZLIB_DIR=$ZLIB_DIR
- case z in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- ZLIB_SHARED_LIBADD="-lz $ZLIB_SHARED_LIBADD"
- else
- case z in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lz $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- if test "$ZLIB_INCDIR" != "/usr/include"; then
- if test -z "$ZLIB_INCDIR" || echo "$ZLIB_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$ZLIB_INCDIR
- else
- ep_dir=`echo $ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ZLIB_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- fi
- php_enable_bcmath=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable bc style precision math functions" >&5
- $as_echo_n "checking whether to enable bc style precision math functions... " >&6; }
- # Check whether --enable-bcmath was given.
- if test "${enable_bcmath+set}" = set; then :
- enableval=$enable_bcmath; PHP_BCMATH=$enableval
- else
- PHP_BCMATH=no
- test "$PHP_ENABLE_ALL" && PHP_BCMATH=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_BCMATH in
- shared,*)
- PHP_BCMATH=`echo "$PHP_BCMATH"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_BCMATH=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_BCMATH" != "no"; then
- ext_builddir=ext/bcmath
- ext_srcdir=$abs_srcdir/ext/bcmath
- ext_dir=ext/bcmath
- ac_extra=`echo "-I@ext_srcdir@/libbcmath/src -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_BCMATH_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in bcmath.c \
- libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/sub.c \
- libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
- libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
- libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC bcmath;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC bcmath;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_BCMATH_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in bcmath.c \
- libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/sub.c \
- libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
- libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
- libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_bcmath="$shared_objects_bcmath $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/bcmath.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/bcmath.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bcmath"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/bcmath.$suffix: $ext_builddir/bcmath.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/bcmath.$suffix \$(phplibdir)
- $ext_builddir/bcmath.$suffix: \$(shared_objects_bcmath) \$(BCMATH_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_bcmath) \$(BCMATH_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_BCMATH 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_BCMATH_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in bcmath.c \
- libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/sub.c \
- libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
- libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
- libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC bcmath;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in bcmath.c \
- libbcmath/src/add.c libbcmath/src/div.c libbcmath/src/init.c libbcmath/src/neg.c libbcmath/src/outofmem.c libbcmath/src/raisemod.c libbcmath/src/sub.c \
- libbcmath/src/compare.c libbcmath/src/divmod.c libbcmath/src/int2num.c libbcmath/src/num2long.c libbcmath/src/output.c libbcmath/src/recmul.c \
- libbcmath/src/sqrt.c libbcmath/src/zero.c libbcmath/src/debug.c libbcmath/src/doaddsub.c libbcmath/src/nearzero.c libbcmath/src/num2str.c libbcmath/src/raise.c \
- libbcmath/src/rmzero.c libbcmath/src/str2num.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC bcmath;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=bcmath
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir/libbcmath/src"
- $as_echo "#define HAVE_BCMATH 1" >>confdefs.h
- fi
- php_with_bz2=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 support" >&5
- $as_echo_n "checking for BZip2 support... " >&6; }
- # Check whether --with-bz2 was given.
- if test "${with_bz2+set}" = set; then :
- withval=$with_bz2; PHP_BZ2=$withval
- else
- PHP_BZ2=no
- test "$PHP_ENABLE_ALL" && PHP_BZ2=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_BZ2 in
- shared,*)
- PHP_BZ2=`echo "$PHP_BZ2"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_BZ2=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_BZ2" != "no"; then
- if test -r $PHP_BZ2/include/bzlib.h; then
- BZIP_DIR=$PHP_BZ2
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZip2 in default path" >&5
- $as_echo_n "checking for BZip2 in default path... " >&6; }
- for i in /usr/local /usr; do
- if test -r $i/include/bzlib.h; then
- BZIP_DIR=$i
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
- $as_echo "found in $i" >&6; }
- break
- fi
- done
- fi
- if test -z "$BZIP_DIR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- as_fn_error $? "Please reinstall the BZip2 distribution" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$BZIP_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzerror in -lbz2" >&5
- $as_echo_n "checking for BZ2_bzerror in -lbz2... " >&6; }
- if ${ac_cv_lib_bz2_BZ2_bzerror+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbz2 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char BZ2_bzerror ();
- int
- main ()
- {
- return BZ2_bzerror ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bz2_BZ2_bzerror=yes
- else
- ac_cv_lib_bz2_BZ2_bzerror=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzerror" >&5
- $as_echo "$ac_cv_lib_bz2_BZ2_bzerror" >&6; }
- if test "x$ac_cv_lib_bz2_BZ2_bzerror" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$BZIP_DIR/include" != "/usr/include"; then
- if test -z "$BZIP_DIR/include" || echo "$BZIP_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$BZIP_DIR/include
- else
- ep_dir=`echo $BZIP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$BZIP_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- BZ2_SHARED_LIBADD="-lbz2 $BZ2_SHARED_LIBADD"
- if test -n "$BZIP_DIR/$PHP_LIBDIR"; then
- if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$BZIP_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$BZIP_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- BZ2_SHARED_LIBADD="-L$ai_p $BZ2_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && BZ2_SHARED_LIBADD="$ld_runpath_switch$ai_p $BZ2_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$BZIP_DIR/$PHP_LIBDIR"; then
- if test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$BZIP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$BZIP_DIR/$PHP_LIBDIR" || echo "$BZIP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$BZIP_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $BZIP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$BZIP_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case bz2 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lbz2 $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_BZ2 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_bz2_BZ2_bzerror
- as_fn_error $? "bz2 module requires libbz2 >= 1.0.0" "$LINENO" 5
- fi
- ext_builddir=ext/bz2
- ext_srcdir=$abs_srcdir/ext/bz2
- ext_dir=ext/bz2
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_BZ2_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in bz2.c bz2_filter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC bz2;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC bz2;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_BZ2_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in bz2.c bz2_filter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_bz2="$shared_objects_bz2 $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/bz2.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/bz2.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_bz2"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/bz2.$suffix: $ext_builddir/bz2.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/bz2.$suffix \$(phplibdir)
- $ext_builddir/bz2.$suffix: \$(shared_objects_bz2) \$(BZ2_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_bz2) \$(BZ2_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_BZ2 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_BZ2_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in bz2.c bz2_filter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC bz2;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in bz2.c bz2_filter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC bz2;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=bz2
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST BZ2_SHARED_LIBADD"
- fi
- php_enable_calendar=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable calendar conversion support" >&5
- $as_echo_n "checking whether to enable calendar conversion support... " >&6; }
- # Check whether --enable-calendar was given.
- if test "${enable_calendar+set}" = set; then :
- enableval=$enable_calendar; PHP_CALENDAR=$enableval
- else
- PHP_CALENDAR=no
- test "$PHP_ENABLE_ALL" && PHP_CALENDAR=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_CALENDAR in
- shared,*)
- PHP_CALENDAR=`echo "$PHP_CALENDAR"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_CALENDAR=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_CALENDAR" = "yes"; then
- $as_echo "#define HAVE_CALENDAR 1" >>confdefs.h
- ext_builddir=ext/calendar
- ext_srcdir=$abs_srcdir/ext/calendar
- ext_dir=ext/calendar
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_CALENDAR_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC calendar;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC calendar;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_CALENDAR_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_calendar="$shared_objects_calendar $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/calendar.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/calendar.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_calendar"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/calendar.$suffix: $ext_builddir/calendar.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/calendar.$suffix \$(phplibdir)
- $ext_builddir/calendar.$suffix: \$(shared_objects_calendar) \$(CALENDAR_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_calendar) \$(CALENDAR_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_CALENDAR 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_CALENDAR_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC calendar;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in calendar.c dow.c french.c gregor.c jewish.c julian.c easter.c cal_unix.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC calendar;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=calendar
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- fi
- php_enable_ctype=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ctype functions" >&5
- $as_echo_n "checking whether to enable ctype functions... " >&6; }
- # Check whether --enable-ctype was given.
- if test "${enable_ctype+set}" = set; then :
- enableval=$enable_ctype; PHP_CTYPE=$enableval
- else
- PHP_CTYPE=yes
- test "$PHP_ENABLE_ALL" && PHP_CTYPE=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_CTYPE in
- shared,*)
- PHP_CTYPE=`echo "$PHP_CTYPE"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_CTYPE=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_CTYPE" != "no"; then
- $as_echo "#define HAVE_CTYPE 1" >>confdefs.h
- ext_builddir=ext/ctype
- ext_srcdir=$abs_srcdir/ext/ctype
- ext_dir=ext/ctype
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_CTYPE_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in ctype.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC ctype;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC ctype;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_CTYPE_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in ctype.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_ctype="$shared_objects_ctype $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ctype.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/ctype.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ctype"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/ctype.$suffix: $ext_builddir/ctype.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/ctype.$suffix \$(phplibdir)
- $ext_builddir/ctype.$suffix: \$(shared_objects_ctype) \$(CTYPE_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_ctype) \$(CTYPE_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_CTYPE 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_CTYPE_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in ctype.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC ctype;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in ctype.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC ctype;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=ctype
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- fi
- php_with_curl=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL support" >&5
- $as_echo_n "checking for cURL support... " >&6; }
- # Check whether --with-curl was given.
- if test "${with_curl+set}" = set; then :
- withval=$with_curl; PHP_CURL=$withval
- else
- PHP_CURL=no
- test "$PHP_ENABLE_ALL" && PHP_CURL=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_CURL in
- shared,*)
- PHP_CURL=`echo "$PHP_CURL"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_CURL=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_CURL" != "no"; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -x "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl.pc" >&5
- $as_echo_n "checking for libcurl.pc... " >&6; }
- if test "$PHP_CURL" = "yes" -o "$PHP_CURL" = "/usr"; then
- PKNAME=libcurl
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default path" >&5
- $as_echo "using default path" >&6; }
- elif test -r $PHP_CURL/$PHP_LIBDIR/pkgconfig/libcurl.pc; then
- PKNAME=$PHP_CURL/$PHP_LIBDIR/pkgconfig/libcurl.pc
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PKNAME" >&5
- $as_echo "using $PKNAME" >&6; }
- elif test -r $PHP_CURL/lib/pkgconfig/libcurl.pc; then
- PKNAME=$PHP_CURL/lib/pkgconfig/libcurl.pc
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $PKNAME" >&5
- $as_echo "using $PKNAME" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find libcurl.pc. Try without $PHP_CURL or set PKG_CONFIG_PATH" >&5
- $as_echo "$as_me: WARNING: Could not find libcurl.pc. Try without $PHP_CURL or set PKG_CONFIG_PATH" >&2;}
- fi
- fi
- if test -n "$PKNAME"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL 7.15.5 or greater" >&5
- $as_echo_n "checking for cURL 7.15.5 or greater... " >&6; }
- if $PKG_CONFIG --atleast-version 7.15.5 $PKNAME; then
- curl_version_full=`$PKG_CONFIG --modversion $PKNAME`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_version_full" >&5
- $as_echo "$curl_version_full" >&6; }
- else
- as_fn_error $? "cURL version 7.15.5 or later is required to compile php with cURL support" "$LINENO" 5
- fi
- CURL_LIBS=`$PKG_CONFIG --libs $PKNAME`
- CURL_INCL=`$PKG_CONFIG --cflags $PKNAME`
- CURL_SSL=`$PKG_CONFIG --variable=supported_features $PKNAME| $EGREP SSL`
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fallback: search for curl headers and curl-config" >&5
- $as_echo "$as_me: WARNING: Fallback: search for curl headers and curl-config" >&2;}
- if test -r $PHP_CURL/include/curl/easy.h; then
- CURL_DIR=$PHP_CURL
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL in default path" >&5
- $as_echo_n "checking for cURL in default path... " >&6; }
- for i in /usr/local /usr; do
- if test -r $i/include/curl/easy.h; then
- CURL_DIR=$i
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
- $as_echo "found in $i" >&6; }
- break
- fi
- done
- fi
- if test -z "$CURL_DIR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- as_fn_error $? "Please reinstall the libcurl distribution -
- easy.h should be in <curl-dir>/include/curl/" "$LINENO" 5
- fi
- CURL_CONFIG="curl-config"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cURL 7.15.5 or greater" >&5
- $as_echo_n "checking for cURL 7.15.5 or greater... " >&6; }
- if ${CURL_DIR}/bin/curl-config --libs > /dev/null 2>&1; then
- CURL_CONFIG=${CURL_DIR}/bin/curl-config
- else
- if ${CURL_DIR}/curl-config --libs > /dev/null 2>&1; then
- CURL_CONFIG=${CURL_DIR}/curl-config
- fi
- fi
- curl_version_full=`$CURL_CONFIG --version`
- curl_version=`echo ${curl_version_full} | sed -e 's/libcurl //' | $AWK 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
- if test "$curl_version" -ge 7015005; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_version_full" >&5
- $as_echo "$curl_version_full" >&6; }
- CURL_LIBS=`$CURL_CONFIG --libs`
- CURL_INCL=`$CURL_CONFIG --cflags`
- CURL_SSL=`$CURL_CONFIG --feature | $EGREP SSL`
- else
- as_fn_error $? "cURL version 7.15.5 or later is required to compile php with cURL support" "$LINENO" 5
- fi
- fi
- for ac_i in $CURL_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- CURL_SHARED_LIBADD="$CURL_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- CURL_SHARED_LIBADD="-L$ai_p $CURL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && CURL_SHARED_LIBADD="$ld_runpath_switch$ai_p $CURL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $CURL_INCL; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL support in libcurl" >&5
- $as_echo_n "checking for SSL support in libcurl... " >&6; }
- if test -n "$CURL_SSL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_CURL_SSL 1" >>confdefs.h
- save_CFLAGS="$CFLAGS"
- CFLAGS=$CURL_INCL
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS=$CURL_LIBS
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
- $as_echo_n "checking how to run the C preprocessor... " >&6; }
- # On Suns, sometimes $CPP names a directory.
- if test -n "$CPP" && test -d "$CPP"; then
- CPP=
- fi
- if test -z "$CPP"; then
- if ${ac_cv_prog_CPP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # Double quotes because CPP needs to be expanded
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
- do
- ac_preproc_ok=false
- for ac_c_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- break
- fi
- done
- ac_cv_prog_CPP=$CPP
- fi
- CPP=$ac_cv_prog_CPP
- else
- ac_cv_prog_CPP=$CPP
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
- $as_echo "$CPP" >&6; }
- ac_preproc_ok=false
- for ac_c_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_c_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl support in libcurl" >&5
- $as_echo_n "checking for openssl support in libcurl... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <strings.h>
- #include <curl/curl.h>
- int main(int argc, char *argv[])
- {
- curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
- if (data && data->ssl_version && *data->ssl_version) {
- const char *ptr = data->ssl_version;
- while(*ptr == ' ') ++ptr;
- return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1);
- }
- return 1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- for ac_header in openssl/crypto.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
- if test "x$ac_cv_header_openssl_crypto_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OPENSSL_CRYPTO_H 1
- _ACEOF
- $as_echo "#define HAVE_CURL_OPENSSL 1" >>confdefs.h
- fi
- done
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls support in libcurl" >&5
- $as_echo_n "checking for gnutls support in libcurl... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <strings.h>
- #include <curl/curl.h>
- int main(int argc, char *argv[])
- {
- curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
- if (data && data->ssl_version && *data->ssl_version) {
- const char *ptr = data->ssl_version;
- while(*ptr == ' ') ++ptr;
- return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1);
- }
- return 1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default"
- if test "x$ac_cv_header_gcrypt_h" = xyes; then :
- $as_echo "#define HAVE_CURL_GNUTLS 1" >>confdefs.h
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- CFLAGS="$save_CFLAGS"
- LDFLAGS="$save_LDFLAGS"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $CURL_LIBS
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_perform in -lcurl" >&5
- $as_echo_n "checking for curl_easy_perform in -lcurl... " >&6; }
- if ${ac_cv_lib_curl_curl_easy_perform+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcurl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char curl_easy_perform ();
- int
- main ()
- {
- return curl_easy_perform ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_curl_curl_easy_perform=yes
- else
- ac_cv_lib_curl_curl_easy_perform=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_perform" >&5
- $as_echo "$ac_cv_lib_curl_curl_easy_perform" >&6; }
- if test "x$ac_cv_lib_curl_curl_easy_perform" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_CURL 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_curl_curl_easy_perform
- as_fn_error $? "There is something wrong. Please check config.log for more information." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $CURL_LIBS
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_strerror in -lcurl" >&5
- $as_echo_n "checking for curl_easy_strerror in -lcurl... " >&6; }
- if ${ac_cv_lib_curl_curl_easy_strerror+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcurl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char curl_easy_strerror ();
- int
- main ()
- {
- return curl_easy_strerror ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_curl_curl_easy_strerror=yes
- else
- ac_cv_lib_curl_curl_easy_strerror=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_strerror" >&5
- $as_echo "$ac_cv_lib_curl_curl_easy_strerror" >&6; }
- if test "x$ac_cv_lib_curl_curl_easy_strerror" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_CURL_EASY_STRERROR 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_curl_curl_easy_strerror
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $CURL_LIBS
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_multi_strerror in -lcurl" >&5
- $as_echo_n "checking for curl_multi_strerror in -lcurl... " >&6; }
- if ${ac_cv_lib_curl_curl_multi_strerror+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcurl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char curl_multi_strerror ();
- int
- main ()
- {
- return curl_multi_strerror ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_curl_curl_multi_strerror=yes
- else
- ac_cv_lib_curl_curl_multi_strerror=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_multi_strerror" >&5
- $as_echo "$ac_cv_lib_curl_curl_multi_strerror" >&6; }
- if test "x$ac_cv_lib_curl_curl_multi_strerror" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_CURL_MULTI_STRERROR 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_curl_curl_multi_strerror
- fi
- ext_builddir=ext/curl
- ext_srcdir=$abs_srcdir/ext/curl
- ext_dir=ext/curl
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_CURL_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in interface.c multi.c share.c curl_file.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC curl;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC curl;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_CURL_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in interface.c multi.c share.c curl_file.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_curl="$shared_objects_curl $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/curl.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/curl.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_curl"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/curl.$suffix: $ext_builddir/curl.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/curl.$suffix \$(phplibdir)
- $ext_builddir/curl.$suffix: \$(shared_objects_curl) \$(CURL_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_curl) \$(CURL_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_CURL 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_CURL_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in interface.c multi.c share.c curl_file.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC curl;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in interface.c multi.c share.c curl_file.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC curl;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=curl
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST CURL_SHARED_LIBADD"
- fi
- php_enable_dba=no
- # Check whether --enable-dba was given.
- if test "${enable_dba+set}" = set; then :
- enableval=$enable_dba; PHP_DBA=$enableval
- else
- PHP_DBA=no
- test "$PHP_ENABLE_ALL" && PHP_DBA=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_DBA in
- shared,*)
- PHP_DBA=`echo "$PHP_DBA"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_DBA=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- php_with_qdbm=no
- # Check whether --with-qdbm was given.
- if test "${with_qdbm+set}" = set; then :
- withval=$with_qdbm; PHP_QDBM=$withval
- else
- PHP_QDBM=no
- fi
- ext_output=$PHP_QDBM
- php_with_gdbm=no
- # Check whether --with-gdbm was given.
- if test "${with_gdbm+set}" = set; then :
- withval=$with_gdbm; PHP_GDBM=$withval
- else
- PHP_GDBM=no
- fi
- ext_output=$PHP_GDBM
- php_with_ndbm=no
- # Check whether --with-ndbm was given.
- if test "${with_ndbm+set}" = set; then :
- withval=$with_ndbm; PHP_NDBM=$withval
- else
- PHP_NDBM=no
- fi
- ext_output=$PHP_NDBM
- php_with_db4=no
- # Check whether --with-db4 was given.
- if test "${with_db4+set}" = set; then :
- withval=$with_db4; PHP_DB4=$withval
- else
- PHP_DB4=no
- fi
- ext_output=$PHP_DB4
- php_with_db3=no
- # Check whether --with-db3 was given.
- if test "${with_db3+set}" = set; then :
- withval=$with_db3; PHP_DB3=$withval
- else
- PHP_DB3=no
- fi
- ext_output=$PHP_DB3
- php_with_db2=no
- # Check whether --with-db2 was given.
- if test "${with_db2+set}" = set; then :
- withval=$with_db2; PHP_DB2=$withval
- else
- PHP_DB2=no
- fi
- ext_output=$PHP_DB2
- php_with_db1=no
- # Check whether --with-db1 was given.
- if test "${with_db1+set}" = set; then :
- withval=$with_db1; PHP_DB1=$withval
- else
- PHP_DB1=no
- fi
- ext_output=$PHP_DB1
- php_with_dbm=no
- # Check whether --with-dbm was given.
- if test "${with_dbm+set}" = set; then :
- withval=$with_dbm; PHP_DBM=$withval
- else
- PHP_DBM=no
- fi
- ext_output=$PHP_DBM
- php_with_tcadb=no
- # Check whether --with-tcadb was given.
- if test "${with_tcadb+set}" = set; then :
- withval=$with_tcadb; PHP_TCADB=$withval
- else
- PHP_TCADB=no
- fi
- ext_output=$PHP_TCADB
- php_with_lmdb=no
- # Check whether --with-lmdb was given.
- if test "${with_lmdb+set}" = set; then :
- withval=$with_lmdb; PHP_LMDB=$withval
- else
- PHP_LMDB=no
- fi
- ext_output=$PHP_LMDB
- # QDBM
- if test "$PHP_QDBM" != "no"; then
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
- for i in $PHP_QDBM /usr/local /usr; do
- if test -f "$i/include/depot.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/depot.h
- break
- fi
- done
- if test -n "$THIS_INCLUDE"; then
- for LIB in qdbm; do
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dpopen" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dpopen in -l$LIB" >&5
- $as_echo_n "checking for dpopen in -l$LIB... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dpopen ();
- int
- main ()
- {
- return dpopen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- cat >>confdefs.h <<_ACEOF
- #define QDBM_INCLUDE_FILE "$THIS_INCLUDE"
- _ACEOF
- $as_echo "#define DBA_QDBM 1" >>confdefs.h
- THIS_LIBS=$LIB
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$LIB_dpopen
- fi
- if test -n "$THIS_LIBS"; then
- break
- fi
- done
- fi
- if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
- THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
- fi
- THIS_RESULT=yes
- if test -z "$THIS_INCLUDE"; then
- as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
- fi
- if test -z "$THIS_LIBS"; then
- as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $THIS_LIBS in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$THIS_LIBS $LIBS"
- ;;
- esac
- fi
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
- fi
- THIS_NAME=QDBM
- if test -n ""; then
- THIS_FULL_NAME=""
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- # GDBM
- if test "$PHP_GDBM" != "no"; then
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
- if test "$HAVE_QDBM" = "1"; then
- THIS_NAME=GDBM
- if test -n "gdbm"; then
- THIS_FULL_NAME="gdbm"
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n "You cannot combine --with-gdbm with --with-qdbm"; then
- as_fn_error $? "You cannot combine --with-gdbm with --with-qdbm" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- fi
- for i in $PHP_GDBM /usr/local /usr; do
- if test -f "$i/include/gdbm.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/gdbm.h
- break
- fi
- done
- if test -n "$THIS_INCLUDE"; then
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
- $as_echo_n "checking for gdbm_open in -lgdbm... " >&6; }
- if ${ac_cv_lib_gdbm_gdbm_open+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgdbm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gdbm_open ();
- int
- main ()
- {
- return gdbm_open ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gdbm_gdbm_open=yes
- else
- ac_cv_lib_gdbm_gdbm_open=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
- $as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; }
- if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- cat >>confdefs.h <<_ACEOF
- #define GDBM_INCLUDE_FILE "$THIS_INCLUDE"
- _ACEOF
- $as_echo "#define DBA_GDBM 1" >>confdefs.h
- THIS_LIBS=gdbm
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gdbm_gdbm_open
- fi
- fi
- if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
- THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
- fi
- THIS_RESULT=yes
- if test -z "$THIS_INCLUDE"; then
- as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
- fi
- if test -z "$THIS_LIBS"; then
- as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $THIS_LIBS in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$THIS_LIBS $LIBS"
- ;;
- esac
- fi
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
- fi
- THIS_NAME=GDBM
- if test -n ""; then
- THIS_FULL_NAME=""
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- # NDBM
- if test "$PHP_NDBM" != "no"; then
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
- for i in $PHP_NDBM /usr/local /usr; do
- if test -f "$i/include/ndbm.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/ndbm.h
- break
- elif test -f "$i/include/db1/ndbm.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db1/ndbm.h
- break
- fi
- done
- if test -n "$THIS_INCLUDE"; then
- for LIB in ndbm db1 c; do
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbm_open" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_open in -l$LIB" >&5
- $as_echo_n "checking for dbm_open in -l$LIB... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dbm_open ();
- int
- main ()
- {
- return dbm_open ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- cat >>confdefs.h <<_ACEOF
- #define NDBM_INCLUDE_FILE "$THIS_INCLUDE"
- _ACEOF
- $as_echo "#define DBA_NDBM 1" >>confdefs.h
- THIS_LIBS=$LIB
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$LIB_dbm_open
- fi
- if test -n "$THIS_LIBS"; then
- break
- fi
- done
- fi
- if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
- THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
- fi
- THIS_RESULT=yes
- if test -z "$THIS_INCLUDE"; then
- as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
- fi
- if test -z "$THIS_LIBS"; then
- as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $THIS_LIBS in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$THIS_LIBS $LIBS"
- ;;
- esac
- fi
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
- fi
- THIS_NAME=NDBM
- if test -n ""; then
- THIS_FULL_NAME=""
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- if test "$PHP_TCADB" != "no"; then
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
- for i in $PHP_TCADB /usr/local /usr; do
- if test -f "$i/include/tcadb.h"; then
- THIS_PREFIX=$i
- if test "$THIS_PREFIX/include" != "/usr/include"; then
- if test -z "$THIS_PREFIX/include" || echo "$THIS_PREFIX/include" | grep '^/' >/dev/null ; then
- ai_p=$THIS_PREFIX/include
- else
- ep_dir=`echo $THIS_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_PREFIX/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- THIS_INCLUDE=$i/include/tcadb.h
- break
- fi
- done
- if test -n "$THIS_INCLUDE"; then
- for LIB in tokyocabinet; do
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_tcadbopen" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcadbopen in -l$LIB" >&5
- $as_echo_n "checking for tcadbopen in -l$LIB... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char tcadbopen ();
- int
- main ()
- {
- return tcadbopen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- cat >>confdefs.h <<_ACEOF
- #define TCADB_INCLUDE_FILE "$THIS_INCLUDE"
- _ACEOF
- $as_echo "#define DBA_TCADB 1" >>confdefs.h
- THIS_LIBS=$LIB
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$LIB_tcadbopen
- fi
- if test -n "$THIS_LIBS"; then
- break
- fi
- done
- fi
- if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
- THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
- fi
- THIS_RESULT=yes
- if test -z "$THIS_INCLUDE"; then
- as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
- fi
- if test -z "$THIS_LIBS"; then
- as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $THIS_LIBS in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$THIS_LIBS $LIBS"
- ;;
- esac
- fi
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
- fi
- THIS_NAME=TCADB
- if test -n ""; then
- THIS_FULL_NAME=""
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- if test "$PHP_LMDB" != "no"; then
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
- for i in $PHP_LMDB /usr/local /usr; do
- if test -f "$i/include/lmdb.h"; then
- THIS_PREFIX=$i
- if test "$THIS_PREFIX/include" != "/usr/include"; then
- if test -z "$THIS_PREFIX/include" || echo "$THIS_PREFIX/include" | grep '^/' >/dev/null ; then
- ai_p=$THIS_PREFIX/include
- else
- ep_dir=`echo $THIS_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_PREFIX/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- THIS_INCLUDE=$i/include/lmdb.h
- break
- fi
- done
- if test -n "$THIS_INCLUDE"; then
- for LIB in lmdb; do
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_mdb_env_open" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mdb_env_open in -l$LIB" >&5
- $as_echo_n "checking for mdb_env_open in -l$LIB... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char mdb_env_open ();
- int
- main ()
- {
- return mdb_env_open ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- cat >>confdefs.h <<_ACEOF
- #define LMDB_INCLUDE_FILE "$THIS_INCLUDE"
- _ACEOF
- $as_echo "#define DBA_LMDB 1" >>confdefs.h
- THIS_LIBS=$LIB
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$LIB_mdb_env_open
- fi
- if test -n "$THIS_LIBS"; then
- break
- fi
- done
- fi
- if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
- THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
- fi
- THIS_RESULT=yes
- if test -z "$THIS_INCLUDE"; then
- as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
- fi
- if test -z "$THIS_LIBS"; then
- as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $THIS_LIBS in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$THIS_LIBS $LIBS"
- ;;
- esac
- fi
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
- fi
- THIS_NAME=LMDB
- if test -n ""; then
- THIS_FULL_NAME=""
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- # DB4
- if test "$PHP_DB4" != "no"; then
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
- dbdp4="/usr/local/BerkeleyDB.4."
- dbdp5="/usr/local/BerkeleyDB.5."
- for i in $PHP_DB4 ${dbdp5}1 ${dbdp5}0 ${dbdp4}8 ${dbdp4}7 ${dbdp4}6 ${dbdp4}5 ${dbdp4}4 ${dbdp4}3 ${dbdp4}2 ${dbdp4}1 ${dbdp}0 /usr/local /usr; do
- if test -f "$i/db5/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/db5/db.h
- break
- elif test -f "$i/db4/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/db4/db.h
- break
- elif test -f "$i/include/db5.3/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db5.3/db.h
- break
- elif test -f "$i/include/db5.1/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db5.1/db.h
- break
- elif test -f "$i/include/db5.0/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db5.0/db.h
- break
- elif test -f "$i/include/db4.8/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db4.8/db.h
- break
- elif test -f "$i/include/db4.7/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db4.7/db.h
- break
- elif test -f "$i/include/db4.6/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db4.6/db.h
- break
- elif test -f "$i/include/db4.5/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db4.5/db.h
- break
- elif test -f "$i/include/db4/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db4/db.h
- break
- elif test -f "$i/include/db/db4.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db/db4.h
- break
- elif test -f "$i/include/db4.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db4.h
- break
- elif test -f "$i/include/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db.h
- break
- fi
- done
- if test -z "$THIS_INCLUDE"; then
- as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
- fi
- for LIB in db-5.3 db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db; do
- if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
- lib_found="";
- old_LDFLAGS=$LDFLAGS
- LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
- old_LIBS=$LIBS
- LIBS="-l$LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- int
- main ()
- {
- (void)db_create((DB**)0, (DB_ENV*)0, 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- #if DB_VERSION_MAJOR == 4 || (4 == 4 && DB_VERSION_MAJOR == 5)
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- THIS_LIBS=$LIB
- lib_found=1
- fi
- rm -f conftest*
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LDFLAGS=$old_LDFLAGS
- LIBS=$old_LIBS
- if test -n "$lib_found"; then
- lib_found="";
- break;
- fi
- fi
- done
- if test -z "$THIS_LIBS"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 major version" >&5
- $as_echo_n "checking for DB4 major version... " >&6; }
- as_fn_error $? "Header contains different version" "$LINENO" 5
- fi
- if test "4" = "4"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5
- $as_echo_n "checking for DB4 minor version and patch level... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- #if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
- $as_echo "ok" >&6; }
- else
- as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5
- fi
- rm -f conftest*
- fi
- if test "$ext_shared" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5
- $as_echo_n "checking if dba can be used as shared extension... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- as_fn_error $? "At least version 3.3 is required" "$LINENO" 5
- fi
- rm -f conftest*
- fi
- if test -n "$THIS_LIBS"; then
- $as_echo "#define DBA_DB4 1" >>confdefs.h
- if test -n "$THIS_INCLUDE"; then
- cat >>confdefs.h <<_ACEOF
- #define DB4_INCLUDE_FILE "$THIS_INCLUDE"
- _ACEOF
- fi
- else
- as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
- fi
- THIS_RESULT=yes
- DB4_LIBS=$THIS_LIBS
- DB4_PREFIX=$THIS_PREFIX
- DB4_INCLUDE=$THIS_INCLUDE
- if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
- THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $THIS_LIBS in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$THIS_LIBS $LIBS"
- ;;
- esac
- fi
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
- fi
- THIS_NAME=DB4
- if test -n "Berkeley DB4"; then
- THIS_FULL_NAME="Berkeley DB4"
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- # DB3
- if test "$PHP_DB3" != "no"; then
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
- if test "$HAVE_DB4" = "1"; then
- THIS_NAME=DB3
- if test -n "Berkeley DB3"; then
- THIS_FULL_NAME="Berkeley DB3"
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n "You cannot combine --with-db3 with --with-db4"; then
- as_fn_error $? "You cannot combine --with-db3 with --with-db4" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- fi
- for i in $PHP_DB3 /usr/local/BerkeleyDB.3.3 /usr/local/BerkeleyDB.3.2 /usr/local/BerkeleyDB.3.1 /usr/local/BerkeleyDB.3.0 /usr/local /usr; do
- if test -f "$i/db3/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db3/db.h
- break
- elif test -f "$i/include/db3/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db3/db.h
- break
- elif test -f "$i/include/db/db3.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db/db3.h
- break
- elif test -f "$i/include/db3.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db3.h
- break
- elif test -f "$i/include/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db.h
- break
- fi
- done
- if test -z "$THIS_INCLUDE"; then
- as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
- fi
- for LIB in db-3.3 db-3.2 db-3.1 db-3.0 db-3 db3 db; do
- if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
- lib_found="";
- old_LDFLAGS=$LDFLAGS
- LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
- old_LIBS=$LIBS
- LIBS="-l$LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- int
- main ()
- {
- (void)db_create((DB**)0, (DB_ENV*)0, 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- #if DB_VERSION_MAJOR == 3 || (3 == 4 && DB_VERSION_MAJOR == 5)
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- THIS_LIBS=$LIB
- lib_found=1
- fi
- rm -f conftest*
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LDFLAGS=$old_LDFLAGS
- LIBS=$old_LIBS
- if test -n "$lib_found"; then
- lib_found="";
- break;
- fi
- fi
- done
- if test -z "$THIS_LIBS"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB3 major version" >&5
- $as_echo_n "checking for DB3 major version... " >&6; }
- as_fn_error $? "Header contains different version" "$LINENO" 5
- fi
- if test "3" = "4"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5
- $as_echo_n "checking for DB4 minor version and patch level... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- #if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
- $as_echo "ok" >&6; }
- else
- as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5
- fi
- rm -f conftest*
- fi
- if test "$ext_shared" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5
- $as_echo_n "checking if dba can be used as shared extension... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- as_fn_error $? "At least version 3.3 is required" "$LINENO" 5
- fi
- rm -f conftest*
- fi
- if test -n "$THIS_LIBS"; then
- $as_echo "#define DBA_DB3 1" >>confdefs.h
- if test -n "$THIS_INCLUDE"; then
- cat >>confdefs.h <<_ACEOF
- #define DB3_INCLUDE_FILE "$THIS_INCLUDE"
- _ACEOF
- fi
- else
- as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
- fi
- THIS_RESULT=yes
- DB3_LIBS=$THIS_LIBS
- DB3_PREFIX=$THIS_PREFIX
- DB3_INCLUDE=$THIS_INCLUDE
- if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
- THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $THIS_LIBS in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$THIS_LIBS $LIBS"
- ;;
- esac
- fi
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
- fi
- THIS_NAME=DB3
- if test -n "Berkeley DB3"; then
- THIS_FULL_NAME="Berkeley DB3"
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- # DB2
- if test "$PHP_DB2" != "no"; then
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
- if test "$HAVE_DB3" = "1" || test "$HAVE_DB4" = "1"; then
- THIS_NAME=DB2
- if test -n "Berkeley DB2"; then
- THIS_FULL_NAME="Berkeley DB2"
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n "You cannot combine --with-db2 with --with-db3 or --with-db4"; then
- as_fn_error $? "You cannot combine --with-db2 with --with-db3 or --with-db4" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- fi
- for i in $PHP_DB2 $PHP_DB2/BerkeleyDB /usr/BerkeleyDB /usr/local /usr; do
- if test -f "$i/db2/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/db2/db.h
- break
- elif test -f "$i/include/db2/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db2/db.h
- break
- elif test -f "$i/include/db/db2.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db/db2.h
- break
- elif test -f "$i/include/db2.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db2.h
- break
- elif test -f "$i/include/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db.h
- break
- fi
- done
- if test -z "$THIS_INCLUDE"; then
- as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
- fi
- for LIB in db-2 db2 db; do
- if test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.a || test -f $THIS_PREFIX/$PHP_LIBDIR/lib$LIB.$SHLIB_SUFFIX_NAME; then
- lib_found="";
- old_LDFLAGS=$LDFLAGS
- LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
- old_LIBS=$LIBS
- LIBS="-l$LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- int
- main ()
- {
- (void)db_appinit("", NULL, (DB_ENV*)0, 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- #if DB_VERSION_MAJOR == 2 || (2 == 4 && DB_VERSION_MAJOR == 5)
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- THIS_LIBS=$LIB
- lib_found=1
- fi
- rm -f conftest*
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LDFLAGS=$old_LDFLAGS
- LIBS=$old_LIBS
- if test -n "$lib_found"; then
- lib_found="";
- break;
- fi
- fi
- done
- if test -z "$THIS_LIBS"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB2 major version" >&5
- $as_echo_n "checking for DB2 major version... " >&6; }
- as_fn_error $? "Header contains different version" "$LINENO" 5
- fi
- if test "2" = "4"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB4 minor version and patch level" >&5
- $as_echo_n "checking for DB4 minor version and patch level... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- #if DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR != 1) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 1 && DB_VERSION_PATCH >= 25)
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
- $as_echo "ok" >&6; }
- else
- as_fn_error $? "Version 4.1 requires patch level 25" "$LINENO" 5
- fi
- rm -f conftest*
- fi
- if test "$ext_shared" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dba can be used as shared extension" >&5
- $as_echo_n "checking if dba can be used as shared extension... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- #if DB_VERSION_MAJOR > 3 || (DB_VERSION_MAJOR == 3 && DB_VERSION_MINOR > 2)
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- as_fn_error $? "At least version 3.3 is required" "$LINENO" 5
- fi
- rm -f conftest*
- fi
- if test -n "$THIS_LIBS"; then
- $as_echo "#define DBA_DB2 1" >>confdefs.h
- if test -n "$THIS_INCLUDE"; then
- cat >>confdefs.h <<_ACEOF
- #define DB2_INCLUDE_FILE "$THIS_INCLUDE"
- _ACEOF
- fi
- else
- as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
- fi
- THIS_RESULT=yes
- DB2_LIBS=$THIS_LIBS
- DB2_PREFIX=$THIS_PREFIX
- DB2_INCLUDE=$THIS_INCLUDE
- if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
- THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $THIS_LIBS in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$THIS_LIBS $LIBS"
- ;;
- esac
- fi
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
- fi
- THIS_NAME=DB2
- if test -n "Berkeley DB2"; then
- THIS_FULL_NAME="Berkeley DB2"
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- # DB1
- if test "$PHP_DB1" != "no"; then
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in library" >&5
- $as_echo_n "checking for DB1 in library... " >&6; }
- if test "$HAVE_DB4" = "1"; then
- THIS_VERSION=4
- THIS_LIBS=$DB4_LIBS
- THIS_PREFIX=$DB4_PREFIX
- elif test "$HAVE_DB3" = "1"; then
- THIS_LIBS=$DB3_LIBS
- THIS_PREFIX=$DB3_PREFIX
- elif test "$HAVE_DB2" = "1"; then
- THIS_VERSION=2
- THIS_LIBS=$DB2_LIBS
- THIS_PREFIX=$DB2_PREFIX
- fi
- if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then
- cat >>confdefs.h <<_ACEOF
- #define DB1_VERSION "Berkeley DB 1.85 emulation in DB$THIS_VERSION"
- _ACEOF
- for i in db$THIS_VERSION/db_185.h include/db$THIS_VERSION/db_185.h include/db/db_185.h; do
- if test -f "$THIS_PREFIX/$i"; then
- THIS_INCLUDE=$THIS_PREFIX/$i
- break
- fi
- done
- else
- cat >>confdefs.h <<_ACEOF
- #define DB1_VERSION "Unknown DB1"
- _ACEOF
- for i in $PHP_DB1 /usr/local /usr; do
- if test -f "$i/db1/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/db1/db.h
- break
- elif test -f "$i/include/db1/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db1/db.h
- break
- elif test -f "$i/include/db.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/db.h
- break
- fi
- done
- THIS_LIBS=db
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_LIBS" >&5
- $as_echo "$THIS_LIBS" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DB1 in header" >&5
- $as_echo_n "checking for DB1 in header... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_INCLUDE" >&5
- $as_echo "$THIS_INCLUDE" >&6; }
- if test -n "$THIS_INCLUDE"; then
- old_LDFLAGS=$LDFLAGS
- LDFLAGS="-L$THIS_PREFIX/$PHP_LIBDIR $LDFLAGS"
- old_LIBS=$LIBS
- LIBS="-l$THIS_LIBS $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "$THIS_INCLUDE"
- int
- main ()
- {
- DB * dbp = dbopen("", 0, 0, DB_HASH, 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- cat >>confdefs.h <<_ACEOF
- #define DB1_INCLUDE_FILE "$THIS_INCLUDE"
- _ACEOF
- $as_echo "#define DBA_DB1 1" >>confdefs.h
- THIS_RESULT=yes
- else
- THIS_RESULT=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LDFLAGS=$old_LDFLAGS
- LIBS=$old_LIBS
- fi
- if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
- THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
- fi
- THIS_RESULT=yes
- if test -z "$THIS_INCLUDE"; then
- as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
- fi
- if test -z "$THIS_LIBS"; then
- as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $THIS_LIBS in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$THIS_LIBS $LIBS"
- ;;
- esac
- fi
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
- fi
- THIS_NAME=DB1
- if test -n "DB1"; then
- THIS_FULL_NAME="DB1"
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- # DBM
- if test "$PHP_DBM" != "no"; then
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
- if test "$HAVE_QDBM" = "1"; then
- THIS_NAME=DBM
- if test -n "dbm"; then
- THIS_FULL_NAME="dbm"
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n "You cannot combine --with-dbm with --with-qdbm"; then
- as_fn_error $? "You cannot combine --with-dbm with --with-qdbm" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- fi
- for i in $PHP_DBM /usr/local /usr; do
- if test -f "$i/include/dbm.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/dbm.h
- break
- elif test -f "$i/include/gdbm/dbm.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/gdbm/dbm.h
- break
- fi
- done
- if test -n "$THIS_INCLUDE"; then
- for LIB in dbm c gdbm; do
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_dbminit" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbminit in -l$LIB" >&5
- $as_echo_n "checking for dbminit in -l$LIB... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dbminit ();
- int
- main ()
- {
- return dbminit ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBM using GDBM" >&5
- $as_echo_n "checking for DBM using GDBM... " >&6; }
- cat >>confdefs.h <<_ACEOF
- #define DBM_INCLUDE_FILE "$THIS_INCLUDE"
- _ACEOF
- if test "$LIB" = "gdbm"; then
- cat >>confdefs.h <<_ACEOF
- #define DBM_VERSION "GDBM"
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- cat >>confdefs.h <<_ACEOF
- #define DBM_VERSION "DBM"
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- $as_echo "#define DBA_DBM 1" >>confdefs.h
- THIS_LIBS=$LIB
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$LIB_dbminit
- fi
- if test -n "$THIS_LIBS"; then
- break
- fi
- done
- fi
- if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
- THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
- fi
- THIS_RESULT=yes
- if test -z "$THIS_INCLUDE"; then
- as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
- fi
- if test -z "$THIS_LIBS"; then
- as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $THIS_LIBS in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$THIS_LIBS $LIBS"
- ;;
- esac
- fi
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
- fi
- THIS_NAME=DBM
- if test -n ""; then
- THIS_FULL_NAME=""
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- if test "$PHP_DBA" != "no" || test "$HAVE_DBA" = "1" || test "$with_cdb" = "yes" || test "$enable_inifile" = "yes" || test "$enable_flatfile" = "yes"; then
- php_dba_enable=yes
- else
- php_dba_enable=no
- fi
- php_with_cdb=$php_dba_enable
- # Check whether --with-cdb was given.
- if test "${with_cdb+set}" = set; then :
- withval=$with_cdb; PHP_CDB=$withval
- else
- PHP_CDB=$php_dba_enable
- fi
- ext_output=$PHP_CDB
- php_enable_inifile=$php_dba_enable
- # Check whether --enable-inifile was given.
- if test "${enable_inifile+set}" = set; then :
- enableval=$enable_inifile; PHP_INIFILE=$enableval
- else
- PHP_INIFILE=$php_dba_enable
- fi
- ext_output=$PHP_INIFILE
- php_enable_flatfile=$php_dba_enable
- # Check whether --enable-flatfile was given.
- if test "${enable_flatfile+set}" = set; then :
- enableval=$enable_flatfile; PHP_FLATFILE=$enableval
- else
- PHP_FLATFILE=$php_dba_enable
- fi
- ext_output=$PHP_FLATFILE
- # CDB
- if test "$PHP_CDB" = "yes"; then
- $as_echo "#define DBA_CDB_BUILTIN 1" >>confdefs.h
- $as_echo "#define DBA_CDB_MAKE 1" >>confdefs.h
- $as_echo "#define DBA_CDB 1" >>confdefs.h
- cdb_sources="libcdb/cdb.c libcdb/cdb_make.c libcdb/uint32.c"
- THIS_RESULT="builtin"
- elif test "$PHP_CDB" != "no"; then
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX THIS_RESULT
- for i in $PHP_CDB /usr/local /usr; do
- if test -f "$i/include/cdb.h"; then
- THIS_PREFIX=$i
- THIS_INCLUDE=$i/include/cdb.h
- break
- fi
- done
- if test -n "$THIS_INCLUDE"; then
- for LIB in cdb c; do
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="-L$THIS_PREFIX/$PHP_LIBDIR"
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$LIB''_cdb_read" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cdb_read in -l$LIB" >&5
- $as_echo_n "checking for cdb_read in -l$LIB... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char cdb_read ();
- int
- main ()
- {
- return cdb_read ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- cat >>confdefs.h <<_ACEOF
- #define CDB_INCLUDE_FILE "$THIS_INCLUDE"
- _ACEOF
- $as_echo "#define DBA_CDB 1" >>confdefs.h
- THIS_LIBS=$LIB
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$LIB_cdb_read
- fi
- if test -n "$THIS_LIBS"; then
- break
- fi
- done
- fi
- if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then
- THIS_LFLAGS=$THIS_PREFIX/$PHP_LIBDIR
- fi
- THIS_RESULT=yes
- if test -z "$THIS_INCLUDE"; then
- as_fn_error $? "DBA: Could not find necessary header file(s)." "$LINENO" 5
- fi
- if test -z "$THIS_LIBS"; then
- as_fn_error $? "DBA: Could not find necessary library." "$LINENO" 5
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-l$THIS_LIBS $DBA_SHARED_LIBADD"
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- if test "$ext_shared" = "yes"; then
- DBA_SHARED_LIBADD="-L$ai_p $DBA_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && DBA_SHARED_LIBADD="$ld_runpath_switch$ai_p $DBA_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$THIS_LFLAGS"; then
- if test "$THIS_LFLAGS" != "/usr/$PHP_LIBDIR" && test "$THIS_LFLAGS" != "/usr/lib"; then
- if test -z "$THIS_LFLAGS" || echo "$THIS_LFLAGS" | grep '^/' >/dev/null ; then
- ai_p=$THIS_LFLAGS
- else
- ep_dir=`echo $THIS_LFLAGS|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$THIS_LFLAGS"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $THIS_LIBS in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$THIS_LIBS $LIBS"
- ;;
- esac
- fi
- unset THIS_INCLUDE THIS_LIBS THIS_LFLAGS THIS_PREFIX
- fi
- THIS_NAME=CDB
- if test -n ""; then
- THIS_FULL_NAME=""
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- # INIFILE
- if test "$PHP_INIFILE" != "no"; then
- $as_echo "#define DBA_INIFILE 1" >>confdefs.h
- ini_sources="libinifile/inifile.c"
- THIS_RESULT="builtin"
- fi
- THIS_NAME=INIFILE
- if test -n "INI File"; then
- THIS_FULL_NAME="INI File"
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- # FLATFILE
- if test "$PHP_FLATFILE" != "no"; then
- $as_echo "#define DBA_FLATFILE 1" >>confdefs.h
- flat_sources="libflatfile/flatfile.c"
- THIS_RESULT="builtin"
- fi
- THIS_NAME=FLATFILE
- if test -n "FlatFile"; then
- THIS_FULL_NAME="FlatFile"
- else
- THIS_FULL_NAME="$THIS_NAME"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $THIS_FULL_NAME support" >&5
- $as_echo_n "checking for $THIS_FULL_NAME support... " >&6; }
- if test -n ""; then
- as_fn_error $? "" "$LINENO" 5
- fi
- if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then
- HAVE_DBA=1
- eval HAVE_$THIS_NAME=1
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIS_RESULT" >&5
- $as_echo "$THIS_RESULT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- unset THIS_RESULT THIS_NAME THIS_FULL_NAME
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DBA interface" >&5
- $as_echo_n "checking whether to enable DBA interface... " >&6; }
- if test "$HAVE_DBA" = "1"; then
- if test "$ext_shared" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, shared" >&5
- $as_echo "yes, shared" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- $as_echo "#define HAVE_DBA 1" >>confdefs.h
- ext_builddir=ext/dba
- ext_srcdir=$abs_srcdir/ext/dba
- ext_dir=ext/dba
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_DBA_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c dba_lmdb.c $cdb_sources $flat_sources $ini_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC dba;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC dba;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_DBA_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c dba_lmdb.c $cdb_sources $flat_sources $ini_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_dba="$shared_objects_dba $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/dba.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/dba.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dba"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/dba.$suffix: $ext_builddir/dba.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/dba.$suffix \$(phplibdir)
- $ext_builddir/dba.$suffix: \$(shared_objects_dba) \$(DBA_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_dba) \$(DBA_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_DBA 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_DBA_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c dba_lmdb.c $cdb_sources $flat_sources $ini_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC dba;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in dba.c dba_cdb.c dba_dbm.c dba_gdbm.c dba_ndbm.c dba_db1.c dba_db2.c dba_db3.c dba_db4.c dba_flatfile.c dba_inifile.c dba_qdbm.c dba_tcadb.c dba_lmdb.c $cdb_sources $flat_sources $ini_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC dba;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=dba
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir/libinifile"
- BUILD_DIR="$BUILD_DIR $ext_builddir/libcdb"
- BUILD_DIR="$BUILD_DIR $ext_builddir/libflatfile"
- PHP_VAR_SUBST="$PHP_VAR_SUBST DBA_SHARED_LIBADD"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- php_enable_dom=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable DOM support" >&5
- $as_echo_n "checking whether to enable DOM support... " >&6; }
- # Check whether --enable-dom was given.
- if test "${enable_dom+set}" = set; then :
- enableval=$enable_dom; PHP_DOM=$enableval
- else
- PHP_DOM=yes
- test "$PHP_ENABLE_ALL" && PHP_DOM=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_DOM in
- shared,*)
- PHP_DOM=`echo "$PHP_DOM"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_DOM=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_LIBXML_DIR"; then
- php_with_libxml_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
- $as_echo_n "checking libxml2 install dir... " >&6; }
- # Check whether --with-libxml-dir was given.
- if test "${with_libxml_dir+set}" = set; then :
- withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
- else
- PHP_LIBXML_DIR=no
- fi
- ext_output=$PHP_LIBXML_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- if test "$PHP_DOM" != "no"; then
- if test "$PHP_LIBXML" = "no"; then
- as_fn_error $? "DOM extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
- fi
- found_libxml=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
- $as_echo_n "checking for xml2-config path... " >&6; }
- if ${ac_cv_php_xml2_config_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- for i in $PHP_LIBXML_DIR /usr/local /usr; do
- if test -x "$i/bin/xml2-config"; then
- ac_cv_php_xml2_config_path="$i/bin/xml2-config"
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
- $as_echo "$ac_cv_php_xml2_config_path" >&6; }
- if test -x "$ac_cv_php_xml2_config_path"; then
- XML2_CONFIG="$ac_cv_php_xml2_config_path"
- libxml_full_version=`$XML2_CONFIG --version`
- ac_IFS=$IFS
- IFS="."
- set $libxml_full_version
- IFS=$ac_IFS
- LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
- if test "$LIBXML_VERSION" -ge "2006011"; then
- found_libxml=yes
- LIBXML_LIBS=`$XML2_CONFIG --libs`
- LIBXML_INCS=`$XML2_CONFIG --cflags`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- if test "$found_libxml" = "no"; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libxml-2.0; then
- if $PKG_CONFIG --atleast-version=2.6.11 libxml-2.0; then
- found_libxml=yes
- LIBXML_LIBS=`$PKG_CONFIG --libs libxml-2.0`
- LIBXML_INCS=`$PKG_CONFIG --cflags-only-I libxml-2.0`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- fi
- if test "$found_libxml" = "yes"; then
- for ac_i in $LIBXML_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- DOM_SHARED_LIBADD="$DOM_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- DOM_SHARED_LIBADD="-L$ai_p $DOM_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && DOM_SHARED_LIBADD="$ld_runpath_switch$ai_p $DOM_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $LIBXML_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
- $as_echo_n "checking whether libxml build works... " >&6; }
- if ${php_cv_libxml_build_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- old_LIBS=$LIBS
- LIBS="
- $DOM_SHARED_LIBADD
- $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char xmlInitParser();
- int main() {
- xmlInitParser();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- php_cv_libxml_build_works=yes
- else
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
- $as_echo "$php_cv_libxml_build_works" >&6; }
- if test "$php_cv_libxml_build_works" = "yes"; then
- $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
- fi
- $as_echo "#define HAVE_DOM 1" >>confdefs.h
- ext_builddir=ext/dom
- ext_srcdir=$abs_srcdir/ext/dom
- ext_dir=ext/dom
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_DOM_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
- domstringlist.c domexception.c namelist.c \
- processinginstruction.c cdatasection.c \
- documentfragment.c domimplementation.c \
- element.c node.c string_extend.c characterdata.c \
- documenttype.c domimplementationlist.c entity.c \
- nodelist.c text.c comment.c domconfiguration.c \
- domimplementationsource.c entityreference.c \
- notation.c xpath.c dom_iterators.c \
- typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC dom;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC dom;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_DOM_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
- domstringlist.c domexception.c namelist.c \
- processinginstruction.c cdatasection.c \
- documentfragment.c domimplementation.c \
- element.c node.c string_extend.c characterdata.c \
- documenttype.c domimplementationlist.c entity.c \
- nodelist.c text.c comment.c domconfiguration.c \
- domimplementationsource.c entityreference.c \
- notation.c xpath.c dom_iterators.c \
- typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_dom="$shared_objects_dom $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/dom.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/dom.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_dom"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/dom.$suffix: $ext_builddir/dom.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/dom.$suffix \$(phplibdir)
- $ext_builddir/dom.$suffix: \$(shared_objects_dom) \$(DOM_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_dom) \$(DOM_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_DOM 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_DOM_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
- domstringlist.c domexception.c namelist.c \
- processinginstruction.c cdatasection.c \
- documentfragment.c domimplementation.c \
- element.c node.c string_extend.c characterdata.c \
- documenttype.c domimplementationlist.c entity.c \
- nodelist.c text.c comment.c domconfiguration.c \
- domimplementationsource.c entityreference.c \
- notation.c xpath.c dom_iterators.c \
- typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC dom;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_dom.c attr.c document.c domerrorhandler.c \
- domstringlist.c domexception.c namelist.c \
- processinginstruction.c cdatasection.c \
- documentfragment.c domimplementation.c \
- element.c node.c string_extend.c characterdata.c \
- documenttype.c domimplementationlist.c entity.c \
- nodelist.c text.c comment.c domconfiguration.c \
- domimplementationsource.c entityreference.c \
- notation.c xpath.c dom_iterators.c \
- typeinfo.c domerror.c domlocator.c namednodemap.c userdatahandler.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC dom;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=dom
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST DOM_SHARED_LIBADD"
- for header_file in ext/dom/xml_common.h; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- am_i_shared=$PHP_DOM_SHARED
- is_it_shared=$PHP_LIBXML_SHARED
- is_it_enabled=$PHP_LIBXML
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension dom to build statically, but it
- depends on extension libxml, which you've configured to build shared.
- You either need to build dom shared or build libxml statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension dom, which depends on extension libxml,
- but you've either not enabled libxml, or have disabled it.
- " "$LINENO" 5
- fi
- else
- as_fn_error $? "libxml2 not found. Please check your libxml2 installation." "$LINENO" 5
- fi
- fi
- php_with_enchant=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENCHANT support" >&5
- $as_echo_n "checking for ENCHANT support... " >&6; }
- # Check whether --with-enchant was given.
- if test "${with_enchant+set}" = set; then :
- withval=$with_enchant; PHP_ENCHANT=$withval
- else
- PHP_ENCHANT=no
- test "$PHP_ENABLE_ALL" && PHP_ENCHANT=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_ENCHANT in
- shared,*)
- PHP_ENCHANT=`echo "$PHP_ENCHANT"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_ENCHANT=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_ENCHANT" != "no"; then
- ext_builddir=ext/enchant
- ext_srcdir=$abs_srcdir/ext/enchant
- ext_dir=ext/enchant
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_ENCHANT_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in enchant.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC enchant;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC enchant;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_ENCHANT_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in enchant.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_enchant="$shared_objects_enchant $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/enchant.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/enchant.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_enchant"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/enchant.$suffix: $ext_builddir/enchant.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/enchant.$suffix \$(phplibdir)
- $ext_builddir/enchant.$suffix: \$(shared_objects_enchant) \$(ENCHANT_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_enchant) \$(ENCHANT_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_ENCHANT 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_ENCHANT_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in enchant.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC enchant;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in enchant.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC enchant;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=enchant
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- if test "$PHP_ENCHANT" != "yes"; then
- ENCHANT_SEARCH_DIRS=$PHP_ENCHANT
- else
- ENCHANT_SEARCH_DIRS="/usr/local /usr"
- fi
- for i in $ENCHANT_SEARCH_DIRS; do
- if test -f $i/include/enchant/enchant.h; then
- ENCHANT_DIR=$i
- ENCHANT_INCDIR=$i/include/enchant
- elif test -f $i/include/enchant.h; then
- ENCHANT_DIR=$i
- ENCHANT_INCDIR=$i/include
- fi
- done
- if test -z "$ENCHANT_DIR"; then
- as_fn_error $? "Cannot find enchant" "$LINENO" 5
- fi
- ENCHANT_LIBDIR=$ENCHANT_DIR/lib
- $as_echo "#define HAVE_ENCHANT 1" >>confdefs.h
- PHP_VAR_SUBST="$PHP_VAR_SUBST ENCHANT_SHARED_LIBADD"
- if test "$ext_shared" = "yes"; then
- ENCHANT_SHARED_LIBADD="-lenchant $ENCHANT_SHARED_LIBADD"
- if test -n "$ENCHANT_LIBDIR"; then
- if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then
- if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$ENCHANT_LIBDIR
- else
- ep_dir=`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ENCHANT_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- ENCHANT_SHARED_LIBADD="-L$ai_p $ENCHANT_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && ENCHANT_SHARED_LIBADD="$ld_runpath_switch$ai_p $ENCHANT_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$ENCHANT_LIBDIR"; then
- if test "$ENCHANT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ENCHANT_LIBDIR" != "/usr/lib"; then
- if test -z "$ENCHANT_LIBDIR" || echo "$ENCHANT_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$ENCHANT_LIBDIR
- else
- ep_dir=`echo $ENCHANT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ENCHANT_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case enchant in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lenchant $LIBS"
- ;;
- esac
- fi
- if test "$ENCHANT_INCDIR" != "/usr/include"; then
- if test -z "$ENCHANT_INCDIR" || echo "$ENCHANT_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$ENCHANT_INCDIR
- else
- ep_dir=`echo $ENCHANT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ENCHANT_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=" -L$ENCHANT_LIBDIR $ENCHANT_SHARED_LIBADD"
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enchant_broker_set_param in -lenchant" >&5
- $as_echo_n "checking for enchant_broker_set_param in -lenchant... " >&6; }
- if ${ac_cv_lib_enchant_enchant_broker_set_param+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lenchant $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char enchant_broker_set_param ();
- int
- main ()
- {
- return enchant_broker_set_param ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_enchant_enchant_broker_set_param=yes
- else
- ac_cv_lib_enchant_enchant_broker_set_param=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_enchant_enchant_broker_set_param" >&5
- $as_echo "$ac_cv_lib_enchant_enchant_broker_set_param" >&6; }
- if test "x$ac_cv_lib_enchant_enchant_broker_set_param" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_ENCHANT_BROKER_SET_PARAM 1" >>confdefs.h
- $as_echo "#define ENCHANT_VERSION_STRING \"1.5.x\"" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_enchant_enchant_broker_set_param
- fi
- fi
- php_enable_exif=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXIF (metadata from images) support" >&5
- $as_echo_n "checking whether to enable EXIF (metadata from images) support... " >&6; }
- # Check whether --enable-exif was given.
- if test "${enable_exif+set}" = set; then :
- enableval=$enable_exif; PHP_EXIF=$enableval
- else
- PHP_EXIF=no
- test "$PHP_ENABLE_ALL" && PHP_EXIF=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_EXIF in
- shared,*)
- PHP_EXIF=`echo "$PHP_EXIF"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_EXIF=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_EXIF" != "no"; then
- $as_echo "#define HAVE_EXIF 1" >>confdefs.h
- ext_builddir=ext/exif
- ext_srcdir=$abs_srcdir/ext/exif
- ext_dir=ext/exif
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_EXIF_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in exif.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC exif;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC exif;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_EXIF_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in exif.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_exif="$shared_objects_exif $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/exif.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/exif.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_exif"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/exif.$suffix: $ext_builddir/exif.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/exif.$suffix \$(phplibdir)
- $ext_builddir/exif.$suffix: \$(shared_objects_exif) \$(EXIF_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_exif) \$(EXIF_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_EXIF 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_EXIF_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in exif.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC exif;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in exif.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC exif;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=exif
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- fi
- php_enable_fileinfo=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fileinfo support" >&5
- $as_echo_n "checking for fileinfo support... " >&6; }
- # Check whether --enable-fileinfo was given.
- if test "${enable_fileinfo+set}" = set; then :
- enableval=$enable_fileinfo; PHP_FILEINFO=$enableval
- else
- PHP_FILEINFO=yes
- test "$PHP_ENABLE_ALL" && PHP_FILEINFO=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_FILEINFO in
- shared,*)
- PHP_FILEINFO=`echo "$PHP_FILEINFO"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_FILEINFO=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_FILEINFO" != "no"; then
- libmagic_sources=" \
- libmagic/apprentice.c libmagic/apptype.c libmagic/ascmagic.c \
- libmagic/cdf.c libmagic/cdf_time.c libmagic/compress.c \
- libmagic/encoding.c libmagic/fsmagic.c libmagic/funcs.c \
- libmagic/is_tar.c libmagic/magic.c libmagic/print.c \
- libmagic/readcdf.c libmagic/softmagic.c libmagic/der.c \
- libmagic/buffer.c"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasestr" >&5
- $as_echo_n "checking for strcasestr... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped, cross-compiling" >&5
- $as_echo "skipped, cross-compiling" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- #include <strings.h>
- #include <stdlib.h>
- int main(void)
- {
- char *s0, *s1, *ret;
- s0 = (char *) malloc(42);
- s1 = (char *) malloc(8);
- memset(s0, 'X', 42);
- s0[24] = 'Y';
- s0[26] = 'Z';
- s0[41] = '\0';
- memset(s1, 'x', 8);
- s1[0] = 'y';
- s1[2] = 'Z';
- s1[7] = '\0';
- ret = strcasestr(s0, s1);
- return !(NULL != ret);
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: using libmagic strcasestr implementation" >&5
- $as_echo "$as_me: using libmagic strcasestr implementation" >&6;}
- libmagic_sources="$libmagic_sources libmagic/strcasestr.c"
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- ext_builddir=ext/fileinfo
- ext_srcdir=$abs_srcdir/ext/fileinfo
- ext_dir=ext/fileinfo
- ac_extra=`echo "-I@ext_srcdir@/libmagic"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_FILEINFO_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in fileinfo.c $libmagic_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC fileinfo;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC fileinfo;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_FILEINFO_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in fileinfo.c $libmagic_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_fileinfo="$shared_objects_fileinfo $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/fileinfo.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/fileinfo.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_fileinfo"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/fileinfo.$suffix: $ext_builddir/fileinfo.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/fileinfo.$suffix \$(phplibdir)
- $ext_builddir/fileinfo.$suffix: \$(shared_objects_fileinfo) \$(FILEINFO_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_fileinfo) \$(FILEINFO_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_FILEINFO 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_FILEINFO_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in fileinfo.c $libmagic_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC fileinfo;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in fileinfo.c $libmagic_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC fileinfo;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=fileinfo
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir/libmagic"
- for ac_func in utimes strndup
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- src=$ext_srcdir/Makefile.frag
- ac_srcdir=$ext_srcdir
- ac_builddir=$ext_builddir
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- fi
- php_enable_filter=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable input filter support" >&5
- $as_echo_n "checking whether to enable input filter support... " >&6; }
- # Check whether --enable-filter was given.
- if test "${enable_filter+set}" = set; then :
- enableval=$enable_filter; PHP_FILTER=$enableval
- else
- PHP_FILTER=yes
- test "$PHP_ENABLE_ALL" && PHP_FILTER=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_FILTER in
- shared,*)
- PHP_FILTER=`echo "$PHP_FILTER"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_FILTER=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_pcre_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking pcre install prefix" >&5
- $as_echo_n "checking pcre install prefix... " >&6; }
- # Check whether --with-pcre-dir was given.
- if test "${with_pcre_dir+set}" = set; then :
- withval=$with_pcre_dir; PHP_PCRE_DIR=$withval
- else
- PHP_PCRE_DIR=no
- fi
- ext_output=$PHP_PCRE_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_FILTER" != "no"; then
- if test -n "$PHP_VERSION"; then
- ext_shared=no
- else
- old_CPPFLAGS=$CPPFLAGS
- CPPFLAGS=$INCLUDES
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <main/php_config.h>
- #if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- PHP_PCRE_REGEX=yes
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <main/php_config.h>
- #if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- PHP_PCRE_REGEX=pecl
- else
- PHP_PCRE_REGEX=no
- fi
- rm -f conftest*
- fi
- rm -f conftest*
- CPPFLAGS=$old_CPPFLAGS
- fi
- ext_builddir=ext/filter
- ext_srcdir=$abs_srcdir/ext/filter
- ext_dir=ext/filter
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_FILTER_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC filter;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC filter;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_FILTER_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_filter="$shared_objects_filter $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/filter.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/filter.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_filter"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/filter.$suffix: $ext_builddir/filter.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/filter.$suffix \$(phplibdir)
- $ext_builddir/filter.$suffix: \$(shared_objects_filter) \$(FILTER_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_filter) \$(FILTER_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_FILTER 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_FILTER_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC filter;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in filter.c sanitizing_filters.c logical_filters.c callback_filter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC filter;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=filter
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST FILTER_SHARED_LIBADD"
- for header_file in ext/filter/php_filter.h; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- am_i_shared=$PHP_FILTER_SHARED
- is_it_shared=$PHP_PCRE_SHARED
- is_it_enabled=$PHP_PCRE
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension filter to build statically, but it
- depends on extension pcre, which you've configured to build shared.
- You either need to build filter shared or build pcre statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension filter, which depends on extension pcre,
- but you've either not enabled pcre, or have disabled it.
- " "$LINENO" 5
- fi
- fi
- php_enable_ftp=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable FTP support" >&5
- $as_echo_n "checking whether to enable FTP support... " >&6; }
- # Check whether --enable-ftp was given.
- if test "${enable_ftp+set}" = set; then :
- enableval=$enable_ftp; PHP_FTP=$enableval
- else
- PHP_FTP=no
- test "$PHP_ENABLE_ALL" && PHP_FTP=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_FTP in
- shared,*)
- PHP_FTP=`echo "$PHP_FTP"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_FTP=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_openssl_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for FTP" >&5
- $as_echo_n "checking OpenSSL dir for FTP... " >&6; }
- # Check whether --with-openssl-dir was given.
- if test "${with_openssl_dir+set}" = set; then :
- withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval
- else
- PHP_OPENSSL_DIR=no
- fi
- ext_output=$PHP_OPENSSL_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_FTP" = "yes"; then
- $as_echo "#define HAVE_FTP 1" >>confdefs.h
- ext_builddir=ext/ftp
- ext_srcdir=$abs_srcdir/ext/ftp
- ext_dir=ext/ftp
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_FTP_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_ftp.c ftp.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC ftp;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC ftp;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_FTP_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_ftp.c ftp.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_ftp="$shared_objects_ftp $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ftp.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/ftp.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ftp"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/ftp.$suffix: $ext_builddir/ftp.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/ftp.$suffix \$(phplibdir)
- $ext_builddir/ftp.$suffix: \$(shared_objects_ftp) \$(FTP_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_ftp) \$(FTP_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_FTP 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_FTP_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_ftp.c ftp.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC ftp;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_ftp.c ftp.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC ftp;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=ftp
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
- if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then
- found_openssl=no
- unset OPENSSL_INCDIR
- unset OPENSSL_LIBDIR
- test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
- test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
- if test "$PHP_OPENSSL" != "no"; then
- PHP_OPENSSL_DIR=$PHP_OPENSSL
- elif test "$PHP_IMAP_SSL" != "no"; then
- PHP_OPENSSL_DIR=$PHP_IMAP_SSL
- fi
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
- if $PKG_CONFIG --atleast-version=1.0.1 openssl; then
- found_openssl=yes
- OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
- OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
- OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
- else
- as_fn_error $? "OpenSSL version 1.0.1 or greater required." "$LINENO" 5
- fi
- if test -n "$OPENSSL_LIBS"; then
- for ac_i in $OPENSSL_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- FTP_SHARED_LIBADD="$FTP_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- if test -n "$OPENSSL_INCS"; then
- for ac_i in $OPENSSL_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- fi
- if test "$found_openssl" = "no"; then
- if test "$PHP_OPENSSL_DIR" = "yes"; then
- PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
- fi
- for i in $PHP_OPENSSL_DIR; do
- if test -r $i/include/openssl/evp.h; then
- OPENSSL_INCDIR=$i/include
- fi
- if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
- OPENSSL_LIBDIR=$i/$PHP_LIBDIR
- fi
- test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
- done
- if test -z "$OPENSSL_INCDIR"; then
- as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
- fi
- if test -z "$OPENSSL_LIBDIR"; then
- as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
- fi
- old_CPPFLAGS=$CPPFLAGS
- CPPFLAGS=-I$OPENSSL_INCDIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
- $as_echo_n "checking for OpenSSL version... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <openssl/opensslv.h>
- #if OPENSSL_VERSION_NUMBER >= 0x10001001L
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 1.0.1" >&5
- $as_echo ">= 1.0.1" >&6; }
- else
- as_fn_error $? "OpenSSL version 1.0.1 or greater required." "$LINENO" 5
- fi
- rm -f conftest*
- CPPFLAGS=$old_CPPFLAGS
- if test "$OPENSSL_INCDIR" != "/usr/include"; then
- if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$OPENSSL_INCDIR
- else
- ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$OPENSSL_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
- $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
- if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcrypto $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char CRYPTO_free ();
- int
- main ()
- {
- return CRYPTO_free ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_crypto_CRYPTO_free=yes
- else
- ac_cv_lib_crypto_CRYPTO_free=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
- $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
- if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- case crypto in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD"
- else
- case crypto in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lcrypto $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_crypto_CRYPTO_free
- as_fn_error $? "libcrypto not found!" "$LINENO" 5
- fi
- old_LIBS=$LIBS
- LIBS="$LIBS -lcrypto"
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$OPENSSL_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
- $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
- if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lssl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char SSL_CTX_set_ssl_version ();
- int
- main ()
- {
- return SSL_CTX_set_ssl_version ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
- else
- ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
- $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
- if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- found_openssl=yes
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
- as_fn_error $? "libssl not found!" "$LINENO" 5
- fi
- LIBS=$old_LIBS
- case ssl in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- FTP_SHARED_LIBADD="-lssl $FTP_SHARED_LIBADD"
- else
- case ssl in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lssl $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- case crypto in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- FTP_SHARED_LIBADD="-lcrypto $FTP_SHARED_LIBADD"
- else
- case crypto in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lcrypto $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
- if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$OPENSSL_LIBDIR
- else
- ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- FTP_SHARED_LIBADD="-L$ai_p $FTP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && FTP_SHARED_LIBADD="$ld_runpath_switch$ai_p $FTP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- if test "$found_openssl" = "yes"; then
- OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
- :
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST FTP_SHARED_LIBADD"
- $as_echo "#define HAVE_FTP_SSL 1" >>confdefs.h
- fi
- fi
- php_with_gd=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GD support" >&5
- $as_echo_n "checking for GD support... " >&6; }
- # Check whether --with-gd was given.
- if test "${with_gd+set}" = set; then :
- withval=$with_gd; PHP_GD=$withval
- else
- PHP_GD=no
- test "$PHP_ENABLE_ALL" && PHP_GD=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_GD in
- shared,*)
- PHP_GD=`echo "$PHP_GD"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_GD=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_WEBP_DIR"; then
- php_with_webp_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libwebp" >&5
- $as_echo_n "checking for the location of libwebp... " >&6; }
- # Check whether --with-webp-dir was given.
- if test "${with_webp_dir+set}" = set; then :
- withval=$with_webp_dir; PHP_WEBP_DIR=$withval
- else
- PHP_WEBP_DIR=no
- fi
- ext_output=$PHP_WEBP_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- if test -z "$PHP_JPEG_DIR"; then
- php_with_jpeg_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libjpeg" >&5
- $as_echo_n "checking for the location of libjpeg... " >&6; }
- # Check whether --with-jpeg-dir was given.
- if test "${with_jpeg_dir+set}" = set; then :
- withval=$with_jpeg_dir; PHP_JPEG_DIR=$withval
- else
- PHP_JPEG_DIR=no
- fi
- ext_output=$PHP_JPEG_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- if test -z "$PHP_PNG_DIR"; then
- php_with_png_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libpng" >&5
- $as_echo_n "checking for the location of libpng... " >&6; }
- # Check whether --with-png-dir was given.
- if test "${with_png_dir+set}" = set; then :
- withval=$with_png_dir; PHP_PNG_DIR=$withval
- else
- PHP_PNG_DIR=no
- fi
- ext_output=$PHP_PNG_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- if test -z "$PHP_ZLIB_DIR"; then
- php_with_zlib_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
- $as_echo_n "checking for the location of libz... " >&6; }
- # Check whether --with-zlib-dir was given.
- if test "${with_zlib_dir+set}" = set; then :
- withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
- else
- PHP_ZLIB_DIR=no
- fi
- ext_output=$PHP_ZLIB_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- php_with_xpm_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libXpm" >&5
- $as_echo_n "checking for the location of libXpm... " >&6; }
- # Check whether --with-xpm-dir was given.
- if test "${with_xpm_dir+set}" = set; then :
- withval=$with_xpm_dir; PHP_XPM_DIR=$withval
- else
- PHP_XPM_DIR=no
- fi
- ext_output=$PHP_XPM_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_freetype_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2" >&5
- $as_echo_n "checking for FreeType 2... " >&6; }
- # Check whether --with-freetype-dir was given.
- if test "${with_freetype_dir+set}" = set; then :
- withval=$with_freetype_dir; PHP_FREETYPE_DIR=$withval
- else
- PHP_FREETYPE_DIR=no
- fi
- ext_output=$PHP_FREETYPE_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_enable_gd_jis_conv=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JIS-mapped Japanese font support in GD" >&5
- $as_echo_n "checking whether to enable JIS-mapped Japanese font support in GD... " >&6; }
- # Check whether --enable-gd-jis-conv was given.
- if test "${enable_gd_jis_conv+set}" = set; then :
- enableval=$enable_gd_jis_conv; PHP_GD_JIS_CONV=$enableval
- else
- PHP_GD_JIS_CONV=no
- fi
- ext_output=$PHP_GD_JIS_CONV
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_GD" != "no"; then
- test "$PHP_PNG_DIR" = "no" && PHP_PNG_DIR=yes
- if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
- if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
- PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
- PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
- elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
- PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
- PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
- else
- as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5
- fi
- else
- for i in /usr/local /usr; do
- if test -f "$i/include/zlib/zlib.h"; then
- PHP_ZLIB_DIR="$i"
- PHP_ZLIB_INCDIR="$i/include/zlib"
- elif test -f "$i/include/zlib.h"; then
- PHP_ZLIB_DIR="$i"
- PHP_ZLIB_INCDIR="$i/include"
- fi
- done
- fi
- if test "$PHP_WEBP_DIR" != "no"; then
- for i in $PHP_WEBP_DIR /usr/local /usr; do
- test -f $i/include/webp/decode.h && GD_WEBP_DIR=$i && break
- done
- if test -z "$GD_WEBP_DIR"; then
- as_fn_error $? "webp/decode.h not found." "$LINENO" 5
- fi
- for i in $PHP_WEBP_DIR /usr/local /usr; do
- test -f $i/include/webp/encode.h && GD_WEBP_DIR=$i && break
- done
- if test -z "$GD_WEBP_DIR"; then
- as_fn_error $? "webp/encode.h not found." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$GD_WEBP_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPGetInfo in -lwebp" >&5
- $as_echo_n "checking for WebPGetInfo in -lwebp... " >&6; }
- if ${ac_cv_lib_webp_WebPGetInfo+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lwebp $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char WebPGetInfo ();
- int
- main ()
- {
- return WebPGetInfo ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_webp_WebPGetInfo=yes
- else
- ac_cv_lib_webp_WebPGetInfo=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPGetInfo" >&5
- $as_echo "$ac_cv_lib_webp_WebPGetInfo" >&6; }
- if test "x$ac_cv_lib_webp_WebPGetInfo" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$GD_WEBP_DIR/include" != "/usr/include"; then
- if test -z "$GD_WEBP_DIR/include" || echo "$GD_WEBP_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$GD_WEBP_DIR/include
- else
- ep_dir=`echo $GD_WEBP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_WEBP_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- case pthread in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lpthread $LIBS"
- ;;
- esac
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-lwebp $GD_SHARED_LIBADD"
- if test -n "$GD_WEBP_DIR/$PHP_LIBDIR"; then
- if test "$GD_WEBP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_WEBP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_WEBP_DIR/$PHP_LIBDIR" || echo "$GD_WEBP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_WEBP_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_WEBP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_WEBP_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$GD_WEBP_DIR/$PHP_LIBDIR"; then
- if test "$GD_WEBP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_WEBP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_WEBP_DIR/$PHP_LIBDIR" || echo "$GD_WEBP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_WEBP_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_WEBP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_WEBP_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case webp in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lwebp $LIBS"
- ;;
- esac
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_webp_WebPGetInfo
- as_fn_error $? "Problem with libwebp.(a|so). Please check config.log for more information." "$LINENO" 5
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-webp-dir=<DIR>" >&5
- $as_echo "If configure fails try --with-webp-dir=<DIR>" >&6; }
- fi
- if test "$PHP_JPEG_DIR" != "no"; then
- for i in $PHP_JPEG_DIR /usr/local /usr; do
- test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
- done
- if test -z "$GD_JPEG_DIR"; then
- as_fn_error $? "jpeglib.h not found." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$GD_JPEG_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
- $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
- if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ljpeg $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char jpeg_read_header ();
- int
- main ()
- {
- return jpeg_read_header ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_jpeg_jpeg_read_header=yes
- else
- ac_cv_lib_jpeg_jpeg_read_header=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
- $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
- if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$GD_JPEG_DIR/include" != "/usr/include"; then
- if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$GD_JPEG_DIR/include
- else
- ep_dir=`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD"
- if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
- if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
- if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case jpeg in
- c|c_r|pthread*) ;;
- *)
- LIBS="-ljpeg $LIBS"
- ;;
- esac
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_jpeg_jpeg_read_header
- as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-jpeg-dir=<DIR>" >&5
- $as_echo "If configure fails try --with-jpeg-dir=<DIR>" >&6; }
- fi
- if test "$PHP_PNG_DIR" != "no"; then
- for i in $PHP_PNG_DIR /usr/local /usr; do
- test -f $i/include/png.h && GD_PNG_DIR=$i && break
- done
- if test -z "$GD_PNG_DIR"; then
- as_fn_error $? "png.h not found." "$LINENO" 5
- fi
- if test "$PHP_ZLIB_DIR" = "no"; then
- as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5
- $as_echo_n "checking for png_write_image in -lpng... " >&6; }
- if ${ac_cv_lib_png_png_write_image+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpng $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char png_write_image ();
- int
- main ()
- {
- return png_write_image ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_png_png_write_image=yes
- else
- ac_cv_lib_png_png_write_image=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5
- $as_echo "$ac_cv_lib_png_png_write_image" >&6; }
- if test "x$ac_cv_lib_png_png_write_image" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$GD_PNG_DIR/include" != "/usr/include"; then
- if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$GD_PNG_DIR/include
- else
- ep_dir=`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD"
- if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
- if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
- if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case z in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lz $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD"
- if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
- if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_PNG_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
- if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_PNG_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case png in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lpng $LIBS"
- ;;
- esac
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_png_png_write_image
- as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&5
- $as_echo "If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&6; }
- fi
- if test "$PHP_XPM_DIR" != "no"; then
- for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
- test -f $i/include/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i && break
- test -f $i/include/X11/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i/X11 && break
- done
- if test -z "$GD_XPM_DIR"; then
- as_fn_error $? "xpm.h not found." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$GD_XPM_DIR/$PHP_LIBDIR -lX11
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5
- $as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; }
- if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lXpm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char XpmFreeXpmImage ();
- int
- main ()
- {
- return XpmFreeXpmImage ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_Xpm_XpmFreeXpmImage=yes
- else
- ac_cv_lib_Xpm_XpmFreeXpmImage=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5
- $as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; }
- if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$GD_XPM_INC" != "/usr/include"; then
- if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then
- ai_p=$GD_XPM_INC
- else
- ep_dir=`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_XPM_INC"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD"
- if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
- if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_XPM_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
- if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_XPM_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case Xpm in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lXpm $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD"
- if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
- if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_XPM_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
- if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_XPM_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case X11 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lX11 $LIBS"
- ;;
- esac
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_Xpm_XpmFreeXpmImage
- as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-xpm-dir=<DIR>" >&5
- $as_echo "If configure fails try --with-xpm-dir=<DIR>" >&6; }
- fi
- if test "$PHP_FREETYPE_DIR" != "no"; then
- for i in $PHP_FREETYPE_DIR /usr/local /usr; do
- if test -f "$i/bin/freetype-config"; then
- FREETYPE2_DIR=$i
- FREETYPE2_CONFIG="$i/bin/freetype-config"
- break
- fi
- done
- if test -z "$FREETYPE2_DIR"; then
- as_fn_error $? "freetype-config not found." "$LINENO" 5
- fi
- FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags`
- FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs`
- for ac_i in $FREETYPE2_CFLAGS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $FREETYPE2_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- $as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h
- $as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-freetype-dir=<DIR>" >&5
- $as_echo "If configure fails try --with-freetype-dir=<DIR>" >&6; }
- fi
- if test "$PHP_GD_JIS_CONV" = "yes"; then
- USE_GD_JIS_CONV=1
- fi
- fi
- if test "$PHP_GD" = "yes"; then
- GD_MODULE_TYPE=builtin
- extra_sources="libgd/gd.c libgd/gd_gd.c libgd/gd_gd2.c libgd/gd_io.c libgd/gd_io_dp.c \
- libgd/gd_io_file.c libgd/gd_ss.c libgd/gd_io_ss.c libgd/gd_webp.c \
- libgd/gd_png.c libgd/gd_jpeg.c libgd/gdxpm.c libgd/gdfontt.c libgd/gdfonts.c \
- libgd/gdfontmb.c libgd/gdfontl.c libgd/gdfontg.c libgd/gdtables.c libgd/gdft.c \
- libgd/gdcache.c libgd/gdkanji.c libgd/wbmp.c libgd/gd_wbmp.c libgd/gdhelpers.c \
- libgd/gd_topal.c libgd/gd_gif_in.c libgd/gd_xbm.c libgd/gd_gif_out.c libgd/gd_security.c \
- libgd/gd_filter.c libgd/gd_pixelate.c libgd/gd_rotate.c libgd/gd_color_match.c \
- libgd/gd_transform.c libgd/gd_crop.c libgd/gd_interpolation.c libgd/gd_matrix.c \
- libgd/gd_bmp.c"
- for ac_func in fabsf floorf
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- $as_echo "#define HAVE_GD_BUNDLED 1" >>confdefs.h
- $as_echo "#define HAVE_GD_PNG 1" >>confdefs.h
- $as_echo "#define HAVE_GD_BMP 1" >>confdefs.h
- $as_echo "#define HAVE_GD_CACHE_CREATE 1" >>confdefs.h
- GDLIB_CFLAGS="-DHAVE_LIBPNG"
- if test -n "$GD_WEBP_DIR"; then
- $as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h
- GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBWEBP"
- fi
- if test -n "$GD_JPEG_DIR"; then
- $as_echo "#define HAVE_GD_JPG 1" >>confdefs.h
- GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBJPEG"
- fi
- if test -n "$GD_XPM_DIR"; then
- $as_echo "#define HAVE_GD_XPM 1" >>confdefs.h
- GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_XPM"
- fi
- if test -n "$FREETYPE2_DIR"; then
- $as_echo "#define HAVE_GD_FREETYPE 1" >>confdefs.h
- $as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h
- GDLIB_CFLAGS="$GDLIB_CFLAGS -DHAVE_LIBFREETYPE -DENABLE_GD_TTF"
- fi
- if test -n "$USE_GD_JIS_CONV"; then
- $as_echo "#define USE_GD_JISX0208 1" >>confdefs.h
- GDLIB_CFLAGS="$GDLIB_CFLAGS -DJISX0208"
- fi
- else
- if test "$PHP_GD" != "no"; then
- GD_MODULE_TYPE=external
- extra_sources="gd_compat.c"
- if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
- if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
- PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
- PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
- elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
- PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
- PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
- else
- as_fn_error $? "Can't find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5
- fi
- else
- for i in /usr/local /usr; do
- if test -f "$i/include/zlib/zlib.h"; then
- PHP_ZLIB_DIR="$i"
- PHP_ZLIB_INCDIR="$i/include/zlib"
- elif test -f "$i/include/zlib.h"; then
- PHP_ZLIB_DIR="$i"
- PHP_ZLIB_INCDIR="$i/include"
- fi
- done
- fi
- if test "$PHP_WEBP_DIR" != "no"; then
- for i in $PHP_WEBP_DIR /usr/local /usr; do
- test -f $i/include/webp/decode.h && GD_WEBP_DIR=$i && break
- done
- if test -z "$GD_WEBP_DIR"; then
- as_fn_error $? "webp/decode.h not found." "$LINENO" 5
- fi
- for i in $PHP_WEBP_DIR /usr/local /usr; do
- test -f $i/include/webp/encode.h && GD_WEBP_DIR=$i && break
- done
- if test -z "$GD_WEBP_DIR"; then
- as_fn_error $? "webp/encode.h not found." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$GD_WEBP_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPGetInfo in -lwebp" >&5
- $as_echo_n "checking for WebPGetInfo in -lwebp... " >&6; }
- if ${ac_cv_lib_webp_WebPGetInfo+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lwebp $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char WebPGetInfo ();
- int
- main ()
- {
- return WebPGetInfo ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_webp_WebPGetInfo=yes
- else
- ac_cv_lib_webp_WebPGetInfo=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPGetInfo" >&5
- $as_echo "$ac_cv_lib_webp_WebPGetInfo" >&6; }
- if test "x$ac_cv_lib_webp_WebPGetInfo" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$GD_WEBP_DIR/include" != "/usr/include"; then
- if test -z "$GD_WEBP_DIR/include" || echo "$GD_WEBP_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$GD_WEBP_DIR/include
- else
- ep_dir=`echo $GD_WEBP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_WEBP_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- case pthread in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lpthread $LIBS"
- ;;
- esac
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-lwebp $GD_SHARED_LIBADD"
- if test -n "$GD_WEBP_DIR/$PHP_LIBDIR"; then
- if test "$GD_WEBP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_WEBP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_WEBP_DIR/$PHP_LIBDIR" || echo "$GD_WEBP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_WEBP_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_WEBP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_WEBP_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$GD_WEBP_DIR/$PHP_LIBDIR"; then
- if test "$GD_WEBP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_WEBP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_WEBP_DIR/$PHP_LIBDIR" || echo "$GD_WEBP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_WEBP_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_WEBP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_WEBP_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case webp in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lwebp $LIBS"
- ;;
- esac
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_webp_WebPGetInfo
- as_fn_error $? "Problem with libwebp.(a|so). Please check config.log for more information." "$LINENO" 5
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-webp-dir=<DIR>" >&5
- $as_echo "If configure fails try --with-webp-dir=<DIR>" >&6; }
- fi
- if test "$PHP_JPEG_DIR" != "no"; then
- for i in $PHP_JPEG_DIR /usr/local /usr; do
- test -f $i/include/jpeglib.h && GD_JPEG_DIR=$i && break
- done
- if test -z "$GD_JPEG_DIR"; then
- as_fn_error $? "jpeglib.h not found." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$GD_JPEG_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
- $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
- if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ljpeg $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char jpeg_read_header ();
- int
- main ()
- {
- return jpeg_read_header ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_jpeg_jpeg_read_header=yes
- else
- ac_cv_lib_jpeg_jpeg_read_header=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
- $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
- if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$GD_JPEG_DIR/include" != "/usr/include"; then
- if test -z "$GD_JPEG_DIR/include" || echo "$GD_JPEG_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$GD_JPEG_DIR/include
- else
- ep_dir=`echo $GD_JPEG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-ljpeg $GD_SHARED_LIBADD"
- if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
- if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$GD_JPEG_DIR/$PHP_LIBDIR"; then
- if test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_JPEG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_JPEG_DIR/$PHP_LIBDIR" || echo "$GD_JPEG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_JPEG_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_JPEG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_JPEG_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case jpeg in
- c|c_r|pthread*) ;;
- *)
- LIBS="-ljpeg $LIBS"
- ;;
- esac
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_jpeg_jpeg_read_header
- as_fn_error $? "Problem with libjpeg.(a|so). Please check config.log for more information." "$LINENO" 5
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-jpeg-dir=<DIR>" >&5
- $as_echo "If configure fails try --with-jpeg-dir=<DIR>" >&6; }
- fi
- if test "$PHP_PNG_DIR" != "no"; then
- for i in $PHP_PNG_DIR /usr/local /usr; do
- test -f $i/include/png.h && GD_PNG_DIR=$i && break
- done
- if test -z "$GD_PNG_DIR"; then
- as_fn_error $? "png.h not found." "$LINENO" 5
- fi
- if test "$PHP_ZLIB_DIR" = "no"; then
- as_fn_error $? "PNG support requires ZLIB. Use --with-zlib-dir=<DIR>" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz -L$GD_PNG_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_write_image in -lpng" >&5
- $as_echo_n "checking for png_write_image in -lpng... " >&6; }
- if ${ac_cv_lib_png_png_write_image+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpng $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char png_write_image ();
- int
- main ()
- {
- return png_write_image ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_png_png_write_image=yes
- else
- ac_cv_lib_png_png_write_image=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_write_image" >&5
- $as_echo "$ac_cv_lib_png_png_write_image" >&6; }
- if test "x$ac_cv_lib_png_png_write_image" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$GD_PNG_DIR/include" != "/usr/include"; then
- if test -z "$GD_PNG_DIR/include" || echo "$GD_PNG_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$GD_PNG_DIR/include
- else
- ep_dir=`echo $GD_PNG_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-lz $GD_SHARED_LIBADD"
- if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
- if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
- if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case z in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lz $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-lpng $GD_SHARED_LIBADD"
- if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
- if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_PNG_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$GD_PNG_DIR/$PHP_LIBDIR"; then
- if test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_PNG_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_PNG_DIR/$PHP_LIBDIR" || echo "$GD_PNG_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_PNG_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_PNG_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_PNG_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case png in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lpng $LIBS"
- ;;
- esac
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_png_png_write_image
- as_fn_error $? "Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information." "$LINENO" 5
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&5
- $as_echo "If configure fails try --with-png-dir=<DIR> and --with-zlib-dir=<DIR>" >&6; }
- fi
- if test "$PHP_XPM_DIR" != "no"; then
- for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
- test -f $i/include/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i && break
- test -f $i/include/X11/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i/X11 && break
- done
- if test -z "$GD_XPM_DIR"; then
- as_fn_error $? "xpm.h not found." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$GD_XPM_DIR/$PHP_LIBDIR -lX11
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmFreeXpmImage in -lXpm" >&5
- $as_echo_n "checking for XpmFreeXpmImage in -lXpm... " >&6; }
- if ${ac_cv_lib_Xpm_XpmFreeXpmImage+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lXpm $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char XpmFreeXpmImage ();
- int
- main ()
- {
- return XpmFreeXpmImage ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_Xpm_XpmFreeXpmImage=yes
- else
- ac_cv_lib_Xpm_XpmFreeXpmImage=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmFreeXpmImage" >&5
- $as_echo "$ac_cv_lib_Xpm_XpmFreeXpmImage" >&6; }
- if test "x$ac_cv_lib_Xpm_XpmFreeXpmImage" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$GD_XPM_INC" != "/usr/include"; then
- if test -z "$GD_XPM_INC" || echo "$GD_XPM_INC" | grep '^/' >/dev/null ; then
- ai_p=$GD_XPM_INC
- else
- ep_dir=`echo $GD_XPM_INC|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_XPM_INC"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-lXpm $GD_SHARED_LIBADD"
- if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
- if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_XPM_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
- if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_XPM_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case Xpm in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lXpm $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-lX11 $GD_SHARED_LIBADD"
- if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
- if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_XPM_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$GD_XPM_DIR/$PHP_LIBDIR"; then
- if test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GD_XPM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GD_XPM_DIR/$PHP_LIBDIR" || echo "$GD_XPM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GD_XPM_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GD_XPM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_XPM_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case X11 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lX11 $LIBS"
- ;;
- esac
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_Xpm_XpmFreeXpmImage
- as_fn_error $? "Problem with libXpm.(a|so) or libX11.(a|so). Please check config.log for more information." "$LINENO" 5
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-xpm-dir=<DIR>" >&5
- $as_echo "If configure fails try --with-xpm-dir=<DIR>" >&6; }
- fi
- if test "$PHP_FREETYPE_DIR" != "no"; then
- for i in $PHP_FREETYPE_DIR /usr/local /usr; do
- if test -f "$i/bin/freetype-config"; then
- FREETYPE2_DIR=$i
- FREETYPE2_CONFIG="$i/bin/freetype-config"
- break
- fi
- done
- if test -z "$FREETYPE2_DIR"; then
- as_fn_error $? "freetype-config not found." "$LINENO" 5
- fi
- FREETYPE2_CFLAGS=`$FREETYPE2_CONFIG --cflags`
- FREETYPE2_LIBS=`$FREETYPE2_CONFIG --libs`
- for ac_i in $FREETYPE2_CFLAGS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $FREETYPE2_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="$GD_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="$GD_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- $as_echo "#define HAVE_LIBFREETYPE 1" >>confdefs.h
- $as_echo "#define ENABLE_GD_TTF 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: If configure fails try --with-freetype-dir=<DIR>" >&5
- $as_echo "If configure fails try --with-freetype-dir=<DIR>" >&6; }
- fi
- for i in include/gd include/gd2 include gd ""; do
- test -f "$PHP_GD/$i/gd.h" && GD_INCLUDE="$PHP_GD/$i"
- done
- if test -z "$GD_INCLUDE"; then
- as_fn_error $? "Unable to find gd.h anywhere under $PHP_GD" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PHP_GD/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdSetErrorMethod in -lgd" >&5
- $as_echo_n "checking for gdSetErrorMethod in -lgd... " >&6; }
- if ${ac_cv_lib_gd_gdSetErrorMethod+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgd $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gdSetErrorMethod ();
- int
- main ()
- {
- return gdSetErrorMethod ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gd_gdSetErrorMethod=yes
- else
- ac_cv_lib_gd_gdSetErrorMethod=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdSetErrorMethod" >&5
- $as_echo "$ac_cv_lib_gd_gdSetErrorMethod" >&6; }
- if test "x$ac_cv_lib_gd_gdSetErrorMethod" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-lgd $GD_SHARED_LIBADD"
- if test -n "$PHP_GD/$PHP_LIBDIR"; then
- if test "$PHP_GD/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_GD/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_GD/$PHP_LIBDIR" || echo "$PHP_GD/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_GD/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_GD/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_GD/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GD_SHARED_LIBADD="-L$ai_p $GD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GD_SHARED_LIBADD="$ld_runpath_switch$ai_p $GD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PHP_GD/$PHP_LIBDIR"; then
- if test "$PHP_GD/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_GD/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_GD/$PHP_LIBDIR" || echo "$PHP_GD/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_GD/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_GD/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_GD/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case gd in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lgd $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_LIBGD 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gd_gdSetErrorMethod
- as_fn_error $? "Unable to find libgd.(a|so) >= 2.1.0 anywhere under $PHP_GD" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=" $GD_SHARED_LIBADD "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromPng in -lgd" >&5
- $as_echo_n "checking for gdImageCreateFromPng in -lgd... " >&6; }
- if ${ac_cv_lib_gd_gdImageCreateFromPng+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgd $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gdImageCreateFromPng ();
- int
- main ()
- {
- return gdImageCreateFromPng ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gd_gdImageCreateFromPng=yes
- else
- ac_cv_lib_gd_gdImageCreateFromPng=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromPng" >&5
- $as_echo "$ac_cv_lib_gd_gdImageCreateFromPng" >&6; }
- if test "x$ac_cv_lib_gd_gdImageCreateFromPng" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_GD_PNG 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gd_gdImageCreateFromPng
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=" $GD_SHARED_LIBADD "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromWebp in -lgd" >&5
- $as_echo_n "checking for gdImageCreateFromWebp in -lgd... " >&6; }
- if ${ac_cv_lib_gd_gdImageCreateFromWebp+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgd $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gdImageCreateFromWebp ();
- int
- main ()
- {
- return gdImageCreateFromWebp ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gd_gdImageCreateFromWebp=yes
- else
- ac_cv_lib_gd_gdImageCreateFromWebp=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromWebp" >&5
- $as_echo "$ac_cv_lib_gd_gdImageCreateFromWebp" >&6; }
- if test "x$ac_cv_lib_gd_gdImageCreateFromWebp" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_GD_WEBP 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gd_gdImageCreateFromWebp
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=" $GD_SHARED_LIBADD "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromJpeg in -lgd" >&5
- $as_echo_n "checking for gdImageCreateFromJpeg in -lgd... " >&6; }
- if ${ac_cv_lib_gd_gdImageCreateFromJpeg+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgd $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gdImageCreateFromJpeg ();
- int
- main ()
- {
- return gdImageCreateFromJpeg ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gd_gdImageCreateFromJpeg=yes
- else
- ac_cv_lib_gd_gdImageCreateFromJpeg=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromJpeg" >&5
- $as_echo "$ac_cv_lib_gd_gdImageCreateFromJpeg" >&6; }
- if test "x$ac_cv_lib_gd_gdImageCreateFromJpeg" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_GD_JPG 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gd_gdImageCreateFromJpeg
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=" $GD_SHARED_LIBADD "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromXpm in -lgd" >&5
- $as_echo_n "checking for gdImageCreateFromXpm in -lgd... " >&6; }
- if ${ac_cv_lib_gd_gdImageCreateFromXpm+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgd $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gdImageCreateFromXpm ();
- int
- main ()
- {
- return gdImageCreateFromXpm ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gd_gdImageCreateFromXpm=yes
- else
- ac_cv_lib_gd_gdImageCreateFromXpm=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromXpm" >&5
- $as_echo "$ac_cv_lib_gd_gdImageCreateFromXpm" >&6; }
- if test "x$ac_cv_lib_gd_gdImageCreateFromXpm" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_GD_XPM 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gd_gdImageCreateFromXpm
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=" $GD_SHARED_LIBADD "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromBmp in -lgd" >&5
- $as_echo_n "checking for gdImageCreateFromBmp in -lgd... " >&6; }
- if ${ac_cv_lib_gd_gdImageCreateFromBmp+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgd $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gdImageCreateFromBmp ();
- int
- main ()
- {
- return gdImageCreateFromBmp ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gd_gdImageCreateFromBmp=yes
- else
- ac_cv_lib_gd_gdImageCreateFromBmp=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromBmp" >&5
- $as_echo "$ac_cv_lib_gd_gdImageCreateFromBmp" >&6; }
- if test "x$ac_cv_lib_gd_gdImageCreateFromBmp" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_GD_BMP 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gd_gdImageCreateFromBmp
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=" $GD_SHARED_LIBADD "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageStringFT in -lgd" >&5
- $as_echo_n "checking for gdImageStringFT in -lgd... " >&6; }
- if ${ac_cv_lib_gd_gdImageStringFT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgd $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gdImageStringFT ();
- int
- main ()
- {
- return gdImageStringFT ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gd_gdImageStringFT=yes
- else
- ac_cv_lib_gd_gdImageStringFT=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageStringFT" >&5
- $as_echo "$ac_cv_lib_gd_gdImageStringFT" >&6; }
- if test "x$ac_cv_lib_gd_gdImageStringFT" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_GD_FREETYPE 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gd_gdImageStringFT
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=" $GD_SHARED_LIBADD "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdVersionString in -lgd" >&5
- $as_echo_n "checking for gdVersionString in -lgd... " >&6; }
- if ${ac_cv_lib_gd_gdVersionString+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgd $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gdVersionString ();
- int
- main ()
- {
- return gdVersionString ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gd_gdVersionString=yes
- else
- ac_cv_lib_gd_gdVersionString=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdVersionString" >&5
- $as_echo "$ac_cv_lib_gd_gdVersionString" >&6; }
- if test "x$ac_cv_lib_gd_gdVersionString" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_GD_LIBVERSION 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gd_gdVersionString
- fi
- if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then
- GD_INCLUDE=$GD_INCLUDE
- else
- ep_dir=`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- GD_INCLUDE="$ep_realdir"/`basename "$GD_INCLUDE"`
- fi
- fi
- fi
- if test "$PHP_GD" != "no"; then
- ext_builddir=ext/gd
- ext_srcdir=$abs_srcdir/ext/gd
- ext_dir=ext/gd
- ac_extra=`echo "\\$(GDLIB_CFLAGS)"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_GD_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in gd.c $extra_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC gd;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC gd;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_GD_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in gd.c $extra_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_gd="$shared_objects_gd $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gd.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/gd.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gd"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/gd.$suffix: $ext_builddir/gd.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/gd.$suffix \$(phplibdir)
- $ext_builddir/gd.$suffix: \$(shared_objects_gd) \$(GD_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_gd) \$(GD_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_GD 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_GD_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in gd.c $extra_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC gd;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in gd.c $extra_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC gd;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=gd
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- if test "$GD_MODULE_TYPE" = "builtin"; then
- BUILD_DIR="$BUILD_DIR $ext_builddir/libgd"
- GDLIB_CFLAGS="-I$ext_srcdir/libgd $GDLIB_CFLAGS"
- GD_HEADER_DIRS="ext/gd/ ext/gd/libgd/"
- old_LIBS=$LIBS
- LIBS=" $GD_SHARED_LIBADD $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char foobar () {}
- char foobar();
- int main() {
- foobar();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- else
- LIBS=$old_LIBS
- as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- else
- GD_HEADER_DIRS="ext/gd/"
- GDLIB_CFLAGS="-I$GD_INCLUDE $GDLIB_CFLAGS"
- if test "$GD_INCLUDE" != "/usr/include"; then
- if test -z "$GD_INCLUDE" || echo "$GD_INCLUDE" | grep '^/' >/dev/null ; then
- ai_p=$GD_INCLUDE
- else
- ep_dir=`echo $GD_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GD_INCLUDE"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=" $GD_SHARED_LIBADD "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreate in -lgd" >&5
- $as_echo_n "checking for gdImageCreate in -lgd... " >&6; }
- if ${ac_cv_lib_gd_gdImageCreate+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgd $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char gdImageCreate ();
- int
- main ()
- {
- return gdImageCreate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gd_gdImageCreate=yes
- else
- ac_cv_lib_gd_gdImageCreate=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreate" >&5
- $as_echo "$ac_cv_lib_gd_gdImageCreate" >&6; }
- if test "x$ac_cv_lib_gd_gdImageCreate" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gd_gdImageCreate
- as_fn_error $? "GD build test failed. Please check the config.log for details." "$LINENO" 5
- fi
- fi
- for header_file in $GD_HEADER_DIRS; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- PHP_VAR_SUBST="$PHP_VAR_SUBST GDLIB_CFLAGS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST GD_SHARED_LIBADD"
- fi
- php_with_gettext=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext support" >&5
- $as_echo_n "checking for GNU gettext support... " >&6; }
- # Check whether --with-gettext was given.
- if test "${with_gettext+set}" = set; then :
- withval=$with_gettext; PHP_GETTEXT=$withval
- else
- PHP_GETTEXT=no
- test "$PHP_ENABLE_ALL" && PHP_GETTEXT=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_GETTEXT in
- shared,*)
- PHP_GETTEXT=`echo "$PHP_GETTEXT"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_GETTEXT=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_GETTEXT" != "no"; then
- for i in $PHP_GETTEXT /usr/local /usr; do
- test -r $i/include/libintl.h && GETTEXT_DIR=$i && break
- done
- if test -z "$GETTEXT_DIR"; then
- as_fn_error $? "Cannot locate header file libintl.h" "$LINENO" 5
- fi
- GETTEXT_LIBDIR=$GETTEXT_DIR/$PHP_LIBDIR
- GETTEXT_INCDIR=$GETTEXT_DIR/include
- O_LDFLAGS=$LDFLAGS
- LDFLAGS="$LDFLAGS -L$GETTEXT_LIBDIR"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
- $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
- if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lintl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char bindtextdomain ();
- int
- main ()
- {
- return bindtextdomain ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_intl_bindtextdomain=yes
- else
- ac_cv_lib_intl_bindtextdomain=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
- $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
- if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
- GETTEXT_LIBS=intl
- GETTEXT_CHECK_IN_LIB=intl
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lc" >&5
- $as_echo_n "checking for bindtextdomain in -lc... " >&6; }
- if ${ac_cv_lib_c_bindtextdomain+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lc $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char bindtextdomain ();
- int
- main ()
- {
- return bindtextdomain ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_c_bindtextdomain=yes
- else
- ac_cv_lib_c_bindtextdomain=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_bindtextdomain" >&5
- $as_echo "$ac_cv_lib_c_bindtextdomain" >&6; }
- if test "x$ac_cv_lib_c_bindtextdomain" = xyes; then :
- GETTEXT_LIBS=
- GETTEXT_CHECK_IN_LIB=c
- else
- as_fn_error $? "Unable to find required gettext library" "$LINENO" 5
- fi
- fi
- $as_echo "#define HAVE_LIBINTL 1" >>confdefs.h
- ext_builddir=ext/gettext
- ext_srcdir=$abs_srcdir/ext/gettext
- ext_dir=ext/gettext
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_GETTEXT_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in gettext.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC gettext;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC gettext;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_GETTEXT_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in gettext.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_gettext="$shared_objects_gettext $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gettext.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/gettext.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gettext"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/gettext.$suffix: $ext_builddir/gettext.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/gettext.$suffix \$(phplibdir)
- $ext_builddir/gettext.$suffix: \$(shared_objects_gettext) \$(GETTEXT_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_gettext) \$(GETTEXT_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_GETTEXT 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_GETTEXT_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in gettext.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC gettext;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in gettext.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC gettext;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=gettext
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST GETTEXT_SHARED_LIBADD"
- if test "$GETTEXT_INCDIR" != "/usr/include"; then
- if test -z "$GETTEXT_INCDIR" || echo "$GETTEXT_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$GETTEXT_INCDIR
- else
- ep_dir=`echo $GETTEXT_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GETTEXT_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_ngettext" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
- $as_echo_n "checking for ngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char ngettext ();
- int
- main ()
- {
- return ngettext ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- $as_echo "#define HAVE_NGETTEXT 1" >>confdefs.h
- fi
- as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dngettext" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
- $as_echo_n "checking for dngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dngettext ();
- int
- main ()
- {
- return dngettext ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- $as_echo "#define HAVE_DNGETTEXT 1" >>confdefs.h
- fi
- as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_dcngettext" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB" >&5
- $as_echo_n "checking for dcngettext in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dcngettext ();
- int
- main ()
- {
- return dcngettext ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- $as_echo "#define HAVE_DCNGETTEXT 1" >>confdefs.h
- fi
- as_ac_Lib=`$as_echo "ac_cv_lib_$GETTEXT_CHECK_IN_LIB''_bind_textdomain_codeset" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB" >&5
- $as_echo_n "checking for bind_textdomain_codeset in -l$GETTEXT_CHECK_IN_LIB... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$GETTEXT_CHECK_IN_LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char bind_textdomain_codeset ();
- int
- main ()
- {
- return bind_textdomain_codeset ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- $as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
- fi
- LDFLAGS=$O_LDFLAGS
- if test -n "$GETTEXT_LIBS"; then
- if test "$ext_shared" = "yes"; then
- GETTEXT_SHARED_LIBADD="-l$GETTEXT_LIBS $GETTEXT_SHARED_LIBADD"
- if test -n "$GETTEXT_LIBDIR"; then
- if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then
- if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GETTEXT_LIBDIR
- else
- ep_dir=`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GETTEXT_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GETTEXT_SHARED_LIBADD="-L$ai_p $GETTEXT_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GETTEXT_SHARED_LIBADD="$ld_runpath_switch$ai_p $GETTEXT_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$GETTEXT_LIBDIR"; then
- if test "$GETTEXT_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GETTEXT_LIBDIR" != "/usr/lib"; then
- if test -z "$GETTEXT_LIBDIR" || echo "$GETTEXT_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GETTEXT_LIBDIR
- else
- ep_dir=`echo $GETTEXT_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GETTEXT_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $GETTEXT_LIBS in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$GETTEXT_LIBS $LIBS"
- ;;
- esac
- fi
- fi
- fi
- php_with_gmp=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU MP support" >&5
- $as_echo_n "checking for GNU MP support... " >&6; }
- # Check whether --with-gmp was given.
- if test "${with_gmp+set}" = set; then :
- withval=$with_gmp; PHP_GMP=$withval
- else
- PHP_GMP=no
- test "$PHP_ENABLE_ALL" && PHP_GMP=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_GMP in
- shared,*)
- PHP_GMP=`echo "$PHP_GMP"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_GMP=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_GMP" != "no"; then
- MACHINE_INCLUDES=$($CC -dumpmachine)
- for i in $PHP_GMP /usr/local /usr; do
- test -f $i/include/gmp.h && GMP_DIR=$i && break
- test -f $i/include/$MACHINE_INCLUDES/gmp.h && GMP_DIR=$i && break
- done
- if test -z "$GMP_DIR"; then
- as_fn_error $? "Unable to locate gmp.h" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$GMP_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_rootrem in -lgmp" >&5
- $as_echo_n "checking for __gmpz_rootrem in -lgmp... " >&6; }
- if ${ac_cv_lib_gmp___gmpz_rootrem+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgmp $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __gmpz_rootrem ();
- int
- main ()
- {
- return __gmpz_rootrem ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gmp___gmpz_rootrem=yes
- else
- ac_cv_lib_gmp___gmpz_rootrem=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_rootrem" >&5
- $as_echo "$ac_cv_lib_gmp___gmpz_rootrem" >&6; }
- if test "x$ac_cv_lib_gmp___gmpz_rootrem" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gmp___gmpz_rootrem
- as_fn_error $? "GNU MP Library version 4.2 or greater required." "$LINENO" 5
- fi
- if test "$ext_shared" = "yes"; then
- GMP_SHARED_LIBADD="-lgmp $GMP_SHARED_LIBADD"
- if test -n "$GMP_DIR/$PHP_LIBDIR"; then
- if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GMP_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GMP_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- GMP_SHARED_LIBADD="-L$ai_p $GMP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && GMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $GMP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$GMP_DIR/$PHP_LIBDIR"; then
- if test "$GMP_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$GMP_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$GMP_DIR/$PHP_LIBDIR" || echo "$GMP_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$GMP_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $GMP_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GMP_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case gmp in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lgmp $LIBS"
- ;;
- esac
- fi
- if test "$GMP_DIR/include" != "/usr/include"; then
- if test -z "$GMP_DIR/include" || echo "$GMP_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$GMP_DIR/include
- else
- ep_dir=`echo $GMP_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$GMP_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- for header_file in ext/gmp/php_gmp_int.h; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- ext_builddir=ext/gmp
- ext_srcdir=$abs_srcdir/ext/gmp
- ext_dir=ext/gmp
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_GMP_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in gmp.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC gmp;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC gmp;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_GMP_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in gmp.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_gmp="$shared_objects_gmp $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/gmp.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/gmp.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_gmp"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/gmp.$suffix: $ext_builddir/gmp.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/gmp.$suffix \$(phplibdir)
- $ext_builddir/gmp.$suffix: \$(shared_objects_gmp) \$(GMP_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_gmp) \$(GMP_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_GMP 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_GMP_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in gmp.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC gmp;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in gmp.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC gmp;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=gmp
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST GMP_SHARED_LIBADD"
- $as_echo "#define HAVE_GMP 1" >>confdefs.h
- fi
- php_with_mhash=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mhash support" >&5
- $as_echo_n "checking for mhash support... " >&6; }
- # Check whether --with-mhash was given.
- if test "${with_mhash+set}" = set; then :
- withval=$with_mhash; PHP_MHASH=$withval
- else
- PHP_MHASH=no
- test "$PHP_ENABLE_ALL" && PHP_MHASH=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_MHASH in
- shared,*)
- PHP_MHASH=`echo "$PHP_MHASH"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_MHASH=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_enable_hash=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hash support" >&5
- $as_echo_n "checking whether to enable hash support... " >&6; }
- # Check whether --enable-hash was given.
- if test "${enable_hash+set}" = set; then :
- enableval=$enable_hash; PHP_HASH=$enableval
- else
- PHP_HASH=yes
- test "$PHP_ENABLE_ALL" && PHP_HASH=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_HASH in
- shared,*)
- PHP_HASH=`echo "$PHP_HASH"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_HASH=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_MHASH" != "no"; then
- if test "$PHP_HASH" = "no"; then
- PHP_HASH="yes"
- fi
- $as_echo "#define PHP_MHASH_BC 1" >>confdefs.h
- fi
- if test "$PHP_HASH" != "no"; then
- $as_echo "#define HAVE_HASH_EXT 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
- $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
- if ${ac_cv_c_bigendian_php+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_c_bigendian_php=unknown
- if test "$cross_compiling" = yes; then :
- ac_cv_c_bigendian_php=unknown
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int main(void)
- {
- short one = 1;
- char *cp = (char *)&one;
- if (*cp == 0) {
- return(0);
- } else {
- return(1);
- }
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_c_bigendian_php=yes
- else
- ac_cv_c_bigendian_php=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian_php" >&5
- $as_echo "$ac_cv_c_bigendian_php" >&6; }
- if test $ac_cv_c_bigendian_php = yes; then
- $as_echo "#define WORDS_BIGENDIAN /**/" >>confdefs.h
- fi
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
- $as_echo_n "checking size of short... " >&6; }
- if ${ac_cv_sizeof_short+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_short" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (short)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_short=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
- $as_echo "$ac_cv_sizeof_short" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_SHORT $ac_cv_sizeof_short
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
- $as_echo_n "checking size of int... " >&6; }
- if ${ac_cv_sizeof_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
- $as_echo "$ac_cv_sizeof_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_INT $ac_cv_sizeof_int
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
- $as_echo_n "checking size of long... " >&6; }
- if ${ac_cv_sizeof_long+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
- $as_echo "$ac_cv_sizeof_long" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG $ac_cv_sizeof_long
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
- $as_echo_n "checking size of long long... " >&6; }
- if ${ac_cv_sizeof_long_long+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long long)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_long=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
- $as_echo "$ac_cv_sizeof_long_long" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
- _ACEOF
- if test $ac_cv_c_bigendian_php = yes; then
- EXT_HASH_SHA3_SOURCES="hash_sha3.c"
- $as_echo "#define HAVE_SLOW_HASH3 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Use SHA3 slow implementation on bigendian\"" >&5
- $as_echo "$as_me: WARNING: \"Use SHA3 slow implementation on bigendian\"" >&2;}
- else
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
- $as_echo_n "checking size of long int... " >&6; }
- if ${ac_cv_sizeof_long_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
- $as_echo "$ac_cv_sizeof_long_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking if we're at 64-bit platform" >&5
- $as_echo_n "checking checking if we're at 64-bit platform... " >&6; }
- if test "$ac_cv_sizeof_long_int" = "4" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- SHA3_DIR="sha3/generic32lc"
- SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-inplace32BI.c"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- SHA3_DIR="sha3/generic64lc"
- SHA3_OPT_SRC="$SHA3_DIR/KeccakP-1600-opt64.c"
- fi
- EXT_HASH_SHA3_SOURCES="$SHA3_OPT_SRC $SHA3_DIR/KeccakHash.c $SHA3_DIR/KeccakSponge.c hash_sha3.c"
- PHP_HASH_CFLAGS="-I@ext_srcdir@/$SHA3_DIR -DKeccakP200_excluded -DKeccakP400_excluded -DKeccakP800_excluded"
- $php_shtool mkdir -p ext/hash/$SHA3_DIR
- fi
- EXT_HASH_SOURCES="hash.c hash_md.c hash_sha.c hash_ripemd.c hash_haval.c \
- hash_tiger.c hash_gost.c hash_snefru.c hash_whirlpool.c hash_adler32.c \
- hash_crc32.c hash_fnv.c hash_joaat.c $EXT_HASH_SHA3_SOURCES"
- EXT_HASH_HEADERS="php_hash.h php_hash_md.h php_hash_sha.h php_hash_ripemd.h \
- php_hash_haval.h php_hash_tiger.h php_hash_gost.h php_hash_snefru.h \
- php_hash_whirlpool.h php_hash_adler32.h php_hash_crc32.h \
- php_hash_fnv.h php_hash_joaat.h php_hash_sha3.h"
- ext_builddir=ext/hash
- ext_srcdir=$abs_srcdir/ext/hash
- ext_dir=ext/hash
- ac_extra=`echo "$PHP_HASH_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_HASH_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $EXT_HASH_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC hash;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC hash;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_HASH_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in $EXT_HASH_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_hash="$shared_objects_hash $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/hash.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/hash.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_hash"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/hash.$suffix: $ext_builddir/hash.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/hash.$suffix \$(phplibdir)
- $ext_builddir/hash.$suffix: \$(shared_objects_hash) \$(HASH_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_hash) \$(HASH_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_HASH 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_HASH_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $EXT_HASH_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC hash;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $EXT_HASH_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC hash;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=hash
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- header_path=ext/hash
- for header_file in $EXT_HASH_HEADERS; do
- hp_hf="$header_path/$header_file"
- unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
- fi
- done
- fi
- php_with_iconv=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv support" >&5
- $as_echo_n "checking for iconv support... " >&6; }
- # Check whether --with-iconv was given.
- if test "${with_iconv+set}" = set; then :
- withval=$with_iconv; PHP_ICONV=$withval
- else
- PHP_ICONV=yes
- test "$PHP_ENABLE_ALL" && PHP_ICONV=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_ICONV in
- shared,*)
- PHP_ICONV=`echo "$PHP_ICONV"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_ICONV=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_ICONV" != "no"; then
- found_iconv=no
- unset ICONV_DIR
- # Create the directories for a VPATH build:
- $php_shtool mkdir -p ext/iconv
- echo > ext/iconv/php_have_bsd_iconv.h
- echo > ext/iconv/php_have_ibm_iconv.h
- echo > ext/iconv/php_have_glibc_iconv.h
- echo > ext/iconv/php_have_libiconv.h
- echo > ext/iconv/php_have_iconv.h
- echo > ext/iconv/php_php_iconv_impl.h
- echo > ext/iconv/php_iconv_aliased_libiconv.h
- echo > ext/iconv/php_php_iconv_h_path.h
- echo > ext/iconv/php_iconv_supports_errno.h
- if test "$PHP_ICONV" = "yes"; then
- LIBS_save="$LIBS"
- LIBS=
- ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
- if test "x$ac_cv_func_iconv" = xyes; then :
- found_iconv=yes
- else
- ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv"
- if test "x$ac_cv_func_libiconv" = xyes; then :
- echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
- $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
- found_iconv=yes
- fi
- fi
- LIBS="$LIBS_save"
- fi
- if test "$found_iconv" = "no"; then
- for i in $PHP_ICONV /usr/local /usr; do
- if test -r $i/include/giconv.h; then
- $as_echo "#define HAVE_GICONV_H 1" >>confdefs.h
- ICONV_DIR=$i
- iconv_lib_name=giconv
- break
- elif test -r $i/include/iconv.h; then
- ICONV_DIR=$i
- iconv_lib_name=iconv
- break
- fi
- done
- if test -z "$ICONV_DIR"; then
- as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=<DIR>" "$LINENO" 5
- fi
- if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||
- test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME
- then
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$ICONV_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5
- $as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$iconv_lib_name $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char libiconv ();
- int
- main ()
- {
- return libiconv ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- found_iconv=yes
- echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
- $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
- echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h
- $as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$iconv_lib_name_libiconv
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$ICONV_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5
- $as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$iconv_lib_name $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char iconv ();
- int
- main ()
- {
- return iconv ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- found_iconv=yes
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$iconv_lib_name_iconv
- fi
- fi
- fi
- fi
- if test "$found_iconv" = "yes"; then
- echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h
- $as_echo "#define HAVE_ICONV 1" >>confdefs.h
- if test -n "$ICONV_DIR"; then
- if test "$ext_shared" = "yes"; then
- ICONV_SHARED_LIBADD="-l$iconv_lib_name $ICONV_SHARED_LIBADD"
- if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
- if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$ICONV_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
- if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$ICONV_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $iconv_lib_name in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$iconv_lib_name $LIBS"
- ;;
- esac
- fi
- if test "$ICONV_DIR/include" != "/usr/include"; then
- if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$ICONV_DIR/include
- else
- ep_dir=`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ICONV_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- fi
- iconv_avail="yes";
- else
- iconv_avail="no";
- fi
- if test "$iconv_avail" != "no"; then
- if test -z "$ICONV_DIR"; then
- for i in /usr/local /usr; do
- if test -f "$i/include/iconv.h" || test -f "$i/include/giconv.h"; then
- PHP_ICONV_PREFIX="$i"
- break
- fi
- done
- if test -z "$PHP_ICONV_PREFIX"; then
- PHP_ICONV_PREFIX="/usr"
- fi
- else
- PHP_ICONV_PREFIX="$ICONV_DIR"
- fi
- CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS"
- LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS"
- if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then
- PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h"
- else
- PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is glibc's" >&5
- $as_echo_n "checking if iconv is glibc's... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <gnu/libc-version.h>
- int
- main ()
- {
- gnu_get_libc_version();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- iconv_impl_name="glibc"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test -z "$iconv_impl_name"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using GNU libiconv" >&5
- $as_echo_n "checking if using GNU libiconv... " >&6; }
- php_iconv_old_ld="$LDFLAGS"
- LDFLAGS="-liconv $LDFLAGS"
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cross-compiling" >&5
- $as_echo "no, cross-compiling" >&6; }
- LDFLAGS="$php_iconv_old_ld"
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <$PHP_ICONV_H_PATH>
- int main() {
- printf("%d", _libiconv_version);
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- iconv_impl_name="gnu_libiconv"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- LDFLAGS="$php_iconv_old_ld"
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- if test -z "$iconv_impl_name"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is Konstantin Chuguev's" >&5
- $as_echo_n "checking if iconv is Konstantin Chuguev's... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <iconv.h>
- int
- main ()
- {
- iconv_ccs_init(NULL, NULL);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- iconv_impl_name="bsd"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- if test -z "$iconv_impl_name"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using IBM iconv" >&5
- $as_echo_n "checking if using IBM iconv... " >&6; }
- php_iconv_old_ld="$LDFLAGS"
- LDFLAGS="-liconv $LDFLAGS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <iconv.h>
- int
- main ()
- {
- cstoccsid("");
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- iconv_impl_name="ibm"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- LDFLAGS="$php_iconv_old_ld"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- echo > ext/iconv/php_have_bsd_iconv.h
- echo > ext/iconv/php_have_glibc_iconv.h
- echo > ext/iconv/php_have_libiconv.h
- echo > ext/iconv/php_have_ibm_iconv.h
- case "$iconv_impl_name" in
- gnu_libiconv )
- echo "#define PHP_ICONV_IMPL \"libiconv\"" > ext/iconv/php_php_iconv_impl.h
- $as_echo "#define PHP_ICONV_IMPL \"libiconv\"" >>confdefs.h
- echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
- if test "$ext_shared" = "yes"; then
- ICONV_SHARED_LIBADD="-liconv $ICONV_SHARED_LIBADD"
- if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then
- if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then
- if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then
- ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR"
- else
- ep_dir=`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""`
- fi
- if test "$ext_shared" = "yes"; then
- ICONV_SHARED_LIBADD="-L$ai_p $ICONV_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && ICONV_SHARED_LIBADD="$ld_runpath_switch$ai_p $ICONV_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""; then
- if test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/$PHP_LIBDIR" && test ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" != "/usr/lib"; then
- if test -z ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" || echo ""$PHP_ICONV_PREFIX/$PHP_LIBDIR"" | grep '^/' >/dev/null ; then
- ai_p="$PHP_ICONV_PREFIX/$PHP_LIBDIR"
- else
- ep_dir=`echo "$PHP_ICONV_PREFIX/$PHP_LIBDIR"|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename ""$PHP_ICONV_PREFIX/$PHP_LIBDIR""`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case iconv in
- c|c_r|pthread*) ;;
- *)
- LIBS="-liconv $LIBS"
- ;;
- esac
- fi
- ;;
- bsd )
- echo "#define HAVE_BSD_ICONV 1" > ext/iconv/php_have_bsd_iconv.h
- $as_echo "#define HAVE_BSD_ICONV 1" >>confdefs.h
- echo "#define PHP_ICONV_IMPL \"BSD iconv\"" > ext/iconv/php_php_iconv_impl.h
- $as_echo "#define PHP_ICONV_IMPL \"BSD iconv\"" >>confdefs.h
- ;;
- glibc )
- echo "#define HAVE_GLIBC_ICONV 1" > ext/iconv/php_have_glibc_iconv.h
- $as_echo "#define HAVE_GLIBC_ICONV 1" >>confdefs.h
- echo "#define PHP_ICONV_IMPL \"glibc\"" > ext/iconv/php_php_iconv_impl.h
- $as_echo "#define PHP_ICONV_IMPL \"glibc\"" >>confdefs.h
- ;;
- ibm )
- echo "#define HAVE_IBM_ICONV 1" > ext/iconv/php_have_ibm_iconv.h
- $as_echo "#define HAVE_IBM_ICONV 1" >>confdefs.h
- echo "#define PHP_ICONV_IMPL \"IBM iconv\"" > ext/iconv/php_php_iconv_impl.h
- $as_echo "#define PHP_ICONV_IMPL \"IBM iconv\"" >>confdefs.h
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports errno" >&5
- $as_echo_n "checking if iconv supports errno... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h
- $as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <$PHP_ICONV_H_PATH>
- #include <errno.h>
- int main() {
- iconv_t cd;
- cd = iconv_open( "*blahblah*", "*blahblahblah*" );
- if (cd == (iconv_t)(-1)) {
- if (errno == EINVAL) {
- return 0;
- } else {
- return 1;
- }
- }
- iconv_close( cd );
- return 2;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- echo "#define ICONV_SUPPORTS_ERRNO 1" > ext/iconv/php_iconv_supports_errno.h
- $as_echo "#define ICONV_SUPPORTS_ERRNO 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- echo "#define ICONV_SUPPORTS_ERRNO 0" > ext/iconv/php_iconv_supports_errno.h
- $as_echo "#define ICONV_SUPPORTS_ERRNO 0" >>confdefs.h
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv supports //IGNORE" >&5
- $as_echo_n "checking if iconv supports //IGNORE... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- echo "#define ICONV_BROKEN_IGNORE 0" > ext/iconv/php_iconv_broken_ignore.h
- $as_echo "#define ICONV_BROKEN_IGNORE 0" >>confdefs.h
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <$PHP_ICONV_H_PATH>
- #include <stdlib.h>
- int main() {
- iconv_t cd = iconv_open( "UTF-8//IGNORE", "UTF-8" );
- if(cd == (iconv_t)-1) {
- return 1;
- }
- char *in_p = "\xC3\xC3\xC3\xB8";
- size_t in_left = 4, out_left = 4096;
- char *out = malloc(out_left);
- char *out_p = out;
- size_t result = iconv(cd, (char **) &in_p, &in_left, (char **) &out_p, &out_left);
- if(result == (size_t)-1) {
- return 1;
- }
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- echo "#define ICONV_BROKEN_IGNORE 0" > ext/iconv/php_iconv_broken_ignore.h
- $as_echo "#define ICONV_BROKEN_IGNORE 0" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- echo "#define ICONV_BROKEN_IGNORE 1" > ext/iconv/php_iconv_broken_ignore.h
- $as_echo "#define ICONV_BROKEN_IGNORE 1" >>confdefs.h
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your cpp allows macro usage in include lines" >&5
- $as_echo_n "checking if your cpp allows macro usage in include lines... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define FOO <$PHP_ICONV_H_PATH>
- #include FOO
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- echo "#define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>" > ext/iconv/php_php_iconv_h_path.h
- cat >>confdefs.h <<_ACEOF
- #define PHP_ICONV_H_PATH <$PHP_ICONV_H_PATH>
- _ACEOF
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ext_builddir=ext/iconv
- ext_srcdir=$abs_srcdir/ext/iconv
- ext_dir=ext/iconv
- ac_extra=`echo "-I\"$PHP_ICONV_PREFIX/include\" -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_ICONV_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in iconv.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC iconv;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC iconv;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_ICONV_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in iconv.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_iconv="$shared_objects_iconv $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/iconv.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/iconv.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_iconv"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/iconv.$suffix: $ext_builddir/iconv.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/iconv.$suffix \$(phplibdir)
- $ext_builddir/iconv.$suffix: \$(shared_objects_iconv) \$(ICONV_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_iconv) \$(ICONV_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_ICONV 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_ICONV_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in iconv.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC iconv;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in iconv.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC iconv;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=iconv
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST ICONV_SHARED_LIBADD"
- for header_file in ext/iconv/; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- else
- as_fn_error $? "Please reinstall the iconv library." "$LINENO" 5
- fi
- fi
- php_with_imap=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP support" >&5
- $as_echo_n "checking for IMAP support... " >&6; }
- # Check whether --with-imap was given.
- if test "${with_imap+set}" = set; then :
- withval=$with_imap; PHP_IMAP=$withval
- else
- PHP_IMAP=no
- test "$PHP_ENABLE_ALL" && PHP_IMAP=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_IMAP in
- shared,*)
- PHP_IMAP=`echo "$PHP_IMAP"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_IMAP=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_kerberos=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP Kerberos support" >&5
- $as_echo_n "checking for IMAP Kerberos support... " >&6; }
- # Check whether --with-kerberos was given.
- if test "${with_kerberos+set}" = set; then :
- withval=$with_kerberos; PHP_KERBEROS=$withval
- else
- PHP_KERBEROS=no
- fi
- ext_output=$PHP_KERBEROS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_imap_ssl=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMAP SSL support" >&5
- $as_echo_n "checking for IMAP SSL support... " >&6; }
- # Check whether --with-imap-ssl was given.
- if test "${with_imap_ssl+set}" = set; then :
- withval=$with_imap_ssl; PHP_IMAP_SSL=$withval
- else
- PHP_IMAP_SSL=no
- fi
- ext_output=$PHP_IMAP_SSL
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_IMAP" != "no"; then
- PHP_VAR_SUBST="$PHP_VAR_SUBST IMAP_SHARED_LIBADD"
- ext_builddir=ext/imap
- ext_srcdir=$abs_srcdir/ext/imap
- ext_dir=ext/imap
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_IMAP_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_imap.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC imap;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC imap;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_IMAP_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_imap.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_imap="$shared_objects_imap $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/imap.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/imap.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_imap"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/imap.$suffix: $ext_builddir/imap.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/imap.$suffix \$(phplibdir)
- $ext_builddir/imap.$suffix: \$(shared_objects_imap) \$(IMAP_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_imap) \$(IMAP_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_IMAP 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_IMAP_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_imap.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC imap;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_imap.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC imap;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=imap
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- $as_echo "#define HAVE_IMAP 1" >>confdefs.h
- for i in $PHP_IMAP /usr/local /usr; do
- if test -r "$i/c-client.h"; then
- $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
- IMAP_DIR=$i
- IMAP_INC_DIR=$i
- break
- elif test -r "$i/rfc822.h"; then
- IMAP_DIR=$i;
- IMAP_INC_DIR=$i
- break
- elif test -r "$i/include/c-client/c-client.h"; then
- $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
- IMAP_DIR=$i
- IMAP_INC_DIR=$i/include/c-client
- break
- elif test -r "$i/include/c-client/rfc822.h"; then
- IMAP_DIR=$i;
- IMAP_INC_DIR=$i/include/c-client
- break
- elif test -r "$i/include/imap/c-client.h"; then
- $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
- IMAP_DIR=$i
- IMAP_INC_DIR=$i/include/imap
- break
- elif test -r "$i/include/imap/rfc822.h"; then
- IMAP_DIR=$i;
- IMAP_INC_DIR=$i/include/imap
- break
- elif test -r "$i/include/c-client.h"; then
- $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
- IMAP_DIR=$i
- IMAP_INC_DIR=$i/include
- break
- elif test -r "$i/include/rfc822.h"; then
- IMAP_DIR=$i;
- IMAP_INC_DIR=$i/include
- break
- elif test -r "$i/imap/c-client.h"; then
- $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
- IMAP_DIR=$i
- IMAP_INC_DIR=$i/imap
- break
- elif test -r "$i/imap/rfc822.h"; then
- IMAP_DIR=$i;
- IMAP_INC_DIR=$i/imap
- break
- elif test -r "$i/c-client/c-client.h"; then
- $as_echo "#define HAVE_IMAP2000 1" >>confdefs.h
- IMAP_DIR=$i
- IMAP_INC_DIR=$i/c-client
- break
- elif test -r "$i/c-client/rfc822.h"; then
- IMAP_DIR=$i;
- IMAP_INC_DIR=$i/c-client
- break
- fi
- done
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <$IMAP_INC_DIR/mail.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "mail_fetch_overview_sequence" >/dev/null 2>&1; then :
- $as_echo "#define HAVE_IMAP2004 1" >>confdefs.h
- fi
- rm -f conftest*
- old_CFLAGS=$CFLAGS
- CFLAGS="-I$IMAP_INC_DIR"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utf8_mime2text signature" >&5
- $as_echo_n "checking for utf8_mime2text signature... " >&6; }
- if ${ac_cv_utf8_mime2text+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- #include <c-client.h>
- int
- main ()
- {
- SIZEDTEXT *src, *dst;
- utf8_mime2text(src, dst);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_utf8_mime2text=old
- else
- ac_cv_utf8_mime2text=new
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utf8_mime2text" >&5
- $as_echo "$ac_cv_utf8_mime2text" >&6; }
- if test "$ac_cv_utf8_mime2text" = "new"; then
- $as_echo "#define HAVE_NEW_MIME2TEXT 1" >>confdefs.h
- fi
- CFLAGS=$old_CFLAGS
- old_CFLAGS=$CFLAGS
- CFLAGS="-I$IMAP_INC_DIR"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for U8T_DECOMPOSE" >&5
- $as_echo_n "checking for U8T_DECOMPOSE... " >&6; }
- if ${ac_cv_u8t_decompose+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <c-client.h>
- int
- main ()
- {
- int i = U8T_CANONICAL;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_u8t_decompose=yes
- else
- ac_cv_u8t_decompose=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_u8t_decompose" >&5
- $as_echo "$ac_cv_u8t_decompose" >&6; }
- CFLAGS=$old_CFLAGS
- if test "$ac_cv_u8t_decompose" = "no" && test "$ac_cv_utf8_mime2text" = "new"; then
- as_fn_error $? "utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information." "$LINENO" 5
- fi
- if test "$ac_cv_u8t_decompose" = "yes" && test "$ac_cv_utf8_mime2text" = "old"; then
- as_fn_error $? "utf8_mime2text() has old signature, but U8T_CANONICAL is present. This should not happen. Check config.log for additional information." "$LINENO" 5
- fi
- old_CPPFLAGS=$CPPFLAGS
- CPPFLAGS=-I$IMAP_INC_DIR
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "imap4r1.h"
- #if defined(IMAPSSLPORT)
- this_is_true
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "this_is_true" >/dev/null 2>&1; then :
- $as_echo "#define HAVE_IMAP2001 1" >>confdefs.h
- fi
- rm -f conftest*
- CPPFLAGS=$old_CPPFLAGS
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
- $as_echo_n "checking for pam_start in -lpam... " >&6; }
- if ${ac_cv_lib_pam_pam_start+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpam $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char pam_start ();
- int
- main ()
- {
- return pam_start ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pam_pam_start=yes
- else
- ac_cv_lib_pam_pam_start=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
- $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
- if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- case pam in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="-lpam $IMAP_SHARED_LIBADD"
- else
- case pam in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lpam $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- $as_echo "#define HAVE_LIBPAM 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_pam_pam_start
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
- $as_echo_n "checking for crypt in -lcrypt... " >&6; }
- if ${ac_cv_lib_crypt_crypt+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcrypt $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char crypt ();
- int
- main ()
- {
- return crypt ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_crypt_crypt=yes
- else
- ac_cv_lib_crypt_crypt=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
- $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
- if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- case crypt in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="-lcrypt $IMAP_SHARED_LIBADD"
- else
- case crypt in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lcrypt $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- $as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_crypt_crypt
- fi
- if test -z "$IMAP_DIR" || echo "$IMAP_DIR" | grep '^/' >/dev/null ; then
- IMAP_DIR=$IMAP_DIR
- else
- ep_dir=`echo $IMAP_DIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- IMAP_DIR="$ep_realdir"/`basename "$IMAP_DIR"`
- fi
- if test -z "$IMAP_DIR"; then
- as_fn_error $? "Cannot find rfc822.h. Please check your c-client installation." "$LINENO" 5
- fi
- if test ! -r "$IMAP_DIR/c-client/libc-client.a" && test -r "$IMAP_DIR/c-client/c-client.a" ; then
- ln -s "$IMAP_DIR/c-client/c-client.a" "$IMAP_DIR/c-client/libc-client.a" >/dev/null 2>&1
- elif test ! -r "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" && test -r "$IMAP_DIR/$PHP_LIBDIR/c-client.a"; then
- ln -s "$IMAP_DIR/$PHP_LIBDIR/c-client.a" "$IMAP_DIR/$PHP_LIBDIR/libc-client.a" >/dev/null 2>&1
- fi
- for lib in c-client4 c-client imap; do
- IMAP_LIB=$lib
- str="$IMAP_DIR/$PHP_LIBDIR/lib$lib.*"
- for i in `echo $str`; do
- test -r $i && IMAP_LIBDIR=$IMAP_DIR/$PHP_LIBDIR && break 2
- done
- str="$IMAP_DIR/c-client/lib$lib.*"
- for i in `echo $str`; do
- test -r $i && IMAP_LIBDIR=$IMAP_DIR/c-client && break 2
- done
- done
- if test -z "$IMAP_LIBDIR"; then
- as_fn_error $? "Cannot find imap library (libc-client.a). Please check your c-client installation." "$LINENO" 5
- fi
- if test "$IMAP_INC_DIR" != "/usr/include"; then
- if test -z "$IMAP_INC_DIR" || echo "$IMAP_INC_DIR" | grep '^/' >/dev/null ; then
- ai_p=$IMAP_INC_DIR
- else
- ep_dir=`echo $IMAP_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$IMAP_INC_DIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- case $IMAP_LIB in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="-l$IMAP_LIB $IMAP_SHARED_LIBADD"
- else
- case $IMAP_LIB in
- c|c_r|pthread*) ;;
- *)
- DLIBS="-l$IMAP_LIB $DLIBS"
- ;;
- esac
- fi
- ;;
- esac
- if test "$IMAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IMAP_LIBDIR" != "/usr/lib"; then
- if test -z "$IMAP_LIBDIR" || echo "$IMAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$IMAP_LIBDIR
- else
- ep_dir=`echo $IMAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$IMAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- if test "$PHP_KERBEROS" != "no"; then
- found_kerberos=no
- unset KERBEROS_CFLAGS
- unset KERBEROS_LIBS
- if test -z "$KRB5_CONFIG"; then
- # Extract the first word of "krb5-config", so it can be a program name with args.
- set dummy krb5-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_KRB5_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $KRB5_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_KRB5_CONFIG="$KRB5_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="$PATH:/usr/kerberos/bin:/usr/local/bin"
- for as_dir in $as_dummy
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_KRB5_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_KRB5_CONFIG" && ac_cv_path_KRB5_CONFIG="no"
- ;;
- esac
- fi
- KRB5_CONFIG=$ac_cv_path_KRB5_CONFIG
- if test -n "$KRB5_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5_CONFIG" >&5
- $as_echo "$KRB5_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test "$PHP_KERBEROS" != "no" && test -x "$KRB5_CONFIG"; then
- KERBEROS_LIBS=`$KRB5_CONFIG --libs gssapi`
- KERBEROS_CFLAGS=`$KRB5_CONFIG --cflags gssapi`
- if test -n "$KERBEROS_LIBS"; then
- found_kerberos=yes
- for ac_i in $KERBEROS_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $KERBEROS_CFLAGS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- fi
- if test "$found_kerberos" = "no"; then
- if test "$PHP_KERBEROS" = "yes"; then
- PHP_KERBEROS="/usr/kerberos /usr/local /usr"
- fi
- for i in $PHP_KERBEROS; do
- if test -f $i/$PHP_LIBDIR/libkrb5.a || test -f $i/$PHP_LIBDIR/libkrb5.$SHLIB_SUFFIX_NAME; then
- PHP_KERBEROS_DIR=$i
- break
- fi
- done
- if test "$PHP_KERBEROS_DIR"; then
- found_kerberos=yes
- if test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_KERBEROS_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_KERBEROS_DIR/$PHP_LIBDIR" || echo "$PHP_KERBEROS_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_KERBEROS_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_KERBEROS_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case gssapi_krb5 in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lgssapi_krb5"
- else
- case gssapi_krb5 in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -lgssapi_krb5"
- ;;
- esac
- fi
- ;;
- esac
- case krb5 in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lkrb5"
- else
- case krb5 in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -lkrb5"
- ;;
- esac
- fi
- ;;
- esac
- case k5crypto in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lk5crypto"
- else
- case k5crypto in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -lk5crypto"
- ;;
- esac
- fi
- ;;
- esac
- case com_err in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -lcom_err"
- else
- case com_err in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -lcom_err"
- ;;
- esac
- fi
- ;;
- esac
- if test "$PHP_KERBEROS_DIR/include" != "/usr/include"; then
- if test -z "$PHP_KERBEROS_DIR/include" || echo "$PHP_KERBEROS_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$PHP_KERBEROS_DIR/include
- else
- ep_dir=`echo $PHP_KERBEROS_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_KERBEROS_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- fi
- fi
- if test "$found_kerberos" = "yes"; then
- $as_echo "#define HAVE_IMAP_KRB 1" >>confdefs.h
- else
- as_fn_error $? "Kerberos libraries not found.
- Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )
- " "$LINENO" 5
- fi
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <$IMAP_INC_DIR/linkage.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "auth_gss" >/dev/null 2>&1; then :
- as_fn_error $? "This c-client library is built with Kerberos support.
- Add --with-kerberos to your configure line. Check config.log for details.
- " "$LINENO" 5
- fi
- rm -f conftest*
- fi
- if test "$PHP_IMAP_SSL" != "no"; then
- if test "$PHP_OPENSSL" = ""; then
- PHP_OPENSSL='no'
- fi
- found_openssl=no
- unset OPENSSL_INCDIR
- unset OPENSSL_LIBDIR
- test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
- test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
- if test "$PHP_OPENSSL" != "no"; then
- PHP_OPENSSL_DIR=$PHP_OPENSSL
- elif test "$PHP_IMAP_SSL" != "no"; then
- PHP_OPENSSL_DIR=$PHP_IMAP_SSL
- fi
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
- if $PKG_CONFIG --atleast-version=1.0.1 openssl; then
- found_openssl=yes
- OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
- OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
- OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
- else
- as_fn_error $? "OpenSSL version 1.0.1 or greater required." "$LINENO" 5
- fi
- if test -n "$OPENSSL_LIBS"; then
- for ac_i in $OPENSSL_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="$IMAP_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- if test -n "$OPENSSL_INCS"; then
- for ac_i in $OPENSSL_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- fi
- if test "$found_openssl" = "no"; then
- if test "$PHP_OPENSSL_DIR" = "yes"; then
- PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
- fi
- for i in $PHP_OPENSSL_DIR; do
- if test -r $i/include/openssl/evp.h; then
- OPENSSL_INCDIR=$i/include
- fi
- if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
- OPENSSL_LIBDIR=$i/$PHP_LIBDIR
- fi
- test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
- done
- if test -z "$OPENSSL_INCDIR"; then
- as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
- fi
- if test -z "$OPENSSL_LIBDIR"; then
- as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
- fi
- old_CPPFLAGS=$CPPFLAGS
- CPPFLAGS=-I$OPENSSL_INCDIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
- $as_echo_n "checking for OpenSSL version... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <openssl/opensslv.h>
- #if OPENSSL_VERSION_NUMBER >= 0x10001001L
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 1.0.1" >&5
- $as_echo ">= 1.0.1" >&6; }
- else
- as_fn_error $? "OpenSSL version 1.0.1 or greater required." "$LINENO" 5
- fi
- rm -f conftest*
- CPPFLAGS=$old_CPPFLAGS
- if test "$OPENSSL_INCDIR" != "/usr/include"; then
- if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$OPENSSL_INCDIR
- else
- ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$OPENSSL_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
- $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
- if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcrypto $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char CRYPTO_free ();
- int
- main ()
- {
- return CRYPTO_free ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_crypto_CRYPTO_free=yes
- else
- ac_cv_lib_crypto_CRYPTO_free=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
- $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
- if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- case crypto in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD"
- else
- case crypto in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lcrypto $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_crypto_CRYPTO_free
- as_fn_error $? "libcrypto not found!" "$LINENO" 5
- fi
- old_LIBS=$LIBS
- LIBS="$LIBS -lcrypto"
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$OPENSSL_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
- $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
- if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lssl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char SSL_CTX_set_ssl_version ();
- int
- main ()
- {
- return SSL_CTX_set_ssl_version ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
- else
- ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
- $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
- if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- found_openssl=yes
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
- as_fn_error $? "libssl not found!" "$LINENO" 5
- fi
- LIBS=$old_LIBS
- case ssl in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="-lssl $IMAP_SHARED_LIBADD"
- else
- case ssl in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lssl $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- case crypto in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="-lcrypto $IMAP_SHARED_LIBADD"
- else
- case crypto in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lcrypto $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
- if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$OPENSSL_LIBDIR
- else
- ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- IMAP_SHARED_LIBADD="-L$ai_p $IMAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && IMAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $IMAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- if test "$found_openssl" = "yes"; then
- OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
- $as_echo "#define HAVE_IMAP_SSL 1" >>confdefs.h
- else
- as_fn_error $? "OpenSSL libraries not found.
- Check the path given to --with-openssl-dir and output in config.log)
- " "$LINENO" 5
- fi
- elif test -f "$IMAP_INC_DIR/linkage.c"; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <$IMAP_INC_DIR/linkage.c>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "ssl_onceonlyinit" >/dev/null 2>&1; then :
- as_fn_error $? "This c-client library is built with SSL support.
- Add --with-imap-ssl to your configure line. Check config.log for details.
- " "$LINENO" 5
- fi
- rm -f conftest*
- fi
- TST_LIBS="$DLIBS $IMAP_SHARED_LIBADD"
- old_LIBS=$LIBS
- LIBS="$TST_LIBS $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #if defined(__GNUC__) && __GNUC__ >= 4
- # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
- #else
- # define PHP_IMAP_EXPORT
- #endif
- PHP_IMAP_EXPORT void mm_log(void){}
- PHP_IMAP_EXPORT void mm_dlog(void){}
- PHP_IMAP_EXPORT void mm_flags(void){}
- PHP_IMAP_EXPORT void mm_fatal(void){}
- PHP_IMAP_EXPORT void mm_critical(void){}
- PHP_IMAP_EXPORT void mm_nocritical(void){}
- PHP_IMAP_EXPORT void mm_notify(void){}
- PHP_IMAP_EXPORT void mm_login(void){}
- PHP_IMAP_EXPORT void mm_diskerror(void){}
- PHP_IMAP_EXPORT void mm_status(void){}
- PHP_IMAP_EXPORT void mm_lsub(void){}
- PHP_IMAP_EXPORT void mm_list(void){}
- PHP_IMAP_EXPORT void mm_exists(void){}
- PHP_IMAP_EXPORT void mm_searched(void){}
- PHP_IMAP_EXPORT void mm_expunged(void){}
- char auth_gssapi_valid();
- int main() {
- auth_gssapi_valid();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- $as_echo "#define HAVE_IMAP_AUTH_GSS 1" >>confdefs.h
- else
- LIBS=$old_LIBS
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- old_LIBS=$LIBS
- LIBS="$TST_LIBS $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char utf8_to_mutf7_php(){ return utf8_to_mutf7(""); }
- #if defined(__GNUC__) && __GNUC__ >= 4
- # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
- #else
- # define PHP_IMAP_EXPORT
- #endif
- PHP_IMAP_EXPORT void mm_log(void){}
- PHP_IMAP_EXPORT void mm_dlog(void){}
- PHP_IMAP_EXPORT void mm_flags(void){}
- PHP_IMAP_EXPORT void mm_fatal(void){}
- PHP_IMAP_EXPORT void mm_critical(void){}
- PHP_IMAP_EXPORT void mm_nocritical(void){}
- PHP_IMAP_EXPORT void mm_notify(void){}
- PHP_IMAP_EXPORT void mm_login(void){}
- PHP_IMAP_EXPORT void mm_diskerror(void){}
- PHP_IMAP_EXPORT void mm_status(void){}
- PHP_IMAP_EXPORT void mm_lsub(void){}
- PHP_IMAP_EXPORT void mm_list(void){}
- PHP_IMAP_EXPORT void mm_exists(void){}
- PHP_IMAP_EXPORT void mm_searched(void){}
- PHP_IMAP_EXPORT void mm_expunged(void){}
- char utf8_to_mutf7_php();
- int main() {
- utf8_to_mutf7_php();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- $as_echo "#define HAVE_IMAP_MUTF7 1" >>confdefs.h
- else
- LIBS=$old_LIBS
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rfc822_output_address_list function present" >&5
- $as_echo_n "checking whether rfc822_output_address_list function present... " >&6; }
- old_LIBS=$LIBS
- LIBS="
- $TST_LIBS
- $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #if defined(__GNUC__) && __GNUC__ >= 4
- # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
- #else
- # define PHP_IMAP_EXPORT
- #endif
- PHP_IMAP_EXPORT void mm_log(void){}
- PHP_IMAP_EXPORT void mm_dlog(void){}
- PHP_IMAP_EXPORT void mm_flags(void){}
- PHP_IMAP_EXPORT void mm_fatal(void){}
- PHP_IMAP_EXPORT void mm_critical(void){}
- PHP_IMAP_EXPORT void mm_nocritical(void){}
- PHP_IMAP_EXPORT void mm_notify(void){}
- PHP_IMAP_EXPORT void mm_login(void){}
- PHP_IMAP_EXPORT void mm_diskerror(void){}
- PHP_IMAP_EXPORT void mm_status(void){}
- PHP_IMAP_EXPORT void mm_lsub(void){}
- PHP_IMAP_EXPORT void mm_list(void){}
- PHP_IMAP_EXPORT void mm_exists(void){}
- PHP_IMAP_EXPORT void mm_searched(void){}
- PHP_IMAP_EXPORT void mm_expunged(void){}
- void rfc822_output_address_list(void);
- void (*f)(void);
- char foobar () {f = rfc822_output_address_list;}
- char foobar();
- int main() {
- foobar();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_RFC822_OUTPUT_ADDRESS_LIST 1" >>confdefs.h
- else
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build with IMAP works" >&5
- $as_echo_n "checking whether build with IMAP works... " >&6; }
- old_LIBS=$LIBS
- LIBS="$TST_LIBS $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #if defined(__GNUC__) && __GNUC__ >= 4
- # define PHP_IMAP_EXPORT __attribute__ ((visibility("default")))
- #else
- # define PHP_IMAP_EXPORT
- #endif
- PHP_IMAP_EXPORT void mm_log(void){}
- PHP_IMAP_EXPORT void mm_dlog(void){}
- PHP_IMAP_EXPORT void mm_flags(void){}
- PHP_IMAP_EXPORT void mm_fatal(void){}
- PHP_IMAP_EXPORT void mm_critical(void){}
- PHP_IMAP_EXPORT void mm_nocritical(void){}
- PHP_IMAP_EXPORT void mm_notify(void){}
- PHP_IMAP_EXPORT void mm_login(void){}
- PHP_IMAP_EXPORT void mm_diskerror(void){}
- PHP_IMAP_EXPORT void mm_status(void){}
- PHP_IMAP_EXPORT void mm_lsub(void){}
- PHP_IMAP_EXPORT void mm_list(void){}
- PHP_IMAP_EXPORT void mm_exists(void){}
- PHP_IMAP_EXPORT void mm_searched(void){}
- PHP_IMAP_EXPORT void mm_expunged(void){}
- char mail_newbody();
- int main() {
- mail_newbody();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- php_with_interbase=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Firebird support" >&5
- $as_echo_n "checking for Firebird support... " >&6; }
- # Check whether --with-interbase was given.
- if test "${with_interbase+set}" = set; then :
- withval=$with_interbase; PHP_INTERBASE=$withval
- else
- PHP_INTERBASE=no
- test "$PHP_ENABLE_ALL" && PHP_INTERBASE=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_INTERBASE in
- shared,*)
- PHP_INTERBASE=`echo "$PHP_INTERBASE"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_INTERBASE=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_INTERBASE" != "no"; then
- # Extract the first word of "fb_config", so it can be a program name with args.
- set dummy fb_config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_FB_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $FB_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_FB_CONFIG="$FB_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_FB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_FB_CONFIG" && ac_cv_path_FB_CONFIG="no"
- ;;
- esac
- fi
- FB_CONFIG=$ac_cv_path_FB_CONFIG
- if test -n "$FB_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FB_CONFIG" >&5
- $as_echo "$FB_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test -x "$FB_CONFIG" && test "$PHP_INTERBASE" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfbconfig" >&5
- $as_echo_n "checking for libfbconfig... " >&6; }
- FB_CFLAGS=`$FB_CONFIG --cflags`
- FB_LIBDIR=`$FB_CONFIG --libs`
- FB_VERSION=`$FB_CONFIG --version`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $FB_VERSION" >&5
- $as_echo "version $FB_VERSION" >&6; }
- for ac_i in $FB_LIBDIR; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- INTERBASE_SHARED_LIBADD="$INTERBASE_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- INTERBASE_SHARED_LIBADD="$INTERBASE_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- INTERBASE_SHARED_LIBADD="-L$ai_p $INTERBASE_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && INTERBASE_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTERBASE_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $FB_CFLAGS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- else
- if test "$PHP_INTERBASE" = "yes"; then
- IBASE_INCDIR=/opt/firebird/include
- IBASE_LIBDIR=/opt/firebird/lib
- else
- IBASE_INCDIR=$PHP_INTERBASE/include
- IBASE_LIBDIR=$PHP_INTERBASE/$PHP_LIBDIR
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$IBASE_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5
- $as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; }
- if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lfbclient $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char isc_detach_database ();
- int
- main ()
- {
- return isc_detach_database ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_fbclient_isc_detach_database=yes
- else
- ac_cv_lib_fbclient_isc_detach_database=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5
- $as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; }
- if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- IBASE_LIBNAME=fbclient
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_fbclient_isc_detach_database
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$IBASE_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5
- $as_echo_n "checking for isc_detach_database in -lgds... " >&6; }
- if ${ac_cv_lib_gds_isc_detach_database+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgds $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char isc_detach_database ();
- int
- main ()
- {
- return isc_detach_database ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gds_isc_detach_database=yes
- else
- ac_cv_lib_gds_isc_detach_database=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5
- $as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; }
- if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- IBASE_LIBNAME=gds
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gds_isc_detach_database
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$IBASE_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5
- $as_echo_n "checking for isc_detach_database in -lib_util... " >&6; }
- if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lib_util $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char isc_detach_database ();
- int
- main ()
- {
- return isc_detach_database ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ib_util_isc_detach_database=yes
- else
- ac_cv_lib_ib_util_isc_detach_database=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5
- $as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; }
- if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- IBASE_LIBNAME=ib_util
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_ib_util_isc_detach_database
- as_fn_error $? "libfbclient, libgds or libib_util not found! Check config.log for more information." "$LINENO" 5
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- INTERBASE_SHARED_LIBADD="-l$IBASE_LIBNAME $INTERBASE_SHARED_LIBADD"
- if test -n "$IBASE_LIBDIR"; then
- if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then
- if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$IBASE_LIBDIR
- else
- ep_dir=`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$IBASE_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- INTERBASE_SHARED_LIBADD="-L$ai_p $INTERBASE_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && INTERBASE_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTERBASE_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$IBASE_LIBDIR"; then
- if test "$IBASE_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$IBASE_LIBDIR" != "/usr/lib"; then
- if test -z "$IBASE_LIBDIR" || echo "$IBASE_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$IBASE_LIBDIR
- else
- ep_dir=`echo $IBASE_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$IBASE_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $IBASE_LIBNAME in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$IBASE_LIBNAME $LIBS"
- ;;
- esac
- fi
- if test "$IBASE_INCDIR" != "/usr/include"; then
- if test -z "$IBASE_INCDIR" || echo "$IBASE_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$IBASE_INCDIR
- else
- ep_dir=`echo $IBASE_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$IBASE_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- fi
- $as_echo "#define HAVE_IBASE 1" >>confdefs.h
- ext_builddir=ext/interbase
- ext_srcdir=$abs_srcdir/ext/interbase
- ext_dir=ext/interbase
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_INTERBASE_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC interbase;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC interbase;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_INTERBASE_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_interbase="$shared_objects_interbase $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/interbase.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/interbase.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_interbase"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/interbase.$suffix: $ext_builddir/interbase.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/interbase.$suffix \$(phplibdir)
- $ext_builddir/interbase.$suffix: \$(shared_objects_interbase) \$(INTERBASE_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_interbase) \$(INTERBASE_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_INTERBASE 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_INTERBASE_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC interbase;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC interbase;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=interbase
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST INTERBASE_SHARED_LIBADD"
- fi
- php_enable_intl=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalization support" >&5
- $as_echo_n "checking whether to enable internationalization support... " >&6; }
- # Check whether --enable-intl was given.
- if test "${enable_intl+set}" = set; then :
- enableval=$enable_intl; PHP_INTL=$enableval
- else
- PHP_INTL=no
- test "$PHP_ENABLE_ALL" && PHP_INTL=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_INTL in
- shared,*)
- PHP_INTL=`echo "$PHP_INTL"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_INTL=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_INTL" != "no"; then
- php_with_icu_dir=DEFAULT
- # Check whether --with-icu-dir was given.
- if test "${with_icu_dir+set}" = set; then :
- withval=$with_icu_dir; PHP_ICU_DIR=$withval
- else
- PHP_ICU_DIR=DEFAULT
- fi
- ext_output=$PHP_ICU_DIR
- if test "$PHP_ICU_DIR" = "no"; then
- PHP_ICU_DIR=DEFAULT
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of ICU headers and libraries" >&5
- $as_echo_n "checking for location of ICU headers and libraries... " >&6; }
- found_icu=no
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test "$PHP_ICU_DIR" = "DEFAULT" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists icu-uc icu-io icu-i18n; then
- if $PKG_CONFIG --atleast-version=4.0 icu-uc; then
- found_icu=yes
- icu_version_full=`$PKG_CONFIG --modversion icu-uc`
- ac_IFS=$IFS
- IFS="."
- set $icu_version_full
- IFS=$ac_IFS
- icu_version=`expr $1 \* 1000 + $2`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $icu_version_full" >&5
- $as_echo "found $icu_version_full" >&6; }
- ICU_LIBS=`$PKG_CONFIG --libs icu-uc icu-io icu-i18n`
- ICU_INCS=`$PKG_CONFIG --cflags-only-I icu-uc icu-io icu-i18n`
- ICU_CXXFLAGS=`$PKG_CONFIG --variable=CXXFLAGS icu-uc`
- ICU_CXXFLAGS="$ICU_CXXFLAGS -DU_USING_ICU_NAMESPACE=1"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $ICU_VERSION" >&5
- $as_echo "found $ICU_VERSION" >&6; }
- for ac_i in $ICU_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- INTL_SHARED_LIBADD="-L$ai_p $INTL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && INTL_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $ICU_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- else
- as_fn_error $? "ICU version 4.0 or later required." "$LINENO" 5
- fi
- fi
- if test "$found_icu" = "no"; then
- if test "$PHP_ICU_DIR" = "DEFAULT"; then
- # Extract the first word of "icu-config", so it can be a program name with args.
- set dummy icu-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_ICU_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ICU_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="$PATH:/usr/local/bin"
- for as_dir in $as_dummy
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_ICU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_ICU_CONFIG" && ac_cv_path_ICU_CONFIG="no"
- ;;
- esac
- fi
- ICU_CONFIG=$ac_cv_path_ICU_CONFIG
- if test -n "$ICU_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
- $as_echo "$ICU_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- ICU_CONFIG="$PHP_ICU_DIR/bin/icu-config"
- fi
- icu_install_prefix=`$ICU_CONFIG --prefix 2> /dev/null`
- if test "$?" != "0" || test -z "$icu_install_prefix"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- as_fn_error $? "Unable to detect ICU prefix or $ICU_CONFIG failed. Please verify ICU install prefix and make sure icu-config works." "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_install_prefix" >&5
- $as_echo "$icu_install_prefix" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU 4.0 or greater" >&5
- $as_echo_n "checking for ICU 4.0 or greater... " >&6; }
- icu_version_full=`$ICU_CONFIG --version`
- ac_IFS=$IFS
- IFS="."
- set $icu_version_full
- IFS=$ac_IFS
- icu_version=`expr $1 \* 1000 + $2`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $icu_version_full" >&5
- $as_echo "found $icu_version_full" >&6; }
- if test "$icu_version" -lt "4000"; then
- as_fn_error $? "ICU version 4.0 or later is required" "$LINENO" 5
- fi
- ICU_VERSION=$icu_version
- ICU_INCS=`$ICU_CONFIG --cppflags-searchpath`
- ICU_LIBS=`$ICU_CONFIG --ldflags --ldflags-icuio`
- for ac_i in $ICU_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $ICU_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- INTL_SHARED_LIBADD="$INTL_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- INTL_SHARED_LIBADD="-L$ai_p $INTL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && INTL_SHARED_LIBADD="$ld_runpath_switch$ai_p $INTL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- ICU_CXXFLAGS=`$ICU_CONFIG --cxxflags`
- if test "$icu_version" -ge "49000"; then
- ICU_CXXFLAGS="$ICU_CXXFLAGS -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit"
- ICU_CFLAGS="-DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1"
- fi
- if test "$icu_version" -ge "60000"; then
- ICU_CFLAGS="$ICU_CFLAGS -DU_HIDE_OBSOLETE_UTF_OLD_H=1"
- fi
- fi
- fi
- ICU_CFLAGS="$ICU_CFLAGS -DU_DEFINE_FALSE_AND_TRUE=1"
- PHP_VAR_SUBST="$PHP_VAR_SUBST INTL_SHARED_LIBADD"
- if test -z "$php_cxx_done"; then
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- if test -z "$CXX"; then
- if test -n "$CCC"; then
- CXX=$CCC
- else
- if test -n "$ac_tool_prefix"; then
- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
- do
- # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
- set dummy $ac_tool_prefix$ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_CXX+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$CXX"; then
- ac_cv_prog_CXX="$CXX" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- CXX=$ac_cv_prog_CXX
- if test -n "$CXX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
- $as_echo "$CXX" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$CXX" && break
- done
- fi
- if test -z "$CXX"; then
- ac_ct_CXX=$CXX
- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
- do
- # Extract the first word of "$ac_prog", so it can be a program name with args.
- set dummy $ac_prog; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_CXX+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_CXX"; then
- ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CXX="$ac_prog"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
- if test -n "$ac_ct_CXX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
- $as_echo "$ac_ct_CXX" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$ac_ct_CXX" && break
- done
- if test "x$ac_ct_CXX" = x; then
- CXX="g++"
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- CXX=$ac_ct_CXX
- fi
- fi
- fi
- fi
- # Provide some information about the compiler.
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
- set X $ac_compile
- ac_compiler=$2
- for ac_option in --version -v -V -qversion; do
- { { ac_try="$ac_compiler $ac_option >&5"
- case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
- esac
- eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
- $as_echo "$ac_try_echo"; } >&5
- (eval "$ac_compiler $ac_option >&5") 2>conftest.err
- ac_status=$?
- if test -s conftest.err; then
- sed '10a\
- ... rest of stderr output deleted ...
- 10q' conftest.err >conftest.er1
- cat conftest.er1 >&5
- fi
- rm -f conftest.er1 conftest.err
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
- $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
- if ${ac_cv_cxx_compiler_gnu+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- #ifndef __GNUC__
- choke me
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_compile "$LINENO"; then :
- ac_compiler_gnu=yes
- else
- ac_compiler_gnu=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
- $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
- if test $ac_compiler_gnu = yes; then
- GXX=yes
- else
- GXX=
- fi
- ac_test_CXXFLAGS=${CXXFLAGS+set}
- ac_save_CXXFLAGS=$CXXFLAGS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
- $as_echo_n "checking whether $CXX accepts -g... " >&6; }
- if ${ac_cv_prog_cxx_g+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_save_cxx_werror_flag=$ac_cxx_werror_flag
- ac_cxx_werror_flag=yes
- ac_cv_prog_cxx_g=no
- CXXFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_compile "$LINENO"; then :
- ac_cv_prog_cxx_g=yes
- else
- CXXFLAGS=""
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_compile "$LINENO"; then :
- else
- ac_cxx_werror_flag=$ac_save_cxx_werror_flag
- CXXFLAGS="-g"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_compile "$LINENO"; then :
- ac_cv_prog_cxx_g=yes
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cxx_werror_flag=$ac_save_cxx_werror_flag
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
- $as_echo "$ac_cv_prog_cxx_g" >&6; }
- if test "$ac_test_CXXFLAGS" = set; then
- CXXFLAGS=$ac_save_CXXFLAGS
- elif test $ac_cv_prog_cxx_g = yes; then
- if test "$GXX" = yes; then
- CXXFLAGS="-g -O0"
- else
- CXXFLAGS="-g"
- fi
- else
- if test "$GXX" = yes; then
- CXXFLAGS="-O0"
- else
- CXXFLAGS=
- fi
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
- $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
- if test -z "$CXXCPP"; then
- if ${ac_cv_prog_CXXCPP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # Double quotes because CXXCPP needs to be expanded
- for CXXCPP in "$CXX -E" "/lib/cpp"
- do
- ac_preproc_ok=false
- for ac_cxx_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_cxx_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_cxx_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- break
- fi
- done
- ac_cv_prog_CXXCPP=$CXXCPP
- fi
- CXXCPP=$ac_cv_prog_CXXCPP
- else
- ac_cv_prog_CXXCPP=$CXXCPP
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
- $as_echo "$CXXCPP" >&6; }
- ac_preproc_ok=false
- for ac_cxx_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_cxx_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_cxx_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- case stdc++ in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lstdc++ $LIBS"
- ;;
- esac
- php_cxx_done=yes
- fi
- INTL_COMMON_FLAGS="$ICU_INCS $ICU_CFLAGS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"
- if test "$icu_version" -ge "4002"; then
- icu_spoof_src=" spoofchecker/spoofchecker_class.c \
- spoofchecker/spoofchecker.c\
- spoofchecker/spoofchecker_create.c\
- spoofchecker/spoofchecker_main.c"
- else
- icu_spoof_src=""
- fi
- ext_builddir=ext/intl
- ext_srcdir=$abs_srcdir/ext/intl
- ext_dir=ext/intl
- ac_extra=`echo "$INTL_COMMON_FLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_INTL_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_intl.c \
- intl_error.c \
- intl_convert.c \
- collator/collator.c \
- collator/collator_class.c \
- collator/collator_sort.c \
- collator/collator_convert.c \
- collator/collator_locale.c \
- collator/collator_compare.c \
- collator/collator_attr.c \
- collator/collator_create.c \
- collator/collator_is_numeric.c \
- collator/collator_error.c \
- common/common_error.c \
- converter/converter.c \
- formatter/formatter.c \
- formatter/formatter_main.c \
- formatter/formatter_class.c \
- formatter/formatter_attr.c \
- formatter/formatter_data.c \
- formatter/formatter_format.c \
- formatter/formatter_parse.c \
- normalizer/normalizer.c \
- normalizer/normalizer_class.c \
- normalizer/normalizer_normalize.c \
- locale/locale.c \
- locale/locale_class.c \
- locale/locale_methods.c \
- dateformat/dateformat.c \
- dateformat/dateformat_class.c \
- dateformat/dateformat_attr.c \
- dateformat/dateformat_data.c \
- dateformat/dateformat_format.c \
- dateformat/dateformat_parse.c \
- msgformat/msgformat.c \
- msgformat/msgformat_attr.c \
- msgformat/msgformat_class.c \
- msgformat/msgformat_data.c \
- msgformat/msgformat_format.c \
- msgformat/msgformat_parse.c \
- grapheme/grapheme_string.c \
- grapheme/grapheme_util.c \
- resourcebundle/resourcebundle.c \
- resourcebundle/resourcebundle_class.c \
- resourcebundle/resourcebundle_iterator.c \
- transliterator/transliterator.c \
- transliterator/transliterator_class.c \
- transliterator/transliterator_methods.c \
- uchar/uchar.c \
- idn/idn.c \
- $icu_spoof_src; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC intl;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC intl;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_INTL_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_intl.c \
- intl_error.c \
- intl_convert.c \
- collator/collator.c \
- collator/collator_class.c \
- collator/collator_sort.c \
- collator/collator_convert.c \
- collator/collator_locale.c \
- collator/collator_compare.c \
- collator/collator_attr.c \
- collator/collator_create.c \
- collator/collator_is_numeric.c \
- collator/collator_error.c \
- common/common_error.c \
- converter/converter.c \
- formatter/formatter.c \
- formatter/formatter_main.c \
- formatter/formatter_class.c \
- formatter/formatter_attr.c \
- formatter/formatter_data.c \
- formatter/formatter_format.c \
- formatter/formatter_parse.c \
- normalizer/normalizer.c \
- normalizer/normalizer_class.c \
- normalizer/normalizer_normalize.c \
- locale/locale.c \
- locale/locale_class.c \
- locale/locale_methods.c \
- dateformat/dateformat.c \
- dateformat/dateformat_class.c \
- dateformat/dateformat_attr.c \
- dateformat/dateformat_data.c \
- dateformat/dateformat_format.c \
- dateformat/dateformat_parse.c \
- msgformat/msgformat.c \
- msgformat/msgformat_attr.c \
- msgformat/msgformat_class.c \
- msgformat/msgformat_data.c \
- msgformat/msgformat_format.c \
- msgformat/msgformat_parse.c \
- grapheme/grapheme_string.c \
- grapheme/grapheme_util.c \
- resourcebundle/resourcebundle.c \
- resourcebundle/resourcebundle_class.c \
- resourcebundle/resourcebundle_iterator.c \
- transliterator/transliterator.c \
- transliterator/transliterator_class.c \
- transliterator/transliterator_methods.c \
- uchar/uchar.c \
- idn/idn.c \
- $icu_spoof_src; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_intl="$shared_objects_intl $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/intl.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/intl.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_intl"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/intl.$suffix: $ext_builddir/intl.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/intl.$suffix \$(phplibdir)
- $ext_builddir/intl.$suffix: \$(shared_objects_intl) \$(INTL_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CXX) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_intl) \$(INTL_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_INTL 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_INTL_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_intl.c \
- intl_error.c \
- intl_convert.c \
- collator/collator.c \
- collator/collator_class.c \
- collator/collator_sort.c \
- collator/collator_convert.c \
- collator/collator_locale.c \
- collator/collator_compare.c \
- collator/collator_attr.c \
- collator/collator_create.c \
- collator/collator_is_numeric.c \
- collator/collator_error.c \
- common/common_error.c \
- converter/converter.c \
- formatter/formatter.c \
- formatter/formatter_main.c \
- formatter/formatter_class.c \
- formatter/formatter_attr.c \
- formatter/formatter_data.c \
- formatter/formatter_format.c \
- formatter/formatter_parse.c \
- normalizer/normalizer.c \
- normalizer/normalizer_class.c \
- normalizer/normalizer_normalize.c \
- locale/locale.c \
- locale/locale_class.c \
- locale/locale_methods.c \
- dateformat/dateformat.c \
- dateformat/dateformat_class.c \
- dateformat/dateformat_attr.c \
- dateformat/dateformat_data.c \
- dateformat/dateformat_format.c \
- dateformat/dateformat_parse.c \
- msgformat/msgformat.c \
- msgformat/msgformat_attr.c \
- msgformat/msgformat_class.c \
- msgformat/msgformat_data.c \
- msgformat/msgformat_format.c \
- msgformat/msgformat_parse.c \
- grapheme/grapheme_string.c \
- grapheme/grapheme_util.c \
- resourcebundle/resourcebundle.c \
- resourcebundle/resourcebundle_class.c \
- resourcebundle/resourcebundle_iterator.c \
- transliterator/transliterator.c \
- transliterator/transliterator_class.c \
- transliterator/transliterator_methods.c \
- uchar/uchar.c \
- idn/idn.c \
- $icu_spoof_src; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC intl;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_intl.c \
- intl_error.c \
- intl_convert.c \
- collator/collator.c \
- collator/collator_class.c \
- collator/collator_sort.c \
- collator/collator_convert.c \
- collator/collator_locale.c \
- collator/collator_compare.c \
- collator/collator_attr.c \
- collator/collator_create.c \
- collator/collator_is_numeric.c \
- collator/collator_error.c \
- common/common_error.c \
- converter/converter.c \
- formatter/formatter.c \
- formatter/formatter_main.c \
- formatter/formatter_class.c \
- formatter/formatter_attr.c \
- formatter/formatter_data.c \
- formatter/formatter_format.c \
- formatter/formatter_parse.c \
- normalizer/normalizer.c \
- normalizer/normalizer_class.c \
- normalizer/normalizer_normalize.c \
- locale/locale.c \
- locale/locale_class.c \
- locale/locale_methods.c \
- dateformat/dateformat.c \
- dateformat/dateformat_class.c \
- dateformat/dateformat_attr.c \
- dateformat/dateformat_data.c \
- dateformat/dateformat_format.c \
- dateformat/dateformat_parse.c \
- msgformat/msgformat.c \
- msgformat/msgformat_attr.c \
- msgformat/msgformat_class.c \
- msgformat/msgformat_data.c \
- msgformat/msgformat_format.c \
- msgformat/msgformat_parse.c \
- grapheme/grapheme_string.c \
- grapheme/grapheme_util.c \
- resourcebundle/resourcebundle.c \
- resourcebundle/resourcebundle_class.c \
- resourcebundle/resourcebundle_iterator.c \
- transliterator/transliterator.c \
- transliterator/transliterator_class.c \
- transliterator/transliterator_methods.c \
- uchar/uchar.c \
- idn/idn.c \
- $icu_spoof_src; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC intl;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=intl
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_INTL_CXX_SOURCES="intl_convertcpp.cpp \
- common/common_enum.cpp \
- common/common_date.cpp \
- dateformat/dateformat_format_object.cpp \
- dateformat/dateformat_create.cpp \
- dateformat/dateformat_attrcpp.cpp \
- dateformat/dateformat_helpers.cpp \
- msgformat/msgformat_helpers.cpp \
- timezone/timezone_class.cpp \
- timezone/timezone_methods.cpp \
- calendar/calendar_class.cpp \
- calendar/calendar_methods.cpp \
- calendar/gregoriancalendar_methods.cpp \
- breakiterator/breakiterator_class.cpp \
- breakiterator/breakiterator_iterators.cpp \
- breakiterator/breakiterator_methods.cpp \
- breakiterator/rulebasedbreakiterator_methods.cpp \
- breakiterator/codepointiterator_internal.cpp \
- breakiterator/codepointiterator_methods.cpp"
- PHP_INTL_CXX_FLAGS="$INTL_COMMON_FLAGS $ICU_CXXFLAGS"
- if test "$ext_shared" = "no"; then
- case ext/intl in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $PHP_INTL_CXX_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- else
- case ext/intl in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "ext/intl"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/ext/intl/"; ac_bdir="ext/intl/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in $PHP_INTL_CXX_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_intl="$shared_objects_intl $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $PHP_INTL_CXX_FLAGS $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir/collator"
- BUILD_DIR="$BUILD_DIR $ext_builddir/converter"
- BUILD_DIR="$BUILD_DIR $ext_builddir/common"
- BUILD_DIR="$BUILD_DIR $ext_builddir/formatter"
- BUILD_DIR="$BUILD_DIR $ext_builddir/normalizer"
- BUILD_DIR="$BUILD_DIR $ext_builddir/dateformat"
- BUILD_DIR="$BUILD_DIR $ext_builddir/locale"
- BUILD_DIR="$BUILD_DIR $ext_builddir/msgformat"
- BUILD_DIR="$BUILD_DIR $ext_builddir/grapheme"
- BUILD_DIR="$BUILD_DIR $ext_builddir/resourcebundle"
- BUILD_DIR="$BUILD_DIR $ext_builddir/transliterator"
- BUILD_DIR="$BUILD_DIR $ext_builddir/timezone"
- BUILD_DIR="$BUILD_DIR $ext_builddir/calendar"
- BUILD_DIR="$BUILD_DIR $ext_builddir/idn"
- BUILD_DIR="$BUILD_DIR $ext_builddir/spoofchecker"
- BUILD_DIR="$BUILD_DIR $ext_builddir/breakiterator"
- BUILD_DIR="$BUILD_DIR $ext_builddir/uchar"
- fi
- php_enable_json=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable JavaScript Object Serialization support" >&5
- $as_echo_n "checking whether to enable JavaScript Object Serialization support... " >&6; }
- # Check whether --enable-json was given.
- if test "${enable_json+set}" = set; then :
- enableval=$enable_json; PHP_JSON=$enableval
- else
- PHP_JSON=yes
- test "$PHP_ENABLE_ALL" && PHP_JSON=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_JSON in
- shared,*)
- PHP_JSON=`echo "$PHP_JSON"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_JSON=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_JSON" != "no"; then
- $as_echo "#define HAVE_JSON 1 " >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
- $as_echo_n "checking for ANSI C header files... " >&6; }
- if ${ac_cv_header_stdc+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_header_stdc=yes
- else
- ac_cv_header_stdc=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "memchr" >/dev/null 2>&1; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "free" >/dev/null 2>&1; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then :
- :
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ctype.h>
- #include <stdlib.h>
- #if ((' ' & 0x0FF) == 0x020)
- # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #else
- # define ISLOWER(c) \
- (('a' <= (c) && (c) <= 'i') \
- || ('j' <= (c) && (c) <= 'r') \
- || ('s' <= (c) && (c) <= 'z'))
- # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
- #endif
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int
- main ()
- {
- int i;
- for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i))
- || toupper (i) != TOUPPER (i))
- return 2;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
- $as_echo "$ac_cv_header_stdc" >&6; }
- if test $ac_cv_header_stdc = yes; then
- $as_echo "#define STDC_HEADERS 1" >>confdefs.h
- fi
- ext_builddir=ext/json
- ext_srcdir=$abs_srcdir/ext/json
- ext_dir=ext/json
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_JSON_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in json.c \
- json_encoder.c \
- json_parser.tab.c \
- json_scanner.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC json;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC json;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_JSON_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in json.c \
- json_encoder.c \
- json_parser.tab.c \
- json_scanner.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_json="$shared_objects_json $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/json.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/json.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_json"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/json.$suffix: $ext_builddir/json.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/json.$suffix \$(phplibdir)
- $ext_builddir/json.$suffix: \$(shared_objects_json) \$(JSON_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_json) \$(JSON_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_JSON 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_JSON_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in json.c \
- json_encoder.c \
- json_parser.tab.c \
- json_scanner.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC json;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in json.c \
- json_encoder.c \
- json_parser.tab.c \
- json_scanner.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC json;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=json
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- header_path=ext/json
- for header_file in php_json.h php_json_parser.h php_json_scanner.h; do
- hp_hf="$header_path/$header_file"
- unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
- fi
- done
- src=$ext_srcdir/Makefile.frag
- ac_srcdir=$ext_srcdir
- ac_builddir=$ext_builddir
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- PHP_VAR_SUBST="$PHP_VAR_SUBST JSON_SHARED_LIBADD"
- fi
- php_with_ldap=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP support" >&5
- $as_echo_n "checking for LDAP support... " >&6; }
- # Check whether --with-ldap was given.
- if test "${with_ldap+set}" = set; then :
- withval=$with_ldap; PHP_LDAP=$withval
- else
- PHP_LDAP=no
- test "$PHP_ENABLE_ALL" && PHP_LDAP=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_LDAP in
- shared,*)
- PHP_LDAP=`echo "$PHP_LDAP"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_LDAP=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_ldap_sasl=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP Cyrus SASL support" >&5
- $as_echo_n "checking for LDAP Cyrus SASL support... " >&6; }
- # Check whether --with-ldap-sasl was given.
- if test "${with_ldap_sasl+set}" = set; then :
- withval=$with_ldap_sasl; PHP_LDAP_SASL=$withval
- else
- PHP_LDAP_SASL=no
- fi
- ext_output=$PHP_LDAP_SASL
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_LDAP" != "no"; then
- ext_builddir=ext/ldap
- ext_srcdir=$abs_srcdir/ext/ldap
- ext_dir=ext/ldap
- ac_extra=`echo "-DLDAP_DEPRECATED=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_LDAP_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in ldap.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC ldap;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC ldap;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_LDAP_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in ldap.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_ldap="$shared_objects_ldap $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/ldap.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/ldap.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_ldap"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/ldap.$suffix: $ext_builddir/ldap.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/ldap.$suffix \$(phplibdir)
- $ext_builddir/ldap.$suffix: \$(shared_objects_ldap) \$(LDAP_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_ldap) \$(LDAP_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_LDAP 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_LDAP_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in ldap.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC ldap;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in ldap.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC ldap;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=ldap
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- if test "$PHP_LDAP" = "yes"; then
- for i in /usr/local /usr; do
- if test -f $i/include/ldap.h; then
- LDAP_DIR=$i
- LDAP_INCDIR=$i/include
- LDAP_LIBDIR=$i/$PHP_LIBDIR
- elif test -f $i/include/umich-ldap/ldap.h; then
- LDAP_DIR=$i
- LDAP_INCDIR=$i/include/umich-ldap
- LDAP_LIBDIR=$i/$PHP_LIBDIR
- elif test -f $i/ldap/public/ldap.h; then
- LDAP_DIR=$i
- LDAP_INCDIR=$i/ldap/public
- LDAP_LIBDIR=$i/$PHP_LIBDIR
- else
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
- $as_echo_n "checking size of long int... " >&6; }
- if ${ac_cv_sizeof_long_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
- $as_echo "$ac_cv_sizeof_long_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
- _ACEOF
- if test "$ac_cv_sizeof_long_int" = "4"; then
- PHP_OCI8_IC_LIBDIR_SUFFIX=""
- else
- PHP_OCI8_IC_LIBDIR_SUFFIX=64
- fi
- OCISDKRPMINC=`echo "$i" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'`
- if test -f $OCISDKRPMINC/ldap.h; then
- LDAP_DIR=$i
- LDAP_INCDIR=$OCISDKRPMINC
- LDAP_LIBDIR=$i
- elif test -f $i/sdk/include/ldap.h; then
- LDAP_DIR=$i
- LDAP_INCDIR=$i/sdk/include
- LDAP_LIBDIR=$i
- fi
- fi
- done
- else
- if test -f $PHP_LDAP/include/ldap.h; then
- LDAP_DIR=$PHP_LDAP
- LDAP_INCDIR=$PHP_LDAP/include
- LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
- elif test -f $PHP_LDAP/include/umich-ldap/ldap.h; then
- LDAP_DIR=$PHP_LDAP
- LDAP_INCDIR=$PHP_LDAP/include/umich-ldap
- LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
- elif test -f $PHP_LDAP/ldap/public/ldap.h; then
- LDAP_DIR=$PHP_LDAP
- LDAP_INCDIR=$PHP_LDAP/ldap/public
- LDAP_LIBDIR=$PHP_LDAP/$PHP_LIBDIR
- else
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
- $as_echo_n "checking size of long int... " >&6; }
- if ${ac_cv_sizeof_long_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
- $as_echo "$ac_cv_sizeof_long_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
- _ACEOF
- if test "$ac_cv_sizeof_long_int" = "4"; then
- PHP_OCI8_IC_LIBDIR_SUFFIX=""
- else
- PHP_OCI8_IC_LIBDIR_SUFFIX=64
- fi
- OCISDKRPMINC=`echo "$PHP_LDAP" | $SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'`
- if test -f $OCISDKRPMINC/ldap.h; then
- LDAP_DIR=$PHP_LDAP
- LDAP_INCDIR=$OCISDKRPMINC
- LDAP_LIBDIR=$PHP_LDAP
- elif test -f $PHP_LDAP/sdk/include/ldap.h; then
- LDAP_DIR=$PHP_LDAP
- LDAP_INCDIR=$PHP_LDAP/sdk/include
- LDAP_LIBDIR=$PHP_LDAP
- fi
- fi
- fi
- if test -z "$LDAP_DIR"; then
- as_fn_error $? "Cannot find ldap.h" "$LINENO" 5
- fi
- if test `uname` = "Linux"; then
- LDAP_PTHREAD=pthread
- else
- LDAP_PTHREAD=
- fi
- MACHINE_INCLUDES=$($CC -dumpmachine)
- if test -f $LDAP_LIBDIR/liblber.a || test -f $LDAP_LIBDIR/liblber.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.a || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/liblber.$SHLIB_SUFFIX_NAME; then
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-llber $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case lber in
- c|c_r|pthread*) ;;
- *)
- LIBS="-llber $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case ldap in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lldap $LIBS"
- ;;
- esac
- fi
- elif test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/libldap.$SHLIB_SUFFIX_NAME.3 || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libldap.$SHLIB_SUFFIX_NAME.3 || test -f $LDAP_LIBDIR/libldap.3.dylib; then
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lldap $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case ldap in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lldap $LIBS"
- ;;
- esac
- fi
- elif test -f $LDAP_LIBDIR/libssldap50.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libssldap50.$SHLIB_SUFFIX_NAME; then
- if test -n "$LDAP_PTHREAD"; then
- case $LDAP_PTHREAD in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$LDAP_PTHREAD $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lnspr4 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case nspr4 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lnspr4 $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lplc4 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case plc4 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lplc4 $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lplds4 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case plds4 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lplds4 $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lssldap50 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case ssldap50 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lssldap50 $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lldap50 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case ldap50 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lldap50 $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lprldap50 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case prldap50 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lprldap50 $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lssl3 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case ssl3 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lssl3 $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
- elif test -f $LDAP_LIBDIR/libldapssl41.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libldapssl41.$SHLIB_SUFFIX_NAME; then
- if test -n "$LDAP_PTHREAD"; then
- case $LDAP_PTHREAD in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$LDAP_PTHREAD $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lnspr3 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case nspr3 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lnspr3 $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lplc3 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case plc3 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lplc3 $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lplds3 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case plds3 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lplds3 $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lldapssl41 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case ldapssl41 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lldapssl41 $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
- elif test -f $LDAP_LIBDIR/libldapssl30.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libldapssl30.$SHLIB_SUFFIX_NAME; then
- if test -n "$LDAP_PTHREAD"; then
- case $LDAP_PTHREAD in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$LDAP_PTHREAD $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lldapssl30 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case ldapssl30 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lldapssl30 $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
- elif test -f $LDAP_LIBDIR/libldap30.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libldap30.$SHLIB_SUFFIX_NAME; then
- if test -n "$LDAP_PTHREAD"; then
- case $LDAP_PTHREAD in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$LDAP_PTHREAD $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lldap30 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case ldap30 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lldap30 $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_NSLDAP 1" >>confdefs.h
- elif test -f $LDAP_LIBDIR/libumich_ldap.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libumich_ldap.$SHLIB_SUFFIX_NAME; then
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lumich_lber $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case umich_lber in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lumich_lber $LIBS"
- ;;
- esac
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lumich_ldap $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case umich_ldap in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lumich_ldap $LIBS"
- ;;
- esac
- fi
- elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.12.1 || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libclntsh.$SHLIB_SUFFIX_NAME.12.1; then
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case clntsh in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lclntsh $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_ORALDAP 1" >>confdefs.h
- $as_echo "#define HAVE_ORALDAP_12 1" >>confdefs.h
- elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME.11.1 || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libclntsh.$SHLIB_SUFFIX_NAME.11.1; then
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case clntsh in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lclntsh $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_ORALDAP 1" >>confdefs.h
- $as_echo "#define HAVE_ORALDAP_11 1" >>confdefs.h
- elif test -f $LDAP_LIBDIR/libclntsh.$SHLIB_SUFFIX_NAME || test -f $LDAP_LIBDIR/$MACHINE_INCLUDES/libclntsh.$SHLIB_SUFFIX_NAME; then
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lclntsh $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_LIBDIR"; then
- if test "$LDAP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_LIBDIR" || echo "$LDAP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_LIBDIR
- else
- ep_dir=`echo $LDAP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case clntsh in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lclntsh $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_ORALDAP 1" >>confdefs.h
- $as_echo "#define HAVE_ORALDAP_10 1" >>confdefs.h
- else
- as_fn_error $? "Cannot find ldap libraries in $LDAP_LIBDIR." "$LINENO" 5
- fi
- if test "$LDAP_INCDIR" != "/usr/include"; then
- if test -z "$LDAP_INCDIR" || echo "$LDAP_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_INCDIR
- else
- ep_dir=`echo $LDAP_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST LDAP_SHARED_LIBADD"
- $as_echo "#define HAVE_LDAP 1" >>confdefs.h
- _SAVE_CPPFLAGS=$CPPFLAGS
- _SAVE_LIBS=$LIBS
- CPPFLAGS="$CPPFLAGS -I$LDAP_INCDIR"
- LIBS="$LIBS $LDAP_SHARED_LIBADD"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3 arg ldap_set_rebind_proc" >&5
- $as_echo_n "checking for 3 arg ldap_set_rebind_proc... " >&6; }
- if ${ac_cv_3arg_setrebindproc+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ldap.h>
- int
- main ()
- {
- ldap_set_rebind_proc(0,0,0)
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_3arg_setrebindproc=yes
- else
- ac_cv_3arg_setrebindproc=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_3arg_setrebindproc" >&5
- $as_echo "$ac_cv_3arg_setrebindproc" >&6; }
- if test "$ac_cv_3arg_setrebindproc" = yes; then
- $as_echo "#define HAVE_3ARG_SETREBINDPROC 1" >>confdefs.h
- fi
- for ac_func in ldap_parse_result ldap_parse_reference ldap_start_tls_s ldap_control_find ldap_parse_extended_result ldap_extended_operation ldap_extended_operation_s ldap_passwd ldap_whoami_s ldap_refresh_s
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- if test "$PHP_LDAP_SASL" != "no"; then
- if test "$PHP_LDAP_SASL" = "yes"; then
- SEARCH_DIRS="/usr/local /usr"
- else
- SEARCH_DIRS=$PHP_LDAP_SASL
- fi
- for i in $SEARCH_DIRS; do
- if test -f $i/include/sasl/sasl.h; then
- LDAP_SASL_DIR=$i
- $as_echo "#define HAVE_LDAP_SASL_SASL_H 1" >>confdefs.h
- break
- elif test -f $i/include/sasl.h; then
- LDAP_SASL_DIR=$i
- $as_echo "#define HAVE_LDAP_SASL_H 1" >>confdefs.h
- break
- fi
- done
- if test "$LDAP_SASL_DIR"; then
- LDAP_SASL_INCDIR=$LDAP_SASL_DIR/include
- LDAP_SASL_LIBDIR=$LDAP_SASL_DIR/$PHP_LIBDIR
- else
- as_fn_error $? "sasl.h not found!" "$LINENO" 5
- fi
- if test "$PHP_LDAP_SASL" = "yes"; then
- SASL_LIB="-lsasl2"
- else
- SASL_LIB="-L$LDAP_SASL_LIBDIR -lsasl2"
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $LDAP_SHARED_LIBADD $SASL_LIB
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_version in -lsasl2" >&5
- $as_echo_n "checking for sasl_version in -lsasl2... " >&6; }
- if ${ac_cv_lib_sasl2_sasl_version+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsasl2 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char sasl_version ();
- int
- main ()
- {
- return sasl_version ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_sasl2_sasl_version=yes
- else
- ac_cv_lib_sasl2_sasl_version=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_version" >&5
- $as_echo "$ac_cv_lib_sasl2_sasl_version" >&6; }
- if test "x$ac_cv_lib_sasl2_sasl_version" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$LDAP_SASL_INCDIR" != "/usr/include"; then
- if test -z "$LDAP_SASL_INCDIR" || echo "$LDAP_SASL_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_SASL_INCDIR
- else
- ep_dir=`echo $LDAP_SASL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_SASL_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-lsasl2 $LDAP_SHARED_LIBADD"
- if test -n "$LDAP_SASL_LIBDIR"; then
- if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_SASL_LIBDIR
- else
- ep_dir=`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_SASL_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- LDAP_SHARED_LIBADD="-L$ai_p $LDAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && LDAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $LDAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LDAP_SASL_LIBDIR"; then
- if test "$LDAP_SASL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LDAP_SASL_LIBDIR" != "/usr/lib"; then
- if test -z "$LDAP_SASL_LIBDIR" || echo "$LDAP_SASL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LDAP_SASL_LIBDIR
- else
- ep_dir=`echo $LDAP_SASL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LDAP_SASL_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case sasl2 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsasl2 $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_LDAP_SASL 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_sasl2_sasl_version
- as_fn_error $? "LDAP SASL check failed. Please check config.log for more information." "$LINENO" 5
- fi
- fi
- ac_fn_c_check_func "$LINENO" "ldap_bind_s" "ac_cv_func_ldap_bind_s"
- if test "x$ac_cv_func_ldap_bind_s" = xyes; then :
- else
- as_fn_error $? "LDAP build check failed. Please check config.log for more information." "$LINENO" 5
- fi
- CPPFLAGS=$_SAVE_CPPFLAGS
- LIBS=$_SAVE_LIBS
- fi
- php_enable_mbstring=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte string support" >&5
- $as_echo_n "checking whether to enable multibyte string support... " >&6; }
- # Check whether --enable-mbstring was given.
- if test "${enable_mbstring+set}" = set; then :
- enableval=$enable_mbstring; PHP_MBSTRING=$enableval
- else
- PHP_MBSTRING=no
- test "$PHP_ENABLE_ALL" && PHP_MBSTRING=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_MBSTRING in
- shared,*)
- PHP_MBSTRING=`echo "$PHP_MBSTRING"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_MBSTRING=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_enable_mbregex=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable multibyte regex support" >&5
- $as_echo_n "checking whether to enable multibyte regex support... " >&6; }
- # Check whether --enable-mbregex was given.
- if test "${enable_mbregex+set}" = set; then :
- enableval=$enable_mbregex; PHP_MBREGEX=$enableval
- else
- PHP_MBREGEX=yes
- fi
- ext_output=$PHP_MBREGEX
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_enable_mbregex_backtrack=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check multibyte regex backtrack" >&5
- $as_echo_n "checking whether to check multibyte regex backtrack... " >&6; }
- # Check whether --enable-mbregex_backtrack was given.
- if test "${enable_mbregex_backtrack+set}" = set; then :
- enableval=$enable_mbregex_backtrack; PHP_MBREGEX_BACKTRACK=$enableval
- else
- PHP_MBREGEX_BACKTRACK=yes
- fi
- ext_output=$PHP_MBREGEX_BACKTRACK
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_onig=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external oniguruma" >&5
- $as_echo_n "checking for external oniguruma... " >&6; }
- # Check whether --with-onig was given.
- if test "${with_onig+set}" = set; then :
- withval=$with_onig; PHP_ONIG=$withval
- else
- PHP_ONIG=no
- fi
- ext_output=$PHP_ONIG
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_MBSTRING" != "no"; then
- $as_echo "#define HAVE_MBSTRING 1" >>confdefs.h
- PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES mbstring.c php_unicode.c mb_gpc.c"
- if test "$PHP_MBREGEX" != "no"; then
- if test "$PHP_MBREGEX" = "yes"; then
- if test "$PHP_ONIG" = "yes" || test "$PHP_ONIG" = "no"; then
- PHP_MBSTRING_BUNDLED_ONIG=1
- if test "$PHP_MBREGEX_BACKTRACK" != "no"; then
- $as_echo "#define USE_COMBINATION_EXPLOSION_CHECK 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5
- $as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; }
- if ${php_cv_mbstring_stdarg+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- php_cv_mbstring_stdarg=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdarg.h>
- int foo(int x, ...) {
- va_list va;
- va_start(va, x);
- va_arg(va, int);
- va_arg(va, char *);
- va_arg(va, double);
- return 0;
- }
- int main() { return foo(10, "", 3.14); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- php_cv_mbstring_stdarg=yes
- else
- php_cv_mbstring_stdarg=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_mbstring_stdarg" >&5
- $as_echo "$php_cv_mbstring_stdarg" >&6; }
- for ac_header in stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h stdarg.h limits.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
- $as_echo_n "checking size of int... " >&6; }
- if ${ac_cv_sizeof_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
- $as_echo "$ac_cv_sizeof_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_INT $ac_cv_sizeof_int
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
- $as_echo_n "checking size of short... " >&6; }
- if ${ac_cv_sizeof_short+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_short" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (short)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_short=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
- $as_echo "$ac_cv_sizeof_short" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_SHORT $ac_cv_sizeof_short
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
- $as_echo_n "checking size of long... " >&6; }
- if ${ac_cv_sizeof_long+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
- $as_echo "$ac_cv_sizeof_long" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG $ac_cv_sizeof_long
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
- $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
- if ${ac_cv_c_const+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- #ifndef __cplusplus
- /* Ultrix mips cc rejects this sort of thing. */
- typedef int charset[2];
- const charset cs = { 0, 0 };
- /* SunOS 4.1.1 cc rejects this. */
- char const *const *pcpcc;
- char **ppc;
- /* NEC SVR4.0.2 mips cc rejects this. */
- struct point {int x, y;};
- static struct point const zero = {0,0};
- /* AIX XL C 1.02.0.0 rejects this.
- It does not let you subtract one const X* pointer from another in
- an arm of an if-expression whose if-part is not a constant
- expression */
- const char *g = "string";
- pcpcc = &g + (g ? g-g : 0);
- /* HPUX 7.0 cc rejects these. */
- ++pcpcc;
- ppc = (char**) pcpcc;
- pcpcc = (char const *const *) ppc;
- { /* SCO 3.2v4 cc rejects this sort of thing. */
- char tx;
- char *t = &tx;
- char const *s = 0 ? (char *) 0 : (char const *) 0;
- *t++ = 0;
- if (s) return 0;
- }
- { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
- int x[] = {25, 17};
- const int *foo = &x[0];
- ++foo;
- }
- { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
- typedef const int *iptr;
- iptr p = 0;
- ++p;
- }
- { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
- struct s { int j; const int *ap[3]; } bx;
- struct s *b = &bx; b->j = 5;
- }
- { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
- const int foo = 10;
- if (!foo) return 0;
- }
- return !cs[0] && !zero.x;
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_const=yes
- else
- ac_cv_c_const=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
- $as_echo "$ac_cv_c_const" >&6; }
- if test $ac_cv_c_const = no; then
- $as_echo "#define const /**/" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
- $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
- if ${ac_cv_header_time+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/time.h>
- #include <time.h>
- int
- main ()
- {
- if ((struct tm *) 0)
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_header_time=yes
- else
- ac_cv_header_time=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
- $as_echo "$ac_cv_header_time" >&6; }
- if test $ac_cv_header_time = yes; then
- $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
- fi
- # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
- # for constant arguments. Useless!
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
- $as_echo_n "checking for working alloca.h... " >&6; }
- if ${ac_cv_working_alloca_h+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <alloca.h>
- int
- main ()
- {
- char *p = (char *) alloca (2 * sizeof (int));
- if (p) return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_working_alloca_h=yes
- else
- ac_cv_working_alloca_h=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
- $as_echo "$ac_cv_working_alloca_h" >&6; }
- if test $ac_cv_working_alloca_h = yes; then
- $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
- $as_echo_n "checking for alloca... " >&6; }
- if ${ac_cv_func_alloca_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __GNUC__
- # define alloca __builtin_alloca
- #else
- # ifdef _MSC_VER
- # include <malloc.h>
- # define alloca _alloca
- # else
- # ifdef HAVE_ALLOCA_H
- # include <alloca.h>
- # else
- # ifdef _AIX
- #pragma alloca
- # else
- # ifndef alloca /* predefined by HP cc +Olibcalls */
- void *alloca (size_t);
- # endif
- # endif
- # endif
- # endif
- #endif
- int
- main ()
- {
- char *p = (char *) alloca (1);
- if (p) return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_func_alloca_works=yes
- else
- ac_cv_func_alloca_works=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
- $as_echo "$ac_cv_func_alloca_works" >&6; }
- if test $ac_cv_func_alloca_works = yes; then
- $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
- else
- # The SVR3 libPW and SVR4 libucb both contain incompatible functions
- # that cause trouble. Some versions do not even contain alloca or
- # contain a buggy version. If you still want to use their alloca,
- # use ar to extract alloca.o from them instead of compiling alloca.c.
- ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
- $as_echo "#define C_ALLOCA 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
- $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
- if ${ac_cv_os_cray+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #if defined CRAY && ! defined CRAY2
- webecray
- #else
- wenotbecray
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "webecray" >/dev/null 2>&1; then :
- ac_cv_os_cray=yes
- else
- ac_cv_os_cray=no
- fi
- rm -f conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
- $as_echo "$ac_cv_os_cray" >&6; }
- if test $ac_cv_os_cray = yes; then
- for ac_func in _getb67 GETB67 getb67; do
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define CRAY_STACKSEG_END $ac_func
- _ACEOF
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
- $as_echo_n "checking stack direction for C alloca... " >&6; }
- if ${ac_cv_c_stack_direction+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_c_stack_direction=0
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- int
- find_stack_direction (int *addr, int depth)
- {
- int dir, dummy = 0;
- if (! addr)
- addr = &dummy;
- *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
- dir = depth ? find_stack_direction (addr, depth - 1) : 0;
- return dir + dummy;
- }
- int
- main (int argc, char **argv)
- {
- return find_stack_direction (0, argc + !argv + 20) < 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_c_stack_direction=1
- else
- ac_cv_c_stack_direction=-1
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
- $as_echo "$ac_cv_c_stack_direction" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define STACK_DIRECTION $ac_cv_c_stack_direction
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
- $as_echo_n "checking for working memcmp... " >&6; }
- if ${ac_cv_func_memcmp_working+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_func_memcmp_working=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- int
- main ()
- {
- /* Some versions of memcmp are not 8-bit clean. */
- char c0 = '\100', c1 = '\200', c2 = '\201';
- if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
- return 1;
- /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
- or more and with at least one buffer not starting on a 4-byte boundary.
- William Lewis provided this test program. */
- {
- char foo[21];
- char bar[21];
- int i;
- for (i = 0; i < 4; i++)
- {
- char *a = foo + i;
- char *b = bar + i;
- strcpy (a, "--------01111111");
- strcpy (b, "--------10000000");
- if (memcmp (a, b, 16) >= 0)
- return 1;
- }
- return 0;
- }
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_memcmp_working=yes
- else
- ac_cv_func_memcmp_working=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
- $as_echo "$ac_cv_func_memcmp_working" >&6; }
- test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
- *" memcmp.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
- ;;
- esac
- ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
- if test "x$ac_cv_header_stdarg_h" = xyes; then :
- $as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h
- fi
- $as_echo "#define PHP_ONIG_BUNDLED 1" >>confdefs.h
- $as_echo "#define HAVE_ONIG 1" >>confdefs.h
- PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DNOT_RUBY"
- PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma"
- PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS oniguruma/src"
- PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES oniguruma"
- PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS oniguruma/src/config.h"
- PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES
- oniguruma/src/ascii.c
- oniguruma/src/big5.c
- oniguruma/src/cp1251.c
- oniguruma/src/euc_jp.c
- oniguruma/src/euc_jp_prop.c
- oniguruma/src/euc_kr.c
- oniguruma/src/euc_tw.c
- oniguruma/src/gb18030.c
- oniguruma/src/iso8859_1.c
- oniguruma/src/iso8859_10.c
- oniguruma/src/iso8859_11.c
- oniguruma/src/iso8859_13.c
- oniguruma/src/iso8859_14.c
- oniguruma/src/iso8859_15.c
- oniguruma/src/iso8859_16.c
- oniguruma/src/iso8859_2.c
- oniguruma/src/iso8859_3.c
- oniguruma/src/iso8859_4.c
- oniguruma/src/iso8859_5.c
- oniguruma/src/iso8859_6.c
- oniguruma/src/iso8859_7.c
- oniguruma/src/iso8859_8.c
- oniguruma/src/iso8859_9.c
- oniguruma/src/koi8.c
- oniguruma/src/koi8_r.c
- oniguruma/src/onig_init.c
- oniguruma/src/regcomp.c
- oniguruma/src/regenc.c
- oniguruma/src/regerror.c
- oniguruma/src/regexec.c
- oniguruma/src/regext.c
- oniguruma/src/reggnu.c
- oniguruma/src/regparse.c
- oniguruma/src/regposerr.c
- oniguruma/src/regposix.c
- oniguruma/src/regsyntax.c
- oniguruma/src/regtrav.c
- oniguruma/src/regversion.c
- oniguruma/src/sjis.c
- oniguruma/src/sjis_prop.c
- oniguruma/src/st.c
- oniguruma/src/unicode.c
- oniguruma/src/unicode_fold1_key.c
- oniguruma/src/unicode_fold2_key.c
- oniguruma/src/unicode_fold3_key.c
- oniguruma/src/unicode_unfold_key.c
- oniguruma/src/utf16_be.c
- oniguruma/src/utf16_le.c
- oniguruma/src/utf32_be.c
- oniguruma/src/utf32_le.c
- oniguruma/src/utf8.c
- "
- PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS oniguruma/oniguruma.h"
- else
- PHP_MBSTRING_BUNDLED_ONIG=0
- if test ! -f "$PHP_ONIG/include/oniguruma.h"; then
- as_fn_error $? "oniguruma.h not found in $PHP_ONIG/include" "$LINENO" 5
- fi
- if test "$PHP_ONIG/include" != "/usr/include"; then
- if test -z "$PHP_ONIG/include" || echo "$PHP_ONIG/include" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ONIG/include
- else
- ep_dir=`echo $PHP_ONIG/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ONIG/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PHP_ONIG/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for onig_init in -lonig" >&5
- $as_echo_n "checking for onig_init in -lonig... " >&6; }
- if ${ac_cv_lib_onig_onig_init+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lonig $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char onig_init ();
- int
- main ()
- {
- return onig_init ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_onig_onig_init=yes
- else
- ac_cv_lib_onig_onig_init=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_onig_onig_init" >&5
- $as_echo "$ac_cv_lib_onig_onig_init" >&6; }
- if test "x$ac_cv_lib_onig_onig_init" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$ext_shared" = "yes"; then
- MBSTRING_SHARED_LIBADD="-lonig $MBSTRING_SHARED_LIBADD"
- if test -n "$PHP_ONIG/$PHP_LIBDIR"; then
- if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ONIG/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ONIG/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- MBSTRING_SHARED_LIBADD="-L$ai_p $MBSTRING_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && MBSTRING_SHARED_LIBADD="$ld_runpath_switch$ai_p $MBSTRING_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PHP_ONIG/$PHP_LIBDIR"; then
- if test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ONIG/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_ONIG/$PHP_LIBDIR" || echo "$PHP_ONIG/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ONIG/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_ONIG/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ONIG/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case onig in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lonig $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_ONIG 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_onig_onig_init
- as_fn_error $? "Problem with oniguruma. Please check config.log for more information." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- for ac_i in $MBSTRING_SHARED_LIBADD; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if oniguruma has an invalid entry for KOI8 encoding" >&5
- $as_echo_n "checking if oniguruma has an invalid entry for KOI8 encoding... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <oniguruma.h>
- int
- main ()
- {
- return (int)(ONIG_ENCODING_KOI8 + 1);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define PHP_ONIG_BAD_KOI8_ENTRY 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LDFLAGS=$save_old_LDFLAGS
- fi
- PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DONIG_ESCAPE_UCHAR_COLLISION=1"
- PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DUChar=OnigUChar"
- $as_echo "#define HAVE_MBREGEX 1" >>confdefs.h
- PHP_MBSTRING_BASE_SOURCES="$PHP_MBSTRING_BASE_SOURCES php_mbregex.c"
- PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS php_mbregex.h php_onig_compat.h"
- fi
- fi
- PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl"
- PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/mbfl"
- PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/filters"
- PHP_MBSTRING_EXTRA_BUILD_DIRS="$PHP_MBSTRING_EXTRA_BUILD_DIRS libmbfl/nls"
- PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl"
- PHP_MBSTRING_EXTRA_INCLUDES="$PHP_MBSTRING_EXTRA_INCLUDES libmbfl/mbfl"
- PHP_MBSTRING_EXTRA_CONFIG_HEADERS="$PHP_MBSTRING_EXTRA_CONFIG_HEADERS libmbfl/config.h"
- PHP_MBSTRING_SOURCES="$PHP_MBSTRING_SOURCES
- libmbfl/filters/html_entities.c
- libmbfl/filters/mbfilter_7bit.c
- libmbfl/filters/mbfilter_ascii.c
- libmbfl/filters/mbfilter_base64.c
- libmbfl/filters/mbfilter_big5.c
- libmbfl/filters/mbfilter_byte2.c
- libmbfl/filters/mbfilter_byte4.c
- libmbfl/filters/mbfilter_cp1251.c
- libmbfl/filters/mbfilter_cp1252.c
- libmbfl/filters/mbfilter_cp1254.c
- libmbfl/filters/mbfilter_cp5022x.c
- libmbfl/filters/mbfilter_cp51932.c
- libmbfl/filters/mbfilter_cp850.c
- libmbfl/filters/mbfilter_cp866.c
- libmbfl/filters/mbfilter_cp932.c
- libmbfl/filters/mbfilter_cp936.c
- libmbfl/filters/mbfilter_gb18030.c
- libmbfl/filters/mbfilter_euc_cn.c
- libmbfl/filters/mbfilter_euc_jp.c
- libmbfl/filters/mbfilter_euc_jp_2004.c
- libmbfl/filters/mbfilter_euc_jp_win.c
- libmbfl/filters/mbfilter_euc_kr.c
- libmbfl/filters/mbfilter_euc_tw.c
- libmbfl/filters/mbfilter_htmlent.c
- libmbfl/filters/mbfilter_hz.c
- libmbfl/filters/mbfilter_iso2022_jp_ms.c
- libmbfl/filters/mbfilter_iso2022jp_2004.c
- libmbfl/filters/mbfilter_iso2022jp_mobile.c
- libmbfl/filters/mbfilter_iso2022_kr.c
- libmbfl/filters/mbfilter_iso8859_1.c
- libmbfl/filters/mbfilter_iso8859_10.c
- libmbfl/filters/mbfilter_iso8859_13.c
- libmbfl/filters/mbfilter_iso8859_14.c
- libmbfl/filters/mbfilter_iso8859_15.c
- libmbfl/filters/mbfilter_iso8859_16.c
- libmbfl/filters/mbfilter_iso8859_2.c
- libmbfl/filters/mbfilter_iso8859_3.c
- libmbfl/filters/mbfilter_iso8859_4.c
- libmbfl/filters/mbfilter_iso8859_5.c
- libmbfl/filters/mbfilter_iso8859_6.c
- libmbfl/filters/mbfilter_iso8859_7.c
- libmbfl/filters/mbfilter_iso8859_8.c
- libmbfl/filters/mbfilter_iso8859_9.c
- libmbfl/filters/mbfilter_jis.c
- libmbfl/filters/mbfilter_koi8r.c
- libmbfl/filters/mbfilter_armscii8.c
- libmbfl/filters/mbfilter_qprint.c
- libmbfl/filters/mbfilter_sjis.c
- libmbfl/filters/mbfilter_sjis_open.c
- libmbfl/filters/mbfilter_sjis_mobile.c
- libmbfl/filters/mbfilter_sjis_mac.c
- libmbfl/filters/mbfilter_sjis_2004.c
- libmbfl/filters/mbfilter_tl_jisx0201_jisx0208.c
- libmbfl/filters/mbfilter_ucs2.c
- libmbfl/filters/mbfilter_ucs4.c
- libmbfl/filters/mbfilter_uhc.c
- libmbfl/filters/mbfilter_utf16.c
- libmbfl/filters/mbfilter_utf32.c
- libmbfl/filters/mbfilter_utf7.c
- libmbfl/filters/mbfilter_utf7imap.c
- libmbfl/filters/mbfilter_utf8.c
- libmbfl/filters/mbfilter_utf8_mobile.c
- libmbfl/filters/mbfilter_uuencode.c
- libmbfl/filters/mbfilter_koi8u.c
- libmbfl/mbfl/mbfilter.c
- libmbfl/mbfl/mbfilter_8bit.c
- libmbfl/mbfl/mbfilter_pass.c
- libmbfl/mbfl/mbfilter_wchar.c
- libmbfl/mbfl/mbfl_convert.c
- libmbfl/mbfl/mbfl_encoding.c
- libmbfl/mbfl/mbfl_filter_output.c
- libmbfl/mbfl/mbfl_ident.c
- libmbfl/mbfl/mbfl_language.c
- libmbfl/mbfl/mbfl_memory_device.c
- libmbfl/mbfl/mbfl_string.c
- libmbfl/mbfl/mbfl_allocators.c
- libmbfl/nls/nls_de.c
- libmbfl/nls/nls_en.c
- libmbfl/nls/nls_ja.c
- libmbfl/nls/nls_kr.c
- libmbfl/nls/nls_neutral.c
- libmbfl/nls/nls_ru.c
- libmbfl/nls/nls_uni.c
- libmbfl/nls/nls_zh.c
- libmbfl/nls/nls_hy.c
- libmbfl/nls/nls_tr.c
- libmbfl/nls/nls_ua.c
- "
- PHP_MBSTRING_CFLAGS="$PHP_MBSTRING_CFLAGS -DHAVE_CONFIG_H"
- PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS libmbfl/config.h libmbfl/mbfl/eaw_table.h libmbfl/mbfl/mbfilter.h libmbfl/mbfl/mbfilter_8bit.h libmbfl/mbfl/mbfilter_pass.h libmbfl/mbfl/mbfilter_wchar.h libmbfl/mbfl/mbfl_allocators.h libmbfl/mbfl/mbfl_consts.h libmbfl/mbfl/mbfl_convert.h libmbfl/mbfl/mbfl_defs.h libmbfl/mbfl/mbfl_encoding.h libmbfl/mbfl/mbfl_filter_output.h libmbfl/mbfl/mbfl_ident.h libmbfl/mbfl/mbfl_language.h libmbfl/mbfl/mbfl_memory_device.h libmbfl/mbfl/mbfl_string.h"
- ext_builddir=ext/mbstring
- ext_srcdir=$abs_srcdir/ext/mbstring
- ext_dir=ext/mbstring
- ac_extra=`echo "$PHP_MBSTRING_CFLAGS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_MBSTRING_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $PHP_MBSTRING_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC mbstring;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC mbstring;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_MBSTRING_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in $PHP_MBSTRING_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_mbstring="$shared_objects_mbstring $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mbstring.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/mbstring.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mbstring"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/mbstring.$suffix: $ext_builddir/mbstring.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/mbstring.$suffix \$(phplibdir)
- $ext_builddir/mbstring.$suffix: \$(shared_objects_mbstring) \$(MBSTRING_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_mbstring) \$(MBSTRING_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_MBSTRING 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_MBSTRING_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $PHP_MBSTRING_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC mbstring;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $PHP_MBSTRING_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC mbstring;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=mbstring
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST MBSTRING_SHARED_LIBADD"
- for dir in $PHP_MBSTRING_EXTRA_BUILD_DIRS; do
- $php_shtool mkdir -p $ext_builddir/$dir
- done
- for dir in $PHP_MBSTRING_EXTRA_INCLUDES; do
- if test "$ext_srcdir/$dir" != "/usr/include"; then
- if test -z "$ext_srcdir/$dir" || echo "$ext_srcdir/$dir" | grep '^/' >/dev/null ; then
- ai_p=$ext_srcdir/$dir
- else
- ep_dir=`echo $ext_srcdir/$dir|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ext_srcdir/$dir"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_builddir/$dir" != "/usr/include"; then
- if test -z "$ext_builddir/$dir" || echo "$ext_builddir/$dir" | grep '^/' >/dev/null ; then
- ai_p=$ext_builddir/$dir
- else
- ep_dir=`echo $ext_builddir/$dir|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ext_builddir/$dir"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- done
- if test "$ext_shared" = "no"; then
- case ext/mbstring in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $PHP_MBSTRING_BASE_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- out="php_config.h"
- else
- case ext/mbstring in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "ext/mbstring"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/ext/mbstring/"; ac_bdir="ext/mbstring/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in $PHP_MBSTRING_BASE_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_mbstring="$shared_objects_mbstring $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- if test -f "$ext_builddir/config.h.in"; then
- out="$abs_builddir/config.h"
- else
- out="php_config.h"
- fi
- fi
- if test "$PHP_MBSTRING_BUNDLED_ONIG" = "1"; then
- cp $ext_srcdir/oniguruma/src/oniguruma.h $ext_srcdir/oniguruma/oniguruma.h
- fi
- for cfg in $PHP_MBSTRING_EXTRA_CONFIG_HEADERS; do
- cat > $ext_builddir/$cfg <<EOF
- #include "$out"
- EOF
- done
- PHP_MBSTRING_INSTALL_HEADERS="$PHP_MBSTRING_INSTALL_HEADERS mbstring.h"
- header_path=ext/mbstring
- for header_file in $PHP_MBSTRING_INSTALL_HEADERS; do
- hp_hf="$header_path/$header_file"
- unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
- fi
- done
- fi
- # vim600: sts=2 sw=2 et
- php_with_mysqli=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQLi support" >&5
- $as_echo_n "checking for MySQLi support... " >&6; }
- # Check whether --with-mysqli was given.
- if test "${with_mysqli+set}" = set; then :
- withval=$with_mysqli; PHP_MYSQLI=$withval
- else
- PHP_MYSQLI=no
- test "$PHP_ENABLE_ALL" && PHP_MYSQLI=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_MYSQLI in
- shared,*)
- PHP_MYSQLI=`echo "$PHP_MYSQLI"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_MYSQLI=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_enable_embedded_mysqli=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable embedded MySQLi support" >&5
- $as_echo_n "checking whether to enable embedded MySQLi support... " >&6; }
- # Check whether --enable-embedded_mysqli was given.
- if test "${enable_embedded_mysqli+set}" = set; then :
- enableval=$enable_embedded_mysqli; PHP_EMBEDDED_MYSQLI=$enableval
- else
- PHP_EMBEDDED_MYSQLI=no
- fi
- ext_output=$PHP_EMBEDDED_MYSQLI
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_mysql_sock=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for specified location of the MySQL UNIX socket" >&5
- $as_echo_n "checking for specified location of the MySQL UNIX socket... " >&6; }
- # Check whether --with-mysql-sock was given.
- if test "${with_mysql_sock+set}" = set; then :
- withval=$with_mysql_sock; PHP_MYSQL_SOCK=$withval
- else
- PHP_MYSQL_SOCK=no
- fi
- ext_output=$PHP_MYSQL_SOCK
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then
- PHP_MYSQLND_ENABLED=yes
- elif test "$PHP_MYSQLI" != "no"; then
- MYSQL_CONFIG=$PHP_MYSQLI
- MYSQL_LIB_NAME='mysqlclient'
- if test "$PHP_EMBEDDED_MYSQLI" = "yes"; then
- $as_echo "#define HAVE_EMBEDDED_MYSQLI 1" >>confdefs.h
- MYSQL_LIB_CFG='--libmysqld-libs'
- mysqli_extra_sources="mysqli_embedded.c"
- else
- MYSQL_LIB_CFG='--libs'
- fi
- if test -x "$MYSQL_CONFIG" && $MYSQL_CONFIG $MYSQL_LIB_CFG > /dev/null 2>&1; then
- MYSQLI_INCLINE=`$MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
- MYSQLI_LIBLINE=`$MYSQL_CONFIG $MYSQL_LIB_CFG | $SED -e "s/'//g"`
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: mysql_config not found" >&5
- $as_echo "mysql_config not found" >&6; }
- as_fn_error $? "Please reinstall the mysql distribution" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $MYSQLI_LIBLINE
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_server_option" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_server_option in -l$MYSQL_LIB_NAME" >&5
- $as_echo_n "checking for mysql_set_server_option in -l$MYSQL_LIB_NAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$MYSQL_LIB_NAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char mysql_set_server_option ();
- int
- main ()
- {
- return mysql_set_server_option ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- for ac_i in $MYSQLI_INCLINE; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $MYSQLI_LIBLINE; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- MYSQLI_SHARED_LIBADD="-L$ai_p $MYSQLI_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && MYSQLI_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLI_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- $as_echo "#define HAVE_MYSQLILIB 1" >>confdefs.h
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="$MYSQLI_LIBLINE"
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_set_character_set" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_set_character_set in -l$MYSQL_LIB_NAME" >&5
- $as_echo_n "checking for mysql_set_character_set in -l$MYSQL_LIB_NAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$MYSQL_LIB_NAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char mysql_set_character_set ();
- int
- main ()
- {
- return mysql_set_character_set ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_character_set
- as_fn_error $? "MySQLI doesn't support versions < 4.1.13 (for MySQL 4.1.x) and < 5.0.7 for (MySQL 5.0.x) anymore. Please update your libraries." "$LINENO" 5
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_set_server_option
- as_fn_error $? "wrong mysql library version or lib not found. Check config.log for more information." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $MYSQLI_LIBLINE
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIB_NAME''_mysql_stmt_next_result" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME" >&5
- $as_echo_n "checking for mysql_stmt_next_result in -l$MYSQL_LIB_NAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$MYSQL_LIB_NAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char mysql_stmt_next_result ();
- int
- main ()
- {
- return mysql_stmt_next_result ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_STMT_NEXT_RESULT 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$MYSQL_LIB_NAME_mysql_stmt_next_result
- fi
- fi
- if test "$PHP_MYSQLI" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5
- $as_echo_n "checking for MySQL UNIX socket location... " >&6; }
- if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then
- MYSQL_SOCK=$PHP_MYSQL_SOCK
- cat >>confdefs.h <<_ACEOF
- #define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5
- $as_echo "$MYSQL_SOCK" >&6; }
- elif test "$PHP_MYSQL_SOCK" = "yes"; then
- for i in \
- /var/run/mysqld/mysqld.sock \
- /var/tmp/mysql.sock \
- /var/run/mysql/mysql.sock \
- /var/lib/mysql/mysql.sock \
- /var/mysql/mysql.sock \
- /usr/local/mysql/var/mysql.sock \
- /Private/tmp/mysql.sock \
- /private/tmp/mysql.sock \
- /tmp/mysql.sock \
- ; do
- if test -r $i; then
- MYSQL_SOCK=$i
- break 2
- fi
- done
- if test -n "$MYSQL_SOCK"; then
- cat >>confdefs.h <<_ACEOF
- #define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5
- $as_echo "$MYSQL_SOCK" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- mysqli_sources="mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c \
- mysqli_fe.c mysqli_report.c mysqli_driver.c mysqli_warning.c \
- mysqli_exception.c mysqli_result_iterator.c $mysqli_extra_sources"
- ext_builddir=ext/mysqli
- ext_srcdir=$abs_srcdir/ext/mysqli
- ext_dir=ext/mysqli
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_MYSQLI_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $mysqli_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC mysqli;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC mysqli;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_MYSQLI_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in $mysqli_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_mysqli="$shared_objects_mysqli $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysqli.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysqli.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqli"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/mysqli.$suffix: $ext_builddir/mysqli.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/mysqli.$suffix \$(phplibdir)
- $ext_builddir/mysqli.$suffix: \$(shared_objects_mysqli) \$(MYSQLI_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_mysqli) \$(MYSQLI_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_MYSQLI 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_MYSQLI_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $mysqli_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC mysqli;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $mysqli_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC mysqli;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=mysqli
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST MYSQLI_SHARED_LIBADD"
- for header_file in ext/mysqli/php_mysqli_structs.h; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- if test "$PHP_MYSQLI" = "yes" || test "$PHP_MYSQLI" = "mysqlnd"; then
- am_i_shared=$PHP_MYSQLI_SHARED
- is_it_shared=$PHP_MYSQLND_SHARED
- is_it_enabled=$PHP_MYSQLND
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension mysqli to build statically, but it
- depends on extension mysqlnd, which you've configured to build shared.
- You either need to build mysqli shared or build mysqlnd statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension mysqli, which depends on extension mysqlnd,
- but you've either not enabled mysqlnd, or have disabled it.
- " "$LINENO" 5
- fi
- $as_echo "#define MYSQLI_USE_MYSQLND 1" >>confdefs.h
- for header_file in ext/mysqli/mysqli_mysqlnd.h; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- else
- for header_file in ext/mysqli/mysqli_libmysql.h; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- fi
- fi
- if test -z "$SED"; then
- PHP_OCI8_SED="sed";
- else
- PHP_OCI8_SED="$SED";
- fi
- PHP_OCI8_TAIL1=`echo a | tail -n1 2>/dev/null`
- if test "$PHP_OCI8_TAIL1" = "a"; then
- PHP_OCI8_TAIL1="tail -n1"
- else
- PHP_OCI8_TAIL1="tail -1"
- fi
- php_with_oci8=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle Database OCI8 support" >&5
- $as_echo_n "checking for Oracle Database OCI8 support... " >&6; }
- # Check whether --with-oci8 was given.
- if test "${with_oci8+set}" = set; then :
- withval=$with_oci8; PHP_OCI8=$withval
- else
- PHP_OCI8=no
- test "$PHP_ENABLE_ALL" && PHP_OCI8=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_OCI8 in
- shared,*)
- PHP_OCI8=`echo "$PHP_OCI8"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_OCI8=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_OCI8" != "no"; then
- if test -z "$PHP_OCI8"; then
- as_fn_error $? "Empty parameter value passed to --with-oci8" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP version" >&5
- $as_echo_n "checking PHP version... " >&6; }
- tmp_version=$PHP_VERSION
- if test -z "$tmp_version"; then
- if test -z "$PHP_CONFIG"; then
- as_fn_error $? "php-config not found" "$LINENO" 5
- fi
- php_version=`$PHP_CONFIG --version 2>/dev/null|head -n 1|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'`
- else
- php_version=`echo "$tmp_version"|$PHP_OCI8_SED -e 's#\([0-9]\.[0-9]*\.[0-9]*\)\(.*\)#\1#'`
- fi
- if test -z "$php_version"; then
- as_fn_error $? "failed to detect PHP version, please report" "$LINENO" 5
- fi
- ac_IFS=$IFS
- IFS="."
- set $php_version
- IFS=$ac_IFS
- oci8_php_version=`expr $1 \* 1000000 + $2 \* 1000 + $3`
- if test "$oci8_php_version" -lt "5002000"; then
- as_fn_error $? "You need at least PHP 5.2.0 to be able to use this version of OCI8. PHP $php_version found" "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_version, ok" >&5
- $as_echo "$php_version, ok" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 DTrace support" >&5
- $as_echo_n "checking OCI8 DTrace support... " >&6; }
- oci8_do_dtrace="`echo $PHP_OCI8 | cut -d, -f3`"
- if test "$PHP_DTRACE" = "yes" -o "$oci8_do_dtrace" = "dtrace" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- if test "$ext_shared" = "no"; then
- as_fn_error $? "For DTrace support OCI8 must be configured as a shared extension" "$LINENO" 5
- else
- for ac_header in sys/sdt.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
- if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SYS_SDT_H 1
- _ACEOF
- ac_srcdir=$abs_srcdir/ext/oci8/
- ac_bdir=ext/oci8/
- ac_provsrc=oci8_dtrace.d
- ac_hdrobj=oci8_dtrace_gen.h
- old_IFS=$IFS
- for ac_src in oci8.c oci8_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- OCI8_DTRACE_OBJS="$OCI8_DTRACE_OBJS $ac_bdir$ac_obj.lo"
- done;
- for ac_lo in $OCI8_DTRACE_OBJS; do
- dtrace_oci8_objs="$dtrace_oci8_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`"
- done;
- cat>>Makefile.objects<<EOF
- $abs_srcdir/ext/oci8/$ac_provsrc:;
- $ac_bdir$ac_hdrobj: $ac_srcdir$ac_provsrc
- CFLAGS="\$(CFLAGS_CLEAN)" dtrace -h -C -s $ac_srcdir$ac_provsrc -o \$@.bak && \$(SED) -e 's,PHPOCI_,DTRACE_,g' \$@.bak > \$@
- \$(OCI8_DTRACE_OBJS): $ac_bdir$ac_hdrobj
- EOF
- case $host_alias in
- *solaris*|*linux*)
- dtrace_prov_name="`echo $ac_provsrc | $SED -e 's#\(.*\)\/##'`.o"
- dtrace_lib_dir="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/[^/]*#\1#'`/.libs"
- dtrace_d_obj="`echo $ac_bdir$ac_provsrc | $SED -e 's#\(.*\)/\([^/]*\)#\1/.libs/\2#'`.o"
- dtrace_nolib_objs='$(OCI8_DTRACE_OBJS:.lo=.o)'
- for ac_lo in $OCI8_DTRACE_OBJS; do
- dtrace_oci8_lib_objs="$dtrace_oci8_lib_objs `echo $ac_lo | $SED -e 's,\.lo$,.o,' -e 's#\(.*\)\/#\1\/.libs\/#'`"
- done;
- cat>>Makefile.objects<<EOF
- $ac_bdir$ac_provsrc.lo: \$(OCI8_DTRACE_OBJS)
- echo "# Generated by Makefile for libtool" > \$@
- @test -d "$dtrace_lib_dir" || mkdir $dtrace_lib_dir
- if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $dtrace_d_obj -s $ac_srcdir$ac_provsrc $dtrace_oci8_lib_objs 2> /dev/null && test -f "$dtrace_d_obj"; then \\
- echo "pic_object='.libs/$dtrace_prov_name'" >> \$@ ;\\
- else \\
- echo "pic_object='none'" >> \$@ ;\\
- fi
- if CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o $ac_bdir$ac_provsrc.o -s $ac_srcdir$ac_provsrc $dtrace_nolib_objs 2> /dev/null && test -f "$ac_bdir$ac_provsrc.o"; then \\
- echo "non_pic_object='$dtrace_prov_name'" >> \$@ ;\\
- else \\
- echo "non_pic_object='none'" >> \$@ ;\\
- fi
- EOF
- ;;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: OCI8 DTrace support is not confirmed on this platform" >&5
- $as_echo "$as_me: WARNING: OCI8 extension: OCI8 DTrace support is not confirmed on this platform" >&2;}
- cat>>Makefile.objects<<EOF
- $ac_bdir$ac_provsrc.o: \$(OCI8_DTRACE_OBJS)
- CFLAGS="\$(CFLAGS_CLEAN)" dtrace -G -o \$@ -s $ac_srcdir$ac_provsrc $dtrace_oci8_objs
- EOF
- ;;
- esac
- else
- as_fn_error $? "Cannot find sys/sdt.h which is required for DTrace support" "$LINENO" 5
- fi
- done
- PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DTRACE_OBJS"
- $as_echo "#define HAVE_OCI8_DTRACE 1" >>confdefs.h
- shared_objects_oci8="$shared_objects_oci8 ext/oci8/oci8_dtrace.d.lo"
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
- $as_echo_n "checking size of long int... " >&6; }
- if ${ac_cv_sizeof_long_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
- $as_echo "$ac_cv_sizeof_long_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking if we're on a 64-bit platform" >&5
- $as_echo_n "checking checking if we're on a 64-bit platform... " >&6; }
- if test "$ac_cv_sizeof_long_int" = "4"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- PHP_OCI8_OH_LIBDIR=lib32
- PHP_OCI8_IC_LIBDIR_SUFFIX=""
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PHP_OCI8_OH_LIBDIR=lib
- PHP_OCI8_IC_LIBDIR_SUFFIX=64
- fi
- PHP_OCI8_INSTANT_CLIENT="no"
- if test "$PHP_OCI8" = "yes" && test -z "$ORACLE_HOME"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&5
- $as_echo "$as_me: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead" >&2;}
- PHP_OCI8=instantclient
- fi
- if test "`echo $PHP_OCI8`" = "instantclient"; then
- PHP_OCI8_INSTANT_CLIENT="yes"
- elif test "`echo $PHP_OCI8 | cut -d, -f2`" = "instantclient"; then
- PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f3`"
- PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f1,4`"
- if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
- PHP_OCI8_INSTANT_CLIENT="yes"
- fi
- if test -z "$PHP_OCI8"; then
- PHP_OCI8=yes
- fi
- elif test "`echo $PHP_OCI8 | cut -d, -f1`" = "instantclient"; then
- PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f2`"
- PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f3,4`"
- if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
- PHP_OCI8_INSTANT_CLIENT="yes"
- fi
- if test -z "$PHP_OCI8"; then
- PHP_OCI8=yes
- fi
- fi
- if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle ORACLE_HOME install directory" >&5
- $as_echo_n "checking Oracle ORACLE_HOME install directory... " >&6; }
- if test "$PHP_OCI8" = "yes"; then
- OCI8_DIR=$ORACLE_HOME
- else
- OCI8_DIR=$PHP_OCI8
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_DIR" >&5
- $as_echo "$OCI8_DIR" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking ORACLE_HOME library validity" >&5
- $as_echo_n "checking ORACLE_HOME library validity... " >&6; }
- if test ! -d "$OCI8_DIR"; then
- as_fn_error $? "${OCI8_DIR} is not a directory" "$LINENO" 5
- fi
- if test -d "$OCI8_DIR/lib" && test ! -d "$OCI8_DIR/lib32"; then
- OCI8_LIB_DIR=lib
- elif test ! -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then
- OCI8_LIB_DIR=lib32
- elif test -d "$OCI8_DIR/lib" && test -d "$OCI8_DIR/lib32"; then
- OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR
- else
- if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then
- as_fn_error $? "Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}" "$LINENO" 5
- else
- as_fn_error $? "Oracle library directory not found in ${OCI8_DIR}" "$LINENO" 5
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_LIB_DIR" >&5
- $as_echo "$OCI8_LIB_DIR" >&6; }
- if test -d "$OCI8_DIR/rdbms/public"; then
- if test "$OCI8_DIR/rdbms/public" != "/usr/include"; then
- if test -z "$OCI8_DIR/rdbms/public" || echo "$OCI8_DIR/rdbms/public" | grep '^/' >/dev/null ; then
- ai_p=$OCI8_DIR/rdbms/public
- else
- ep_dir=`echo $OCI8_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OCI8_DIR/rdbms/public"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/public"
- fi
- if test -d "$OCI8_DIR/rdbms/demo"; then
- if test "$OCI8_DIR/rdbms/demo" != "/usr/include"; then
- if test -z "$OCI8_DIR/rdbms/demo" || echo "$OCI8_DIR/rdbms/demo" | grep '^/' >/dev/null ; then
- ai_p=$OCI8_DIR/rdbms/demo
- else
- ep_dir=`echo $OCI8_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OCI8_DIR/rdbms/demo"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/rdbms/demo"
- fi
- if test -d "$OCI8_DIR/network/public"; then
- if test "$OCI8_DIR/network/public" != "/usr/include"; then
- if test -z "$OCI8_DIR/network/public" || echo "$OCI8_DIR/network/public" | grep '^/' >/dev/null ; then
- ai_p=$OCI8_DIR/network/public
- else
- ep_dir=`echo $OCI8_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OCI8_DIR/network/public"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/network/public"
- fi
- if test -d "$OCI8_DIR/plsql/public"; then
- if test "$OCI8_DIR/plsql/public" != "/usr/include"; then
- if test -z "$OCI8_DIR/plsql/public" || echo "$OCI8_DIR/plsql/public" | grep '^/' >/dev/null ; then
- ai_p=$OCI8_DIR/plsql/public
- else
- ep_dir=`echo $OCI8_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OCI8_DIR/plsql/public"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- OCI8_INCLUDES="$OCI8_INCLUDES -I$OCI8_DIR/plsql/public"
- fi
- if test -f "$OCI8_DIR/$OCI8_LIB_DIR/sysliblist"; then
- for ac_i in `cat $OCI8_DIR/$OCI8_LIB_DIR/sysliblist`; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
- test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- elif test -f "$OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist"; then
- for ac_i in `cat $OCI8_DIR/rdbms/$OCI8_LIB_DIR/sysliblist`; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
- test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle library version compatibility" >&5
- $as_echo_n "checking Oracle library version compatibility... " >&6; }
- OCI8_LCS_BASE=$OCI8_DIR/$OCI8_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME
- OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` # Oracle 10g, 11g etc
- if test -s "$OCI8_DIR/orainst/unix.rgs"; then
- OCI8_ORACLE_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | $PHP_OCI8_SED 's/ */:/g' | cut -d: -f 6 | cut -c 2-4`
- test -z "$OCI8_ORACLE_VERSION" && OCI8_ORACLE_VERSION=7.3
- elif test -f "$OCI8_LCS"; then
- OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
- elif test -f $OCI8_LCS_BASE.9.0; then
- OCI8_ORACLE_VERSION=9.0
- elif test -f $OCI8_LCS_BASE.8.0; then
- OCI8_ORACLE_VERSION=8.1
- elif test -f $OCI8_LCS_BASE.1.0; then
- OCI8_ORACLE_VERSION=8.0
- elif test -f $OCI8_DIR/$OCI8_LIB_DIR/libclntsh.a; then
- if test -f $OCI8_DIR/$OCI8_LIB_DIR/libcore4.a; then
- OCI8_ORACLE_VERSION=8.0
- else
- OCI8_ORACLE_VERSION=8.1
- fi
- else
- as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5
- $as_echo "$OCI8_ORACLE_VERSION" >&6; }
- case $OCI8_ORACLE_VERSION in
- 7.3|8.0|8.1|9.0)
- as_fn_error $? "Oracle client libraries < 10 are not supported" "$LINENO" 5
- ;;
- esac
- case clntsh in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh"
- else
- case clntsh in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -lclntsh"
- ;;
- esac
- fi
- ;;
- esac
- if test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$OCI8_DIR/$OCI8_LIB_DIR" != "/usr/lib"; then
- if test -z "$OCI8_DIR/$OCI8_LIB_DIR" || echo "$OCI8_DIR/$OCI8_LIB_DIR" | grep '^/' >/dev/null ; then
- ai_p=$OCI8_DIR/$OCI8_LIB_DIR
- else
- ep_dir=`echo $OCI8_DIR/$OCI8_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OCI8_DIR/$OCI8_LIB_DIR"`
- fi
- if test "$ext_shared" = "yes"; then
- OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ext_builddir=ext/oci8
- ext_srcdir=$abs_srcdir/ext/oci8
- ext_dir=ext/oci8
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_OCI8_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC oci8;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC oci8;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_OCI8_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_oci8="$shared_objects_oci8 $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/oci8.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/oci8.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/oci8.$suffix: $ext_builddir/oci8.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/oci8.$suffix \$(phplibdir)
- $ext_builddir/oci8.$suffix: \$(shared_objects_oci8) \$(OCI8_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_oci8) \$(OCI8_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_OCI8 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_OCI8_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC oci8;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC oci8;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=oci8
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- $as_echo "#define HAVE_OCI8 1" >>confdefs.h
- PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD"
- PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR"
- PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION"
- cat >>confdefs.h <<_ACEOF
- #define PHP_OCI8_DEF_DIR "$OCI8_DIR"
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define PHP_OCI8_DEF_SHARED_LIBADD "$OCI8_SHARED_LIBADD"
- _ACEOF
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client directory" >&5
- $as_echo_n "checking Oracle Instant Client directory... " >&6; }
- if test "$PHP_OCI8_INSTANT_CLIENT" = "yes"; then
- PHP_OCI8_INSTANT_CLIENT=`ls -d /usr/lib/oracle/*/client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib/libclntsh.* 2> /dev/null | $PHP_OCI8_TAIL1 | $PHP_OCI8_SED -e 's#/libclntsh[^/]*##'`
- if test -z "$PHP_OCI8_INSTANT_CLIENT"; then
- as_fn_error $? "Oracle Instant Client directory /usr/lib/oracle/.../client${PHP_OCI8_IC_LIBDIR_SUFFIX}/lib libraries not found. Try --with-oci8=instantclient,DIR" "$LINENO" 5
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_OCI8_INSTANT_CLIENT" >&5
- $as_echo "$PHP_OCI8_INSTANT_CLIENT" >&6; }
- OCI8_DIR=$PHP_OCI8_INSTANT_CLIENT
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client SDK header directory" >&5
- $as_echo_n "checking Oracle Instant Client SDK header directory... " >&6; }
- OCISDKRPMINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!^/usr/lib/oracle/\(.*\)/client\('${PHP_OCI8_IC_LIBDIR_SUFFIX}'\)*/lib/*$!/usr/include/oracle/\1/client\2!'`
- OCISDKZIPINC=$PHP_OCI8_INSTANT_CLIENT/sdk/include
- OCISDKMANINC=`echo "$PHP_OCI8_INSTANT_CLIENT" | $PHP_OCI8_SED -e 's!\(.*\)/lib/*$!\1/include!'`
- if test -f "$OCISDKRPMINC/oci.h"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5
- $as_echo "$OCISDKRPMINC" >&6; }
- if test "$OCISDKRPMINC" != "/usr/include"; then
- if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then
- ai_p=$OCISDKRPMINC
- else
- ep_dir=`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OCISDKRPMINC"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- OCI8INCDIR=$OCISDKRPMINC
- elif test -f "$OCISDKZIPINC/oci.h"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5
- $as_echo "$OCISDKZIPINC" >&6; }
- if test "$OCISDKZIPINC" != "/usr/include"; then
- if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then
- ai_p=$OCISDKZIPINC
- else
- ep_dir=`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OCISDKZIPINC"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- OCI8INCDIR=$OCISDKZIPINC
- elif test -f "$OCISDKMANINC/oci.h"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5
- $as_echo "$OCISDKMANINC" >&6; }
- if test "$OCISDKMANINC" != "/usr/include"; then
- if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then
- ai_p=$OCISDKMANINC
- else
- ep_dir=`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OCISDKMANINC"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- OCI8INCDIR=$OCISDKMANINC
- else
- as_fn_error $? "Oracle Instant Client SDK header files not found" "$LINENO" 5
- fi
- OCISYSLIBLIST=`echo "$OCI8INCDIR" | $PHP_OCI8_SED -e 's!\(.*\)/include$!\1/demo/sysliblist!'`
- if test -f "$OCISYSLIBLIST"; then
- for ac_i in `cat $OCISYSLIBLIST`; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- OCI8_SYSLIB="$OCI8_SYSLIB -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OCI8_SYSLIB="$OCI8_SYSLIB -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- OCI8_SYSLIB="-L$ai_p $OCI8_SYSLIB"
- test -n "$ld_runpath_switch" && OCI8_SYSLIB="$ld_runpath_switch$ai_p $OCI8_SYSLIB"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Instant Client library version compatibility" >&5
- $as_echo_n "checking Oracle Instant Client library version compatibility... " >&6; }
- OCI8_LCS_BASE=$PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME
- OCI8_LCS=`ls $OCI8_LCS_BASE.*.1 2> /dev/null | $PHP_OCI8_TAIL1` # Oracle 10g, 11g etc
- OCI8_NNZ=`ls $PHP_OCI8_INSTANT_CLIENT/libnnz*.$SHLIB_SUFFIX_NAME 2> /dev/null | $PHP_OCI8_TAIL1`
- if test -f "$OCI8_NNZ" && test -f "$OCI8_LCS"; then
- if test ! -f "$OCI8_LCS_BASE"; then
- as_fn_error $? "Link from $OCI8_LCS_BASE to $OCI8_LCS_BASE.*.1 not found" "$LINENO" 5
- fi
- OCI8_ORACLE_VERSION=`echo $OCI8_LCS | $PHP_OCI8_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
- else
- as_fn_error $? "Oracle Instant Client libraries libnnz.$SHLIB_SUFFIX_NAME and libclntsh.$SHLIB_SUFFIX_NAME not found" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCI8_ORACLE_VERSION" >&5
- $as_echo "$OCI8_ORACLE_VERSION" >&6; }
- case clntsh in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- OCI8_SHARED_LIBADD="$OCI8_SHARED_LIBADD -lclntsh"
- else
- case clntsh in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -lclntsh"
- ;;
- esac
- fi
- ;;
- esac
- if test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/$PHP_LIBDIR" && test "$PHP_OCI8_INSTANT_CLIENT" != "/usr/lib"; then
- if test -z "$PHP_OCI8_INSTANT_CLIENT" || echo "$PHP_OCI8_INSTANT_CLIENT" | grep '^/' >/dev/null ; then
- ai_p=$PHP_OCI8_INSTANT_CLIENT
- else
- ep_dir=`echo $PHP_OCI8_INSTANT_CLIENT|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_OCI8_INSTANT_CLIENT"`
- fi
- if test "$ext_shared" = "yes"; then
- OCI8_SHARED_LIBADD="-L$ai_p $OCI8_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && OCI8_SHARED_LIBADD="$ld_runpath_switch$ai_p $OCI8_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- $as_echo "#define HAVE_OCI_INSTANT_CLIENT 1" >>confdefs.h
- ext_builddir=ext/oci8
- ext_srcdir=$abs_srcdir/ext/oci8
- ext_dir=ext/oci8
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_OCI8_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC oci8;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC oci8;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_OCI8_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_oci8="$shared_objects_oci8 $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/oci8.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/oci8.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_oci8"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/oci8.$suffix: $ext_builddir/oci8.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/oci8.$suffix \$(phplibdir)
- $ext_builddir/oci8.$suffix: \$(shared_objects_oci8) \$(OCI8_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_oci8) \$(OCI8_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_OCI8 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_OCI8_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC oci8;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in oci8.c oci8_lob.c oci8_statement.c oci8_collection.c oci8_interface.c oci8_failover.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC oci8;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=oci8
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- $as_echo "#define HAVE_OCI8 1" >>confdefs.h
- PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_SHARED_LIBADD"
- PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_DIR"
- PHP_VAR_SUBST="$PHP_VAR_SUBST OCI8_ORACLE_VERSION"
- fi
- fi
- php_with_odbcver=0x0350
- # Check whether --with-odbcver was given.
- if test "${with_odbcver+set}" = set; then :
- withval=$with_odbcver; PHP_ODBCVER=$withval
- else
- PHP_ODBCVER=0x0350
- test "$PHP_ENABLE_ALL" && PHP_ODBCVER=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_ODBCVER in
- shared,*)
- PHP_ODBCVER=`echo "$PHP_ODBCVER"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_ODBCVER=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- if test -z "$ODBC_TYPE"; then
- php_with_adabas=no
- # Check whether --with-adabas was given.
- if test "${with_adabas+set}" = set; then :
- withval=$with_adabas; PHP_ADABAS=$withval
- else
- PHP_ADABAS=no
- test "$PHP_ENABLE_ALL" && PHP_ADABAS=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_ADABAS in
- shared,*)
- PHP_ADABAS=`echo "$PHP_ADABAS"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_ADABAS=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Adabas support" >&5
- $as_echo_n "checking for Adabas support... " >&6; }
- if test "$PHP_ADABAS" != "no"; then
- if test "$PHP_ADABAS" = "yes"; then
- PHP_ADABAS=/usr/local
- fi
- if test "$PHP_ADABAS/incl" != "/usr/include"; then
- if test -z "$PHP_ADABAS/incl" || echo "$PHP_ADABAS/incl" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ADABAS/incl
- else
- ep_dir=`echo $PHP_ADABAS/incl|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ADABAS/incl"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ADABAS/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_ADABAS/$PHP_LIBDIR" || echo "$PHP_ADABAS/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ADABAS/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_ADABAS/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ADABAS/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- ODBC_OBJS="$PHP_ADABAS/$PHP_LIBDIR/odbclib.a"
- ODBC_LIB="$abs_builddir/ext/odbc/libodbc_adabas.a"
- $srcdir/build/shtool mkdir -f -p ext/odbc
- rm -f "$ODBC_LIB"
- cp "$ODBC_OBJS" "$ODBC_LIB"
- case sqlptc in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsqlptc $LIBS"
- ;;
- esac
- case sqlrte in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsqlrte $LIBS"
- ;;
- esac
- if test -n "$abs_builddir/ext/odbc"; then
- if test "$abs_builddir/ext/odbc" != "/usr/$PHP_LIBDIR" && test "$abs_builddir/ext/odbc" != "/usr/lib"; then
- if test -z "$abs_builddir/ext/odbc" || echo "$abs_builddir/ext/odbc" | grep '^/' >/dev/null ; then
- ai_p=$abs_builddir/ext/odbc
- else
- ep_dir=`echo $abs_builddir/ext/odbc|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$abs_builddir/ext/odbc"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case odbc_adabas in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lodbc_adabas $LIBS"
- ;;
- esac
- ODBC_TYPE=adabas
- ODBC_INCDIR=$PHP_ADABAS/incl
- if ! test -f "$ODBC_INCDIR/sqlext.h"; then
- as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5
- fi
- $as_echo "#define HAVE_ADABAS 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ODBC_TYPE"; then
- php_with_sapdb=no
- # Check whether --with-sapdb was given.
- if test "${with_sapdb+set}" = set; then :
- withval=$with_sapdb; PHP_SAPDB=$withval
- else
- PHP_SAPDB=no
- test "$PHP_ENABLE_ALL" && PHP_SAPDB=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SAPDB in
- shared,*)
- PHP_SAPDB=`echo "$PHP_SAPDB"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SAPDB=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SAP DB support" >&5
- $as_echo_n "checking for SAP DB support... " >&6; }
- if test "$PHP_SAPDB" != "no"; then
- if test "$PHP_SAPDB" = "yes"; then
- PHP_SAPDB=/usr/local
- fi
- if test "$PHP_SAPDB/incl" != "/usr/include"; then
- if test -z "$PHP_SAPDB/incl" || echo "$PHP_SAPDB/incl" | grep '^/' >/dev/null ; then
- ai_p=$PHP_SAPDB/incl
- else
- ep_dir=`echo $PHP_SAPDB/incl|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_SAPDB/incl"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_SAPDB/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_SAPDB/$PHP_LIBDIR" || echo "$PHP_SAPDB/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_SAPDB/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_SAPDB/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_SAPDB/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- case sqlod in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsqlod $LIBS"
- ;;
- esac
- ODBC_TYPE=sapdb
- $as_echo "#define HAVE_SAPDB 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ODBC_TYPE"; then
- php_with_solid=no
- # Check whether --with-solid was given.
- if test "${with_solid+set}" = set; then :
- withval=$with_solid; PHP_SOLID=$withval
- else
- PHP_SOLID=no
- test "$PHP_ENABLE_ALL" && PHP_SOLID=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SOLID in
- shared,*)
- PHP_SOLID=`echo "$PHP_SOLID"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SOLID=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solid support" >&5
- $as_echo_n "checking for Solid support... " >&6; }
- if test "$PHP_SOLID" != "no"; then
- if test "$PHP_SOLID" = "yes"; then
- PHP_SOLID=/usr/local/solid
- fi
- ODBC_INCDIR=$PHP_SOLID/include
- ODBC_LIBDIR=$PHP_SOLID/$PHP_LIBDIR
- ODBC_INCLUDE=-I$ODBC_INCDIR
- ODBC_TYPE=solid
- if test -f $ODBC_LIBDIR/soc*35.a; then
- $as_echo "#define HAVE_SOLID_35 1" >>confdefs.h
- elif test -f $ODBC_LIBDIR/scl*30.a; then
- $as_echo "#define HAVE_SOLID_30 1" >>confdefs.h
- elif test -f $ODBC_LIBDIR/scl*23.a; then
- $as_echo "#define HAVE_SOLID 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Solid library file" >&5
- $as_echo_n "checking Solid library file... " >&6; }
- ac_solid_uname_r=`uname -r 2>/dev/null`
- ac_solid_uname_s=`uname -s 2>/dev/null`
- case $ac_solid_uname_s in
- AIX) ac_solid_os=a3x;; # a4x for AIX4/ Solid 2.3/3.0 only
- HP-UX) ac_solid_os=h9x;; # h1x for hpux11, h0x for hpux10
- IRIX) ac_solid_os=irx;; # Solid 2.3(?)/ 3.0 only
- Linux)
- if ldd -v /bin/sh | grep GLIBC > /dev/null; then
- $as_echo "#define SS_LINUX 1" >>confdefs.h
- ac_solid_os=l2x
- else
- $as_echo "#define SS_LINUX 1" >>confdefs.h
- ac_solid_os=lux
- fi;;
- SunOS)
- ac_solid_os=ssx;; # should we deal with SunOS 4?
- FreeBSD)
- if test `expr $ac_solid_uname_r : '\(.\)'` -gt "2"; then
- $as_echo "#define SS_FBX 1" >>confdefs.h
- ac_solid_os=fex
- else
- $as_echo "#define SS_FBX 1" >>confdefs.h
- ac_solid_os=fbx
- fi;;
- esac
- if test -f $ODBC_LIBDIR/soc${ac_solid_os}35.a; then
- ac_solid_version=35
- ac_solid_prefix=soc
- elif test -f $ODBC_LIBDIR/scl${ac_solid_os}30.a; then
- ac_solid_version=30
- ac_solid_prefix=scl
- elif test -f $ODBC_LIBDIR/scl${ac_solid_os}23.a; then
- ac_solid_version=23
- ac_solid_prefix=scl
- fi
- #
- # Check for the library files, and setup the ODBC_LIBS path...
- #
- if test ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -a \
- ! -f $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a; then
- #
- # we have an error and should bail out, as we can't find the libs!
- #
- echo ""
- echo "*********************************************************************"
- echo "* Unable to locate $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so or $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a"
- echo "* Please correct this by creating the following links and reconfiguring:"
- echo "* $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.a"
- echo "* $ODBC_LIBDIR/${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so -> $ODBC_LIBDIR/lib${ac_solid_prefix}${ac_solid_os}${ac_solid_version}.so"
- echo "*********************************************************************"
- else
- ODBC_LFLAGS=-L$ODBC_LIBDIR
- ODBC_LIBS=-l${ac_solid_prefix}${ac_solid_os}${ac_solid_version}
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5
- $as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ODBC_TYPE"; then
- php_with_ibm_db2=no
- # Check whether --with-ibm-db2 was given.
- if test "${with_ibm_db2+set}" = set; then :
- withval=$with_ibm_db2; PHP_IBM_DB2=$withval
- else
- PHP_IBM_DB2=no
- test "$PHP_ENABLE_ALL" && PHP_IBM_DB2=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_IBM_DB2 in
- shared,*)
- PHP_IBM_DB2=`echo "$PHP_IBM_DB2"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_IBM_DB2=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 support" >&5
- $as_echo_n "checking for IBM DB2 support... " >&6; }
- if test "$PHP_IBM_DB2" != "no"; then
- if test "$PHP_IBM_DB2" = "yes"; then
- ODBC_INCDIR=/home/db2inst1/sqllib/include
- ODBC_LIBDIR=/home/db2inst1/sqllib/lib
- else
- ODBC_INCDIR=$PHP_IBM_DB2/include
- ODBC_LIBDIR=$PHP_IBM_DB2/$PHP_LIBDIR
- fi
- if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then
- as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlcli1.h' not found!" "$LINENO" 5
- fi
- ODBC_INCLUDE=-I$ODBC_INCDIR
- ODBC_LFLAGS=-L$ODBC_LIBDIR
- ODBC_TYPE=ibm-db2
- ODBC_LIBS=-ldb2
- old_LIBS=$LIBS
- LIBS="
- $ODBC_LFLAGS $ODBC_LIBS
- $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char SQLExecute();
- int main() {
- SQLExecute();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- $as_echo "#define HAVE_IBMDB2 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- else
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error $? "
- build test failed. Please check the config.log for details.
- You need to source your DB2 environment before running PHP configure:
- # . \$IBM_DB2/db2profile
- " "$LINENO" 5
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ODBC_TYPE"; then
- php_with_empress=no
- # Check whether --with-empress was given.
- if test "${with_empress+set}" = set; then :
- withval=$with_empress; PHP_EMPRESS=$withval
- else
- PHP_EMPRESS=no
- test "$PHP_ENABLE_ALL" && PHP_EMPRESS=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_EMPRESS in
- shared,*)
- PHP_EMPRESS=`echo "$PHP_EMPRESS"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_EMPRESS=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress support" >&5
- $as_echo_n "checking for Empress support... " >&6; }
- if test "$PHP_EMPRESS" != "no"; then
- if test "$PHP_EMPRESS" = "yes"; then
- ODBC_INCDIR=$EMPRESSPATH/include/odbc
- ODBC_LIBDIR=$EMPRESSPATH/shlib
- else
- ODBC_INCDIR=$PHP_EMPRESS/include/odbc
- ODBC_LIBDIR=$PHP_EMPRESS/shlib
- fi
- ODBC_INCLUDE=-I$ODBC_INCDIR
- ODBC_LFLAGS=-L$ODBC_LIBDIR
- ODBC_TYPE=empress
- $as_echo "#define HAVE_EMPRESS 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress library file" >&5
- $as_echo_n "checking Empress library file... " >&6; }
- ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1`
- if test ! -f $ODBC_LIBS; then
- ODBC_LIBS=`echo $ODBC_LIBDIR/libempodbccl.so | cut -d' ' -f1`
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&5
- $as_echo "\`echo $ODBC_LIBS | sed -e 's!.*/!!'\`" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ODBC_TYPE"; then
- php_with_empress_bcs=no
- # Check whether --with-empress-bcs was given.
- if test "${with_empress_bcs+set}" = set; then :
- withval=$with_empress_bcs; PHP_EMPRESS_BCS=$withval
- else
- PHP_EMPRESS_BCS=no
- test "$PHP_ENABLE_ALL" && PHP_EMPRESS_BCS=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_EMPRESS_BCS in
- shared,*)
- PHP_EMPRESS_BCS=`echo "$PHP_EMPRESS_BCS"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_EMPRESS_BCS=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Empress local access support" >&5
- $as_echo_n "checking for Empress local access support... " >&6; }
- if test "$PHP_EMPRESS_BCS" != "no"; then
- if test "$PHP_EMPRESS_BCS" = "yes"; then
- ODBC_INCDIR=$EMPRESSPATH/include/odbc
- ODBC_LIBDIR=$EMPRESSPATH/shlib
- else
- ODBC_INCDIR=$PHP_EMPRESS_BCS/include/odbc
- ODBC_LIBDIR=$PHP_EMPRESS_BCS/shlib
- fi
- CC="empocc -bcs";export CC;
- LD="empocc -bcs";export LD;
- ODBC_INCLUDE=-I$ODBC_INCDIR
- ODBC_LFLAGS=-L$ODBC_LIBDIR
- LIST=`empocc -listlines -bcs -o a a.c`
- NEWLIST=
- for I in $LIST
- do
- case $I in
- $EMPRESSPATH/odbccl/lib/* | \
- $EMPRESSPATH/rdbms/lib/* | \
- $EMPRESSPATH/common/lib/*)
- NEWLIST="$NEWLIST $I"
- ;;
- esac
- done
- ODBC_LIBS="-lempphpbcs -lms -lmscfg -lbasic -lbasic_os -lnlscstab -lnlsmsgtab -lm -ldl -lcrypt"
- ODBC_TYPE=empress-bcs
- $as_echo "#define HAVE_EMPRESS 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Empress local access library file" >&5
- $as_echo_n "checking Empress local access library file... " >&6; }
- ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1`
- if test ! -f $ODBCBCS_LIBS; then
- ODBCBCS_LIBS=`echo $ODBC_LIBDIR/libempodbcbcs.a | cut -d' ' -f1`
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: \`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&5
- $as_echo "\`echo $ODBCBCS_LIBS | sed -e 's!.*/!!'\`" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ODBC_TYPE"; then
- php_with_custom_odbc=no
- # Check whether --with-custom-odbc was given.
- if test "${with_custom_odbc+set}" = set; then :
- withval=$with_custom_odbc; PHP_CUSTOM_ODBC=$withval
- else
- PHP_CUSTOM_ODBC=no
- test "$PHP_ENABLE_ALL" && PHP_CUSTOM_ODBC=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_CUSTOM_ODBC in
- shared,*)
- PHP_CUSTOM_ODBC=`echo "$PHP_CUSTOM_ODBC"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_CUSTOM_ODBC=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a custom ODBC support" >&5
- $as_echo_n "checking for a custom ODBC support... " >&6; }
- if test "$PHP_CUSTOM_ODBC" != "no"; then
- if test "$PHP_CUSTOM_ODBC" = "yes"; then
- PHP_CUSTOM_ODBC=/usr/local
- fi
- ODBC_INCDIR=$PHP_CUSTOM_ODBC/include
- ODBC_LIBDIR=$PHP_CUSTOM_ODBC/$PHP_LIBDIR
- ODBC_LFLAGS=-L$ODBC_LIBDIR
- ODBC_INCLUDE=-I$ODBC_INCDIR
- ODBC_LIBS=$CUSTOM_ODBC_LIBS
- ODBC_TYPE=custom-odbc
- $as_echo "#define HAVE_CODBC 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ODBC_TYPE"; then
- php_with_iodbc=no
- # Check whether --with-iodbc was given.
- if test "${with_iodbc+set}" = set; then :
- withval=$with_iodbc; PHP_IODBC=$withval
- else
- PHP_IODBC=no
- test "$PHP_ENABLE_ALL" && PHP_IODBC=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_IODBC in
- shared,*)
- PHP_IODBC=`echo "$PHP_IODBC"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_IODBC=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iODBC support" >&5
- $as_echo_n "checking for iODBC support... " >&6; }
- if test "$PHP_IODBC" != "no"; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libiodbc ; then
- if test -n "$PHP_IODBC/$PHP_LIBDIR"; then
- if test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_IODBC/$PHP_LIBDIR" || echo "$PHP_IODBC/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_IODBC/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_IODBC/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_IODBC/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case iodbc in
- c|c_r|pthread*) ;;
- *)
- LIBS="-liodbc $LIBS"
- ;;
- esac
- ODBC_TYPE=iodbc
- ODBC_INCLUDE=`$PKG_CONFIG --cflags-only-I libiodbc`
- ODBC_LFLAGS=`$PKG_CONFIG --libs-only-L libiodbc`
- ODBC_LIBS=`$PKG_CONFIG --libs-only-l libiodbc`
- for ac_i in $ODBC_INCLUDE; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- $as_echo "#define HAVE_IODBC 1" >>confdefs.h
- $as_echo "#define HAVE_ODBC2 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- else
- if test "$PHP_IODBC" = "yes"; then
- PHP_IODBC=/usr/local
- fi
- if test -n "$PHP_IODBC/$PHP_LIBDIR"; then
- if test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_IODBC/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_IODBC/$PHP_LIBDIR" || echo "$PHP_IODBC/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_IODBC/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_IODBC/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_IODBC/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case iodbc in
- c|c_r|pthread*) ;;
- *)
- LIBS="-liodbc $LIBS"
- ;;
- esac
- if test "$PHP_IODBC/include" != "/usr/include"; then
- if test -z "$PHP_IODBC/include" || echo "$PHP_IODBC/include" | grep '^/' >/dev/null ; then
- ai_p=$PHP_IODBC/include
- else
- ep_dir=`echo $PHP_IODBC/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_IODBC/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test "1"; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ODBC_TYPE=iodbc
- ODBC_INCLUDE=-I$PHP_IODBC/include
- ODBC_LFLAGS=-L$PHP_IODBC/$PHP_LIBDIR
- ODBC_LIBS=-liodbc
- $as_echo "#define HAVE_IODBC 1" >>confdefs.h
- $as_echo "#define HAVE_ODBC2 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ODBC_TYPE"; then
- php_with_esoob=no
- # Check whether --with-esoob was given.
- if test "${with_esoob+set}" = set; then :
- withval=$with_esoob; PHP_ESOOB=$withval
- else
- PHP_ESOOB=no
- test "$PHP_ENABLE_ALL" && PHP_ESOOB=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_ESOOB in
- shared,*)
- PHP_ESOOB=`echo "$PHP_ESOOB"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_ESOOB=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Easysoft ODBC-ODBC Bridge support" >&5
- $as_echo_n "checking for Easysoft ODBC-ODBC Bridge support... " >&6; }
- if test "$PHP_ESOOB" != "no"; then
- if test "$PHP_ESOOB" = "yes"; then
- PHP_ESOOB=/usr/local/easysoft/oob/client
- fi
- ODBC_INCDIR=$PHP_ESOOB/include
- ODBC_LIBDIR=$PHP_ESOOB/$PHP_LIBDIR
- ODBC_LFLAGS=-L$ODBC_LIBDIR
- ODBC_INCLUDE=-I$ODBC_INCDIR
- ODBC_LIBS=-lesoobclient
- ODBC_TYPE=esoob
- $as_echo "#define HAVE_ESOOB 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ODBC_TYPE"; then
- php_with_unixodbc=no
- # Check whether --with-unixODBC was given.
- if test "${with_unixODBC+set}" = set; then :
- withval=$with_unixODBC; PHP_UNIXODBC=$withval
- else
- PHP_UNIXODBC=no
- test "$PHP_ENABLE_ALL" && PHP_UNIXODBC=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_UNIXODBC in
- shared,*)
- PHP_UNIXODBC=`echo "$PHP_UNIXODBC"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_UNIXODBC=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unixODBC support" >&5
- $as_echo_n "checking for unixODBC support... " >&6; }
- if test "$PHP_UNIXODBC" != "no"; then
- if test "$PHP_UNIXODBC" = "yes"; then
- PHP_UNIXODBC=/usr/local
- fi
- ODBC_INCDIR=$PHP_UNIXODBC/include
- ODBC_LIBDIR=$PHP_UNIXODBC/$PHP_LIBDIR
- ODBC_LFLAGS=-L$ODBC_LIBDIR
- ODBC_INCLUDE=-I$ODBC_INCDIR
- ODBC_LIBS=-lodbc
- ODBC_TYPE=unixODBC
- if ! test -f "$ODBC_INCDIR/sqlext.h"; then
- as_fn_error $? "ODBC header file '$ODBC_INCDIR/sqlext.h' not found!" "$LINENO" 5
- fi
- $as_echo "#define HAVE_UNIXODBC 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ODBC_TYPE"; then
- php_with_dbmaker=no
- # Check whether --with-dbmaker was given.
- if test "${with_dbmaker+set}" = set; then :
- withval=$with_dbmaker; PHP_DBMAKER=$withval
- else
- PHP_DBMAKER=no
- test "$PHP_ENABLE_ALL" && PHP_DBMAKER=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_DBMAKER in
- shared,*)
- PHP_DBMAKER=`echo "$PHP_DBMAKER"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_DBMAKER=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBMaker support" >&5
- $as_echo_n "checking for DBMaker support... " >&6; }
- if test "$PHP_DBMAKER" != "no"; then
- if test "$PHP_DBMAKER" = "yes"; then
- # find dbmaker's home directory
- DBMAKER_HOME=`grep "^dbmaker:" /etc/passwd | $AWK -F: '{print $6}'`
- # check DBMaker version (from 5.0 to 2.0)
- DBMAKER_VERSION=5.0
- while test ! -d $DBMAKER_HOME/$DBMAKER_VERSION -a "$DBMAKER_VERSION" != "2.9"; do
- DM_VER=`echo $DBMAKER_VERSION | sed -e 's/\.//' | $AWK '{ print $1-1;}'`
- MAJOR_V=`echo $DM_VER | $AWK '{ print $1/10; }' | $AWK -F. '{ print $1; }'`
- MINOR_V=`echo $DM_VER | $AWK '{ print $1%10; }'`
- DBMAKER_VERSION=$MAJOR_V.$MINOR_V
- done
- if test "$DBMAKER_VERSION" = "2.9"; then
- PHP_DBMAKER=$DBMAKER_HOME
- else
- PHP_DBMAKER=$DBMAKER_HOME/$DBMAKER_VERSION
- fi
- fi
- ODBC_INCDIR=$PHP_DBMAKER/include
- ODBC_LIBDIR=$PHP_DBMAKER/$PHP_LIBDIR
- ODBC_INCLUDE=-I$ODBC_INCDIR
- ODBC_LFLAGS=-L$ODBC_LIBDIR
- ODBC_INCLUDE=-I$ODBC_INCDIR
- ODBC_LIBS="-ldmapic -lc"
- ODBC_TYPE=dbmaker
- $as_echo "#define HAVE_DBMAKER 1" >>confdefs.h
- if test "$ext_shared" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (shared)" >&5
- $as_echo "yes (shared)" >&6; }
- ODBC_LIBS="-ldmapic -lc -lm"
- ODBC_SHARED="odbc.la"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (static)" >&5
- $as_echo "yes (static)" >&6; }
- if test -n "$ODBC_LIBDIR"; then
- if test "$ODBC_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ODBC_LIBDIR" != "/usr/lib"; then
- if test -z "$ODBC_LIBDIR" || echo "$ODBC_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$ODBC_LIBDIR
- else
- ep_dir=`echo $ODBC_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ODBC_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case dmapic in
- c|c_r|pthread*) ;;
- *)
- LIBS="-ldmapic $LIBS"
- ;;
- esac
- if test "$ODBC_INCDIR" != "/usr/include"; then
- if test -z "$ODBC_INCDIR" || echo "$ODBC_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$ODBC_INCDIR
- else
- ep_dir=`echo $ODBC_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ODBC_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ODBC_STATIC="libphpext_odbc.la"
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test "no" != "$PHP_ODBCVER"; then
- if test "$PHP_ODBCVER" != "0"; then
- cat >>confdefs.h <<_ACEOF
- #define ODBCVER $PHP_ODBCVER
- _ACEOF
- fi
- else
- $as_echo "#define ODBCVER 0x0300" >>confdefs.h
- fi
- if test -n "$ODBC_TYPE"; then
- if test "$ODBC_TYPE" != "dbmaker"; then
- for ac_i in $ODBC_LFLAGS $ODBC_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- ODBC_SHARED_LIBADD="$ODBC_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- ODBC_SHARED_LIBADD="-L$ai_p $ODBC_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $ODBC_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- if test "$ODBC_TYPE" != "solid"; then
- $as_echo "#define HAVE_SQLDATASOURCES 1" >>confdefs.h
- fi
- fi
- $as_echo "#define HAVE_UODBC 1" >>confdefs.h
- PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_SHARED_LIBADD"
- PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCDIR"
- PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBDIR"
- PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_INCLUDE"
- PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LIBS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_LFLAGS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST ODBC_TYPE"
- ext_builddir=ext/odbc
- ext_srcdir=$abs_srcdir/ext/odbc
- ext_dir=ext/odbc
- ac_extra=`echo "$ODBC_INCLUDE -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_ODBC_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_odbc.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC odbc;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC odbc;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_ODBC_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_odbc.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_odbc="$shared_objects_odbc $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/odbc.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/odbc.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_odbc"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/odbc.$suffix: $ext_builddir/odbc.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/odbc.$suffix \$(phplibdir)
- $ext_builddir/odbc.$suffix: \$(shared_objects_odbc) \$(ODBC_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_odbc) \$(ODBC_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_ODBC 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_ODBC_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_odbc.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC odbc;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_odbc.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC odbc;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=odbc
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any ODBC driver support" >&5
- $as_echo_n "checking for any ODBC driver support... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- php_enable_opcache=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend OPcache support" >&5
- $as_echo_n "checking whether to enable Zend OPcache support... " >&6; }
- # Check whether --enable-opcache was given.
- if test "${enable_opcache+set}" = set; then :
- enableval=$enable_opcache; PHP_OPCACHE=$enableval
- else
- PHP_OPCACHE=yes
- test "$PHP_ENABLE_ALL" && PHP_OPCACHE=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_OPCACHE in
- shared,*)
- PHP_OPCACHE=`echo "$PHP_OPCACHE"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_OPCACHE=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_enable_opcache_file=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable file based caching" >&5
- $as_echo_n "checking whether to enable file based caching... " >&6; }
- # Check whether --enable-opcache-file was given.
- if test "${enable_opcache_file+set}" = set; then :
- enableval=$enable_opcache_file; PHP_OPCACHE_FILE=$enableval
- else
- PHP_OPCACHE_FILE=yes
- fi
- ext_output=$PHP_OPCACHE_FILE
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_enable_huge_code_pages=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable copying PHP CODE pages into HUGE PAGES" >&5
- $as_echo_n "checking whether to enable copying PHP CODE pages into HUGE PAGES... " >&6; }
- # Check whether --enable-huge-code-pages was given.
- if test "${enable_huge_code_pages+set}" = set; then :
- enableval=$enable_huge_code_pages; PHP_HUGE_CODE_PAGES=$enableval
- else
- PHP_HUGE_CODE_PAGES=yes
- fi
- ext_output=$PHP_HUGE_CODE_PAGES
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_OPCACHE" != "no"; then
- if test "$PHP_OPCACHE_FILE" = "yes"; then
- $as_echo "#define HAVE_OPCACHE_FILE_CACHE 1" >>confdefs.h
- fi
- if test "$PHP_HUGE_CODE_PAGES" = "yes"; then
- $as_echo "#define HAVE_HUGE_CODE_PAGES 1" >>confdefs.h
- fi
- ac_fn_c_check_func "$LINENO" "mprotect" "ac_cv_func_mprotect"
- if test "x$ac_cv_func_mprotect" = xyes; then :
- $as_echo "#define HAVE_MPROTECT 1" >>confdefs.h
- fi
- for ac_header in unistd.h sys/uio.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysvipc shared memory support" >&5
- $as_echo_n "checking for sysvipc shared memory support... " >&6; }
- if test "$cross_compiling" = yes; then :
- msg=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/wait.h>
- #include <sys/ipc.h>
- #include <sys/shm.h>
- #include <unistd.h>
- #include <string.h>
- int main() {
- pid_t pid;
- int status;
- int ipc_id;
- char *shm;
- struct shmid_ds shmbuf;
- ipc_id = shmget(IPC_PRIVATE, 4096, (IPC_CREAT | SHM_R | SHM_W));
- if (ipc_id == -1) {
- return 1;
- }
- shm = shmat(ipc_id, NULL, 0);
- if (shm == (void *)-1) {
- shmctl(ipc_id, IPC_RMID, NULL);
- return 2;
- }
- if (shmctl(ipc_id, IPC_STAT, &shmbuf) != 0) {
- shmdt(shm);
- shmctl(ipc_id, IPC_RMID, NULL);
- return 3;
- }
- shmbuf.shm_perm.uid = getuid();
- shmbuf.shm_perm.gid = getgid();
- shmbuf.shm_perm.mode = 0600;
- if (shmctl(ipc_id, IPC_SET, &shmbuf) != 0) {
- shmdt(shm);
- shmctl(ipc_id, IPC_RMID, NULL);
- return 4;
- }
- shmctl(ipc_id, IPC_RMID, NULL);
- strcpy(shm, "hello");
- pid = fork();
- if (pid < 0) {
- return 5;
- } else if (pid == 0) {
- strcpy(shm, "bye");
- return 6;
- }
- if (wait(&status) != pid) {
- return 7;
- }
- if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) {
- return 8;
- }
- if (strcmp(shm, "bye") != 0) {
- return 9;
- }
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- $as_echo "#define HAVE_SHM_IPC 1" >>confdefs.h
- msg=yes
- else
- msg=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
- $as_echo "$msg" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using MAP_ANON shared memory support" >&5
- $as_echo_n "checking for mmap() using MAP_ANON shared memory support... " >&6; }
- if test "$cross_compiling" = yes; then :
- msg=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/wait.h>
- #include <sys/mman.h>
- #include <unistd.h>
- #include <string.h>
- #ifndef MAP_ANON
- # ifdef MAP_ANONYMOUS
- # define MAP_ANON MAP_ANONYMOUS
- # endif
- #endif
- #ifndef MAP_FAILED
- # define MAP_FAILED ((void*)-1)
- #endif
- int main() {
- pid_t pid;
- int status;
- char *shm;
- shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
- if (shm == MAP_FAILED) {
- return 1;
- }
- strcpy(shm, "hello");
- pid = fork();
- if (pid < 0) {
- return 5;
- } else if (pid == 0) {
- strcpy(shm, "bye");
- return 6;
- }
- if (wait(&status) != pid) {
- return 7;
- }
- if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) {
- return 8;
- }
- if (strcmp(shm, "bye") != 0) {
- return 9;
- }
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- $as_echo "#define HAVE_SHM_MMAP_ANON 1" >>confdefs.h
- msg=yes
- else
- msg=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
- $as_echo "$msg" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using /dev/zero shared memory support" >&5
- $as_echo_n "checking for mmap() using /dev/zero shared memory support... " >&6; }
- if test "$cross_compiling" = yes; then :
- msg=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/wait.h>
- #include <sys/mman.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <unistd.h>
- #include <string.h>
- #ifndef MAP_FAILED
- # define MAP_FAILED ((void*)-1)
- #endif
- int main() {
- pid_t pid;
- int status;
- int fd;
- char *shm;
- fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR);
- if (fd == -1) {
- return 1;
- }
- shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
- if (shm == MAP_FAILED) {
- return 2;
- }
- strcpy(shm, "hello");
- pid = fork();
- if (pid < 0) {
- return 5;
- } else if (pid == 0) {
- strcpy(shm, "bye");
- return 6;
- }
- if (wait(&status) != pid) {
- return 7;
- }
- if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) {
- return 8;
- }
- if (strcmp(shm, "bye") != 0) {
- return 9;
- }
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- $as_echo "#define HAVE_SHM_MMAP_ZERO 1" >>confdefs.h
- msg=yes
- else
- msg=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
- $as_echo "$msg" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using shm_open() shared memory support" >&5
- $as_echo_n "checking for mmap() using shm_open() shared memory support... " >&6; }
- if test "$cross_compiling" = yes; then :
- msg=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/wait.h>
- #include <sys/mman.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <unistd.h>
- #include <string.h>
- #include <stdlib.h>
- #include <stdio.h>
- #ifndef MAP_FAILED
- # define MAP_FAILED ((void*)-1)
- #endif
- int main() {
- pid_t pid;
- int status;
- int fd;
- char *shm;
- char tmpname[4096];
- sprintf(tmpname,"test.shm.%dXXXXXX", getpid());
- if (mktemp(tmpname) == NULL) {
- return 1;
- }
- fd = shm_open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
- if (fd == -1) {
- return 2;
- }
- if (ftruncate(fd, 4096) < 0) {
- close(fd);
- shm_unlink(tmpname);
- return 3;
- }
- shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
- if (shm == MAP_FAILED) {
- return 4;
- }
- shm_unlink(tmpname);
- close(fd);
- strcpy(shm, "hello");
- pid = fork();
- if (pid < 0) {
- return 5;
- } else if (pid == 0) {
- strcpy(shm, "bye");
- return 6;
- }
- if (wait(&status) != pid) {
- return 7;
- }
- if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) {
- return 8;
- }
- if (strcmp(shm, "bye") != 0) {
- return 9;
- }
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- $as_echo "#define HAVE_SHM_MMAP_POSIX 1" >>confdefs.h
- msg=yes
- else
- msg=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
- $as_echo "$msg" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap() using regular file shared memory support" >&5
- $as_echo_n "checking for mmap() using regular file shared memory support... " >&6; }
- if test "$cross_compiling" = yes; then :
- msg=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/wait.h>
- #include <sys/mman.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <unistd.h>
- #include <string.h>
- #include <stdlib.h>
- #include <stdio.h>
- #ifndef MAP_FAILED
- # define MAP_FAILED ((void*)-1)
- #endif
- int main() {
- pid_t pid;
- int status;
- int fd;
- char *shm;
- char tmpname[4096];
- sprintf(tmpname,"test.shm.%dXXXXXX", getpid());
- if (mktemp(tmpname) == NULL) {
- return 1;
- }
- fd = open(tmpname, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
- if (fd == -1) {
- return 2;
- }
- if (ftruncate(fd, 4096) < 0) {
- close(fd);
- unlink(tmpname);
- return 3;
- }
- shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
- if (shm == MAP_FAILED) {
- return 4;
- }
- unlink(tmpname);
- close(fd);
- strcpy(shm, "hello");
- pid = fork();
- if (pid < 0) {
- return 5;
- } else if (pid == 0) {
- strcpy(shm, "bye");
- return 6;
- }
- if (wait(&status) != pid) {
- return 7;
- }
- if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) {
- return 8;
- }
- if (strcmp(shm, "bye") != 0) {
- return 9;
- }
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- $as_echo "#define HAVE_SHM_MMAP_FILE 1" >>confdefs.h
- msg=yes
- else
- msg=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
- $as_echo "$msg" >&6; }
- ext_builddir=ext/opcache
- ext_srcdir=$abs_srcdir/ext/opcache
- ext_dir=ext/opcache
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "shared" != "shared" && test "shared" != "yes" && test "" != "cli"; then
- PHP_OPCACHE_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in ZendAccelerator.c \
- zend_accelerator_blacklist.c \
- zend_accelerator_debug.c \
- zend_accelerator_hash.c \
- zend_accelerator_module.c \
- zend_persist.c \
- zend_persist_calc.c \
- zend_file_cache.c \
- zend_shared_alloc.c \
- zend_accelerator_util_funcs.c \
- shared_alloc_shm.c \
- shared_alloc_mmap.c \
- shared_alloc_posix.c \
- Optimizer/zend_optimizer.c \
- Optimizer/pass1_5.c \
- Optimizer/pass2.c \
- Optimizer/pass3.c \
- Optimizer/optimize_func_calls.c \
- Optimizer/block_pass.c \
- Optimizer/optimize_temp_vars_5.c \
- Optimizer/nop_removal.c \
- Optimizer/compact_literals.c \
- Optimizer/zend_cfg.c \
- Optimizer/zend_dfg.c \
- Optimizer/dfa_pass.c \
- Optimizer/zend_ssa.c \
- Optimizer/zend_inference.c \
- Optimizer/zend_func_info.c \
- Optimizer/zend_call_graph.c \
- Optimizer/sccp.c \
- Optimizer/scdf.c \
- Optimizer/dce.c \
- Optimizer/escape_analysis.c \
- Optimizer/compact_vars.c \
- Optimizer/zend_dump.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC opcache;$ext_dir"
- if test "shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC opcache;$ext_dir"
- fi
- else
- if test "shared" = "shared" || test "shared" = "yes"; then
- PHP_OPCACHE_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in ZendAccelerator.c \
- zend_accelerator_blacklist.c \
- zend_accelerator_debug.c \
- zend_accelerator_hash.c \
- zend_accelerator_module.c \
- zend_persist.c \
- zend_persist_calc.c \
- zend_file_cache.c \
- zend_shared_alloc.c \
- zend_accelerator_util_funcs.c \
- shared_alloc_shm.c \
- shared_alloc_mmap.c \
- shared_alloc_posix.c \
- Optimizer/zend_optimizer.c \
- Optimizer/pass1_5.c \
- Optimizer/pass2.c \
- Optimizer/pass3.c \
- Optimizer/optimize_func_calls.c \
- Optimizer/block_pass.c \
- Optimizer/optimize_temp_vars_5.c \
- Optimizer/nop_removal.c \
- Optimizer/compact_literals.c \
- Optimizer/zend_cfg.c \
- Optimizer/zend_dfg.c \
- Optimizer/dfa_pass.c \
- Optimizer/zend_ssa.c \
- Optimizer/zend_inference.c \
- Optimizer/zend_func_info.c \
- Optimizer/zend_call_graph.c \
- Optimizer/sccp.c \
- Optimizer/scdf.c \
- Optimizer/dce.c \
- Optimizer/escape_analysis.c \
- Optimizer/compact_vars.c \
- Optimizer/zend_dump.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_opcache="$shared_objects_opcache $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "xyes" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/opcache.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/opcache.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_opcache"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/opcache.$suffix: $ext_builddir/opcache.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/opcache.$suffix \$(phplibdir)
- $ext_builddir/opcache.$suffix: \$(shared_objects_opcache) \$(OPCACHE_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_opcache) \$(OPCACHE_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_OPCACHE 1
- _ACEOF
- fi
- fi
- if test "shared" != "shared" && test "shared" != "yes" && test "" = "cli"; then
- PHP_OPCACHE_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in ZendAccelerator.c \
- zend_accelerator_blacklist.c \
- zend_accelerator_debug.c \
- zend_accelerator_hash.c \
- zend_accelerator_module.c \
- zend_persist.c \
- zend_persist_calc.c \
- zend_file_cache.c \
- zend_shared_alloc.c \
- zend_accelerator_util_funcs.c \
- shared_alloc_shm.c \
- shared_alloc_mmap.c \
- shared_alloc_posix.c \
- Optimizer/zend_optimizer.c \
- Optimizer/pass1_5.c \
- Optimizer/pass2.c \
- Optimizer/pass3.c \
- Optimizer/optimize_func_calls.c \
- Optimizer/block_pass.c \
- Optimizer/optimize_temp_vars_5.c \
- Optimizer/nop_removal.c \
- Optimizer/compact_literals.c \
- Optimizer/zend_cfg.c \
- Optimizer/zend_dfg.c \
- Optimizer/dfa_pass.c \
- Optimizer/zend_ssa.c \
- Optimizer/zend_inference.c \
- Optimizer/zend_func_info.c \
- Optimizer/zend_call_graph.c \
- Optimizer/sccp.c \
- Optimizer/scdf.c \
- Optimizer/dce.c \
- Optimizer/escape_analysis.c \
- Optimizer/compact_vars.c \
- Optimizer/zend_dump.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC opcache;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in ZendAccelerator.c \
- zend_accelerator_blacklist.c \
- zend_accelerator_debug.c \
- zend_accelerator_hash.c \
- zend_accelerator_module.c \
- zend_persist.c \
- zend_persist_calc.c \
- zend_file_cache.c \
- zend_shared_alloc.c \
- zend_accelerator_util_funcs.c \
- shared_alloc_shm.c \
- shared_alloc_mmap.c \
- shared_alloc_posix.c \
- Optimizer/zend_optimizer.c \
- Optimizer/pass1_5.c \
- Optimizer/pass2.c \
- Optimizer/pass3.c \
- Optimizer/optimize_func_calls.c \
- Optimizer/block_pass.c \
- Optimizer/optimize_temp_vars_5.c \
- Optimizer/nop_removal.c \
- Optimizer/compact_literals.c \
- Optimizer/zend_cfg.c \
- Optimizer/zend_dfg.c \
- Optimizer/dfa_pass.c \
- Optimizer/zend_ssa.c \
- Optimizer/zend_inference.c \
- Optimizer/zend_func_info.c \
- Optimizer/zend_call_graph.c \
- Optimizer/sccp.c \
- Optimizer/scdf.c \
- Optimizer/dce.c \
- Optimizer/escape_analysis.c \
- Optimizer/compact_vars.c \
- Optimizer/zend_dump.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC opcache;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=opcache
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- $php_shtool mkdir -p $ext_builddir/Optimizer
- am_i_shared=$PHP_OPCACHE_SHARED
- is_it_shared=$PHP_PCRE_SHARED
- is_it_enabled=$PHP_PCRE
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension opcache to build statically, but it
- depends on extension pcre, which you've configured to build shared.
- You either need to build opcache shared or build pcre statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension opcache, which depends on extension pcre,
- but you've either not enabled pcre, or have disabled it.
- " "$LINENO" 5
- fi
- fi
- php_enable_pcntl=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pcntl support" >&5
- $as_echo_n "checking whether to enable pcntl support... " >&6; }
- # Check whether --enable-pcntl was given.
- if test "${enable_pcntl+set}" = set; then :
- enableval=$enable_pcntl; PHP_PCNTL=$enableval
- else
- PHP_PCNTL=no
- test "$PHP_ENABLE_ALL" && PHP_PCNTL=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PCNTL in
- shared,*)
- PHP_PCNTL=`echo "$PHP_PCNTL"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PCNTL=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PCNTL" != "no"; then
- for ac_func in fork
- do :
- ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
- if test "x$ac_cv_func_fork" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_FORK 1
- _ACEOF
- $as_echo "#define HAVE_FORK 1" >>confdefs.h
- else
- as_fn_error $? "pcntl: fork() not supported by this platform" "$LINENO" 5
- fi
- done
- for ac_func in waitpid
- do :
- ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
- if test "x$ac_cv_func_waitpid" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_WAITPID 1
- _ACEOF
- $as_echo "#define HAVE_WAITPID 1" >>confdefs.h
- else
- as_fn_error $? "pcntl: waitpid() not supported by this platform" "$LINENO" 5
- fi
- done
- for ac_func in sigaction
- do :
- ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
- if test "x$ac_cv_func_sigaction" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SIGACTION 1
- _ACEOF
- $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
- else
- as_fn_error $? "pcntl: sigaction() not supported by this platform" "$LINENO" 5
- fi
- done
- for ac_func in getpriority setpriority wait3 wait4 sigprocmask sigwaitinfo sigtimedwait
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for siginfo_t" >&5
- $as_echo_n "checking for siginfo_t... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <signal.h>
- #ifdef HAVE_SIGINFO_H
- #include <siginfo.h>
- #endif
- int
- main ()
- {
- siginfo_t info;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PCNTL_CFLAGS="-DHAVE_STRUCT_SIGINFO_T"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ext_builddir=ext/pcntl
- ext_srcdir=$abs_srcdir/ext/pcntl
- ext_dir=ext/pcntl
- ac_extra=`echo "$PCNTL_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then
- PHP_PCNTL_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pcntl.c php_signal.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pcntl;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pcntl;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PCNTL_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in pcntl.c php_signal.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pcntl="$shared_objects_pcntl $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pcntl.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pcntl.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pcntl"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pcntl.$suffix: $ext_builddir/pcntl.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pcntl.$suffix \$(phplibdir)
- $ext_builddir/pcntl.$suffix: \$(shared_objects_pcntl) \$(PCNTL_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pcntl) \$(PCNTL_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PCNTL 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then
- PHP_PCNTL_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pcntl.c php_signal.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pcntl;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pcntl.c php_signal.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pcntl;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pcntl
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- fi
- php_enable_pdo=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PDO support" >&5
- $as_echo_n "checking whether to enable PDO support... " >&6; }
- # Check whether --enable-pdo was given.
- if test "${enable_pdo+set}" = set; then :
- enableval=$enable_pdo; PHP_PDO=$enableval
- else
- PHP_PDO=yes
- test "$PHP_ENABLE_ALL" && PHP_PDO=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PDO in
- shared,*)
- PHP_PDO=`echo "$PHP_PDO"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PDO=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PDO" != "no"; then
- PHP_PDO=yes
- pdo_running_under_pear=0
- case `pwd` in
- /var/tmp/pear-build-*)
- pdo_running_under_pear=1
- ;;
- esac
- if test "$pdo_running_under_pear$PHP_PEAR_VERSION" = "1"; then
- # we're running in an environment that smells like pear,
- # and the PHP_PEAR_VERSION env var is not set. That implies
- # that we're running under a slightly broken pear installer
- as_fn_error $? "
- PDO requires that you upgrade your PEAR installer tools. Please
- do so now by running:
- % sudo pear upgrade pear
- or by manually downloading and installing PEAR version 1.3.5 or higher.
- Once you've upgraded, please re-try your PDO install.
- " "$LINENO" 5
- fi
- ext_builddir=ext/pdo
- ext_srcdir=$abs_srcdir/ext/pdo
- ext_dir=ext/pdo
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PDO_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PDO_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pdo="$shared_objects_pdo $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pdo.$suffix: $ext_builddir/pdo.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pdo.$suffix \$(phplibdir)
- $ext_builddir/pdo.$suffix: \$(shared_objects_pdo) \$(PDO_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pdo) \$(PDO_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PDO 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PDO_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pdo
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- am_i_shared=$PHP_PDO_SHARED
- is_it_shared=$PHP_SPL_SHARED
- is_it_enabled=$PHP_SPL
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension pdo to build statically, but it
- depends on extension spl, which you've configured to build shared.
- You either need to build pdo shared or build spl statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
- as_fn_error $? "
- You've configured extension pdo, which depends on extension spl,
- but you've either not enabled spl, or have disabled it.
- " "$LINENO" 5
- fi
- header_path=ext/pdo
- for header_file in php_pdo.h php_pdo_driver.h php_pdo_error.h; do
- hp_hf="$header_path/$header_file"
- unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
- fi
- done
- src=$ext_srcdir/Makefile.frag
- ac_srcdir=$ext_srcdir
- ac_builddir=$ext_builddir
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- fi
- php_with_pdo_dblib=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO_DBLIB support via FreeTDS" >&5
- $as_echo_n "checking for PDO_DBLIB support via FreeTDS... " >&6; }
- # Check whether --with-pdo-dblib was given.
- if test "${with_pdo_dblib+set}" = set; then :
- withval=$with_pdo_dblib; PHP_PDO_DBLIB=$withval
- else
- PHP_PDO_DBLIB=no
- test "$PHP_ENABLE_ALL" && PHP_PDO_DBLIB=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PDO_DBLIB in
- shared,*)
- PHP_PDO_DBLIB=`echo "$PHP_PDO_DBLIB"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PDO_DBLIB=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PDO_DBLIB" != "no"; then
- if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
- as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
- fi
- if test "$PHP_PDO_DBLIB" = "yes"; then
- for i in /usr/local /usr; do
- if test -f $i/include/sybdb.h; then
- PDO_FREETDS_INSTALLATION_DIR=$i
- PDO_FREETDS_INCLUDE_DIR=$i/include
- break
- elif test -f $i/include/freetds/sybdb.h; then
- PDO_FREETDS_INSTALLATION_DIR=$i
- PDO_FREETDS_INCLUDE_DIR=$i/include/freetds
- break;
- fi
- done
- if test -z "$PDO_FREETDS_INSTALLATION_DIR"; then
- as_fn_error $? "Cannot find FreeTDS in known installation directories" "$LINENO" 5
- fi
- elif test "$PHP_PDO_DBLIB" != "no"; then
- if test -f $PHP_PDO_DBLIB/include/sybdb.h; then
- PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
- PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include
- elif test -f $PHP_PDO_DBLIB/include/freetds/sybdb.h; then
- PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
- PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include/freetds
- else
- as_fn_error $? "Directory $PHP_PDO_DBLIB is not a FreeTDS installation directory" "$LINENO" 5
- fi
- fi
- if test "x$PHP_LIBDIR" = "x" ; then
- PHP_LIBDIR=lib
- fi
- if test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a" && test ! -r "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.so"; then
- as_fn_error $? "Could not find $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR/libsybdb.a|so" "$LINENO" 5
- fi
- if test "$PDO_FREETDS_INCLUDE_DIR" != "/usr/include"; then
- if test -z "$PDO_FREETDS_INCLUDE_DIR" || echo "$PDO_FREETDS_INCLUDE_DIR" | grep '^/' >/dev/null ; then
- ai_p=$PDO_FREETDS_INCLUDE_DIR
- else
- ep_dir=`echo $PDO_FREETDS_INCLUDE_DIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INCLUDE_DIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- PDO_DBLIB_SHARED_LIBADD="-lsybdb $PDO_DBLIB_SHARED_LIBADD"
- if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
- if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"; then
- if test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" || echo "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case sybdb in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsybdb $LIBS"
- ;;
- esac
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if ${pdo_cv_inc_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$phpincludedir/ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
- $as_echo "$pdo_cv_inc_path" >&6; }
- if test -n "$pdo_cv_inc_path"; then
- :
- else
- as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
- fi
- PDO_DBLIB_DEFS="-DPDO_DBLIB_FLAVOUR=\\\"freetds\\\""
- ext_builddir=ext/pdo_dblib
- ext_srcdir=$abs_srcdir/ext/pdo_dblib
- ext_dir=ext/pdo_dblib
- ac_extra=`echo "-I$pdo_cv_inc_path $PDO_DBLIB_DEFS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PDO_DBLIB_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_dblib;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_dblib;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PDO_DBLIB_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pdo_dblib="$shared_objects_pdo_dblib $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_dblib.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_dblib.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_dblib"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pdo_dblib.$suffix: $ext_builddir/pdo_dblib.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_dblib.$suffix \$(phplibdir)
- $ext_builddir/pdo_dblib.$suffix: \$(shared_objects_pdo_dblib) \$(PDO_DBLIB_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pdo_dblib) \$(PDO_DBLIB_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PDO_DBLIB 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PDO_DBLIB_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_dblib;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_dblib.c dblib_driver.c dblib_stmt.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_dblib;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pdo_dblib
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_addr in -ldnet_stub" >&5
- $as_echo_n "checking for dnet_addr in -ldnet_stub... " >&6; }
- if ${ac_cv_lib_dnet_stub_dnet_addr+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldnet_stub $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dnet_addr ();
- int
- main ()
- {
- return dnet_addr ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dnet_stub_dnet_addr=yes
- else
- ac_cv_lib_dnet_stub_dnet_addr=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_addr" >&5
- $as_echo "$ac_cv_lib_dnet_stub_dnet_addr" >&6; }
- if test "x$ac_cv_lib_dnet_stub_dnet_addr" = xyes; then :
- if test "$ext_shared" = "yes"; then
- PDO_DBLIB_SHARED_LIBADD="-ldnet_stub $PDO_DBLIB_SHARED_LIBADD"
- if test -n ""; then
- if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
- if test -z "" || echo "" | grep '^/' >/dev/null ; then
- ai_p=
- else
- ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename ""`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_DBLIB_SHARED_LIBADD="-L$ai_p $PDO_DBLIB_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PDO_DBLIB_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_DBLIB_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n ""; then
- if test "" != "/usr/$PHP_LIBDIR" && test "" != "/usr/lib"; then
- if test -z "" || echo "" | grep '^/' >/dev/null ; then
- ai_p=
- else
- ep_dir=`echo |$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename ""`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case dnet_stub in
- c|c_r|pthread*) ;;
- *)
- LIBS="-ldnet_stub $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_LIBDNET_STUB 1" >>confdefs.h
- fi
- $as_echo "#define HAVE_PDO_DBLIB 1" >>confdefs.h
- $as_echo "#define HAVE_FREETDS 1" >>confdefs.h
- PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_DBLIB_SHARED_LIBADD"
- am_i_shared=$PHP_PDO_DBLIB_SHARED
- is_it_shared=$PHP_PDO_SHARED
- is_it_enabled=$PHP_PDO
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension pdo_dblib to build statically, but it
- depends on extension pdo, which you've configured to build shared.
- You either need to build pdo_dblib shared or build pdo statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension pdo_dblib, which depends on extension pdo,
- but you've either not enabled pdo, or have disabled it.
- " "$LINENO" 5
- fi
- fi
- php_with_pdo_firebird=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Firebird support for PDO" >&5
- $as_echo_n "checking for Firebird support for PDO... " >&6; }
- # Check whether --with-pdo-firebird was given.
- if test "${with_pdo_firebird+set}" = set; then :
- withval=$with_pdo_firebird; PHP_PDO_FIREBIRD=$withval
- else
- PHP_PDO_FIREBIRD=no
- test "$PHP_ENABLE_ALL" && PHP_PDO_FIREBIRD=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PDO_FIREBIRD in
- shared,*)
- PHP_PDO_FIREBIRD=`echo "$PHP_PDO_FIREBIRD"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PDO_FIREBIRD=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PDO_FIREBIRD" != "no"; then
- if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
- as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
- fi
- # Extract the first word of "fb_config", so it can be a program name with args.
- set dummy fb_config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_FB_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $FB_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_FB_CONFIG="$FB_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_FB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_FB_CONFIG" && ac_cv_path_FB_CONFIG="no"
- ;;
- esac
- fi
- FB_CONFIG=$ac_cv_path_FB_CONFIG
- if test -n "$FB_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FB_CONFIG" >&5
- $as_echo "$FB_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test -x "$FB_CONFIG" && test "$PHP_PDO_FIREBIRD" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfbconfig" >&5
- $as_echo_n "checking for libfbconfig... " >&6; }
- FB_CFLAGS=`$FB_CONFIG --cflags`
- FB_LIBDIR=`$FB_CONFIG --libs`
- FB_VERSION=`$FB_CONFIG --version`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $FB_VERSION" >&5
- $as_echo "version $FB_VERSION" >&6; }
- for ac_i in $FB_LIBDIR; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- PDO_FIREBIRD_SHARED_LIBADD="$PDO_FIREBIRD_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- PDO_FIREBIRD_SHARED_LIBADD="$PDO_FIREBIRD_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $FB_CFLAGS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- else
- if test "$PHP_PDO_FIREBIRD" = "yes"; then
- FIREBIRD_INCDIR=
- FIREBIRD_LIBDIR=
- FIREBIRD_LIBDIR_FLAG=
- else
- FIREBIRD_INCDIR=$PHP_PDO_FIREBIRD/include
- FIREBIRD_LIBDIR=$PHP_PDO_FIREBIRD/$PHP_LIBDIR
- FIREBIRD_LIBDIR_FLAG=-L$FIREBIRD_LIBDIR
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $FIREBIRD_LIBDIR_FLAG
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lfbclient" >&5
- $as_echo_n "checking for isc_detach_database in -lfbclient... " >&6; }
- if ${ac_cv_lib_fbclient_isc_detach_database+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lfbclient $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char isc_detach_database ();
- int
- main ()
- {
- return isc_detach_database ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_fbclient_isc_detach_database=yes
- else
- ac_cv_lib_fbclient_isc_detach_database=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fbclient_isc_detach_database" >&5
- $as_echo "$ac_cv_lib_fbclient_isc_detach_database" >&6; }
- if test "x$ac_cv_lib_fbclient_isc_detach_database" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- FIREBIRD_LIBNAME=fbclient
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_fbclient_isc_detach_database
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $FIREBIRD_LIBDIR_FLAG
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lgds" >&5
- $as_echo_n "checking for isc_detach_database in -lgds... " >&6; }
- if ${ac_cv_lib_gds_isc_detach_database+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgds $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char isc_detach_database ();
- int
- main ()
- {
- return isc_detach_database ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gds_isc_detach_database=yes
- else
- ac_cv_lib_gds_isc_detach_database=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gds_isc_detach_database" >&5
- $as_echo "$ac_cv_lib_gds_isc_detach_database" >&6; }
- if test "x$ac_cv_lib_gds_isc_detach_database" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- FIREBIRD_LIBNAME=gds
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_gds_isc_detach_database
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $FIREBIRD_LIBDIR_FLAG
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isc_detach_database in -lib_util" >&5
- $as_echo_n "checking for isc_detach_database in -lib_util... " >&6; }
- if ${ac_cv_lib_ib_util_isc_detach_database+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lib_util $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char isc_detach_database ();
- int
- main ()
- {
- return isc_detach_database ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ib_util_isc_detach_database=yes
- else
- ac_cv_lib_ib_util_isc_detach_database=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ib_util_isc_detach_database" >&5
- $as_echo "$ac_cv_lib_ib_util_isc_detach_database" >&6; }
- if test "x$ac_cv_lib_ib_util_isc_detach_database" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- FIREBIRD_LIBNAME=ib_util
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_ib_util_isc_detach_database
- as_fn_error $? "libfbclient, libgds or libib_util not found! Check config.log for more information." "$LINENO" 5
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- PDO_FIREBIRD_SHARED_LIBADD="-l$FIREBIRD_LIBNAME $PDO_FIREBIRD_SHARED_LIBADD"
- if test -n "$FIREBIRD_LIBDIR"; then
- if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then
- if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$FIREBIRD_LIBDIR
- else
- ep_dir=`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$FIREBIRD_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_FIREBIRD_SHARED_LIBADD="-L$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PDO_FIREBIRD_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_FIREBIRD_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$FIREBIRD_LIBDIR"; then
- if test "$FIREBIRD_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$FIREBIRD_LIBDIR" != "/usr/lib"; then
- if test -z "$FIREBIRD_LIBDIR" || echo "$FIREBIRD_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$FIREBIRD_LIBDIR
- else
- ep_dir=`echo $FIREBIRD_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$FIREBIRD_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $FIREBIRD_LIBNAME in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$FIREBIRD_LIBNAME $LIBS"
- ;;
- esac
- fi
- if test "$FIREBIRD_INCDIR" != "/usr/include"; then
- if test -z "$FIREBIRD_INCDIR" || echo "$FIREBIRD_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$FIREBIRD_INCDIR
- else
- ep_dir=`echo $FIREBIRD_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$FIREBIRD_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if ${pdo_cv_inc_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$phpincludedir/ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
- $as_echo "$pdo_cv_inc_path" >&6; }
- if test -n "$pdo_cv_inc_path"; then
- :
- else
- as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
- fi
- $as_echo "#define HAVE_PDO_FIREBIRD 1" >>confdefs.h
- ext_builddir=ext/pdo_firebird
- ext_srcdir=$abs_srcdir/ext/pdo_firebird
- ext_dir=ext/pdo_firebird
- ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PDO_FIREBIRD_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_firebird;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_firebird;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PDO_FIREBIRD_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pdo_firebird="$shared_objects_pdo_firebird $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_firebird.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_firebird.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_firebird"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pdo_firebird.$suffix: $ext_builddir/pdo_firebird.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_firebird.$suffix \$(phplibdir)
- $ext_builddir/pdo_firebird.$suffix: \$(shared_objects_pdo_firebird) \$(PDO_FIREBIRD_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pdo_firebird) \$(PDO_FIREBIRD_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PDO_FIREBIRD 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PDO_FIREBIRD_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_firebird;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_firebird.c firebird_driver.c firebird_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_firebird;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pdo_firebird
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_FIREBIRD_SHARED_LIBADD"
- am_i_shared=$PHP_PDO_FIREBIRD_SHARED
- is_it_shared=$PHP_PDO_SHARED
- is_it_enabled=$PHP_PDO
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension pdo_firebird to build statically, but it
- depends on extension pdo, which you've configured to build shared.
- You either need to build pdo_firebird shared or build pdo statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension pdo_firebird, which depends on extension pdo,
- but you've either not enabled pdo, or have disabled it.
- " "$LINENO" 5
- fi
- fi
- php_with_pdo_mysql=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support for PDO" >&5
- $as_echo_n "checking for MySQL support for PDO... " >&6; }
- # Check whether --with-pdo-mysql was given.
- if test "${with_pdo_mysql+set}" = set; then :
- withval=$with_pdo_mysql; PHP_PDO_MYSQL=$withval
- else
- PHP_PDO_MYSQL=no
- test "$PHP_ENABLE_ALL" && PHP_PDO_MYSQL=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PDO_MYSQL in
- shared,*)
- PHP_PDO_MYSQL=`echo "$PHP_PDO_MYSQL"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PDO_MYSQL=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_ZLIB_DIR"; then
- php_with_zlib_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
- $as_echo_n "checking for the location of libz... " >&6; }
- # Check whether --with-zlib-dir was given.
- if test "${with_zlib_dir+set}" = set; then :
- withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
- else
- PHP_ZLIB_DIR=no
- fi
- ext_output=$PHP_ZLIB_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- if test "$PHP_PDO_MYSQL" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL UNIX socket location" >&5
- $as_echo_n "checking for MySQL UNIX socket location... " >&6; }
- if test "$PHP_MYSQL_SOCK" != "no" && test "$PHP_MYSQL_SOCK" != "yes"; then
- MYSQL_SOCK=$PHP_MYSQL_SOCK
- cat >>confdefs.h <<_ACEOF
- #define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5
- $as_echo "$MYSQL_SOCK" >&6; }
- elif test "$PHP_MYSQL_SOCK" = "yes"; then
- for i in \
- /var/run/mysqld/mysqld.sock \
- /var/tmp/mysql.sock \
- /var/run/mysql/mysql.sock \
- /var/lib/mysql/mysql.sock \
- /var/mysql/mysql.sock \
- /usr/local/mysql/var/mysql.sock \
- /Private/tmp/mysql.sock \
- /private/tmp/mysql.sock \
- /tmp/mysql.sock \
- ; do
- if test -r $i; then
- MYSQL_SOCK=$i
- break 2
- fi
- done
- if test -n "$MYSQL_SOCK"; then
- cat >>confdefs.h <<_ACEOF
- #define PHP_MYSQL_UNIX_SOCK_ADDR "$MYSQL_SOCK"
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_SOCK" >&5
- $as_echo "$MYSQL_SOCK" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
- as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
- fi
- if test "$PHP_PDO_MYSQL" != "yes" && test "$PHP_PDO_MYSQL" != "mysqlnd"; then
- if test -f $PHP_PDO_MYSQL && test -x $PHP_PDO_MYSQL ; then
- PDO_MYSQL_CONFIG=$PHP_PDO_MYSQL
- else
- if test -d "$PHP_PDO_MYSQL" ; then
- if test -x "$PHP_PDO_MYSQL/bin/mysql_config" ; then
- PDO_MYSQL_CONFIG="$PHP_PDO_MYSQL/bin/mysql_config"
- else
- PDO_MYSQL_DIR="$PHP_PDO_MYSQL"
- fi
- fi
- fi
- fi
- if test "$PHP_PDO_MYSQL" = "yes" || test "$PHP_PDO_MYSQL" = "mysqlnd"; then
- PHP_MYSQLND_ENABLED=yes
- $as_echo "#define PDO_USE_MYSQLND 1" >>confdefs.h
- else
- $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_config" >&5
- $as_echo_n "checking for mysql_config... " >&6; }
- if test -n "$PDO_MYSQL_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_MYSQL_CONFIG" >&5
- $as_echo "$PDO_MYSQL_CONFIG" >&6; }
- if test "x$SED" = "x"; then
- # Extract the first word of "sed", so it can be a program name with args.
- set dummy sed; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_SED+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $SED in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_SED="$SED" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- SED=$ac_cv_path_SED
- if test -n "$SED"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
- $as_echo "$SED" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- PDO_MYSQL_LIBNAME=mysqlclient
- PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs | $SED -e "s/'//g"`
- PDO_MYSQL_INCLUDE=`$PDO_MYSQL_CONFIG --cflags | $SED -e "s/'//g"`
- elif test -n "$PDO_MYSQL_DIR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql install under $PDO_MYSQL_DIR" >&5
- $as_echo_n "checking for mysql install under $PDO_MYSQL_DIR... " >&6; }
- if test -r $PDO_MYSQL_DIR/include/mysql; then
- PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include/mysql
- else
- PDO_MYSQL_INC_DIR=$PDO_MYSQL_DIR/include
- fi
- if test -r $PDO_MYSQL_DIR/$PHP_LIBDIR/mysql; then
- PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR/mysql
- else
- PDO_MYSQL_LIB_DIR=$PDO_MYSQL_DIR/$PHP_LIBDIR
- fi
- if test -r "$PDO_MYSQL_LIB_DIR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: libs under $PDO_MYSQL_LIB_DIR; seems promising" >&5
- $as_echo "libs under $PDO_MYSQL_LIB_DIR; seems promising" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not find it" >&5
- $as_echo "can not find it" >&6; }
- as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5
- fi
- if test "$PDO_MYSQL_INC_DIR" != "/usr/include"; then
- if test -z "$PDO_MYSQL_INC_DIR" || echo "$PDO_MYSQL_INC_DIR" | grep '^/' >/dev/null ; then
- ai_p=$PDO_MYSQL_INC_DIR
- else
- ep_dir=`echo $PDO_MYSQL_INC_DIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_MYSQL_INC_DIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- PDO_MYSQL_INCLUDE=-I$PDO_MYSQL_INC_DIR
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- as_fn_error $? "Unable to find your mysql installation" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $PDO_MYSQL_LIBS
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5
- $as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$PDO_MYSQL_LIBNAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char mysql_commit ();
- int
- main ()
- {
- return mysql_commit ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- for ac_i in $PDO_MYSQL_INCLUDE; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $PDO_MYSQL_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit
- if test "$PHP_ZLIB_DIR" != "no"; then
- if test "$ext_shared" = "yes"; then
- PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD"
- if test -n "$PHP_ZLIB_DIR"; then
- if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
- if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ZLIB_DIR
- else
- ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PHP_ZLIB_DIR"; then
- if test "$PHP_ZLIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR" != "/usr/lib"; then
- if test -z "$PHP_ZLIB_DIR" || echo "$PHP_ZLIB_DIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ZLIB_DIR
- else
- ep_dir=`echo $PHP_ZLIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case z in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lz $LIBS"
- ;;
- esac
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PHP_ZLIB_DIR/$PHP_LIBDIR -L$PDO_MYSQL_LIB_DIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_commit" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_commit in -l$PDO_MYSQL_LIBNAME" >&5
- $as_echo_n "checking for mysql_commit in -l$PDO_MYSQL_LIBNAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$PDO_MYSQL_LIBNAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char mysql_commit ();
- int
- main ()
- {
- return mysql_commit ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_commit
- as_fn_error $? "PDO_MYSQL configure failed, MySQL 4.1 needed. Please check config.log for more information." "$LINENO" 5
- fi
- PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -L$PHP_ZLIB_DIR/$PHP_LIBDIR -lz"
- else
- case z in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- PDO_MYSQL_SHARED_LIBADD="-lz $PDO_MYSQL_SHARED_LIBADD"
- else
- case z in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lz $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PDO_MYSQL_LIB_DIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$PDO_MYSQL_LIBNAME''_mysql_query" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_query in -l$PDO_MYSQL_LIBNAME" >&5
- $as_echo_n "checking for mysql_query in -l$PDO_MYSQL_LIBNAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$PDO_MYSQL_LIBNAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char mysql_query ();
- int
- main ()
- {
- return mysql_query ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$PDO_MYSQL_LIBNAME_mysql_query
- as_fn_error $? "Try adding --with-zlib-dir=<DIR>. Please check config.log for more information." "$LINENO" 5
- fi
- PDO_MYSQL_LIBS="$PDO_MYSQL_LIBS -lz"
- fi
- for ac_i in $PDO_MYSQL_INCLUDE; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $PDO_MYSQL_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_MYSQL_SHARED_LIBADD="-L$ai_p $PDO_MYSQL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PDO_MYSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_MYSQL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if ${pdo_cv_inc_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$phpincludedir/ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
- $as_echo "$pdo_cv_inc_path" >&6; }
- if test -n "$pdo_cv_inc_path"; then
- :
- else
- as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
- fi
- if test -n "$PDO_MYSQL_CONFIG"; then
- PDO_MYSQL_SOCKET=`$PDO_MYSQL_CONFIG --socket`
- cat >>confdefs.h <<_ACEOF
- #define PDO_MYSQL_UNIX_ADDR "$PDO_MYSQL_SOCKET"
- _ACEOF
- fi
- ext_builddir=ext/pdo_mysql
- ext_srcdir=$abs_srcdir/ext/pdo_mysql
- ext_dir=ext/pdo_mysql
- ac_extra=`echo "-I$pdo_cv_inc_path -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PDO_MYSQL_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_mysql;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_mysql;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PDO_MYSQL_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pdo_mysql="$shared_objects_pdo_mysql $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_mysql.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_mysql.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_mysql"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pdo_mysql.$suffix: $ext_builddir/pdo_mysql.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_mysql.$suffix \$(phplibdir)
- $ext_builddir/pdo_mysql.$suffix: \$(shared_objects_pdo_mysql) \$(PDO_MYSQL_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pdo_mysql) \$(PDO_MYSQL_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PDO_MYSQL 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PDO_MYSQL_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_mysql;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_mysql.c mysql_driver.c mysql_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_mysql;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pdo_mysql
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- am_i_shared=$PHP_PDO_MYSQL_SHARED
- is_it_shared=$PHP_PDO_SHARED
- is_it_enabled=$PHP_PDO
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension pdo_mysql to build statically, but it
- depends on extension pdo, which you've configured to build shared.
- You either need to build pdo_mysql shared or build pdo statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension pdo_mysql, which depends on extension pdo,
- but you've either not enabled pdo, or have disabled it.
- " "$LINENO" 5
- fi
- if test "$PHP_MYSQL" = "mysqlnd"; then
- am_i_shared=$PHP_PDO_MYSQL_SHARED
- is_it_shared=$PHP_MYSQLND_SHARED
- is_it_enabled=$PHP_MYSQLND
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension pdo_mysql to build statically, but it
- depends on extension mysqlnd, which you've configured to build shared.
- You either need to build pdo_mysql shared or build mysqlnd statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension pdo_mysql, which depends on extension mysqlnd,
- but you've either not enabled mysqlnd, or have disabled it.
- " "$LINENO" 5
- fi
- fi
- PDO_MYSQL_MODULE_TYPE=external
- PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_MYSQL_SHARED_LIBADD"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_MYSQL_MODULE_TYPE"
- fi
- if test -z "$SED"; then
- PHP_PDO_OCI_SED="sed";
- else
- PHP_PDO_OCI_SED="$SED";
- fi
- PHP_PDO_OCI_TAIL1=`echo a | tail -n1 2>/dev/null`
- if test "$PHP_PDO_OCI_TAIL1" = "a"; then
- PHP_PDO_OCI_TAIL1="tail -n1"
- else
- PHP_PDO_OCI_TAIL1="tail -1"
- fi
- php_with_pdo_oci=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle OCI support for PDO" >&5
- $as_echo_n "checking Oracle OCI support for PDO... " >&6; }
- # Check whether --with-pdo-oci was given.
- if test "${with_pdo_oci+set}" = set; then :
- withval=$with_pdo_oci; PHP_PDO_OCI=$withval
- else
- PHP_PDO_OCI=no
- test "$PHP_ENABLE_ALL" && PHP_PDO_OCI=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PDO_OCI in
- shared,*)
- PHP_PDO_OCI=`echo "$PHP_PDO_OCI"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PDO_OCI=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PDO_OCI" != "no"; then
- if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
- as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle Install-Dir" >&5
- $as_echo_n "checking Oracle Install-Dir... " >&6; }
- if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then
- PDO_OCI_DIR=$ORACLE_HOME
- else
- PDO_OCI_DIR=$PHP_PDO_OCI
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_PDO_OCI" >&5
- $as_echo "$PHP_PDO_OCI" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if that is sane" >&5
- $as_echo_n "checking if that is sane... " >&6; }
- if test -z "$PDO_OCI_DIR"; then
- as_fn_error $? "You need to tell me where to find your Oracle Instant Client SDK, or set ORACLE_HOME." "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- if test "instantclient" = "`echo $PDO_OCI_DIR | cut -d, -f1`" ; then
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
- $as_echo_n "checking size of long int... " >&6; }
- if ${ac_cv_sizeof_long_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
- $as_echo "$ac_cv_sizeof_long_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
- _ACEOF
- if test "$ac_cv_sizeof_long_int" = "4" ; then
- PDO_OCI_CLIENT_DIR="client"
- else
- PDO_OCI_CLIENT_DIR="client64"
- fi
- PDO_OCI_LIB_DIR="`echo $PDO_OCI_DIR | cut -d, -f2`"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5
- $as_echo_n "checking Oracle version... " >&6; }
- PDO_OCI_LCS_BASE=$PDO_OCI_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME
- PDO_OCI_LCS=`ls $PDO_OCI_LCS_BASE.*.1 2> /dev/null | $PHP_PDO_OCI_TAIL1` # Oracle 10g, 11g, 12c etc
- if test -f "$PDO_OCI_LCS"; then
- PDO_OCI_VERSION=`echo $PDO_OCI_LCS | $PHP_PDO_OCI_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
- elif test -f $PDO_OCI_LCS_BASE.9.0; then
- PDO_OCI_VERSION=9.0
- else
- as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found or its version is lower than 9" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5
- $as_echo "$PDO_OCI_VERSION" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oci.h" >&5
- $as_echo_n "checking for oci.h... " >&6; }
- OCISDKRPMINC=`echo "$PDO_OCI_LIB_DIR" | $PHP_PDO_OCI_SED -e 's!^\(.*\)/lib/oracle/\(.*\)/\('${PDO_OCI_CLIENT_DIR}'\)/lib/*$!\1/include/oracle/\2/\3!'`
- OCISDKMANINC=`echo "$PDO_OCI_LIB_DIR" | $PHP_PDO_OCI_SED -e 's!^\(.*\)/lib/*$!\1/include!'`
- OCISDKZIPINC=$PDO_OCI_LIB_DIR/sdk/include
- if test -f "$OCISDKRPMINC/oci.h" ; then
- if test "$OCISDKRPMINC" != "/usr/include"; then
- if test -z "$OCISDKRPMINC" || echo "$OCISDKRPMINC" | grep '^/' >/dev/null ; then
- ai_p=$OCISDKRPMINC
- else
- ep_dir=`echo $OCISDKRPMINC|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OCISDKRPMINC"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKRPMINC" >&5
- $as_echo "$OCISDKRPMINC" >&6; }
- elif test -f "$OCISDKMANINC/oci.h" ; then
- if test "$OCISDKMANINC" != "/usr/include"; then
- if test -z "$OCISDKMANINC" || echo "$OCISDKMANINC" | grep '^/' >/dev/null ; then
- ai_p=$OCISDKMANINC
- else
- ep_dir=`echo $OCISDKMANINC|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OCISDKMANINC"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKMANINC" >&5
- $as_echo "$OCISDKMANINC" >&6; }
- elif test -f "$OCISDKZIPINC/oci.h" ; then
- if test "$OCISDKZIPINC" != "/usr/include"; then
- if test -z "$OCISDKZIPINC" || echo "$OCISDKZIPINC" | grep '^/' >/dev/null ; then
- ai_p=$OCISDKZIPINC
- else
- ep_dir=`echo $OCISDKZIPINC|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OCISDKZIPINC"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCISDKZIPINC" >&5
- $as_echo "$OCISDKZIPINC" >&6; }
- else
- as_fn_error $? "I'm too dumb to figure out where the include dir is in your Instant Client install" "$LINENO" 5
- fi
- else
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
- $as_echo_n "checking size of long int... " >&6; }
- if ${ac_cv_sizeof_long_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
- $as_echo "$ac_cv_sizeof_long_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're on a 64-bit platform" >&5
- $as_echo_n "checking if we're on a 64-bit platform... " >&6; }
- if test "$ac_cv_sizeof_long_int" = "4" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- TMP_PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking OCI8 libraries dir" >&5
- $as_echo_n "checking OCI8 libraries dir... " >&6; }
- if test -d "$PDO_OCI_DIR/lib" && test ! -d "$PDO_OCI_DIR/lib32"; then
- PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib"
- elif test ! -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then
- PDO_OCI_LIB_DIR="$PDO_OCI_DIR/lib32"
- elif test -d "$PDO_OCI_DIR/lib" && test -d "$PDO_OCI_DIR/lib32"; then
- PDO_OCI_LIB_DIR=$TMP_PDO_OCI_LIB_DIR
- else
- as_fn_error $? "Oracle required OCI8 libraries not found" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_LIB_DIR" >&5
- $as_echo "$PDO_OCI_LIB_DIR" >&6; }
- if test -d "$PDO_OCI_DIR/rdbms/public"; then
- if test "$PDO_OCI_DIR/rdbms/public" != "/usr/include"; then
- if test -z "$PDO_OCI_DIR/rdbms/public" || echo "$PDO_OCI_DIR/rdbms/public" | grep '^/' >/dev/null ; then
- ai_p=$PDO_OCI_DIR/rdbms/public
- else
- ep_dir=`echo $PDO_OCI_DIR/rdbms/public|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/rdbms/public"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/public"
- fi
- if test -d "$PDO_OCI_DIR/rdbms/demo"; then
- if test "$PDO_OCI_DIR/rdbms/demo" != "/usr/include"; then
- if test -z "$PDO_OCI_DIR/rdbms/demo" || echo "$PDO_OCI_DIR/rdbms/demo" | grep '^/' >/dev/null ; then
- ai_p=$PDO_OCI_DIR/rdbms/demo
- else
- ep_dir=`echo $PDO_OCI_DIR/rdbms/demo|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/rdbms/demo"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/rdbms/demo"
- fi
- if test -d "$PDO_OCI_DIR/network/public"; then
- if test "$PDO_OCI_DIR/network/public" != "/usr/include"; then
- if test -z "$PDO_OCI_DIR/network/public" || echo "$PDO_OCI_DIR/network/public" | grep '^/' >/dev/null ; then
- ai_p=$PDO_OCI_DIR/network/public
- else
- ep_dir=`echo $PDO_OCI_DIR/network/public|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/network/public"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/network/public"
- fi
- if test -d "$PDO_OCI_DIR/plsql/public"; then
- if test "$PDO_OCI_DIR/plsql/public" != "/usr/include"; then
- if test -z "$PDO_OCI_DIR/plsql/public" || echo "$PDO_OCI_DIR/plsql/public" | grep '^/' >/dev/null ; then
- ai_p=$PDO_OCI_DIR/plsql/public
- else
- ep_dir=`echo $PDO_OCI_DIR/plsql/public|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/plsql/public"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/plsql/public"
- fi
- if test -d "$PDO_OCI_DIR/include"; then
- if test "$PDO_OCI_DIR/include" != "/usr/include"; then
- if test -z "$PDO_OCI_DIR/include" || echo "$PDO_OCI_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$PDO_OCI_DIR/include
- else
- ep_dir=`echo $PDO_OCI_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_OCI_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- PDO_OCI_INCLUDES="$PDO_OCI_INCLUDES -I$PDO_OCI_DIR/include"
- fi
- if test -f "$PDO_OCI_LIB_DIR/sysliblist"; then
- for ac_i in `cat $PDO_OCI_LIB_DIR/sysliblist`; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB"
- test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- elif test -f "$PDO_OCI_DIR/rdbms/lib/sysliblist"; then
- for ac_i in `cat $PDO_OCI_DIR/rdbms/lib/sysliblist`; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- PDO_OCI_SYSLIB="$PDO_OCI_SYSLIB -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_OCI_SYSLIB="-L$ai_p $PDO_OCI_SYSLIB"
- test -n "$ld_runpath_switch" && PDO_OCI_SYSLIB="$ld_runpath_switch$ai_p $PDO_OCI_SYSLIB"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking Oracle version" >&5
- $as_echo_n "checking Oracle version... " >&6; }
- PDO_OCI_LCS_BASE=$PDO_OCI_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME
- PDO_OCI_LCS=`ls $PDO_OCI_LCS_BASE.*.1 2> /dev/null | $PHP_PDO_OCI_TAIL1` # Oracle 10g, 11g, 12c etc
- if test -f "$PDO_OCI_LCS"; then
- PDO_OCI_VERSION=`echo $PDO_OCI_LCS | $PHP_PDO_OCI_SED -e 's/.*\.\(.*\)\.1$/\1.1/'`
- elif test -f $PDO_OCI_LCS_BASE.9.0; then
- PDO_OCI_VERSION=9.0
- else
- as_fn_error $? "Oracle libclntsh.$SHLIB_SUFFIX_NAME client library not found or its version is lower than 9" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDO_OCI_VERSION" >&5
- $as_echo "$PDO_OCI_VERSION" >&6; }
- fi
- case $PDO_OCI_VERSION in
- 7.3|8.0|8.1)
- as_fn_error $? "Oracle client libraries < 9 are not supported" "$LINENO" 5
- ;;
- esac
- case clntsh in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -lclntsh"
- else
- case clntsh in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -lclntsh"
- ;;
- esac
- fi
- ;;
- esac
- if test "$PDO_OCI_LIB_DIR" != "/usr/$PHP_LIBDIR" && test "$PDO_OCI_LIB_DIR" != "/usr/lib"; then
- if test -z "$PDO_OCI_LIB_DIR" || echo "$PDO_OCI_LIB_DIR" | grep '^/' >/dev/null ; then
- ai_p=$PDO_OCI_LIB_DIR
- else
- ep_dir=`echo $PDO_OCI_LIB_DIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_OCI_LIB_DIR"`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_OCI_SHARED_LIBADD="-L$ai_p $PDO_OCI_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PDO_OCI_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_OCI_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvCreate in -lclntsh" >&5
- $as_echo_n "checking for OCIEnvCreate in -lclntsh... " >&6; }
- if ${ac_cv_lib_clntsh_OCIEnvCreate+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lclntsh $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char OCIEnvCreate ();
- int
- main ()
- {
- return OCIEnvCreate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_clntsh_OCIEnvCreate=yes
- else
- ac_cv_lib_clntsh_OCIEnvCreate=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvCreate" >&5
- $as_echo "$ac_cv_lib_clntsh_OCIEnvCreate" >&6; }
- if test "x$ac_cv_lib_clntsh_OCIEnvCreate" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_OCIENVCREATE 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_clntsh_OCIEnvCreate
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIEnvNlsCreate in -lclntsh" >&5
- $as_echo_n "checking for OCIEnvNlsCreate in -lclntsh... " >&6; }
- if ${ac_cv_lib_clntsh_OCIEnvNlsCreate+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lclntsh $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char OCIEnvNlsCreate ();
- int
- main ()
- {
- return OCIEnvNlsCreate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_clntsh_OCIEnvNlsCreate=yes
- else
- ac_cv_lib_clntsh_OCIEnvNlsCreate=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIEnvNlsCreate" >&5
- $as_echo "$ac_cv_lib_clntsh_OCIEnvNlsCreate" >&6; }
- if test "x$ac_cv_lib_clntsh_OCIEnvNlsCreate" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_OCIENVNLSCREATE 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_clntsh_OCIEnvNlsCreate
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -lclntsh" >&5
- $as_echo_n "checking for OCILobIsTemporary in -lclntsh... " >&6; }
- if ${ac_cv_lib_clntsh_OCILobIsTemporary+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lclntsh $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char OCILobIsTemporary ();
- int
- main ()
- {
- return OCILobIsTemporary ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_clntsh_OCILobIsTemporary=yes
- else
- ac_cv_lib_clntsh_OCILobIsTemporary=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCILobIsTemporary" >&5
- $as_echo "$ac_cv_lib_clntsh_OCILobIsTemporary" >&6; }
- if test "x$ac_cv_lib_clntsh_OCILobIsTemporary" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_OCILOBISTEMPORARY 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_clntsh_OCILobIsTemporary
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCILobIsTemporary in -locijdbc8" >&5
- $as_echo_n "checking for OCILobIsTemporary in -locijdbc8... " >&6; }
- if ${ac_cv_lib_ocijdbc8_OCILobIsTemporary+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-locijdbc8 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char OCILobIsTemporary ();
- int
- main ()
- {
- return OCILobIsTemporary ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ocijdbc8_OCILobIsTemporary=yes
- else
- ac_cv_lib_ocijdbc8_OCILobIsTemporary=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&5
- $as_echo "$ac_cv_lib_ocijdbc8_OCILobIsTemporary" >&6; }
- if test "x$ac_cv_lib_ocijdbc8_OCILobIsTemporary" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- case ocijdbc8 in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- PDO_OCI_SHARED_LIBADD="$PDO_OCI_SHARED_LIBADD -locijdbc8"
- else
- case ocijdbc8 in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -locijdbc8"
- ;;
- esac
- fi
- ;;
- esac
- $as_echo "#define HAVE_OCILOBISTEMPORARY 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_ocijdbc8_OCILobIsTemporary
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCICollAssign in -lclntsh" >&5
- $as_echo_n "checking for OCICollAssign in -lclntsh... " >&6; }
- if ${ac_cv_lib_clntsh_OCICollAssign+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lclntsh $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char OCICollAssign ();
- int
- main ()
- {
- return OCICollAssign ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_clntsh_OCICollAssign=yes
- else
- ac_cv_lib_clntsh_OCICollAssign=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCICollAssign" >&5
- $as_echo "$ac_cv_lib_clntsh_OCICollAssign" >&6; }
- if test "x$ac_cv_lib_clntsh_OCICollAssign" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_OCICOLLASSIGN 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_clntsh_OCICollAssign
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PDO_OCI_LIB_DIR $PDO_OCI_SHARED_LIBADD
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OCIStmtFetch2 in -lclntsh" >&5
- $as_echo_n "checking for OCIStmtFetch2 in -lclntsh... " >&6; }
- if ${ac_cv_lib_clntsh_OCIStmtFetch2+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lclntsh $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char OCIStmtFetch2 ();
- int
- main ()
- {
- return OCIStmtFetch2 ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_clntsh_OCIStmtFetch2=yes
- else
- ac_cv_lib_clntsh_OCIStmtFetch2=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clntsh_OCIStmtFetch2" >&5
- $as_echo "$ac_cv_lib_clntsh_OCIStmtFetch2" >&6; }
- if test "x$ac_cv_lib_clntsh_OCIStmtFetch2" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_OCISTMTFETCH2 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_clntsh_OCIStmtFetch2
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if ${pdo_cv_inc_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$phpincludedir/ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
- $as_echo "$pdo_cv_inc_path" >&6; }
- if test -n "$pdo_cv_inc_path"; then
- :
- else
- as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
- fi
- ext_builddir=ext/pdo_oci
- ext_srcdir=$abs_srcdir/ext/pdo_oci
- ext_dir=ext/pdo_oci
- ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PDO_OCI_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_oci;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_oci;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PDO_OCI_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pdo_oci="$shared_objects_pdo_oci $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_oci.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_oci.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_oci"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pdo_oci.$suffix: $ext_builddir/pdo_oci.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_oci.$suffix \$(phplibdir)
- $ext_builddir/pdo_oci.$suffix: \$(shared_objects_pdo_oci) \$(PDO_OCI_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pdo_oci) \$(PDO_OCI_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PDO_OCI 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PDO_OCI_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_oci;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_oci.c oci_driver.c oci_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_oci;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pdo_oci
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_SHARED_LIBADD"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_DIR"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_OCI_VERSION"
- am_i_shared=$PHP_PDO_OCI_SHARED
- is_it_shared=$PHP_PDO_SHARED
- is_it_enabled=$PHP_PDO
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension pdo_oci to build statically, but it
- depends on extension pdo, which you've configured to build shared.
- You either need to build pdo_oci shared or build pdo statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension pdo_oci, which depends on extension pdo,
- but you've either not enabled pdo, or have disabled it.
- " "$LINENO" 5
- fi
- cat >>confdefs.h <<_ACEOF
- #define PHP_PDO_OCI_CLIENT_VERSION "$PDO_OCI_VERSION"
- _ACEOF
- fi
- php_with_pdo_odbc=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ODBC v3 support for PDO" >&5
- $as_echo_n "checking for ODBC v3 support for PDO... " >&6; }
- # Check whether --with-pdo-odbc was given.
- if test "${with_pdo_odbc+set}" = set; then :
- withval=$with_pdo_odbc; PHP_PDO_ODBC=$withval
- else
- PHP_PDO_ODBC=no
- test "$PHP_ENABLE_ALL" && PHP_PDO_ODBC=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PDO_ODBC in
- shared,*)
- PHP_PDO_ODBC=`echo "$PHP_PDO_ODBC"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PDO_ODBC=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PDO_ODBC" != "no"; then
- if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
- as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if ${pdo_cv_inc_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$phpincludedir/ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
- $as_echo "$pdo_cv_inc_path" >&6; }
- if test -n "$pdo_cv_inc_path"; then
- :
- else
- as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selected PDO ODBC flavour" >&5
- $as_echo_n "checking for selected PDO ODBC flavour... " >&6; }
- pdo_odbc_flavour="`echo $PHP_PDO_ODBC | cut -d, -f1`"
- pdo_odbc_dir="`echo $PHP_PDO_ODBC | cut -d, -f2`"
- if test "$pdo_odbc_dir" = "$PHP_PDO_ODBC" ; then
- pdo_odbc_dir=
- fi
- case $pdo_odbc_flavour in
- ibm-db2)
- pdo_odbc_def_libdir=/home/db2inst1/sqllib/lib
- pdo_odbc_def_incdir=/home/db2inst1/sqllib/include
- pdo_odbc_def_lib=db2
- ;;
- iODBC|iodbc)
- pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR
- pdo_odbc_def_incdir=/usr/local/include
- pdo_odbc_def_lib=iodbc
- ;;
- unixODBC|unixodbc)
- pdo_odbc_def_libdir=/usr/local/$PHP_LIBDIR
- pdo_odbc_def_incdir=/usr/local/include
- pdo_odbc_def_lib=odbc
- ;;
- ODBCRouter|odbcrouter)
- pdo_odbc_def_libdir=/usr/$PHP_LIBDIR
- pdo_odbc_def_incdir=/usr/include
- pdo_odbc_def_lib=odbcsdk
- ;;
- generic)
- pdo_odbc_def_lib="`echo $PHP_PDO_ODBC | cut -d, -f3`"
- pdo_odbc_def_ldflags="`echo $PHP_PDO_ODBC | cut -d, -f4`"
- pdo_odbc_def_cflags="`echo $PHP_PDO_ODBC | cut -d, -f5`"
- pdo_odbc_flavour="generic-$pdo_odbc_def_lib"
- ;;
- *)
- as_fn_error $? "Unknown ODBC flavour $pdo_odbc_flavour
- include and lib dirs are looked for under 'dir'.
- 'flavour' can be one of: ibm-db2, iODBC, unixODBC, generic
- If ',dir' part is omitted, default for the flavour
- you have selected will be used. e.g.:
- --with-pdo-odbc=unixODBC
- will check for unixODBC under /usr/local. You may attempt
- to use an otherwise unsupported driver using the 'generic'
- flavour. The syntax for generic ODBC support is:
- --with-pdo-odbc=generic,dir,libname,ldflags,cflags
- When built as 'shared' the extension filename is always pdo_odbc.so" "$LINENO" 5
- ;;
- esac
- if test -n "$pdo_odbc_dir"; then
- PDO_ODBC_INCDIR="$pdo_odbc_dir/include"
- PDO_ODBC_LIBDIR="$pdo_odbc_dir/$PHP_LIBDIR"
- else
- PDO_ODBC_INCDIR="$pdo_odbc_def_incdir"
- PDO_ODBC_LIBDIR="$pdo_odbc_def_libdir"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_odbc_flavour
- libs $PDO_ODBC_LIBDIR,
- headers $PDO_ODBC_INCDIR" >&5
- $as_echo "$pdo_odbc_flavour
- libs $PDO_ODBC_LIBDIR,
- headers $PDO_ODBC_INCDIR" >&6; }
- if test ! -d "$PDO_ODBC_LIBDIR" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&5
- $as_echo "$as_me: WARNING: library dir $PDO_ODBC_LIBDIR does not exist" >&2;}
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbc.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for odbc.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/odbc.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_ODBC_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for odbcsdk.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for odbcsdk.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/odbcsdk.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_ODBCSDK_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iodbc.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for iodbc.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/iodbc.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_IODBC_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlunix.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for sqlunix.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/sqlunix.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_SQLUNIX_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqltypes.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for sqltypes.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/sqltypes.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_SQLTYPES_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlucode.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for sqlucode.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/sqlucode.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_SQLUCODE_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sql.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for sql.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/sql.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_SQL_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isql.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for isql.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/isql.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_ISQL_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlext.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for sqlext.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/sqlext.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_SQLEXT_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isqlext.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for isqlext.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/isqlext.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_ISQLEXT_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udbcext.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for udbcext.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/udbcext.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_UDBCEXT_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlcli1.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for sqlcli1.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/sqlcli1.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_SQLCLI1_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LibraryManager.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for LibraryManager.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/LibraryManager.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_LIBRARYMANAGER_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0core.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for cli0core.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/cli0core.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_CLI0CORE_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0ext.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for cli0ext.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/cli0ext.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_CLI0EXT_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0cli.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for cli0cli.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/cli0cli.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_CLI0CLI_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0defs.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for cli0defs.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/cli0defs.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_CLI0DEFS_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cli0env.h in $PDO_ODBC_INCDIR" >&5
- $as_echo_n "checking for cli0env.h in $PDO_ODBC_INCDIR... " >&6; }
- if test -f "$PDO_ODBC_INCDIR/cli0env.h"; then
- php_pdo_have_header=yes
- $as_echo "#define HAVE_CLI0ENV_H 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "$php_pdo_have_header" != "yes"; then
- as_fn_error $? "Cannot find header file(s) for pdo_odbc" "$LINENO" 5
- fi
- PDO_ODBC_INCLUDE="$pdo_odbc_def_cflags -I$PDO_ODBC_INCDIR -DPDO_ODBC_TYPE=\\\"$pdo_odbc_flavour\\\""
- PDO_ODBC_LDFLAGS="$pdo_odbc_def_ldflags -L$PDO_ODBC_LIBDIR -l$pdo_odbc_def_lib"
- for ac_i in $PDO_ODBC_LDFLAGS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- PDO_ODBC_SHARED_LIBADD="$PDO_ODBC_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_ODBC_SHARED_LIBADD="-L$ai_p $PDO_ODBC_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PDO_ODBC_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_ODBC_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="$PDO_ODBC_LDFLAGS"
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLBindCol" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLBindCol in -l$pdo_odbc_def_lib" >&5
- $as_echo_n "checking for SQLBindCol in -l$pdo_odbc_def_lib... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$pdo_odbc_def_lib $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char SQLBindCol ();
- int
- main ()
- {
- return SQLBindCol ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="$PDO_ODBC_LDFLAGS"
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$pdo_odbc_def_lib''_SQLAllocHandle" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLAllocHandle in -l$pdo_odbc_def_lib" >&5
- $as_echo_n "checking for SQLAllocHandle in -l$pdo_odbc_def_lib... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$pdo_odbc_def_lib $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char SQLAllocHandle ();
- int
- main ()
- {
- return SQLAllocHandle ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$pdo_odbc_def_lib_SQLAllocHandle
- as_fn_error $? "
- Your ODBC library does not appear to be ODBC 3 compatible.
- You should consider using iODBC or unixODBC instead, and loading your
- libraries as a driver in that environment; it will emulate the
- functions required for PDO support.
- " "$LINENO" 5
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$pdo_odbc_def_lib_SQLBindCol
- as_fn_error $? "Your ODBC library does not exist or there was an error. Check config.log for more information" "$LINENO" 5
- fi
- ext_builddir=ext/pdo_odbc
- ext_srcdir=$abs_srcdir/ext/pdo_odbc
- ext_dir=ext/pdo_odbc
- ac_extra=`echo "-I$pdo_cv_inc_path $PDO_ODBC_INCLUDE"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PDO_ODBC_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_odbc;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_odbc;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PDO_ODBC_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pdo_odbc="$shared_objects_pdo_odbc $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_odbc.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_odbc.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_odbc"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pdo_odbc.$suffix: $ext_builddir/pdo_odbc.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_odbc.$suffix \$(phplibdir)
- $ext_builddir/pdo_odbc.$suffix: \$(shared_objects_pdo_odbc) \$(PDO_ODBC_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pdo_odbc) \$(PDO_ODBC_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PDO_ODBC 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PDO_ODBC_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_odbc;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_odbc.c odbc_driver.c odbc_stmt.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_odbc;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pdo_odbc
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_ODBC_SHARED_LIBADD"
- am_i_shared=$PHP_PDO_ODBC_SHARED
- is_it_shared=$PHP_PDO_SHARED
- is_it_enabled=$PHP_PDO
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension pdo_odbc to build statically, but it
- depends on extension pdo, which you've configured to build shared.
- You either need to build pdo_odbc shared or build pdo statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension pdo_odbc, which depends on extension pdo,
- but you've either not enabled pdo, or have disabled it.
- " "$LINENO" 5
- fi
- fi
- php_with_pdo_pgsql=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support for PDO" >&5
- $as_echo_n "checking for PostgreSQL support for PDO... " >&6; }
- # Check whether --with-pdo-pgsql was given.
- if test "${with_pdo_pgsql+set}" = set; then :
- withval=$with_pdo_pgsql; PHP_PDO_PGSQL=$withval
- else
- PHP_PDO_PGSQL=no
- test "$PHP_ENABLE_ALL" && PHP_PDO_PGSQL=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PDO_PGSQL in
- shared,*)
- PHP_PDO_PGSQL=`echo "$PHP_PDO_PGSQL"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PDO_PGSQL=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PDO_PGSQL" != "no"; then
- if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
- as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
- fi
- if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
- PGSQL_INCLUDE=$PGSQL_INCLUDE
- else
- ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- PGSQL_INCLUDE="$ep_realdir"/`basename "$PGSQL_INCLUDE"`
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5
- $as_echo_n "checking for pg_config... " >&6; }
- for i in $PHP_PDO_PGSQL $PHP_PDO_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
- if test -x $i/pg_config; then
- PG_CONFIG="$i/pg_config"
- break;
- fi
- done
- if test -n "$PG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
- $as_echo "$PG_CONFIG" >&6; }
- PGSQL_INCLUDE=`$PG_CONFIG --includedir`
- PGSQL_LIBDIR=`$PG_CONFIG --libdir`
- $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- if test "$PHP_PDO_PGSQL" = "yes"; then
- PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql"
- else
- PGSQL_SEARCH_PATHS=$PHP_PDO_PGSQL
- fi
- for i in $PGSQL_SEARCH_PATHS; do
- for j in include include/pgsql include/postgres include/postgresql ""; do
- if test -r "$i/$j/libpq-fe.h"; then
- PGSQL_INC_BASE=$i
- PGSQL_INCLUDE=$i/$j
- if test -r "$i/$j/pg_config.h"; then
- $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
- fi
- fi
- done
- for j in $PHP_LIBDIR $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do
- if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then
- PGSQL_LIBDIR=$i/$j
- fi
- done
- done
- fi
- if test -z "$PGSQL_INCLUDE"; then
- as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5
- fi
- if test -z "$PGSQL_LIBDIR"; then
- as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5
- fi
- if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then
- as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5
- fi
- $as_echo "#define HAVE_PDO_PGSQL 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl dependencies" >&5
- $as_echo_n "checking for openssl dependencies... " >&6; }
- grep openssl $PGSQL_INCLUDE/libpq-fe.h >/dev/null 2>&1
- if test $? -eq 0 ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
- PDO_PGSQL_CFLAGS=`$PKG_CONFIG openssl --cflags`
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- old_LIBS=$LIBS
- old_LDFLAGS=$LDFLAGS
- LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5
- $as_echo_n "checking for PQprepare in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQprepare+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQprepare ();
- int
- main ()
- {
- return PQprepare ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQprepare=yes
- else
- ac_cv_lib_pq_PQprepare=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5
- $as_echo "$ac_cv_lib_pq_PQprepare" >&6; }
- if test "x$ac_cv_lib_pq_PQprepare" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBPQ 1
- _ACEOF
- LIBS="-lpq $LIBS"
- else
- as_fn_error $? "Unable to build the PDO PostgreSQL driver: a newer libpq is required" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5
- $as_echo_n "checking for PQexecParams in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQexecParams+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQexecParams ();
- int
- main ()
- {
- return PQexecParams ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQexecParams=yes
- else
- ac_cv_lib_pq_PQexecParams=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5
- $as_echo "$ac_cv_lib_pq_PQexecParams" >&6; }
- if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBPQ 1
- _ACEOF
- LIBS="-lpq $LIBS"
- else
- as_fn_error $? "Unable to build the PDO PostgreSQL driver: a newer libpq is required" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
- $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQescapeStringConn ();
- int
- main ()
- {
- return PQescapeStringConn ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQescapeStringConn=yes
- else
- ac_cv_lib_pq_PQescapeStringConn=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
- $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
- if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBPQ 1
- _ACEOF
- LIBS="-lpq $LIBS"
- else
- as_fn_error $? "Unable to build the PDO PostgreSQL driver: a newer libpq is required" "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5
- $as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQescapeByteaConn ();
- int
- main ()
- {
- return PQescapeByteaConn ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQescapeByteaConn=yes
- else
- ac_cv_lib_pq_PQescapeByteaConn=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5
- $as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; }
- if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBPQ 1
- _ACEOF
- LIBS="-lpq $LIBS"
- else
- as_fn_error $? "Unable to build the PDO PostgreSQL driver: a newer libpq is required" "$LINENO" 5
- fi
- LIBS=$old_LIBS
- LDFLAGS=$old_LDFLAGS
- if test "$ext_shared" = "yes"; then
- PDO_PGSQL_SHARED_LIBADD="-lpq $PDO_PGSQL_SHARED_LIBADD"
- if test -n "$PGSQL_LIBDIR"; then
- if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
- if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PGSQL_LIBDIR
- else
- ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_PGSQL_SHARED_LIBADD="-L$ai_p $PDO_PGSQL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PDO_PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_PGSQL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PGSQL_LIBDIR"; then
- if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
- if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PGSQL_LIBDIR
- else
- ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case pq in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lpq $LIBS"
- ;;
- esac
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_PGSQL_SHARED_LIBADD"
- if test "$PGSQL_INCLUDE" != "/usr/include"; then
- if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
- ai_p=$PGSQL_INCLUDE
- else
- ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PGSQL_INCLUDE"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if ${pdo_cv_inc_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$phpincludedir/ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
- $as_echo "$pdo_cv_inc_path" >&6; }
- if test -n "$pdo_cv_inc_path"; then
- :
- else
- as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
- fi
- ext_builddir=ext/pdo_pgsql
- ext_srcdir=$abs_srcdir/ext/pdo_pgsql
- ext_dir=ext/pdo_pgsql
- ac_extra=`echo "-I$pdo_cv_inc_path $PDO_PGSQL_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PDO_PGSQL_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_pgsql;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_pgsql;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PDO_PGSQL_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pdo_pgsql="$shared_objects_pdo_pgsql $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_pgsql.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_pgsql.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_pgsql"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pdo_pgsql.$suffix: $ext_builddir/pdo_pgsql.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_pgsql.$suffix \$(phplibdir)
- $ext_builddir/pdo_pgsql.$suffix: \$(shared_objects_pdo_pgsql) \$(PDO_PGSQL_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pdo_pgsql) \$(PDO_PGSQL_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PDO_PGSQL 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PDO_PGSQL_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_pgsql;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pdo_pgsql.c pgsql_driver.c pgsql_statement.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_pgsql;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pdo_pgsql
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- am_i_shared=$PHP_PDO_PGSQL_SHARED
- is_it_shared=$PHP_PDO_SHARED
- is_it_enabled=$PHP_PDO
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension pdo_pgsql to build statically, but it
- depends on extension pdo, which you've configured to build shared.
- You either need to build pdo_pgsql shared or build pdo statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension pdo_pgsql, which depends on extension pdo,
- but you've either not enabled pdo, or have disabled it.
- " "$LINENO" 5
- fi
- fi
- php_with_pdo_sqlite=$PHP_PDO
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite 3 support for PDO" >&5
- $as_echo_n "checking for sqlite 3 support for PDO... " >&6; }
- # Check whether --with-pdo-sqlite was given.
- if test "${with_pdo_sqlite+set}" = set; then :
- withval=$with_pdo_sqlite; PHP_PDO_SQLITE=$withval
- else
- PHP_PDO_SQLITE=$PHP_PDO
- test "$PHP_ENABLE_ALL" && PHP_PDO_SQLITE=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PDO_SQLITE in
- shared,*)
- PHP_PDO_SQLITE=`echo "$PHP_PDO_SQLITE"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PDO_SQLITE=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PDO_SQLITE" != "no"; then
- if test "$PHP_PDO" = "no" && test "$ext_shared" = "no"; then
- as_fn_error $? "PDO is not enabled! Add --enable-pdo to your configure line." "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if ${pdo_cv_inc_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PDO includes" >&5
- $as_echo_n "checking for PDO includes... " >&6; }
- if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$abs_srcdir/ext
- elif test -f $phpincludedir/ext/pdo/php_pdo_driver.h; then
- pdo_cv_inc_path=$phpincludedir/ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pdo_cv_inc_path" >&5
- $as_echo "$pdo_cv_inc_path" >&6; }
- if test -n "$pdo_cv_inc_path"; then
- :
- else
- as_fn_error $? "Cannot find php_pdo_driver.h." "$LINENO" 5
- fi
- php_pdo_sqlite_sources_core="pdo_sqlite.c sqlite_driver.c sqlite_statement.c"
- if test "$PHP_PDO_SQLITE" != "yes"; then
- SEARCH_PATH="$PHP_PDO_SQLITE /usr/local /usr" # you might want to change this
- SEARCH_FOR="/include/sqlite3.h" # you most likely want to change this
- if test -r $PHP_PDO_SQLITE/$SEARCH_FOR; then # path given as parameter
- PDO_SQLITE_DIR=$PHP_PDO_SQLITE
- else # search default path list
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3 files in default path" >&5
- $as_echo_n "checking for sqlite3 files in default path... " >&6; }
- for i in $SEARCH_PATH ; do
- if test -r $i/$SEARCH_FOR; then
- PDO_SQLITE_DIR=$i
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
- $as_echo "found in $i" >&6; }
- fi
- done
- fi
- if test -z "$PDO_SQLITE_DIR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- as_fn_error $? "Please reinstall the sqlite3 distribution" "$LINENO" 5
- fi
- if test "$PDO_SQLITE_DIR/include" != "/usr/include"; then
- if test -z "$PDO_SQLITE_DIR/include" || echo "$PDO_SQLITE_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$PDO_SQLITE_DIR/include
- else
- ep_dir=`echo $PDO_SQLITE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_SQLITE_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- LIBNAME=sqlite3
- LIBSYMBOL=sqlite3_open
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PDO_SQLITE_DIR/$PHP_LIBDIR -lm
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$LIBNAME''_$LIBSYMBOL" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBSYMBOL in -l$LIBNAME" >&5
- $as_echo_n "checking for $LIBSYMBOL in -l$LIBNAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$LIBNAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char $LIBSYMBOL ();
- int
- main ()
- {
- return $LIBSYMBOL ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$ext_shared" = "yes"; then
- PDO_SQLITE_SHARED_LIBADD="-l$LIBNAME $PDO_SQLITE_SHARED_LIBADD"
- if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then
- if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_SQLITE_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- PDO_SQLITE_SHARED_LIBADD="-L$ai_p $PDO_SQLITE_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PDO_SQLITE_SHARED_LIBADD="$ld_runpath_switch$ai_p $PDO_SQLITE_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PDO_SQLITE_DIR/$PHP_LIBDIR"; then
- if test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PDO_SQLITE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PDO_SQLITE_DIR/$PHP_LIBDIR" || echo "$PDO_SQLITE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PDO_SQLITE_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PDO_SQLITE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PDO_SQLITE_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $LIBNAME in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$LIBNAME $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_PDO_SQLITELIB 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$LIBNAME_$LIBSYMBOL
- as_fn_error $? "wrong sqlite lib version or lib not found" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_key in -lsqlite3" >&5
- $as_echo_n "checking for sqlite3_key in -lsqlite3... " >&6; }
- if ${ac_cv_lib_sqlite3_sqlite3_key+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsqlite3 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char sqlite3_key ();
- int
- main ()
- {
- return sqlite3_key ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_sqlite3_sqlite3_key=yes
- else
- ac_cv_lib_sqlite3_sqlite3_key=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_key" >&5
- $as_echo "$ac_cv_lib_sqlite3_sqlite3_key" >&6; }
- if test "x$ac_cv_lib_sqlite3_sqlite3_key" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_SQLITE3_KEY 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_sqlite3_sqlite3_key
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_close_v2 in -lsqlite3" >&5
- $as_echo_n "checking for sqlite3_close_v2 in -lsqlite3... " >&6; }
- if ${ac_cv_lib_sqlite3_sqlite3_close_v2+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsqlite3 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char sqlite3_close_v2 ();
- int
- main ()
- {
- return sqlite3_close_v2 ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_sqlite3_sqlite3_close_v2=yes
- else
- ac_cv_lib_sqlite3_sqlite3_close_v2=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_close_v2" >&5
- $as_echo "$ac_cv_lib_sqlite3_sqlite3_close_v2" >&6; }
- if test "x$ac_cv_lib_sqlite3_sqlite3_close_v2" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_SQLITE3_CLOSE_V2 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_sqlite3_sqlite3_close_v2
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD"
- ext_builddir=ext/pdo_sqlite
- ext_srcdir=$abs_srcdir/ext/pdo_sqlite
- ext_dir=ext/pdo_sqlite
- ac_extra=`echo "-I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PDO_SQLITE_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $php_pdo_sqlite_sources_core; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_sqlite;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PDO_SQLITE_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in $php_pdo_sqlite_sources_core; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_sqlite.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_sqlite.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pdo_sqlite.$suffix: $ext_builddir/pdo_sqlite.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_sqlite.$suffix \$(phplibdir)
- $ext_builddir/pdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PDO_SQLITE 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PDO_SQLITE_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $php_pdo_sqlite_sources_core; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_sqlite;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $php_pdo_sqlite_sources_core; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pdo_sqlite
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- else
- # use bundled libs
- if test "$enable_maintainer_zts" = "yes"; then
- threadsafe_flags="-DSQLITE_THREADSAFE=1"
- else
- threadsafe_flags="-DSQLITE_THREADSAFE=0"
- fi
- $as_echo "#define HAVE_SQLITE3_CLOSE_V2 1" >>confdefs.h
- other_flags="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS4=1 -DSQLITE_ENABLE_FTS5=1 -DSQLITE_ENABLE_JSON1=1 -DSQLITE_CORE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"
- if test "$PHP_INTL" = "yes" && test "$PHP_INTL_SHARED" != "yes"; then
- other_flags="$other_flags -DSQLITE_ENABLE_ICU=1"
- fi
- if test "$PHP_SQLITE3" != "yes"; then
- case ext/pdo_sqlite in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "ext/pdo_sqlite"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/ext/pdo_sqlite/"; ac_bdir="ext/pdo_sqlite/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in libsqlite/sqlite3.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- fi
- ext_builddir=ext/pdo_sqlite
- ext_srcdir=$abs_srcdir/ext/pdo_sqlite
- ext_dir=ext/pdo_sqlite
- ac_extra=`echo "-DPDO_SQLITE_BUNDLED=1 $other_flags $threadsafe_flags -I$pdo_cv_inc_path"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PDO_SQLITE_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $php_pdo_sqlite_sources_core; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_sqlite;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PDO_SQLITE_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in $php_pdo_sqlite_sources_core; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pdo_sqlite="$shared_objects_pdo_sqlite $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pdo_sqlite.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pdo_sqlite.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pdo_sqlite"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pdo_sqlite.$suffix: $ext_builddir/pdo_sqlite.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pdo_sqlite.$suffix \$(phplibdir)
- $ext_builddir/pdo_sqlite.$suffix: \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pdo_sqlite) \$(PDO_SQLITE_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PDO_SQLITE 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PDO_SQLITE_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $php_pdo_sqlite_sources_core; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pdo_sqlite;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $php_pdo_sqlite_sources_core; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pdo_sqlite;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pdo_sqlite
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST PDO_SQLITE_SHARED_LIBADD"
- am_i_shared=$PHP_PDO_SQLITE_SHARED
- is_it_shared=$PHP_SQLITE3_SHARED
- is_it_enabled=$PHP_SQLITE3
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension pdo_sqlite to build statically, but it
- depends on extension sqlite3, which you've configured to build shared.
- You either need to build pdo_sqlite shared or build sqlite3 statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension pdo_sqlite, which depends on extension sqlite3,
- but you've either not enabled sqlite3, or have disabled it.
- " "$LINENO" 5
- fi
- if test "$abs_srcdir/ext/sqlite3/libsqlite" != "/usr/include"; then
- if test -z "$abs_srcdir/ext/sqlite3/libsqlite" || echo "$abs_srcdir/ext/sqlite3/libsqlite" | grep '^/' >/dev/null ; then
- ai_p=$abs_srcdir/ext/sqlite3/libsqlite
- else
- ep_dir=`echo $abs_srcdir/ext/sqlite3/libsqlite|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$abs_srcdir/ext/sqlite3/libsqlite"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- for ac_func in usleep nanosleep
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_header in time.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
- if test "x$ac_cv_header_time_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_TIME_H 1
- _ACEOF
- fi
- done
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync in -lrt" >&5
- $as_echo_n "checking for fdatasync in -lrt... " >&6; }
- if ${ac_cv_lib_rt_fdatasync+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lrt $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char fdatasync ();
- int
- main ()
- {
- return fdatasync ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_rt_fdatasync=yes
- else
- ac_cv_lib_rt_fdatasync=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_fdatasync" >&5
- $as_echo "$ac_cv_lib_rt_fdatasync" >&6; }
- if test "x$ac_cv_lib_rt_fdatasync" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- case rt in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- PDO_SQLITE_SHARED_LIBADD="-lrt $PDO_SQLITE_SHARED_LIBADD"
- else
- case rt in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lrt $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_rt_fdatasync
- fi
- am_i_shared=$PHP_PDO_SQLITE_SHARED
- is_it_shared=$PHP_PDO_SHARED
- is_it_enabled=$PHP_PDO
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension pdo_sqlite to build statically, but it
- depends on extension pdo, which you've configured to build shared.
- You either need to build pdo_sqlite shared or build pdo statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension pdo_sqlite, which depends on extension pdo,
- but you've either not enabled pdo, or have disabled it.
- " "$LINENO" 5
- fi
- fi
- php_with_pgsql=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
- $as_echo_n "checking for PostgreSQL support... " >&6; }
- # Check whether --with-pgsql was given.
- if test "${with_pgsql+set}" = set; then :
- withval=$with_pgsql; PHP_PGSQL=$withval
- else
- PHP_PGSQL=no
- test "$PHP_ENABLE_ALL" && PHP_PGSQL=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PGSQL in
- shared,*)
- PHP_PGSQL=`echo "$PHP_PGSQL"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PGSQL=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PGSQL" != "no"; then
- if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
- PGSQL_INCLUDE=$PGSQL_INCLUDE
- else
- ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- PGSQL_INCLUDE="$ep_realdir"/`basename "$PGSQL_INCLUDE"`
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_config" >&5
- $as_echo_n "checking for pg_config... " >&6; }
- for i in $PHP_PGSQL $PHP_PGSQL/bin /usr/local/pgsql/bin /usr/local/bin /usr/bin ""; do
- if test -x $i/pg_config; then
- PG_CONFIG="$i/pg_config"
- break;
- fi
- done
- if test -n "$PG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
- $as_echo "$PG_CONFIG" >&6; }
- PGSQL_INCLUDE=`$PG_CONFIG --includedir`
- PGSQL_LIBDIR=`$PG_CONFIG --libdir`
- if test -r "$PGSQL_INCLUDE/pg_config.h"; then
- $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- if test "$PHP_PGSQL" = "yes"; then
- PGSQL_SEARCH_PATHS="/usr /usr/local /usr/local/pgsql"
- else
- PGSQL_SEARCH_PATHS=$PHP_PGSQL
- fi
- for i in $PGSQL_SEARCH_PATHS; do
- for j in include include/pgsql include/postgres include/postgresql ""; do
- if test -r "$i/$j/libpq-fe.h"; then
- PGSQL_INC_BASE=$i
- PGSQL_INCLUDE=$i/$j
- if test -r "$i/$j/pg_config.h"; then
- $as_echo "#define HAVE_PG_CONFIG_H 1" >>confdefs.h
- fi
- fi
- done
- for j in lib $PHP_LIBDIR/pgsql $PHP_LIBDIR/postgres $PHP_LIBDIR/postgresql ""; do
- if test -f "$i/$j/libpq.so" || test -f "$i/$j/libpq.a"; then
- PGSQL_LIBDIR=$i/$j
- fi
- done
- done
- fi
- if test -z "$PGSQL_INCLUDE"; then
- as_fn_error $? "Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path" "$LINENO" 5
- fi
- if test -z "$PGSQL_LIBDIR"; then
- as_fn_error $? "Cannot find libpq.so. Please specify correct PostgreSQL installation path" "$LINENO" 5
- fi
- if test -z "$PGSQL_INCLUDE" -a -z "$PGSQL_LIBDIR" ; then
- as_fn_error $? "Unable to find libpq anywhere under $PGSQL_SEARCH_PATHS" "$LINENO" 5
- fi
- $as_echo "#define HAVE_PGSQL 1" >>confdefs.h
- old_LIBS=$LIBS
- old_LDFLAGS=$LDFLAGS
- LDFLAGS="-L$PGSQL_LIBDIR $LDFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeString in -lpq" >&5
- $as_echo_n "checking for PQescapeString in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQescapeString+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQescapeString ();
- int
- main ()
- {
- return PQescapeString ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQescapeString=yes
- else
- ac_cv_lib_pq_PQescapeString=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeString" >&5
- $as_echo "$ac_cv_lib_pq_PQescapeString" >&6; }
- if test "x$ac_cv_lib_pq_PQescapeString" = xyes; then :
- $as_echo "#define HAVE_PQESCAPE 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQunescapeBytea in -lpq" >&5
- $as_echo_n "checking for PQunescapeBytea in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQunescapeBytea+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQunescapeBytea ();
- int
- main ()
- {
- return PQunescapeBytea ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQunescapeBytea=yes
- else
- ac_cv_lib_pq_PQunescapeBytea=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQunescapeBytea" >&5
- $as_echo "$ac_cv_lib_pq_PQunescapeBytea" >&6; }
- if test "x$ac_cv_lib_pq_PQunescapeBytea" = xyes; then :
- $as_echo "#define HAVE_PQUNESCAPEBYTEA 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetnonblocking in -lpq" >&5
- $as_echo_n "checking for PQsetnonblocking in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQsetnonblocking+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQsetnonblocking ();
- int
- main ()
- {
- return PQsetnonblocking ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQsetnonblocking=yes
- else
- ac_cv_lib_pq_PQsetnonblocking=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetnonblocking" >&5
- $as_echo "$ac_cv_lib_pq_PQsetnonblocking" >&6; }
- if test "x$ac_cv_lib_pq_PQsetnonblocking" = xyes; then :
- $as_echo "#define HAVE_PQSETNONBLOCKING 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQcmdTuples in -lpq" >&5
- $as_echo_n "checking for PQcmdTuples in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQcmdTuples+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQcmdTuples ();
- int
- main ()
- {
- return PQcmdTuples ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQcmdTuples=yes
- else
- ac_cv_lib_pq_PQcmdTuples=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQcmdTuples" >&5
- $as_echo "$ac_cv_lib_pq_PQcmdTuples" >&6; }
- if test "x$ac_cv_lib_pq_PQcmdTuples" = xyes; then :
- $as_echo "#define HAVE_PQCMDTUPLES 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQoidValue in -lpq" >&5
- $as_echo_n "checking for PQoidValue in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQoidValue+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQoidValue ();
- int
- main ()
- {
- return PQoidValue ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQoidValue=yes
- else
- ac_cv_lib_pq_PQoidValue=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQoidValue" >&5
- $as_echo "$ac_cv_lib_pq_PQoidValue" >&6; }
- if test "x$ac_cv_lib_pq_PQoidValue" = xyes; then :
- $as_echo "#define HAVE_PQOIDVALUE 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQclientEncoding in -lpq" >&5
- $as_echo_n "checking for PQclientEncoding in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQclientEncoding+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQclientEncoding ();
- int
- main ()
- {
- return PQclientEncoding ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQclientEncoding=yes
- else
- ac_cv_lib_pq_PQclientEncoding=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQclientEncoding" >&5
- $as_echo "$ac_cv_lib_pq_PQclientEncoding" >&6; }
- if test "x$ac_cv_lib_pq_PQclientEncoding" = xyes; then :
- $as_echo "#define HAVE_PQCLIENTENCODING 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQparameterStatus in -lpq" >&5
- $as_echo_n "checking for PQparameterStatus in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQparameterStatus+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQparameterStatus ();
- int
- main ()
- {
- return PQparameterStatus ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQparameterStatus=yes
- else
- ac_cv_lib_pq_PQparameterStatus=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQparameterStatus" >&5
- $as_echo "$ac_cv_lib_pq_PQparameterStatus" >&6; }
- if test "x$ac_cv_lib_pq_PQparameterStatus" = xyes; then :
- $as_echo "#define HAVE_PQPARAMETERSTATUS 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprotocolVersion in -lpq" >&5
- $as_echo_n "checking for PQprotocolVersion in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQprotocolVersion+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQprotocolVersion ();
- int
- main ()
- {
- return PQprotocolVersion ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQprotocolVersion=yes
- else
- ac_cv_lib_pq_PQprotocolVersion=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprotocolVersion" >&5
- $as_echo "$ac_cv_lib_pq_PQprotocolVersion" >&6; }
- if test "x$ac_cv_lib_pq_PQprotocolVersion" = xyes; then :
- $as_echo "#define HAVE_PQPROTOCOLVERSION 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQtransactionStatus in -lpq" >&5
- $as_echo_n "checking for PQtransactionStatus in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQtransactionStatus+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQtransactionStatus ();
- int
- main ()
- {
- return PQtransactionStatus ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQtransactionStatus=yes
- else
- ac_cv_lib_pq_PQtransactionStatus=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQtransactionStatus" >&5
- $as_echo "$ac_cv_lib_pq_PQtransactionStatus" >&6; }
- if test "x$ac_cv_lib_pq_PQtransactionStatus" = xyes; then :
- $as_echo "#define HAVE_PGTRANSACTIONSTATUS 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecParams in -lpq" >&5
- $as_echo_n "checking for PQexecParams in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQexecParams+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQexecParams ();
- int
- main ()
- {
- return PQexecParams ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQexecParams=yes
- else
- ac_cv_lib_pq_PQexecParams=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecParams" >&5
- $as_echo "$ac_cv_lib_pq_PQexecParams" >&6; }
- if test "x$ac_cv_lib_pq_PQexecParams" = xyes; then :
- $as_echo "#define HAVE_PQEXECPARAMS 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQprepare in -lpq" >&5
- $as_echo_n "checking for PQprepare in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQprepare+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQprepare ();
- int
- main ()
- {
- return PQprepare ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQprepare=yes
- else
- ac_cv_lib_pq_PQprepare=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQprepare" >&5
- $as_echo "$ac_cv_lib_pq_PQprepare" >&6; }
- if test "x$ac_cv_lib_pq_PQprepare" = xyes; then :
- $as_echo "#define HAVE_PQPREPARE 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQexecPrepared in -lpq" >&5
- $as_echo_n "checking for PQexecPrepared in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQexecPrepared+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQexecPrepared ();
- int
- main ()
- {
- return PQexecPrepared ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQexecPrepared=yes
- else
- ac_cv_lib_pq_PQexecPrepared=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQexecPrepared" >&5
- $as_echo "$ac_cv_lib_pq_PQexecPrepared" >&6; }
- if test "x$ac_cv_lib_pq_PQexecPrepared" = xyes; then :
- $as_echo "#define HAVE_PQEXECPREPARED 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQresultErrorField in -lpq" >&5
- $as_echo_n "checking for PQresultErrorField in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQresultErrorField+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQresultErrorField ();
- int
- main ()
- {
- return PQresultErrorField ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQresultErrorField=yes
- else
- ac_cv_lib_pq_PQresultErrorField=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQresultErrorField" >&5
- $as_echo "$ac_cv_lib_pq_PQresultErrorField" >&6; }
- if test "x$ac_cv_lib_pq_PQresultErrorField" = xyes; then :
- $as_echo "#define HAVE_PQRESULTERRORFIELD 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryParams in -lpq" >&5
- $as_echo_n "checking for PQsendQueryParams in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQsendQueryParams+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQsendQueryParams ();
- int
- main ()
- {
- return PQsendQueryParams ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQsendQueryParams=yes
- else
- ac_cv_lib_pq_PQsendQueryParams=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryParams" >&5
- $as_echo "$ac_cv_lib_pq_PQsendQueryParams" >&6; }
- if test "x$ac_cv_lib_pq_PQsendQueryParams" = xyes; then :
- $as_echo "#define HAVE_PQSENDQUERYPARAMS 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendPrepare in -lpq" >&5
- $as_echo_n "checking for PQsendPrepare in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQsendPrepare+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQsendPrepare ();
- int
- main ()
- {
- return PQsendPrepare ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQsendPrepare=yes
- else
- ac_cv_lib_pq_PQsendPrepare=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendPrepare" >&5
- $as_echo "$ac_cv_lib_pq_PQsendPrepare" >&6; }
- if test "x$ac_cv_lib_pq_PQsendPrepare" = xyes; then :
- $as_echo "#define HAVE_PQSENDPREPARE 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsendQueryPrepared in -lpq" >&5
- $as_echo_n "checking for PQsendQueryPrepared in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQsendQueryPrepared+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQsendQueryPrepared ();
- int
- main ()
- {
- return PQsendQueryPrepared ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQsendQueryPrepared=yes
- else
- ac_cv_lib_pq_PQsendQueryPrepared=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsendQueryPrepared" >&5
- $as_echo "$ac_cv_lib_pq_PQsendQueryPrepared" >&6; }
- if test "x$ac_cv_lib_pq_PQsendQueryPrepared" = xyes; then :
- $as_echo "#define HAVE_PQSENDQUERYPREPARED 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
- $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQputCopyData ();
- int
- main ()
- {
- return PQputCopyData ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQputCopyData=yes
- else
- ac_cv_lib_pq_PQputCopyData=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
- $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
- if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
- $as_echo "#define HAVE_PQPUTCOPYDATA 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyEnd in -lpq" >&5
- $as_echo_n "checking for PQputCopyEnd in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQputCopyEnd+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQputCopyEnd ();
- int
- main ()
- {
- return PQputCopyEnd ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQputCopyEnd=yes
- else
- ac_cv_lib_pq_PQputCopyEnd=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyEnd" >&5
- $as_echo "$ac_cv_lib_pq_PQputCopyEnd" >&6; }
- if test "x$ac_cv_lib_pq_PQputCopyEnd" = xyes; then :
- $as_echo "#define HAVE_PQPUTCOPYEND 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQgetCopyData in -lpq" >&5
- $as_echo_n "checking for PQgetCopyData in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQgetCopyData+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQgetCopyData ();
- int
- main ()
- {
- return PQgetCopyData ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQgetCopyData=yes
- else
- ac_cv_lib_pq_PQgetCopyData=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQgetCopyData" >&5
- $as_echo "$ac_cv_lib_pq_PQgetCopyData" >&6; }
- if test "x$ac_cv_lib_pq_PQgetCopyData" = xyes; then :
- $as_echo "#define HAVE_PQGETCOPYDATA 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQfreemem in -lpq" >&5
- $as_echo_n "checking for PQfreemem in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQfreemem+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQfreemem ();
- int
- main ()
- {
- return PQfreemem ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQfreemem=yes
- else
- ac_cv_lib_pq_PQfreemem=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQfreemem" >&5
- $as_echo "$ac_cv_lib_pq_PQfreemem" >&6; }
- if test "x$ac_cv_lib_pq_PQfreemem" = xyes; then :
- $as_echo "#define HAVE_PQFREEMEM 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQsetErrorVerbosity in -lpq" >&5
- $as_echo_n "checking for PQsetErrorVerbosity in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQsetErrorVerbosity+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQsetErrorVerbosity ();
- int
- main ()
- {
- return PQsetErrorVerbosity ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQsetErrorVerbosity=yes
- else
- ac_cv_lib_pq_PQsetErrorVerbosity=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQsetErrorVerbosity" >&5
- $as_echo "$ac_cv_lib_pq_PQsetErrorVerbosity" >&6; }
- if test "x$ac_cv_lib_pq_PQsetErrorVerbosity" = xyes; then :
- $as_echo "#define HAVE_PQSETERRORVERBOSITY 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQftable in -lpq" >&5
- $as_echo_n "checking for PQftable in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQftable+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQftable ();
- int
- main ()
- {
- return PQftable ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQftable=yes
- else
- ac_cv_lib_pq_PQftable=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQftable" >&5
- $as_echo "$ac_cv_lib_pq_PQftable" >&6; }
- if test "x$ac_cv_lib_pq_PQftable" = xyes; then :
- $as_echo "#define HAVE_PQFTABLE 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
- $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQescapeStringConn ();
- int
- main ()
- {
- return PQescapeStringConn ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQescapeStringConn=yes
- else
- ac_cv_lib_pq_PQescapeStringConn=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
- $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
- if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
- $as_echo "#define HAVE_PQESCAPE_CONN 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeByteaConn in -lpq" >&5
- $as_echo_n "checking for PQescapeByteaConn in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQescapeByteaConn+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQescapeByteaConn ();
- int
- main ()
- {
- return PQescapeByteaConn ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQescapeByteaConn=yes
- else
- ac_cv_lib_pq_PQescapeByteaConn=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeByteaConn" >&5
- $as_echo "$ac_cv_lib_pq_PQescapeByteaConn" >&6; }
- if test "x$ac_cv_lib_pq_PQescapeByteaConn" = xyes; then :
- $as_echo "#define HAVE_PQESCAPE_BYTEA_CONN 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char in -lpq" >&5
- $as_echo_n "checking for pg_encoding_to_char in -lpq... " >&6; }
- if ${ac_cv_lib_pq_pg_encoding_to_char+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char pg_encoding_to_char ();
- int
- main ()
- {
- return pg_encoding_to_char ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_pg_encoding_to_char=yes
- else
- ac_cv_lib_pq_pg_encoding_to_char=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_pg_encoding_to_char" >&5
- $as_echo "$ac_cv_lib_pq_pg_encoding_to_char" >&6; }
- if test "x$ac_cv_lib_pq_pg_encoding_to_char" = xyes; then :
- $as_echo "#define HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_create in -lpq" >&5
- $as_echo_n "checking for lo_create in -lpq... " >&6; }
- if ${ac_cv_lib_pq_lo_create+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char lo_create ();
- int
- main ()
- {
- return lo_create ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_lo_create=yes
- else
- ac_cv_lib_pq_lo_create=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_create" >&5
- $as_echo "$ac_cv_lib_pq_lo_create" >&6; }
- if test "x$ac_cv_lib_pq_lo_create" = xyes; then :
- $as_echo "#define HAVE_PG_LO_CREATE 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_import_with_oid in -lpq" >&5
- $as_echo_n "checking for lo_import_with_oid in -lpq... " >&6; }
- if ${ac_cv_lib_pq_lo_import_with_oid+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char lo_import_with_oid ();
- int
- main ()
- {
- return lo_import_with_oid ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_lo_import_with_oid=yes
- else
- ac_cv_lib_pq_lo_import_with_oid=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_import_with_oid" >&5
- $as_echo "$ac_cv_lib_pq_lo_import_with_oid" >&6; }
- if test "x$ac_cv_lib_pq_lo_import_with_oid" = xyes; then :
- $as_echo "#define HAVE_PG_LO_IMPORT_WITH_OID 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_truncate in -lpq" >&5
- $as_echo_n "checking for lo_truncate in -lpq... " >&6; }
- if ${ac_cv_lib_pq_lo_truncate+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char lo_truncate ();
- int
- main ()
- {
- return lo_truncate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_lo_truncate=yes
- else
- ac_cv_lib_pq_lo_truncate=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_truncate" >&5
- $as_echo "$ac_cv_lib_pq_lo_truncate" >&6; }
- if test "x$ac_cv_lib_pq_lo_truncate" = xyes; then :
- $as_echo "#define HAVE_PG_LO_TRUNCATE 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lo_truncate64 in -lpq" >&5
- $as_echo_n "checking for lo_truncate64 in -lpq... " >&6; }
- if ${ac_cv_lib_pq_lo_truncate64+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char lo_truncate64 ();
- int
- main ()
- {
- return lo_truncate64 ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_lo_truncate64=yes
- else
- ac_cv_lib_pq_lo_truncate64=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_lo_truncate64" >&5
- $as_echo "$ac_cv_lib_pq_lo_truncate64" >&6; }
- if test "x$ac_cv_lib_pq_lo_truncate64" = xyes; then :
- $as_echo "#define HAVE_PG_LO64 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeLiteral in -lpq" >&5
- $as_echo_n "checking for PQescapeLiteral in -lpq... " >&6; }
- if ${ac_cv_lib_pq_PQescapeLiteral+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpq $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char PQescapeLiteral ();
- int
- main ()
- {
- return PQescapeLiteral ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_pq_PQescapeLiteral=yes
- else
- ac_cv_lib_pq_PQescapeLiteral=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeLiteral" >&5
- $as_echo "$ac_cv_lib_pq_PQescapeLiteral" >&6; }
- if test "x$ac_cv_lib_pq_PQescapeLiteral" = xyes; then :
- $as_echo "#define HAVE_PQESCAPELITERAL 1" >>confdefs.h
- fi
- LIBS=$old_LIBS
- LDFLAGS=$old_LDFLAGS
- if test "$ext_shared" = "yes"; then
- PGSQL_SHARED_LIBADD="-lpq $PGSQL_SHARED_LIBADD"
- if test -n "$PGSQL_LIBDIR"; then
- if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
- if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PGSQL_LIBDIR
- else
- ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- PGSQL_SHARED_LIBADD="-L$ai_p $PGSQL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PGSQL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PGSQL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PGSQL_LIBDIR"; then
- if test "$PGSQL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PGSQL_LIBDIR" != "/usr/lib"; then
- if test -z "$PGSQL_LIBDIR" || echo "$PGSQL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PGSQL_LIBDIR
- else
- ep_dir=`echo $PGSQL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PGSQL_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case pq in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lpq $LIBS"
- ;;
- esac
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST PGSQL_SHARED_LIBADD"
- if test "$PGSQL_INCLUDE" != "/usr/include"; then
- if test -z "$PGSQL_INCLUDE" || echo "$PGSQL_INCLUDE" | grep '^/' >/dev/null ; then
- ai_p=$PGSQL_INCLUDE
- else
- ep_dir=`echo $PGSQL_INCLUDE|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PGSQL_INCLUDE"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ext_builddir=ext/pgsql
- ext_srcdir=$abs_srcdir/ext/pgsql
- ext_dir=ext/pgsql
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PGSQL_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pgsql.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pgsql;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pgsql;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PGSQL_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in pgsql.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pgsql="$shared_objects_pgsql $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pgsql.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pgsql.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pgsql"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pgsql.$suffix: $ext_builddir/pgsql.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pgsql.$suffix \$(phplibdir)
- $ext_builddir/pgsql.$suffix: \$(shared_objects_pgsql) \$(PGSQL_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pgsql) \$(PGSQL_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PGSQL 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PGSQL_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pgsql.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pgsql;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pgsql.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pgsql;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pgsql
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- fi
- php_enable_phar=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phar archive support" >&5
- $as_echo_n "checking for phar archive support... " >&6; }
- # Check whether --enable-phar was given.
- if test "${enable_phar+set}" = set; then :
- enableval=$enable_phar; PHP_PHAR=$enableval
- else
- PHP_PHAR=yes
- test "$PHP_ENABLE_ALL" && PHP_PHAR=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PHAR in
- shared,*)
- PHP_PHAR=`echo "$PHP_PHAR"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PHAR=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PHAR" != "no"; then
- ext_builddir=ext/phar
- ext_srcdir=$abs_srcdir/ext/phar
- ext_dir=ext/phar
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PHAR_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC phar;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC phar;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PHAR_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_phar="$shared_objects_phar $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phar.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/phar.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_phar"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/phar.$suffix: $ext_builddir/phar.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/phar.$suffix \$(phplibdir)
- $ext_builddir/phar.$suffix: \$(shared_objects_phar) \$(PHAR_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_phar) \$(PHAR_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PHAR 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PHAR_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC phar;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in util.c tar.c zip.c stream.c func_interceptors.c dirstream.c phar.c phar_object.c phar_path_check.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC phar;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=phar
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for phar openssl support" >&5
- $as_echo_n "checking for phar openssl support... " >&6; }
- if test "$PHP_HASH_SHARED" != "yes"; then
- if test "$PHP_HASH" != "no"; then
- $as_echo "#define PHAR_HASH_OK 1" >>confdefs.h
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&5
- $as_echo "$as_me: WARNING: Phar: sha256/sha512 signature support disabled if ext/hash is built shared" >&2;}
- fi
- if test "$PHP_OPENSSL_SHARED" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (shared openssl)" >&5
- $as_echo "no (shared openssl)" >&6; }
- else
- if test "$PHP_OPENSSL" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define PHAR_HAVE_OPENSSL 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- am_i_shared=$PHP_PHAR_SHARED
- is_it_shared=$PHP_HASH_SHARED
- is_it_enabled=$PHP_HASH
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension phar to build statically, but it
- depends on extension hash, which you've configured to build shared.
- You either need to build phar shared or build hash statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
- as_fn_error $? "
- You've configured extension phar, which depends on extension hash,
- but you've either not enabled hash, or have disabled it.
- " "$LINENO" 5
- fi
- am_i_shared=$PHP_PHAR_SHARED
- is_it_shared=$PHP_SPL_SHARED
- is_it_enabled=$PHP_SPL
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension phar to build statically, but it
- depends on extension spl, which you've configured to build shared.
- You either need to build phar shared or build spl statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
- as_fn_error $? "
- You've configured extension phar, which depends on extension spl,
- but you've either not enabled spl, or have disabled it.
- " "$LINENO" 5
- fi
- src=$ext_srcdir/Makefile.frag
- ac_srcdir=$ext_srcdir
- ac_builddir=$ext_builddir
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- header_path=ext/phar
- for header_file in php_phar.h; do
- hp_hf="$header_path/$header_file"
- unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
- fi
- done
- PHP_OUTPUT_FILES="$PHP_OUTPUT_FILES ext/phar/phar.1 ext/phar/phar.phar.1"
- fi
- php_enable_posix=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable POSIX-like functions" >&5
- $as_echo_n "checking whether to enable POSIX-like functions... " >&6; }
- # Check whether --enable-posix was given.
- if test "${enable_posix+set}" = set; then :
- enableval=$enable_posix; PHP_POSIX=$enableval
- else
- PHP_POSIX=yes
- test "$PHP_ENABLE_ALL" && PHP_POSIX=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_POSIX in
- shared,*)
- PHP_POSIX=`echo "$PHP_POSIX"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_POSIX=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_POSIX" = "yes"; then
- $as_echo "#define HAVE_POSIX 1" >>confdefs.h
- ext_builddir=ext/posix
- ext_srcdir=$abs_srcdir/ext/posix
- ext_dir=ext/posix
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_POSIX_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in posix.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC posix;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC posix;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_POSIX_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in posix.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_posix="$shared_objects_posix $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/posix.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/posix.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_posix"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/posix.$suffix: $ext_builddir/posix.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/posix.$suffix \$(phplibdir)
- $ext_builddir/posix.$suffix: \$(shared_objects_posix) \$(POSIX_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_posix) \$(POSIX_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_POSIX 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_POSIX_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in posix.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC posix;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in posix.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC posix;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=posix
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- for ac_header in sys/mkdev.h sys/sysmacros.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_func in seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod setrlimit getrlimit getlogin getgroups makedev initgroups getpwuid_r getgrgid_r
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ttyname_r() implementation" >&5
- $as_echo_n "checking for working ttyname_r() implementation... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&5
- $as_echo "no, cannot detect working ttyname_r() when cross compiling. posix_ttyname() will be thread-unsafe" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <unistd.h>
- int main(int argc, char *argv[])
- {
- char buf[64];
- return !ttyname_r(0, buf, 64);
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define HAVE_TTYNAME_R 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, posix_ttyname() will be thread-unsafe" >&5
- $as_echo "no, posix_ttyname() will be thread-unsafe" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utsname.domainname" >&5
- $as_echo_n "checking for utsname.domainname... " >&6; }
- if ${ac_cv_have_utsname_domainname+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _GNU_SOURCE
- #include <sys/utsname.h>
- int
- main ()
- {
- return sizeof(((struct utsname *)0)->domainname);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_have_utsname_domainname=yes
- else
- ac_cv_have_utsname_domainname=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_utsname_domainname" >&5
- $as_echo "$ac_cv_have_utsname_domainname" >&6; }
- if test "$ac_cv_have_utsname_domainname" = yes; then
- $as_echo "#define HAVE_UTSNAME_DOMAINNAME 1" >>confdefs.h
- fi
- fi
- php_with_pspell=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PSPELL support" >&5
- $as_echo_n "checking for PSPELL support... " >&6; }
- # Check whether --with-pspell was given.
- if test "${with_pspell+set}" = set; then :
- withval=$with_pspell; PHP_PSPELL=$withval
- else
- PHP_PSPELL=no
- test "$PHP_ENABLE_ALL" && PHP_PSPELL=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PSPELL in
- shared,*)
- PHP_PSPELL=`echo "$PHP_PSPELL"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PSPELL=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PSPELL" != "no"; then
- ext_builddir=ext/pspell
- ext_srcdir=$abs_srcdir/ext/pspell
- ext_dir=ext/pspell
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_PSPELL_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pspell.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pspell;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC pspell;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_PSPELL_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in pspell.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_pspell="$shared_objects_pspell $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pspell.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/pspell.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pspell"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/pspell.$suffix: $ext_builddir/pspell.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/pspell.$suffix \$(phplibdir)
- $ext_builddir/pspell.$suffix: \$(shared_objects_pspell) \$(PSPELL_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_pspell) \$(PSPELL_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_PSPELL 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_PSPELL_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pspell.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC pspell;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in pspell.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC pspell;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=pspell
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- if test "$PHP_PSPELL" != "yes"; then
- PSPELL_SEARCH_DIRS=$PHP_PSPELL
- else
- PSPELL_SEARCH_DIRS="/usr/local /usr"
- fi
- for i in $PSPELL_SEARCH_DIRS; do
- if test -f $i/include/pspell/pspell.h; then
- PSPELL_DIR=$i
- PSPELL_INCDIR=$i/include/pspell
- elif test -f $i/include/pspell.h; then
- PSPELL_DIR=$i
- PSPELL_INCDIR=$i/include
- fi
- done
- if test -z "$PSPELL_DIR"; then
- as_fn_error $? "Cannot find pspell" "$LINENO" 5
- fi
- PSPELL_LIBDIR=$PSPELL_DIR/$PHP_LIBDIR
- if test "$ext_shared" = "yes"; then
- PSPELL_SHARED_LIBADD="-lpspell $PSPELL_SHARED_LIBADD"
- if test -n "$PSPELL_LIBDIR"; then
- if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
- if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PSPELL_LIBDIR
- else
- ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PSPELL_LIBDIR"; then
- if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
- if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PSPELL_LIBDIR
- else
- ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case pspell in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lpspell $LIBS"
- ;;
- esac
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$PSPELL_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for new_aspell_config in -laspell" >&5
- $as_echo_n "checking for new_aspell_config in -laspell... " >&6; }
- if ${ac_cv_lib_aspell_new_aspell_config+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-laspell $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char new_aspell_config ();
- int
- main ()
- {
- return new_aspell_config ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_aspell_new_aspell_config=yes
- else
- ac_cv_lib_aspell_new_aspell_config=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aspell_new_aspell_config" >&5
- $as_echo "$ac_cv_lib_aspell_new_aspell_config" >&6; }
- if test "x$ac_cv_lib_aspell_new_aspell_config" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$ext_shared" = "yes"; then
- PSPELL_SHARED_LIBADD="-laspell $PSPELL_SHARED_LIBADD"
- if test -n "$PSPELL_LIBDIR"; then
- if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
- if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PSPELL_LIBDIR
- else
- ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- PSPELL_SHARED_LIBADD="-L$ai_p $PSPELL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && PSPELL_SHARED_LIBADD="$ld_runpath_switch$ai_p $PSPELL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PSPELL_LIBDIR"; then
- if test "$PSPELL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PSPELL_LIBDIR" != "/usr/lib"; then
- if test -z "$PSPELL_LIBDIR" || echo "$PSPELL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PSPELL_LIBDIR
- else
- ep_dir=`echo $PSPELL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PSPELL_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case aspell in
- c|c_r|pthread*) ;;
- *)
- LIBS="-laspell $LIBS"
- ;;
- esac
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_aspell_new_aspell_config
- fi
- if test "$PSPELL_INCDIR" != "/usr/include"; then
- if test -z "$PSPELL_INCDIR" || echo "$PSPELL_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$PSPELL_INCDIR
- else
- ep_dir=`echo $PSPELL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PSPELL_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST PSPELL_SHARED_LIBADD"
- $as_echo "#define HAVE_PSPELL 1" >>confdefs.h
- fi
- php_with_libedit=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libedit readline replacement" >&5
- $as_echo_n "checking for libedit readline replacement... " >&6; }
- # Check whether --with-libedit was given.
- if test "${with_libedit+set}" = set; then :
- withval=$with_libedit; PHP_LIBEDIT=$withval
- else
- PHP_LIBEDIT=no
- test "$PHP_ENABLE_ALL" && PHP_LIBEDIT=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_LIBEDIT in
- shared,*)
- PHP_LIBEDIT=`echo "$PHP_LIBEDIT"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_LIBEDIT=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_LIBEDIT" = "no"; then
- php_with_readline=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline support" >&5
- $as_echo_n "checking for readline support... " >&6; }
- # Check whether --with-readline was given.
- if test "${with_readline+set}" = set; then :
- withval=$with_readline; PHP_READLINE=$withval
- else
- PHP_READLINE=no
- test "$PHP_ENABLE_ALL" && PHP_READLINE=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_READLINE in
- shared,*)
- PHP_READLINE=`echo "$PHP_READLINE"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_READLINE=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- else
- php_with_readline=no
- fi
- if test "$PHP_READLINE" && test "$PHP_READLINE" != "no"; then
- for i in $PHP_READLINE /usr/local /usr; do
- test -f $i/include/readline/readline.h && READLINE_DIR=$i && break
- done
- if test -z "$READLINE_DIR"; then
- as_fn_error $? "Please reinstall readline - I cannot find readline.h" "$LINENO" 5
- fi
- if test "$READLINE_DIR/include" != "/usr/include"; then
- if test -z "$READLINE_DIR/include" || echo "$READLINE_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$READLINE_DIR/include
- else
- ep_dir=`echo $READLINE_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$READLINE_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- PHP_READLINE_LIBS=""
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
- $as_echo_n "checking for tgetent in -lncurses... " >&6; }
- if ${ac_cv_lib_ncurses_tgetent+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lncurses $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char tgetent ();
- int
- main ()
- {
- return tgetent ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ncurses_tgetent=yes
- else
- ac_cv_lib_ncurses_tgetent=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
- $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
- if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
- case ncurses in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD"
- else
- case ncurses in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lncurses $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- PHP_READLINE_LIBS="$PHP_READLINE_LIBS -lncurses"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
- $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
- if ${ac_cv_lib_termcap_tgetent+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltermcap $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char tgetent ();
- int
- main ()
- {
- return tgetent ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_termcap_tgetent=yes
- else
- ac_cv_lib_termcap_tgetent=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
- $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
- if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
- case termcap in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD"
- else
- case termcap in
- c|c_r|pthread*) ;;
- *)
- LIBS="-ltermcap $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- PHP_READLINE_LIBS="$PHP_READLINE_LIBS -ltermcap"
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
- $as_echo_n "checking for readline in -lreadline... " >&6; }
- if ${ac_cv_lib_readline_readline+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lreadline $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char readline ();
- int
- main ()
- {
- return readline ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_readline_readline=yes
- else
- ac_cv_lib_readline_readline=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
- $as_echo "$ac_cv_lib_readline_readline" >&6; }
- if test "x$ac_cv_lib_readline_readline" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$ext_shared" = "yes"; then
- READLINE_SHARED_LIBADD="-lreadline $READLINE_SHARED_LIBADD"
- if test -n "$READLINE_DIR/$PHP_LIBDIR"; then
- if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$READLINE_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$READLINE_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$READLINE_DIR/$PHP_LIBDIR"; then
- if test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$READLINE_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$READLINE_DIR/$PHP_LIBDIR" || echo "$READLINE_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$READLINE_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $READLINE_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$READLINE_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case readline in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lreadline $LIBS"
- ;;
- esac
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_readline_readline
- as_fn_error $? "readline library not found" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pending_input in -lreadline" >&5
- $as_echo_n "checking for rl_pending_input in -lreadline... " >&6; }
- if ${ac_cv_lib_readline_rl_pending_input+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lreadline $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char rl_pending_input ();
- int
- main ()
- {
- return rl_pending_input ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_readline_rl_pending_input=yes
- else
- ac_cv_lib_readline_rl_pending_input=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pending_input" >&5
- $as_echo "$ac_cv_lib_readline_rl_pending_input" >&6; }
- if test "x$ac_cv_lib_readline_rl_pending_input" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_readline_rl_pending_input
- as_fn_error $? "invalid readline installation detected. Try --with-libedit instead." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -lreadline" >&5
- $as_echo_n "checking for rl_callback_read_char in -lreadline... " >&6; }
- if ${ac_cv_lib_readline_rl_callback_read_char+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lreadline $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char rl_callback_read_char ();
- int
- main ()
- {
- return rl_callback_read_char ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_readline_rl_callback_read_char=yes
- else
- ac_cv_lib_readline_rl_callback_read_char=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_read_char" >&5
- $as_echo "$ac_cv_lib_readline_rl_callback_read_char" >&6; }
- if test "x$ac_cv_lib_readline_rl_callback_read_char" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_readline_rl_callback_read_char
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -lreadline" >&5
- $as_echo_n "checking for rl_on_new_line in -lreadline... " >&6; }
- if ${ac_cv_lib_readline_rl_on_new_line+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lreadline $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char rl_on_new_line ();
- int
- main ()
- {
- return rl_on_new_line ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_readline_rl_on_new_line=yes
- else
- ac_cv_lib_readline_rl_on_new_line=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_on_new_line" >&5
- $as_echo "$ac_cv_lib_readline_rl_on_new_line" >&6; }
- if test "x$ac_cv_lib_readline_rl_on_new_line" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_readline_rl_on_new_line
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5
- $as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; }
- if ${ac_cv_lib_readline_rl_completion_matches+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lreadline $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char rl_completion_matches ();
- int
- main ()
- {
- return rl_completion_matches ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_readline_rl_completion_matches=yes
- else
- ac_cv_lib_readline_rl_completion_matches=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5
- $as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; }
- if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_readline_rl_completion_matches
- fi
- $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
- elif test "$PHP_LIBEDIT" != "no"; then
- for i in $PHP_LIBEDIT /usr/local /usr; do
- test -f $i/include/editline/readline.h && LIBEDIT_DIR=$i && break
- done
- if test -z "$LIBEDIT_DIR"; then
- as_fn_error $? "Please reinstall libedit - I cannot find readline.h" "$LINENO" 5
- fi
- if test "$LIBEDIT_DIR/include" != "/usr/include"; then
- if test -z "$LIBEDIT_DIR/include" || echo "$LIBEDIT_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$LIBEDIT_DIR/include
- else
- ep_dir=`echo $LIBEDIT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LIBEDIT_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
- $as_echo_n "checking for tgetent in -lncurses... " >&6; }
- if ${ac_cv_lib_ncurses_tgetent+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lncurses $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char tgetent ();
- int
- main ()
- {
- return tgetent ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ncurses_tgetent=yes
- else
- ac_cv_lib_ncurses_tgetent=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
- $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
- if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
- case ncurses in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- READLINE_SHARED_LIBADD="-lncurses $READLINE_SHARED_LIBADD"
- else
- case ncurses in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lncurses $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
- $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
- if ${ac_cv_lib_termcap_tgetent+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltermcap $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char tgetent ();
- int
- main ()
- {
- return tgetent ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_termcap_tgetent=yes
- else
- ac_cv_lib_termcap_tgetent=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
- $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
- if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
- case termcap in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- READLINE_SHARED_LIBADD="-ltermcap $READLINE_SHARED_LIBADD"
- else
- case termcap in
- c|c_r|pthread*) ;;
- *)
- LIBS="-ltermcap $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$READLINE_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
- $as_echo_n "checking for readline in -ledit... " >&6; }
- if ${ac_cv_lib_edit_readline+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ledit $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char readline ();
- int
- main ()
- {
- return readline ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_edit_readline=yes
- else
- ac_cv_lib_edit_readline=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
- $as_echo "$ac_cv_lib_edit_readline" >&6; }
- if test "x$ac_cv_lib_edit_readline" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$ext_shared" = "yes"; then
- READLINE_SHARED_LIBADD="-ledit $READLINE_SHARED_LIBADD"
- if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then
- if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LIBEDIT_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LIBEDIT_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- READLINE_SHARED_LIBADD="-L$ai_p $READLINE_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && READLINE_SHARED_LIBADD="$ld_runpath_switch$ai_p $READLINE_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LIBEDIT_DIR/$PHP_LIBDIR"; then
- if test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBEDIT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$LIBEDIT_DIR/$PHP_LIBDIR" || echo "$LIBEDIT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LIBEDIT_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $LIBEDIT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LIBEDIT_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case edit in
- c|c_r|pthread*) ;;
- *)
- LIBS="-ledit $LIBS"
- ;;
- esac
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_edit_readline
- as_fn_error $? "edit library required by readline not found" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$READLINE_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_read_char in -ledit" >&5
- $as_echo_n "checking for rl_callback_read_char in -ledit... " >&6; }
- if ${ac_cv_lib_edit_rl_callback_read_char+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ledit $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char rl_callback_read_char ();
- int
- main ()
- {
- return rl_callback_read_char ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_edit_rl_callback_read_char=yes
- else
- ac_cv_lib_edit_rl_callback_read_char=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_callback_read_char" >&5
- $as_echo "$ac_cv_lib_edit_rl_callback_read_char" >&6; }
- if test "x$ac_cv_lib_edit_rl_callback_read_char" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_RL_CALLBACK_READ_CHAR 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_edit_rl_callback_read_char
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$READLINE_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_on_new_line in -ledit" >&5
- $as_echo_n "checking for rl_on_new_line in -ledit... " >&6; }
- if ${ac_cv_lib_edit_rl_on_new_line+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ledit $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char rl_on_new_line ();
- int
- main ()
- {
- return rl_on_new_line ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_edit_rl_on_new_line=yes
- else
- ac_cv_lib_edit_rl_on_new_line=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_on_new_line" >&5
- $as_echo "$ac_cv_lib_edit_rl_on_new_line" >&6; }
- if test "x$ac_cv_lib_edit_rl_on_new_line" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_RL_ON_NEW_LINE 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_edit_rl_on_new_line
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$READLINE_DIR/$PHP_LIBDIR $PHP_READLINE_LIBS
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -ledit" >&5
- $as_echo_n "checking for rl_completion_matches in -ledit... " >&6; }
- if ${ac_cv_lib_edit_rl_completion_matches+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ledit $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char rl_completion_matches ();
- int
- main ()
- {
- return rl_completion_matches ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_edit_rl_completion_matches=yes
- else
- ac_cv_lib_edit_rl_completion_matches=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_rl_completion_matches" >&5
- $as_echo "$ac_cv_lib_edit_rl_completion_matches" >&6; }
- if test "x$ac_cv_lib_edit_rl_completion_matches" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_edit_rl_completion_matches
- fi
- $as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
- fi
- if test "$PHP_READLINE" != "no" || test "$PHP_LIBEDIT" != "no"; then
- ext_builddir=ext/readline
- ext_srcdir=$abs_srcdir/ext/readline
- ext_dir=ext/readline
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" != "cli"; then
- PHP_READLINE_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in readline.c readline_cli.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC readline;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC readline;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_READLINE_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in readline.c readline_cli.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_readline="$shared_objects_readline $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/readline.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/readline.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_readline"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/readline.$suffix: $ext_builddir/readline.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/readline.$suffix \$(phplibdir)
- $ext_builddir/readline.$suffix: \$(shared_objects_readline) \$(READLINE_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_readline) \$(READLINE_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_READLINE 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "cli" = "cli"; then
- PHP_READLINE_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in readline.c readline_cli.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC readline;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in readline.c readline_cli.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC readline;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=readline
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST READLINE_SHARED_LIBADD"
- fi
- php_with_recode=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recode support" >&5
- $as_echo_n "checking for recode support... " >&6; }
- # Check whether --with-recode was given.
- if test "${with_recode+set}" = set; then :
- withval=$with_recode; PHP_RECODE=$withval
- else
- PHP_RECODE=no
- test "$PHP_ENABLE_ALL" && PHP_RECODE=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_RECODE in
- shared,*)
- PHP_RECODE=`echo "$PHP_RECODE"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_RECODE=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_RECODE" != "no"; then
- RECODE_LIST="$PHP_RECODE /usr/local /usr /opt"
- for i in $RECODE_LIST; do
- if test -f $i/include/recode.h; then
- RECODE_DIR=$i
- RECODE_INC=include
- RECODE_LIB=$PHP_LIBDIR
- fi
- if test -f $i/include/recode/recode.h; then
- RECODE_DIR=$i
- RECODE_INC=include/recode
- RECODE_LIB=$PHP_LIBDIR/recode
- fi
- if test -f $i/recode/include/recode.h; then
- RECODE_DIR=$i/recode
- RECODE_INC=include
- RECODE_LIB=$PHP_LIBDIR
- fi
- test -n "$RECODE_DIR" && break
- done
- if test -z "$RECODE_DIR"; then
- as_fn_error $? "Can not find recode.h anywhere under $RECODE_LIST." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$RECODE_DIR/$RECODE_LIB
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recode_format_table in -lrecode" >&5
- $as_echo_n "checking for recode_format_table in -lrecode... " >&6; }
- if ${ac_cv_lib_recode_recode_format_table+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lrecode $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char recode_format_table ();
- int
- main ()
- {
- return recode_format_table ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_recode_recode_format_table=yes
- else
- ac_cv_lib_recode_recode_format_table=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_recode_recode_format_table" >&5
- $as_echo "$ac_cv_lib_recode_recode_format_table" >&6; }
- if test "x$ac_cv_lib_recode_recode_format_table" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$ext_shared" = "yes"; then
- RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD"
- if test -n "$RECODE_DIR/$RECODE_LIB"; then
- if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
- if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
- ai_p=$RECODE_DIR/$RECODE_LIB
- else
- ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"`
- fi
- if test "$ext_shared" = "yes"; then
- RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$RECODE_DIR/$RECODE_LIB"; then
- if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
- if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
- ai_p=$RECODE_DIR/$RECODE_LIB
- else
- ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case recode in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lrecode $LIBS"
- ;;
- esac
- fi
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_recode_recode_format_table
- old_LDFLAGS=$LDFLAGS
- old_LIBS=$LIBS
- LDFLAGS="$LDFLAGS -L$RECODE_DIR/$RECODE_LIB"
- LIBS="$LIBS -lrecode"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char *program_name;
- int
- main ()
- {
- recode_format_table();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- if test "$ext_shared" = "yes"; then
- RECODE_SHARED_LIBADD="-lrecode $RECODE_SHARED_LIBADD"
- if test -n "$RECODE_DIR/$RECODE_LIB"; then
- if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
- if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
- ai_p=$RECODE_DIR/$RECODE_LIB
- else
- ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"`
- fi
- if test "$ext_shared" = "yes"; then
- RECODE_SHARED_LIBADD="-L$ai_p $RECODE_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && RECODE_SHARED_LIBADD="$ld_runpath_switch$ai_p $RECODE_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$RECODE_DIR/$RECODE_LIB"; then
- if test "$RECODE_DIR/$RECODE_LIB" != "/usr/$PHP_LIBDIR" && test "$RECODE_DIR/$RECODE_LIB" != "/usr/lib"; then
- if test -z "$RECODE_DIR/$RECODE_LIB" || echo "$RECODE_DIR/$RECODE_LIB" | grep '^/' >/dev/null ; then
- ai_p=$RECODE_DIR/$RECODE_LIB
- else
- ep_dir=`echo $RECODE_DIR/$RECODE_LIB|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_LIB"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case recode in
- c|c_r|pthread*) ;;
- *)
- DLIBS="-lrecode $DLIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_BROKEN_RECODE 1" >>confdefs.h
- else
- as_fn_error $? "I cannot link librecode (-L$RECODE_DIR/$RECODE_LIB -lrecode). Is it installed?" "$LINENO" 5
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$old_LIBS
- LDFLAGS=$old_LDFLAGS
- fi
- $as_echo "#define HAVE_LIBRECODE 1" >>confdefs.h
- if test "$RECODE_DIR/$RECODE_INC" != "/usr/include"; then
- if test -z "$RECODE_DIR/$RECODE_INC" || echo "$RECODE_DIR/$RECODE_INC" | grep '^/' >/dev/null ; then
- ai_p=$RECODE_DIR/$RECODE_INC
- else
- ep_dir=`echo $RECODE_DIR/$RECODE_INC|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$RECODE_DIR/$RECODE_INC"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST RECODE_SHARED_LIBADD"
- for ac_header in stdbool.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
- if test "x$ac_cv_header_stdbool_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STDBOOL_H 1
- _ACEOF
- fi
- done
- ext_builddir=ext/recode
- ext_srcdir=$abs_srcdir/ext/recode
- ext_dir=ext/recode
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_RECODE_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in recode.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC recode;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC recode;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_RECODE_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in recode.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_recode="$shared_objects_recode $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/recode.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/recode.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_recode"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/recode.$suffix: $ext_builddir/recode.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/recode.$suffix \$(phplibdir)
- $ext_builddir/recode.$suffix: \$(shared_objects_recode) \$(RECODE_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_recode) \$(RECODE_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_RECODE 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_RECODE_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in recode.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC recode;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in recode.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC recode;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=recode
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- fi
- $as_echo "#define HAVE_REFLECTION 1" >>confdefs.h
- ext_builddir=ext/reflection
- ext_srcdir=$abs_srcdir/ext/reflection
- ext_dir=ext/reflection
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
- PHP_REFLECTION_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_reflection.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC reflection;$ext_dir"
- if test "no" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC reflection;$ext_dir"
- fi
- else
- if test "no" = "shared" || test "no" = "yes"; then
- PHP_REFLECTION_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_reflection.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_reflection="$shared_objects_reflection $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/reflection.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/reflection.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_reflection"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/reflection.$suffix: $ext_builddir/reflection.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/reflection.$suffix \$(phplibdir)
- $ext_builddir/reflection.$suffix: \$(shared_objects_reflection) \$(REFLECTION_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_reflection) \$(REFLECTION_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_REFLECTION 1
- _ACEOF
- fi
- fi
- if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
- PHP_REFLECTION_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_reflection.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC reflection;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_reflection.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC reflection;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=reflection
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- php_enable_session=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable PHP sessions" >&5
- $as_echo_n "checking whether to enable PHP sessions... " >&6; }
- # Check whether --enable-session was given.
- if test "${enable_session+set}" = set; then :
- enableval=$enable_session; PHP_SESSION=$enableval
- else
- PHP_SESSION=yes
- test "$PHP_ENABLE_ALL" && PHP_SESSION=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SESSION in
- shared,*)
- PHP_SESSION=`echo "$PHP_SESSION"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SESSION=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_mm=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mm support" >&5
- $as_echo_n "checking for mm support... " >&6; }
- # Check whether --with-mm was given.
- if test "${with_mm+set}" = set; then :
- withval=$with_mm; PHP_MM=$withval
- else
- PHP_MM=no
- fi
- ext_output=$PHP_MM
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_SESSION" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pwrite works" >&5
- $as_echo_n "checking whether pwrite works... " >&6; }
- if ${ac_cv_pwrite+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_pwrite=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <unistd.h>
- #include <errno.h>
- int main() {
- int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
- if (fd < 0) return 1;
- if (pwrite(fd, "text", 4, 0) != 4) return 1;
- /* Linux glibc breakage until 2.2.5 */
- if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) return 1;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_pwrite=yes
- else
- ac_cv_pwrite=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- if test "$ac_cv_pwrite" = "no"; then
- if test "$cross_compiling" = yes; then :
- ac_cv_pwrite=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <unistd.h>
- #include <errno.h>
- ssize_t pwrite(int, void *, size_t, off64_t);
- int main() {
- int fd = open("conftest_in", O_WRONLY|O_CREAT, 0600);
- if (fd < 0) return 1;
- if (pwrite(fd, "text", 4, 0) != 4) return 1;
- /* Linux glibc breakage until 2.2.5 */
- if (pwrite(fd, "text", 4, -1) != -1 || errno != EINVAL) return 1;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_pwrite=yes
- else
- ac_cv_pwrite=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- if test "$ac_cv_pwrite" = "yes"; then
- ac_cv_pwrite=64
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pwrite" >&5
- $as_echo "$ac_cv_pwrite" >&6; }
- if test "$ac_cv_pwrite" != "no"; then
- $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
- if test "$ac_cv_pwrite" = "64"; then
- $as_echo "#define PHP_PWRITE_64 1" >>confdefs.h
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pread works" >&5
- $as_echo_n "checking whether pread works... " >&6; }
- if ${ac_cv_pread+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- echo test > conftest_in
- if test "$cross_compiling" = yes; then :
- ac_cv_pread=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <unistd.h>
- #include <errno.h>
- int main() {
- char buf[3];
- int fd = open("conftest_in", O_RDONLY);
- if (fd < 0) return 1;
- if (pread(fd, buf, 2, 0) != 2) return 1;
- /* Linux glibc breakage until 2.2.5 */
- if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) return 1;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_pread=yes
- else
- ac_cv_pread=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- rm -f conftest_in
- if test "$ac_cv_pread" = "no"; then
- echo test > conftest_in
- if test "$cross_compiling" = yes; then :
- ac_cv_pread=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <unistd.h>
- #include <errno.h>
- ssize_t pread(int, void *, size_t, off64_t);
- int main() {
- char buf[3];
- int fd = open("conftest_in", O_RDONLY);
- if (fd < 0) return 1;
- if (pread(fd, buf, 2, 0) != 2) return 1;
- /* Linux glibc breakage until 2.2.5 */
- if (pread(fd, buf, 2, -1) != -1 || errno != EINVAL) return 1;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_pread=yes
- else
- ac_cv_pread=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- rm -f conftest_in
- if test "$ac_cv_pread" = "yes"; then
- ac_cv_pread=64
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pread" >&5
- $as_echo "$ac_cv_pread" >&6; }
- if test "$ac_cv_pread" != "no"; then
- $as_echo "#define HAVE_PREAD 1" >>confdefs.h
- if test "$ac_cv_pread" = "64"; then
- $as_echo "#define PHP_PREAD_64 1" >>confdefs.h
- fi
- fi
- ext_builddir=ext/session
- ext_srcdir=$abs_srcdir/ext/session
- ext_dir=ext/session
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_SESSION_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC session;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC session;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_SESSION_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_session="$shared_objects_session $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/session.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/session.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_session"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/session.$suffix: $ext_builddir/session.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/session.$suffix \$(phplibdir)
- $ext_builddir/session.$suffix: \$(shared_objects_session) \$(SESSION_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_session) \$(SESSION_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_SESSION 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_SESSION_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC session;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC session;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=session
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- am_i_shared=$PHP_SESSION_SHARED
- is_it_shared=$PHP_HASH_SHARED
- is_it_enabled=$PHP_HASH
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension session to build statically, but it
- depends on extension hash, which you've configured to build shared.
- You either need to build session shared or build hash statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
- as_fn_error $? "
- You've configured extension session, which depends on extension hash,
- but you've either not enabled hash, or have disabled it.
- " "$LINENO" 5
- fi
- am_i_shared=$PHP_SESSION_SHARED
- is_it_shared=$PHP_SPL_SHARED
- is_it_enabled=$PHP_SPL
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension session to build statically, but it
- depends on extension spl, which you've configured to build shared.
- You either need to build session shared or build spl statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension session, which depends on extension spl,
- but you've either not enabled spl, or have disabled it.
- " "$LINENO" 5
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST SESSION_SHARED_LIBADD"
- header_path=ext/session
- for header_file in php_session.h mod_files.h mod_user.h; do
- hp_hf="$header_path/$header_file"
- unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
- fi
- done
- $as_echo "#define HAVE_PHP_SESSION 1" >>confdefs.h
- fi
- if test "$PHP_MM" != "no"; then
- for i in $PHP_MM /usr/local /usr; do
- test -f "$i/include/mm.h" && MM_DIR=$i && break
- done
- if test -z "$MM_DIR" ; then
- as_fn_error $? "cannot find mm library" "$LINENO" 5
- fi
- if test "$enable_maintainer_zts" = "yes"; then
- as_fn_error $? "--with-mm cannot be combined with --enable-maintainer-zts" "$LINENO" 5
- fi
- if test "$ext_shared" = "yes"; then
- SESSION_SHARED_LIBADD="-lmm $SESSION_SHARED_LIBADD"
- if test -n "$MM_DIR/$PHP_LIBDIR"; then
- if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$MM_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$MM_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- SESSION_SHARED_LIBADD="-L$ai_p $SESSION_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && SESSION_SHARED_LIBADD="$ld_runpath_switch$ai_p $SESSION_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$MM_DIR/$PHP_LIBDIR"; then
- if test "$MM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$MM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$MM_DIR/$PHP_LIBDIR" || echo "$MM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$MM_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $MM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$MM_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case mm in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lmm $LIBS"
- ;;
- esac
- fi
- if test "$MM_DIR/include" != "/usr/include"; then
- if test -z "$MM_DIR/include" || echo "$MM_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$MM_DIR/include
- else
- ep_dir=`echo $MM_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$MM_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- for header_file in ext/session/mod_mm.h; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- $as_echo "#define HAVE_LIBMM 1" >>confdefs.h
- fi
- php_enable_shmop=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shmop support" >&5
- $as_echo_n "checking whether to enable shmop support... " >&6; }
- # Check whether --enable-shmop was given.
- if test "${enable_shmop+set}" = set; then :
- enableval=$enable_shmop; PHP_SHMOP=$enableval
- else
- PHP_SHMOP=no
- test "$PHP_ENABLE_ALL" && PHP_SHMOP=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SHMOP in
- shared,*)
- PHP_SHMOP=`echo "$PHP_SHMOP"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SHMOP=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_SHMOP" != "no"; then
- $as_echo "#define HAVE_SHMOP 1" >>confdefs.h
- ext_builddir=ext/shmop
- ext_srcdir=$abs_srcdir/ext/shmop
- ext_dir=ext/shmop
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_SHMOP_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in shmop.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC shmop;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC shmop;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_SHMOP_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in shmop.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_shmop="$shared_objects_shmop $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/shmop.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/shmop.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_shmop"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/shmop.$suffix: $ext_builddir/shmop.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/shmop.$suffix \$(phplibdir)
- $ext_builddir/shmop.$suffix: \$(shared_objects_shmop) \$(SHMOP_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_shmop) \$(SHMOP_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_SHMOP 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_SHMOP_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in shmop.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC shmop;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in shmop.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC shmop;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=shmop
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- fi
- php_enable_simplexml=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SimpleXML support" >&5
- $as_echo_n "checking whether to enable SimpleXML support... " >&6; }
- # Check whether --enable-simplexml was given.
- if test "${enable_simplexml+set}" = set; then :
- enableval=$enable_simplexml; PHP_SIMPLEXML=$enableval
- else
- PHP_SIMPLEXML=yes
- test "$PHP_ENABLE_ALL" && PHP_SIMPLEXML=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SIMPLEXML in
- shared,*)
- PHP_SIMPLEXML=`echo "$PHP_SIMPLEXML"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SIMPLEXML=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_LIBXML_DIR"; then
- php_with_libxml_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
- $as_echo_n "checking libxml2 install dir... " >&6; }
- # Check whether --with-libxml-dir was given.
- if test "${with_libxml_dir+set}" = set; then :
- withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
- else
- PHP_LIBXML_DIR=no
- fi
- ext_output=$PHP_LIBXML_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- if test "$PHP_SIMPLEXML" != "no"; then
- if test "$PHP_LIBXML" = "no"; then
- as_fn_error $? "SimpleXML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
- fi
- found_libxml=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
- $as_echo_n "checking for xml2-config path... " >&6; }
- if ${ac_cv_php_xml2_config_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- for i in $PHP_LIBXML_DIR /usr/local /usr; do
- if test -x "$i/bin/xml2-config"; then
- ac_cv_php_xml2_config_path="$i/bin/xml2-config"
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
- $as_echo "$ac_cv_php_xml2_config_path" >&6; }
- if test -x "$ac_cv_php_xml2_config_path"; then
- XML2_CONFIG="$ac_cv_php_xml2_config_path"
- libxml_full_version=`$XML2_CONFIG --version`
- ac_IFS=$IFS
- IFS="."
- set $libxml_full_version
- IFS=$ac_IFS
- LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
- if test "$LIBXML_VERSION" -ge "2006011"; then
- found_libxml=yes
- LIBXML_LIBS=`$XML2_CONFIG --libs`
- LIBXML_INCS=`$XML2_CONFIG --cflags`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- if test "$found_libxml" = "no"; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libxml-2.0; then
- if $PKG_CONFIG --atleast-version=2.6.11 libxml-2.0; then
- found_libxml=yes
- LIBXML_LIBS=`$PKG_CONFIG --libs libxml-2.0`
- LIBXML_INCS=`$PKG_CONFIG --cflags-only-I libxml-2.0`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- fi
- if test "$found_libxml" = "yes"; then
- for ac_i in $LIBXML_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- SIMPLEXML_SHARED_LIBADD="$SIMPLEXML_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- SIMPLEXML_SHARED_LIBADD="-L$ai_p $SIMPLEXML_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && SIMPLEXML_SHARED_LIBADD="$ld_runpath_switch$ai_p $SIMPLEXML_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $LIBXML_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
- $as_echo_n "checking whether libxml build works... " >&6; }
- if ${php_cv_libxml_build_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- old_LIBS=$LIBS
- LIBS="
- $SIMPLEXML_SHARED_LIBADD
- $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char xmlInitParser();
- int main() {
- xmlInitParser();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- php_cv_libxml_build_works=yes
- else
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
- $as_echo "$php_cv_libxml_build_works" >&6; }
- if test "$php_cv_libxml_build_works" = "yes"; then
- $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
- fi
- $as_echo "#define HAVE_SIMPLEXML 1" >>confdefs.h
- ext_builddir=ext/simplexml
- ext_srcdir=$abs_srcdir/ext/simplexml
- ext_dir=ext/simplexml
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_SIMPLEXML_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in simplexml.c sxe.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC simplexml;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC simplexml;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_SIMPLEXML_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in simplexml.c sxe.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_simplexml="$shared_objects_simplexml $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/simplexml.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/simplexml.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_simplexml"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/simplexml.$suffix: $ext_builddir/simplexml.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/simplexml.$suffix \$(phplibdir)
- $ext_builddir/simplexml.$suffix: \$(shared_objects_simplexml) \$(SIMPLEXML_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_simplexml) \$(SIMPLEXML_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_SIMPLEXML 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_SIMPLEXML_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in simplexml.c sxe.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC simplexml;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in simplexml.c sxe.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC simplexml;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=simplexml
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- for header_file in ext/simplexml/php_simplexml.h ext/simplexml/php_simplexml_exports.h; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- PHP_VAR_SUBST="$PHP_VAR_SUBST SIMPLEXML_SHARED_LIBADD"
- else
- as_fn_error $? "libxml2 not found. Please check your libxml2 installation." "$LINENO" 5
- fi
- am_i_shared=$PHP_SIMPLEXML_SHARED
- is_it_shared=$PHP_LIBXML_SHARED
- is_it_enabled=$PHP_LIBXML
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension simplexml to build statically, but it
- depends on extension libxml, which you've configured to build shared.
- You either need to build simplexml shared or build libxml statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension simplexml, which depends on extension libxml,
- but you've either not enabled libxml, or have disabled it.
- " "$LINENO" 5
- fi
- am_i_shared=$PHP_SIMPLEXML_SHARED
- is_it_shared=$PHP_SPL_SHARED
- is_it_enabled=$PHP_SPL
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension simplexml to build statically, but it
- depends on extension spl, which you've configured to build shared.
- You either need to build simplexml shared or build spl statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
- as_fn_error $? "
- You've configured extension simplexml, which depends on extension spl,
- but you've either not enabled spl, or have disabled it.
- " "$LINENO" 5
- fi
- fi
- php_with_snmp=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNMP support" >&5
- $as_echo_n "checking for SNMP support... " >&6; }
- # Check whether --with-snmp was given.
- if test "${with_snmp+set}" = set; then :
- withval=$with_snmp; PHP_SNMP=$withval
- else
- PHP_SNMP=no
- test "$PHP_ENABLE_ALL" && PHP_SNMP=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SNMP in
- shared,*)
- PHP_SNMP=`echo "$PHP_SNMP"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SNMP=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_openssl_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL dir for SNMP" >&5
- $as_echo_n "checking OpenSSL dir for SNMP... " >&6; }
- # Check whether --with-openssl-dir was given.
- if test "${with_openssl_dir+set}" = set; then :
- withval=$with_openssl_dir; PHP_OPENSSL_DIR=$withval
- else
- PHP_OPENSSL_DIR=no
- fi
- ext_output=$PHP_OPENSSL_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_SNMP" != "no"; then
- if test "$PHP_SNMP" = "yes"; then
- # Extract the first word of "net-snmp-config", so it can be a program name with args.
- set dummy net-snmp-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_SNMP_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $SNMP_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_SNMP_CONFIG="$SNMP_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="/usr/local/bin:$PATH"
- for as_dir in $as_dummy
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_SNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- SNMP_CONFIG=$ac_cv_path_SNMP_CONFIG
- if test -n "$SNMP_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNMP_CONFIG" >&5
- $as_echo "$SNMP_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- SNMP_CONFIG="$PHP_SNMP/bin/net-snmp-config"
- fi
- if test -x "$SNMP_CONFIG"; then
- SNMP_LIBS=`$SNMP_CONFIG --netsnmp-libs`
- SNMP_LIBS="$SNMP_LIBS `$SNMP_CONFIG --external-libs`"
- SNMP_PREFIX=`$SNMP_CONFIG --prefix`
- snmp_full_version=`$SNMP_CONFIG --version`
- ac_IFS=$IFS
- IFS="."
- set $snmp_full_version
- IFS=$ac_IFS
- SNMP_VERSION=`expr $1 \* 1000 + $2`
- if test "$SNMP_VERSION" -ge "5003"; then
- if test -n "$SNMP_LIBS" && test -n "$SNMP_PREFIX"; then
- if test "${SNMP_PREFIX}/include" != "/usr/include"; then
- if test -z "${SNMP_PREFIX}/include" || echo "${SNMP_PREFIX}/include" | grep '^/' >/dev/null ; then
- ai_p=${SNMP_PREFIX}/include
- else
- ep_dir=`echo $SNMP_PREFIX/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "${SNMP_PREFIX}/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- for ac_i in $SNMP_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- SNMP_SHARED_LIBADD="$SNMP_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- SNMP_SHARED_LIBADD="-L$ai_p $SNMP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && SNMP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SNMP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- SNMP_LIBNAME=netsnmp
- else
- as_fn_error $? "Could not find the required paths. Please check your net-snmp installation." "$LINENO" 5
- fi
- else
- as_fn_error $? "Net-SNMP version 5.3 or greater reqired (detected $snmp_full_version)." "$LINENO" 5
- fi
- else
- as_fn_error $? "Could not find net-snmp-config binary. Please check your net-snmp installation." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $SNMP_SHARED_LIBADD
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_init_snmp" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -l$SNMP_LIBNAME" >&5
- $as_echo_n "checking for init_snmp in -l$SNMP_LIBNAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$SNMP_LIBNAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char init_snmp ();
- int
- main ()
- {
- return init_snmp ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_SNMP 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$SNMP_LIBNAME_init_snmp
- as_fn_error $? "SNMP sanity check failed. Please check config.log for more information." "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- $SNMP_SHARED_LIBADD
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$SNMP_LIBNAME''_shutdown_snmp_logging" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shutdown_snmp_logging in -l$SNMP_LIBNAME" >&5
- $as_echo_n "checking for shutdown_snmp_logging in -l$SNMP_LIBNAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$SNMP_LIBNAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char shutdown_snmp_logging ();
- int
- main ()
- {
- return shutdown_snmp_logging ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_SHUTDOWN_SNMP_LOGGING 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$SNMP_LIBNAME_shutdown_snmp_logging
- fi
- ext_builddir=ext/snmp
- ext_srcdir=$abs_srcdir/ext/snmp
- ext_dir=ext/snmp
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_SNMP_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in snmp.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC snmp;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC snmp;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_SNMP_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in snmp.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_snmp="$shared_objects_snmp $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/snmp.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/snmp.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_snmp"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/snmp.$suffix: $ext_builddir/snmp.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/snmp.$suffix \$(phplibdir)
- $ext_builddir/snmp.$suffix: \$(shared_objects_snmp) \$(SNMP_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_snmp) \$(SNMP_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_SNMP 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_SNMP_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in snmp.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC snmp;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in snmp.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC snmp;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=snmp
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST SNMP_SHARED_LIBADD"
- fi
- php_enable_soap=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SOAP support" >&5
- $as_echo_n "checking whether to enable SOAP support... " >&6; }
- # Check whether --enable-soap was given.
- if test "${enable_soap+set}" = set; then :
- enableval=$enable_soap; PHP_SOAP=$enableval
- else
- PHP_SOAP=no
- test "$PHP_ENABLE_ALL" && PHP_SOAP=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SOAP in
- shared,*)
- PHP_SOAP=`echo "$PHP_SOAP"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SOAP=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_LIBXML_DIR"; then
- php_with_libxml_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
- $as_echo_n "checking libxml2 install dir... " >&6; }
- # Check whether --with-libxml-dir was given.
- if test "${with_libxml_dir+set}" = set; then :
- withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
- else
- PHP_LIBXML_DIR=no
- fi
- ext_output=$PHP_LIBXML_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- if test "$PHP_SOAP" != "no"; then
- if test "$PHP_LIBXML" = "no"; then
- as_fn_error $? "SOAP extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
- fi
- found_libxml=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
- $as_echo_n "checking for xml2-config path... " >&6; }
- if ${ac_cv_php_xml2_config_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- for i in $PHP_LIBXML_DIR /usr/local /usr; do
- if test -x "$i/bin/xml2-config"; then
- ac_cv_php_xml2_config_path="$i/bin/xml2-config"
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
- $as_echo "$ac_cv_php_xml2_config_path" >&6; }
- if test -x "$ac_cv_php_xml2_config_path"; then
- XML2_CONFIG="$ac_cv_php_xml2_config_path"
- libxml_full_version=`$XML2_CONFIG --version`
- ac_IFS=$IFS
- IFS="."
- set $libxml_full_version
- IFS=$ac_IFS
- LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
- if test "$LIBXML_VERSION" -ge "2006011"; then
- found_libxml=yes
- LIBXML_LIBS=`$XML2_CONFIG --libs`
- LIBXML_INCS=`$XML2_CONFIG --cflags`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- if test "$found_libxml" = "no"; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libxml-2.0; then
- if $PKG_CONFIG --atleast-version=2.6.11 libxml-2.0; then
- found_libxml=yes
- LIBXML_LIBS=`$PKG_CONFIG --libs libxml-2.0`
- LIBXML_INCS=`$PKG_CONFIG --cflags-only-I libxml-2.0`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- fi
- if test "$found_libxml" = "yes"; then
- for ac_i in $LIBXML_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- SOAP_SHARED_LIBADD="$SOAP_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- SOAP_SHARED_LIBADD="-L$ai_p $SOAP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && SOAP_SHARED_LIBADD="$ld_runpath_switch$ai_p $SOAP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $LIBXML_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
- $as_echo_n "checking whether libxml build works... " >&6; }
- if ${php_cv_libxml_build_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- old_LIBS=$LIBS
- LIBS="
- $SOAP_SHARED_LIBADD
- $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char xmlInitParser();
- int main() {
- xmlInitParser();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- php_cv_libxml_build_works=yes
- else
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
- $as_echo "$php_cv_libxml_build_works" >&6; }
- if test "$php_cv_libxml_build_works" = "yes"; then
- $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
- fi
- $as_echo "#define HAVE_SOAP 1" >>confdefs.h
- ext_builddir=ext/soap
- ext_srcdir=$abs_srcdir/ext/soap
- ext_dir=ext/soap
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_SOAP_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC soap;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC soap;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_SOAP_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_soap="$shared_objects_soap $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/soap.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/soap.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_soap"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/soap.$suffix: $ext_builddir/soap.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/soap.$suffix \$(phplibdir)
- $ext_builddir/soap.$suffix: \$(shared_objects_soap) \$(SOAP_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_soap) \$(SOAP_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_SOAP 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_SOAP_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC soap;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC soap;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=soap
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST SOAP_SHARED_LIBADD"
- else
- as_fn_error $? "libxml2 not found. Please check your libxml2 installation." "$LINENO" 5
- fi
- fi
- php_enable_sockets=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable sockets support" >&5
- $as_echo_n "checking whether to enable sockets support... " >&6; }
- # Check whether --enable-sockets was given.
- if test "${enable_sockets+set}" = set; then :
- enableval=$enable_sockets; PHP_SOCKETS=$enableval
- else
- PHP_SOCKETS=no
- test "$PHP_ENABLE_ALL" && PHP_SOCKETS=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SOCKETS in
- shared,*)
- PHP_SOCKETS=`echo "$PHP_SOCKETS"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SOCKETS=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_SOCKETS" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct cmsghdr" >&5
- $as_echo_n "checking for struct cmsghdr... " >&6; }
- if ${ac_cv_cmsghdr+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/socket.h>
- int
- main ()
- {
- struct cmsghdr s; s
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_cmsghdr=yes
- else
- ac_cv_cmsghdr=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cmsghdr" >&5
- $as_echo "$ac_cv_cmsghdr" >&6; }
- if test "$ac_cv_cmsghdr" = yes; then
- $as_echo "#define HAVE_CMSGHDR 1" >>confdefs.h
- fi
- for ac_func in hstrerror socketpair if_nametoindex if_indextoname
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- for ac_header in netdb.h netinet/tcp.h sys/un.h sys/sockio.h errno.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/socket.h>
- int
- main ()
- {
- static struct msghdr tp; int n = (int) tp.msg_flags; return n
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- else
- $as_echo "#define MISSING_MSGHDR_MSGFLAGS 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for field ss_family in struct sockaddr_storage" >&5
- $as_echo_n "checking for field ss_family in struct sockaddr_storage... " >&6; }
- if ${ac_cv_ss_family+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/socket.h>
- #include <sys/types.h>
- #include <netdb.h>
- int
- main ()
- {
- struct sockaddr_storage sa_store; sa_store.ss_family = AF_INET6;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_ss_family=yes
- else
- ac_cv_ss_family=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ss_family" >&5
- $as_echo "$ac_cv_ss_family" >&6; }
- if test "$ac_cv_ss_family" = yes; then
- $as_echo "#define HAVE_SA_SS_FAMILY 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_V4MAPPED" >&5
- $as_echo_n "checking if getaddrinfo supports AI_V4MAPPED... " >&6; }
- if ${ac_cv_gai_ai_v4mapped+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <netdb.h>
- int
- main ()
- {
- int flag = AI_V4MAPPED;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_gai_ai_v4mapped=yes
- else
- ac_cv_gai_ai_v4mapped=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_v4mapped" >&5
- $as_echo "$ac_cv_gai_ai_v4mapped" >&6; }
- if test "$ac_cv_gai_ai_v4mapped" = yes; then
- $as_echo "#define HAVE_AI_V4MAPPED 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_ALL" >&5
- $as_echo_n "checking if getaddrinfo supports AI_ALL... " >&6; }
- if ${ac_cv_gai_ai_all+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <netdb.h>
- int
- main ()
- {
- int flag = AI_ALL;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_gai_ai_all=yes
- else
- ac_cv_gai_ai_all=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_all" >&5
- $as_echo "$ac_cv_gai_ai_all" >&6; }
- if test "$ac_cv_gai_ai_all" = yes; then
- $as_echo "#define HAVE_AI_ALL 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo supports AI_IDN" >&5
- $as_echo_n "checking if getaddrinfo supports AI_IDN... " >&6; }
- if ${ac_cv_gai_ai_idn+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <netdb.h>
- int
- main ()
- {
- int flag = AI_IDN;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_gai_ai_idn=yes
- else
- ac_cv_gai_ai_idn=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gai_ai_idn" >&5
- $as_echo "$ac_cv_gai_ai_idn" >&6; }
- if test "$ac_cv_gai_ai_idn" = yes; then
- $as_echo "#define HAVE_AI_IDN 1" >>confdefs.h
- fi
- PHP_SOCKETS_CFLAGS=-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1
- case $host_alias in
- *darwin*) PHP_SOCKETS_CFLAGS="$PHP_SOCKETS_CFLAGS -D__APPLE_USE_RFC_3542"
- esac
- ext_builddir=ext/sockets
- ext_srcdir=$abs_srcdir/ext/sockets
- ext_dir=ext/sockets
- ac_extra=`echo "$PHP_SOCKETS_CFLAGS"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_SOCKETS_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC sockets;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC sockets;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_SOCKETS_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_sockets="$shared_objects_sockets $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sockets.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/sockets.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sockets"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/sockets.$suffix: $ext_builddir/sockets.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/sockets.$suffix \$(phplibdir)
- $ext_builddir/sockets.$suffix: \$(shared_objects_sockets) \$(SOCKETS_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_sockets) \$(SOCKETS_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_SOCKETS 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_SOCKETS_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC sockets;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in sockets.c multicast.c conversions.c sockaddr_conv.c sendrecvmsg.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC sockets;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=sockets
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- header_path=ext/sockets/
- for header_file in php_sockets.h; do
- hp_hf="$header_path/$header_file"
- unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
- fi
- done
- fi
- php_with_sodium=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sodium support" >&5
- $as_echo_n "checking for sodium support... " >&6; }
- # Check whether --with-sodium was given.
- if test "${with_sodium+set}" = set; then :
- withval=$with_sodium; PHP_SODIUM=$withval
- else
- PHP_SODIUM=no
- test "$PHP_ENABLE_ALL" && PHP_SODIUM=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SODIUM in
- shared,*)
- PHP_SODIUM=`echo "$PHP_SODIUM"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SODIUM=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_SODIUM" != "no"; then
- SEARCH_PATH="/usr/local /usr" # you might want to change this
- SEARCH_FOR="/include/sodium.h" # you most likely want to change this
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsodium" >&5
- $as_echo_n "checking for libsodium... " >&6; }
- if test -r $PHP_SODIUM/$SEARCH_FOR; then # path given as parameter
- LIBSODIUM_DIR=$PHP_SODIUM
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $PHP_SODIUM" >&5
- $as_echo "found in $PHP_SODIUM" >&6; }
- elif test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libsodium; then
- LIBSODIUM_VERSION=`$PKG_CONFIG libsodium --modversion`
- if $PKG_CONFIG libsodium --atleast-version=1.0.8; then
- LIBSODIUM_CFLAGS=`$PKG_CONFIG libsodium --cflags`
- LIBSODIUM_LIBS=`$PKG_CONFIG libsodium --libs`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: version $LIBSODIUM_VERSION found using pkg-config" >&5
- $as_echo "version $LIBSODIUM_VERSION found using pkg-config" >&6; }
- for ac_i in $LIBSODIUM_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- SODIUM_SHARED_LIBADD="$SODIUM_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- SODIUM_SHARED_LIBADD="$SODIUM_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- SODIUM_SHARED_LIBADD="-L$ai_p $SODIUM_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && SODIUM_SHARED_LIBADD="$ld_runpath_switch$ai_p $SODIUM_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $LIBSODIUM_CFLAGS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- else
- as_fn_error $? "Libsodium $LIBSODIUM_VERSION is too old, version >= 1.0.8 required" "$LINENO" 5
- fi
- else
- for i in $SEARCH_PATH ; do
- if test -r $i/$SEARCH_FOR; then
- LIBSODIUM_DIR=$i
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
- $as_echo "found in $i" >&6; }
- fi
- done
- if test -z "$LIBSODIUM_DIR"; then
- as_fn_error $? "Please install libsodium - See https://github.com/jedisct1/libsodium" "$LINENO" 5
- fi
- fi
- LIBNAME=sodium
- LIBSYMBOL=sodium_add
- if test -n "$LIBSODIUM_DIR"; then
- if test "$LIBSODIUM_DIR/include" != "/usr/include"; then
- if test -z "$LIBSODIUM_DIR/include" || echo "$LIBSODIUM_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$LIBSODIUM_DIR/include
- else
- ep_dir=`echo $LIBSODIUM_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LIBSODIUM_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- SODIUM_SHARED_LIBADD="-l$LIBNAME $SODIUM_SHARED_LIBADD"
- if test -n "$LIBSODIUM_DIR/$PHP_LIBDIR"; then
- if test "$LIBSODIUM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBSODIUM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$LIBSODIUM_DIR/$PHP_LIBDIR" || echo "$LIBSODIUM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LIBSODIUM_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $LIBSODIUM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LIBSODIUM_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- SODIUM_SHARED_LIBADD="-L$ai_p $SODIUM_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && SODIUM_SHARED_LIBADD="$ld_runpath_switch$ai_p $SODIUM_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LIBSODIUM_DIR/$PHP_LIBDIR"; then
- if test "$LIBSODIUM_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBSODIUM_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$LIBSODIUM_DIR/$PHP_LIBDIR" || echo "$LIBSODIUM_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LIBSODIUM_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $LIBSODIUM_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LIBSODIUM_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $LIBNAME in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$LIBNAME $LIBS"
- ;;
- esac
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$LIBNAME''_$LIBSYMBOL" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBSYMBOL in -l$LIBNAME" >&5
- $as_echo_n "checking for $LIBSYMBOL in -l$LIBNAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$LIBNAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char $LIBSYMBOL ();
- int
- main ()
- {
- return $LIBSYMBOL ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_LIBSODIUMLIB 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$LIBNAME_$LIBSYMBOL
- as_fn_error $? "wrong libsodium lib version (< 1.0.8) or lib not found" "$LINENO" 5
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST SODIUM_SHARED_LIBADD"
- ext_builddir=ext/sodium
- ext_srcdir=$abs_srcdir/ext/sodium
- ext_dir=ext/sodium
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_SODIUM_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in libsodium.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC sodium;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC sodium;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_SODIUM_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in libsodium.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_sodium="$shared_objects_sodium $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sodium.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/sodium.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sodium"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/sodium.$suffix: $ext_builddir/sodium.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/sodium.$suffix \$(phplibdir)
- $ext_builddir/sodium.$suffix: \$(shared_objects_sodium) \$(SODIUM_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_sodium) \$(SODIUM_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_SODIUM 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_SODIUM_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in libsodium.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC sodium;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in libsodium.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC sodium;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=sodium
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- fi
- $as_echo "#define HAVE_SPL 1" >>confdefs.h
- ext_builddir=ext/spl
- ext_srcdir=$abs_srcdir/ext/spl
- ext_dir=ext/spl
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "no" != "shared" && test "no" != "yes" && test "" != "cli"; then
- PHP_SPL_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC spl;$ext_dir"
- if test "no" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC spl;$ext_dir"
- fi
- else
- if test "no" = "shared" || test "no" = "yes"; then
- PHP_SPL_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_spl="$shared_objects_spl $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/spl.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/spl.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_spl"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/spl.$suffix: $ext_builddir/spl.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/spl.$suffix \$(phplibdir)
- $ext_builddir/spl.$suffix: \$(shared_objects_spl) \$(SPL_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_spl) \$(SPL_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_SPL 1
- _ACEOF
- fi
- fi
- if test "no" != "shared" && test "no" != "yes" && test "" = "cli"; then
- PHP_SPL_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC spl;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_exceptions.c spl_observer.c spl_dllist.c spl_heap.c spl_fixedarray.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC spl;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=spl
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- header_path=ext/spl
- for header_file in php_spl.h spl_array.h spl_directory.h spl_engine.h spl_exceptions.h spl_functions.h spl_iterators.h spl_observer.h spl_dllist.h spl_heap.h spl_fixedarray.h; do
- hp_hf="$header_path/$header_file"
- unique=`echo $hp_hf|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $hp_hf"
- fi
- done
- am_i_shared=$PHP_SPL_SHARED
- is_it_shared=$PHP_PCRE_SHARED
- is_it_enabled=$PHP_PCRE
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension spl to build statically, but it
- depends on extension pcre, which you've configured to build shared.
- You either need to build spl shared or build pcre statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
- as_fn_error $? "
- You've configured extension spl, which depends on extension pcre,
- but you've either not enabled pcre, or have disabled it.
- " "$LINENO" 5
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flush should be called explicitly after a buffered io" >&5
- $as_echo_n "checking whether flush should be called explicitly after a buffered io... " >&6; }
- if ${ac_cv_flush_io+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_flush_io=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <unistd.h>
- int main(int argc, char **argv)
- {
- char *filename = tmpnam(NULL);
- char buffer[64];
- int result = 0;
- FILE *fp = fopen(filename, "wb");
- if (NULL == fp)
- return 0;
- fputs("line 1\n", fp);
- fputs("line 2\n", fp);
- fclose(fp);
- fp = fopen(filename, "rb+");
- if (NULL == fp)
- return 0;
- fgets(buffer, sizeof(buffer), fp);
- fputs("line 3\n", fp);
- rewind(fp);
- fgets(buffer, sizeof(buffer), fp);
- if (0 != strcmp(buffer, "line 1\n"))
- result = 1;
- fgets(buffer, sizeof(buffer), fp);
- if (0 != strcmp(buffer, "line 3\n"))
- result = 1;
- fclose(fp);
- unlink(filename);
- exit(result);
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_flush_io=no
- else
- ac_cv_flush_io=yes
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flush_io" >&5
- $as_echo "$ac_cv_flush_io" >&6; }
- if test "$ac_cv_flush_io" = "yes"; then
- $as_echo "#define HAVE_FLUSHIO 1" >>confdefs.h
- fi
- if test "$ac_cv_func_crypt" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
- $as_echo_n "checking for crypt in -lcrypt... " >&6; }
- if ${ac_cv_lib_crypt_crypt+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcrypt $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char crypt ();
- int
- main ()
- {
- return crypt ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_crypt_crypt=yes
- else
- ac_cv_lib_crypt_crypt=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
- $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
- if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
- LIBS="-lcrypt $LIBS -lcrypt"
- $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard DES crypt" >&5
- $as_echo_n "checking for standard DES crypt... " >&6; }
- if ${ac_cv_crypt_des+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_crypt_des=yes
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- #if HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
- int main() {
- #if HAVE_CRYPT
- char *encrypted = crypt("rasmuslerdorf","rl");
- return !encrypted || strcmp(encrypted,"rl.3StKT.4T8M");
- #else
- return 1;
- #endif
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_crypt_des=yes
- else
- ac_cv_crypt_des=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_des" >&5
- $as_echo "$ac_cv_crypt_des" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extended DES crypt" >&5
- $as_echo_n "checking for extended DES crypt... " >&6; }
- if ${ac_cv_crypt_ext_des+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_crypt_ext_des=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- #if HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
- int main() {
- #if HAVE_CRYPT
- char *encrypted = crypt("rasmuslerdorf","_J9..rasm");
- return !encrypted || strcmp(encrypted,"_J9..rasmBYk8r9AiWNc");
- #else
- return 1;
- #endif
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_crypt_ext_des=yes
- else
- ac_cv_crypt_ext_des=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_ext_des" >&5
- $as_echo "$ac_cv_crypt_ext_des" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MD5 crypt" >&5
- $as_echo_n "checking for MD5 crypt... " >&6; }
- if ${ac_cv_crypt_md5+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_crypt_md5=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- #if HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
- int main() {
- #if HAVE_CRYPT
- char salt[15], answer[40];
- char *encrypted;
- salt[0]='$'; salt[1]='1'; salt[2]='$';
- salt[3]='r'; salt[4]='a'; salt[5]='s';
- salt[6]='m'; salt[7]='u'; salt[8]='s';
- salt[9]='l'; salt[10]='e'; salt[11]='$';
- salt[12]='\0';
- strcpy(answer,salt);
- strcat(answer,"rISCgZzpwk3UhDidwXvin0");
- encrypted = crypt("rasmuslerdorf",salt);
- return !encrypted || strcmp(encrypted,answer);
- #else
- return 1;
- #endif
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_crypt_md5=yes
- else
- ac_cv_crypt_md5=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_md5" >&5
- $as_echo "$ac_cv_crypt_md5" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Blowfish crypt" >&5
- $as_echo_n "checking for Blowfish crypt... " >&6; }
- if ${ac_cv_crypt_blowfish+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_crypt_blowfish=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- #if HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
- int main() {
- #if HAVE_CRYPT
- char salt[30], answer[70];
- char *encrypted;
- salt[0]='$'; salt[1]='2'; salt[2]='a'; salt[3]='$'; salt[4]='0'; salt[5]='7'; salt[6]='$'; salt[7]='\0';
- strcat(salt,"rasmuslerd............");
- strcpy(answer,salt);
- strcpy(&answer[29],"nIdrcHdxcUxWomQX9j6kvERCFjTg7Ra");
- encrypted = crypt("rasmuslerdorf",salt);
- return !encrypted || strcmp(encrypted,answer);
- #else
- return 1;
- #endif
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_crypt_blowfish=yes
- else
- ac_cv_crypt_blowfish=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_blowfish" >&5
- $as_echo "$ac_cv_crypt_blowfish" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA512 crypt" >&5
- $as_echo_n "checking for SHA512 crypt... " >&6; }
- if ${ac_cv_crypt_sha512+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_crypt_sha512=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- #if HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
- int main() {
- #if HAVE_CRYPT
- char salt[21], answer[21+86];
- char *encrypted;
- strcpy(salt,"\$6\$rasmuslerdorf\$");
- strcpy(answer, salt);
- strcat(answer, "EeHCRjm0bljalWuALHSTs1NB9ipEiLEXLhYeXdOpx22gmlmVejnVXFhd84cEKbYxCo.XuUTrW.RLraeEnsvWs/");
- encrypted = crypt("rasmuslerdorf",salt);
- return !encrypted || strcmp(encrypted,answer);
- #else
- return 1;
- #endif
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_crypt_sha512=yes
- else
- ac_cv_crypt_sha512=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_sha512" >&5
- $as_echo "$ac_cv_crypt_sha512" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA256 crypt" >&5
- $as_echo_n "checking for SHA256 crypt... " >&6; }
- if ${ac_cv_crypt_sha256+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_crypt_sha256=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- #if HAVE_UNISTD_H
- #include <unistd.h>
- #endif
- #if HAVE_CRYPT_H
- #include <crypt.h>
- #endif
- int main() {
- #if HAVE_CRYPT
- char salt[21], answer[21+43];
- char *encrypted;
- strcpy(salt,"\$5\$rasmuslerdorf\$");
- strcpy(answer, salt);
- strcat(answer, "cFAm2puLCujQ9t.0CxiFIIvFi4JyQx5UncCt/xRIX23");
- encrypted = crypt("rasmuslerdorf",salt);
- return !encrypted || strcmp(encrypted,answer);
- #else
- return 1;
- #endif
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_crypt_sha256=yes
- else
- ac_cv_crypt_sha256=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_crypt_sha256" >&5
- $as_echo "$ac_cv_crypt_sha256" >&6; }
- if test "$ac_cv_crypt_blowfish" = "no" || test "$ac_cv_crypt_des" = "no" || test "$ac_cv_crypt_ext_des" = "no" || test "$ac_cv_crypt_md5" = "no" || test "$ac_cv_crypt_sha512" = "no" || test "$ac_cv_crypt_sha256" = "no" || test "x$php_crypt_r" = "x0"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports __alignof__" >&5
- $as_echo_n "checking whether the compiler supports __alignof__... " >&6; }
- if ${ac_cv_alignof_exists+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- int align = __alignof__(int);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_alignof_exists=yes
- else
- ac_cv_alignof_exists=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_exists" >&5
- $as_echo "$ac_cv_alignof_exists" >&6; }
- if test "$ac_cv_alignof_exists" = "yes"; then
- $as_echo "#define HAVE_ALIGNOF 1" >>confdefs.h
- fi
- cat >>confdefs.h <<_ACEOF
- #define PHP_USE_PHP_CRYPT_R 1
- _ACEOF
- case ext/standard in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "ext/standard"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/ext/standard/"; ac_bdir="ext/standard/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in crypt_freesec.c crypt_blowfish.c crypt_sha512.c crypt_sha256.c php_crypt_r.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- else
- cat >>confdefs.h <<_ACEOF
- #define PHP_USE_PHP_CRYPT_R 0
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports aligned attribute" >&5
- $as_echo_n "checking whether the compiler supports aligned attribute... " >&6; }
- if ${ac_cv_attribute_aligned+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- unsigned char test[32] __attribute__ ((__aligned__ (__alignof__ (int))));
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_attribute_aligned=yes
- else
- ac_cv_attribute_aligned=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_attribute_aligned" >&5
- $as_echo "$ac_cv_attribute_aligned" >&6; }
- if test "$ac_cv_attribute_aligned" = "yes"; then
- $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
- fi
- for ac_func in getcwd getwd asinh acosh atanh log1p hypot glob strfmon nice fpclass mempcpy strpncpy
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
- $as_echo_n "checking for working POSIX fnmatch... " >&6; }
- if ${ac_cv_func_fnmatch_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # Some versions of Solaris, SCO, and the GNU C Library
- # have a broken or incompatible fnmatch.
- # So we run a test program. If we are cross-compiling, take no chance.
- # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
- if test "$cross_compiling" = yes; then :
- ac_cv_func_fnmatch_works=cross
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <fnmatch.h>
- # define y(a, b, c) (fnmatch (a, b, c) == 0)
- # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
- int
- main ()
- {
- return
- (!(y ("a*", "abc", 0)
- && n ("d*/*1", "d/s/1", FNM_PATHNAME)
- && y ("a\\\\bc", "abc", 0)
- && n ("a\\\\bc", "abc", FNM_NOESCAPE)
- && y ("*x", ".x", 0)
- && n ("*x", ".x", FNM_PERIOD)
- && 1));
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_fnmatch_works=yes
- else
- ac_cv_func_fnmatch_works=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
- $as_echo "$ac_cv_func_fnmatch_works" >&6; }
- if test $ac_cv_func_fnmatch_works = yes; then :
- $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
- fi
- for ac_func in fork CreateProcess
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- php_can_support_proc_open=yes
- break
- else
- php_can_support_proc_open=no
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your OS can spawn processes with inherited handles" >&5
- $as_echo_n "checking if your OS can spawn processes with inherited handles... " >&6; }
- if test "$php_can_support_proc_open" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define PHP_CAN_SUPPORT_PROC_OPEN 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- PHP_ENABLE_CHROOT_FUNC=no
- case "$PHP_SAPI" in
- embed)
- PHP_ENABLE_CHROOT_FUNC=yes
- ;;
- none)
- for PROG in $PHP_BINARIES; do
- case "$PROG" in
- cgi|cli|phpdbg)
- PHP_ENABLE_CHROOT_FUNC=yes
- ;;
- *)
- PHP_ENABLE_CHROOT_FUNC=no
- break
- ;;
- esac
- done
- ;;
- esac
- if test "$PHP_ENABLE_CHROOT_FUNC" = "yes"; then
- $as_echo "#define ENABLE_CHROOT_FUNC 1" >>confdefs.h
- fi
- unset ac_cv_func_res_nsearch
- unset ac_cv_func___res_nsearch
- unset found
- ac_fn_c_check_func "$LINENO" "res_nsearch" "ac_cv_func_res_nsearch"
- if test "x$ac_cv_func_res_nsearch" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__res_nsearch" "ac_cv_func___res_nsearch"
- if test "x$ac_cv_func___res_nsearch" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
- ac_cv_func_res_nsearch=yes
- ;;
- *)
- unset ac_cv_lib_resolv_res_nsearch
- unset ac_cv_lib_resolv___res_nsearch
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lresolv" >&5
- $as_echo_n "checking for res_nsearch in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv_res_nsearch+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char res_nsearch ();
- int
- main ()
- {
- return res_nsearch ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv_res_nsearch=yes
- else
- ac_cv_lib_resolv_res_nsearch=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_nsearch" >&5
- $as_echo "$ac_cv_lib_resolv_res_nsearch" >&6; }
- if test "x$ac_cv_lib_resolv_res_nsearch" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lresolv" >&5
- $as_echo_n "checking for __res_nsearch in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv___res_nsearch+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __res_nsearch ();
- int
- main ()
- {
- return __res_nsearch ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv___res_nsearch=yes
- else
- ac_cv_lib_resolv___res_nsearch=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_nsearch" >&5
- $as_echo "$ac_cv_lib_resolv___res_nsearch" >&6; }
- if test "x$ac_cv_lib_resolv___res_nsearch" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lresolv"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case resolv in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lresolv $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
- $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
- ac_cv_func_res_nsearch=yes
- else
- unset ac_cv_lib_bind_res_nsearch
- unset ac_cv_lib_bind___res_nsearch
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lbind" >&5
- $as_echo_n "checking for res_nsearch in -lbind... " >&6; }
- if ${ac_cv_lib_bind_res_nsearch+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char res_nsearch ();
- int
- main ()
- {
- return res_nsearch ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind_res_nsearch=yes
- else
- ac_cv_lib_bind_res_nsearch=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_nsearch" >&5
- $as_echo "$ac_cv_lib_bind_res_nsearch" >&6; }
- if test "x$ac_cv_lib_bind_res_nsearch" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lbind" >&5
- $as_echo_n "checking for __res_nsearch in -lbind... " >&6; }
- if ${ac_cv_lib_bind___res_nsearch+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __res_nsearch ();
- int
- main ()
- {
- return __res_nsearch ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind___res_nsearch=yes
- else
- ac_cv_lib_bind___res_nsearch=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_nsearch" >&5
- $as_echo "$ac_cv_lib_bind___res_nsearch" >&6; }
- if test "x$ac_cv_lib_bind___res_nsearch" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lbind"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case bind in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lbind $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
- $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
- ac_cv_func_res_nsearch=yes
- else
- unset ac_cv_lib_socket_res_nsearch
- unset ac_cv_lib_socket___res_nsearch
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_nsearch in -lsocket" >&5
- $as_echo_n "checking for res_nsearch in -lsocket... " >&6; }
- if ${ac_cv_lib_socket_res_nsearch+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char res_nsearch ();
- int
- main ()
- {
- return res_nsearch ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket_res_nsearch=yes
- else
- ac_cv_lib_socket_res_nsearch=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_nsearch" >&5
- $as_echo "$ac_cv_lib_socket_res_nsearch" >&6; }
- if test "x$ac_cv_lib_socket_res_nsearch" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_nsearch in -lsocket" >&5
- $as_echo_n "checking for __res_nsearch in -lsocket... " >&6; }
- if ${ac_cv_lib_socket___res_nsearch+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __res_nsearch ();
- int
- main ()
- {
- return __res_nsearch ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket___res_nsearch=yes
- else
- ac_cv_lib_socket___res_nsearch=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_nsearch" >&5
- $as_echo "$ac_cv_lib_socket___res_nsearch" >&6; }
- if test "x$ac_cv_lib_socket___res_nsearch" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lsocket"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case socket in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsocket $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_RES_NSEARCH 1" >>confdefs.h
- $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
- ac_cv_func_res_nsearch=yes
- else
- :
- fi
- fi
- fi
- ;;
- esac
- unset ac_cv_func_res_ndestroy
- unset ac_cv_func___res_ndestroy
- unset found
- ac_fn_c_check_func "$LINENO" "res_ndestroy" "ac_cv_func_res_ndestroy"
- if test "x$ac_cv_func_res_ndestroy" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__res_ndestroy" "ac_cv_func___res_ndestroy"
- if test "x$ac_cv_func___res_ndestroy" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h
- ac_cv_func_res_ndestroy=yes
- ;;
- *)
- unset ac_cv_lib_resolv_res_ndestroy
- unset ac_cv_lib_resolv___res_ndestroy
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lresolv" >&5
- $as_echo_n "checking for res_ndestroy in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv_res_ndestroy+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char res_ndestroy ();
- int
- main ()
- {
- return res_ndestroy ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv_res_ndestroy=yes
- else
- ac_cv_lib_resolv_res_ndestroy=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_ndestroy" >&5
- $as_echo "$ac_cv_lib_resolv_res_ndestroy" >&6; }
- if test "x$ac_cv_lib_resolv_res_ndestroy" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lresolv" >&5
- $as_echo_n "checking for __res_ndestroy in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv___res_ndestroy+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __res_ndestroy ();
- int
- main ()
- {
- return __res_ndestroy ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv___res_ndestroy=yes
- else
- ac_cv_lib_resolv___res_ndestroy=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_ndestroy" >&5
- $as_echo "$ac_cv_lib_resolv___res_ndestroy" >&6; }
- if test "x$ac_cv_lib_resolv___res_ndestroy" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lresolv"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case resolv in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lresolv $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h
- $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
- ac_cv_func_res_ndestroy=yes
- else
- unset ac_cv_lib_bind_res_ndestroy
- unset ac_cv_lib_bind___res_ndestroy
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lbind" >&5
- $as_echo_n "checking for res_ndestroy in -lbind... " >&6; }
- if ${ac_cv_lib_bind_res_ndestroy+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char res_ndestroy ();
- int
- main ()
- {
- return res_ndestroy ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind_res_ndestroy=yes
- else
- ac_cv_lib_bind_res_ndestroy=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_ndestroy" >&5
- $as_echo "$ac_cv_lib_bind_res_ndestroy" >&6; }
- if test "x$ac_cv_lib_bind_res_ndestroy" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lbind" >&5
- $as_echo_n "checking for __res_ndestroy in -lbind... " >&6; }
- if ${ac_cv_lib_bind___res_ndestroy+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __res_ndestroy ();
- int
- main ()
- {
- return __res_ndestroy ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind___res_ndestroy=yes
- else
- ac_cv_lib_bind___res_ndestroy=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_ndestroy" >&5
- $as_echo "$ac_cv_lib_bind___res_ndestroy" >&6; }
- if test "x$ac_cv_lib_bind___res_ndestroy" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lbind"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case bind in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lbind $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h
- $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
- ac_cv_func_res_ndestroy=yes
- else
- unset ac_cv_lib_socket_res_ndestroy
- unset ac_cv_lib_socket___res_ndestroy
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy in -lsocket" >&5
- $as_echo_n "checking for res_ndestroy in -lsocket... " >&6; }
- if ${ac_cv_lib_socket_res_ndestroy+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char res_ndestroy ();
- int
- main ()
- {
- return res_ndestroy ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket_res_ndestroy=yes
- else
- ac_cv_lib_socket_res_ndestroy=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_ndestroy" >&5
- $as_echo "$ac_cv_lib_socket_res_ndestroy" >&6; }
- if test "x$ac_cv_lib_socket_res_ndestroy" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_ndestroy in -lsocket" >&5
- $as_echo_n "checking for __res_ndestroy in -lsocket... " >&6; }
- if ${ac_cv_lib_socket___res_ndestroy+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __res_ndestroy ();
- int
- main ()
- {
- return __res_ndestroy ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket___res_ndestroy=yes
- else
- ac_cv_lib_socket___res_ndestroy=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_ndestroy" >&5
- $as_echo "$ac_cv_lib_socket___res_ndestroy" >&6; }
- if test "x$ac_cv_lib_socket___res_ndestroy" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lsocket"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case socket in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsocket $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h
- $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
- ac_cv_func_res_ndestroy=yes
- else
- :
- fi
- fi
- fi
- ;;
- esac
- unset ac_cv_func_dns_search
- unset ac_cv_func___dns_search
- unset found
- ac_fn_c_check_func "$LINENO" "dns_search" "ac_cv_func_dns_search"
- if test "x$ac_cv_func_dns_search" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__dns_search" "ac_cv_func___dns_search"
- if test "x$ac_cv_func___dns_search" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
- ac_cv_func_dns_search=yes
- ;;
- *)
- unset ac_cv_lib_resolv_dns_search
- unset ac_cv_lib_resolv___dns_search
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lresolv" >&5
- $as_echo_n "checking for dns_search in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv_dns_search+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dns_search ();
- int
- main ()
- {
- return dns_search ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv_dns_search=yes
- else
- ac_cv_lib_resolv_dns_search=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dns_search" >&5
- $as_echo "$ac_cv_lib_resolv_dns_search" >&6; }
- if test "x$ac_cv_lib_resolv_dns_search" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lresolv" >&5
- $as_echo_n "checking for __dns_search in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv___dns_search+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __dns_search ();
- int
- main ()
- {
- return __dns_search ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv___dns_search=yes
- else
- ac_cv_lib_resolv___dns_search=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dns_search" >&5
- $as_echo "$ac_cv_lib_resolv___dns_search" >&6; }
- if test "x$ac_cv_lib_resolv___dns_search" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lresolv"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case resolv in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lresolv $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
- $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
- ac_cv_func_dns_search=yes
- else
- unset ac_cv_lib_bind_dns_search
- unset ac_cv_lib_bind___dns_search
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lbind" >&5
- $as_echo_n "checking for dns_search in -lbind... " >&6; }
- if ${ac_cv_lib_bind_dns_search+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dns_search ();
- int
- main ()
- {
- return dns_search ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind_dns_search=yes
- else
- ac_cv_lib_bind_dns_search=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dns_search" >&5
- $as_echo "$ac_cv_lib_bind_dns_search" >&6; }
- if test "x$ac_cv_lib_bind_dns_search" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lbind" >&5
- $as_echo_n "checking for __dns_search in -lbind... " >&6; }
- if ${ac_cv_lib_bind___dns_search+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __dns_search ();
- int
- main ()
- {
- return __dns_search ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind___dns_search=yes
- else
- ac_cv_lib_bind___dns_search=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dns_search" >&5
- $as_echo "$ac_cv_lib_bind___dns_search" >&6; }
- if test "x$ac_cv_lib_bind___dns_search" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lbind"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case bind in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lbind $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
- $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
- ac_cv_func_dns_search=yes
- else
- unset ac_cv_lib_socket_dns_search
- unset ac_cv_lib_socket___dns_search
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dns_search in -lsocket" >&5
- $as_echo_n "checking for dns_search in -lsocket... " >&6; }
- if ${ac_cv_lib_socket_dns_search+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dns_search ();
- int
- main ()
- {
- return dns_search ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket_dns_search=yes
- else
- ac_cv_lib_socket_dns_search=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dns_search" >&5
- $as_echo "$ac_cv_lib_socket_dns_search" >&6; }
- if test "x$ac_cv_lib_socket_dns_search" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dns_search in -lsocket" >&5
- $as_echo_n "checking for __dns_search in -lsocket... " >&6; }
- if ${ac_cv_lib_socket___dns_search+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __dns_search ();
- int
- main ()
- {
- return __dns_search ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket___dns_search=yes
- else
- ac_cv_lib_socket___dns_search=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dns_search" >&5
- $as_echo "$ac_cv_lib_socket___dns_search" >&6; }
- if test "x$ac_cv_lib_socket___dns_search" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lsocket"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case socket in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsocket $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_DNS_SEARCH 1" >>confdefs.h
- $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
- ac_cv_func_dns_search=yes
- else
- :
- fi
- fi
- fi
- ;;
- esac
- unset ac_cv_func_dn_expand
- unset ac_cv_func___dn_expand
- unset found
- ac_fn_c_check_func "$LINENO" "dn_expand" "ac_cv_func_dn_expand"
- if test "x$ac_cv_func_dn_expand" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__dn_expand" "ac_cv_func___dn_expand"
- if test "x$ac_cv_func___dn_expand" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
- ac_cv_func_dn_expand=yes
- ;;
- *)
- unset ac_cv_lib_resolv_dn_expand
- unset ac_cv_lib_resolv___dn_expand
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lresolv" >&5
- $as_echo_n "checking for dn_expand in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv_dn_expand+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dn_expand ();
- int
- main ()
- {
- return dn_expand ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv_dn_expand=yes
- else
- ac_cv_lib_resolv_dn_expand=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_expand" >&5
- $as_echo "$ac_cv_lib_resolv_dn_expand" >&6; }
- if test "x$ac_cv_lib_resolv_dn_expand" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lresolv" >&5
- $as_echo_n "checking for __dn_expand in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv___dn_expand+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __dn_expand ();
- int
- main ()
- {
- return __dn_expand ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv___dn_expand=yes
- else
- ac_cv_lib_resolv___dn_expand=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_expand" >&5
- $as_echo "$ac_cv_lib_resolv___dn_expand" >&6; }
- if test "x$ac_cv_lib_resolv___dn_expand" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lresolv"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case resolv in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lresolv $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
- $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
- ac_cv_func_dn_expand=yes
- else
- unset ac_cv_lib_bind_dn_expand
- unset ac_cv_lib_bind___dn_expand
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lbind" >&5
- $as_echo_n "checking for dn_expand in -lbind... " >&6; }
- if ${ac_cv_lib_bind_dn_expand+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dn_expand ();
- int
- main ()
- {
- return dn_expand ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind_dn_expand=yes
- else
- ac_cv_lib_bind_dn_expand=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_expand" >&5
- $as_echo "$ac_cv_lib_bind_dn_expand" >&6; }
- if test "x$ac_cv_lib_bind_dn_expand" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lbind" >&5
- $as_echo_n "checking for __dn_expand in -lbind... " >&6; }
- if ${ac_cv_lib_bind___dn_expand+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __dn_expand ();
- int
- main ()
- {
- return __dn_expand ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind___dn_expand=yes
- else
- ac_cv_lib_bind___dn_expand=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_expand" >&5
- $as_echo "$ac_cv_lib_bind___dn_expand" >&6; }
- if test "x$ac_cv_lib_bind___dn_expand" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lbind"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case bind in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lbind $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
- $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
- ac_cv_func_dn_expand=yes
- else
- unset ac_cv_lib_socket_dn_expand
- unset ac_cv_lib_socket___dn_expand
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_expand in -lsocket" >&5
- $as_echo_n "checking for dn_expand in -lsocket... " >&6; }
- if ${ac_cv_lib_socket_dn_expand+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dn_expand ();
- int
- main ()
- {
- return dn_expand ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket_dn_expand=yes
- else
- ac_cv_lib_socket_dn_expand=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_expand" >&5
- $as_echo "$ac_cv_lib_socket_dn_expand" >&6; }
- if test "x$ac_cv_lib_socket_dn_expand" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_expand in -lsocket" >&5
- $as_echo_n "checking for __dn_expand in -lsocket... " >&6; }
- if ${ac_cv_lib_socket___dn_expand+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __dn_expand ();
- int
- main ()
- {
- return __dn_expand ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket___dn_expand=yes
- else
- ac_cv_lib_socket___dn_expand=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_expand" >&5
- $as_echo "$ac_cv_lib_socket___dn_expand" >&6; }
- if test "x$ac_cv_lib_socket___dn_expand" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lsocket"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case socket in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsocket $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_DN_EXPAND 1" >>confdefs.h
- $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
- ac_cv_func_dn_expand=yes
- else
- :
- fi
- fi
- fi
- ;;
- esac
- unset ac_cv_func_dn_skipname
- unset ac_cv_func___dn_skipname
- unset found
- ac_fn_c_check_func "$LINENO" "dn_skipname" "ac_cv_func_dn_skipname"
- if test "x$ac_cv_func_dn_skipname" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__dn_skipname" "ac_cv_func___dn_skipname"
- if test "x$ac_cv_func___dn_skipname" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
- ac_cv_func_dn_skipname=yes
- ;;
- *)
- unset ac_cv_lib_resolv_dn_skipname
- unset ac_cv_lib_resolv___dn_skipname
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lresolv" >&5
- $as_echo_n "checking for dn_skipname in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv_dn_skipname+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dn_skipname ();
- int
- main ()
- {
- return dn_skipname ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv_dn_skipname=yes
- else
- ac_cv_lib_resolv_dn_skipname=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_dn_skipname" >&5
- $as_echo "$ac_cv_lib_resolv_dn_skipname" >&6; }
- if test "x$ac_cv_lib_resolv_dn_skipname" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lresolv" >&5
- $as_echo_n "checking for __dn_skipname in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv___dn_skipname+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __dn_skipname ();
- int
- main ()
- {
- return __dn_skipname ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv___dn_skipname=yes
- else
- ac_cv_lib_resolv___dn_skipname=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___dn_skipname" >&5
- $as_echo "$ac_cv_lib_resolv___dn_skipname" >&6; }
- if test "x$ac_cv_lib_resolv___dn_skipname" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lresolv"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case resolv in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lresolv $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
- $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
- ac_cv_func_dn_skipname=yes
- else
- unset ac_cv_lib_bind_dn_skipname
- unset ac_cv_lib_bind___dn_skipname
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lbind" >&5
- $as_echo_n "checking for dn_skipname in -lbind... " >&6; }
- if ${ac_cv_lib_bind_dn_skipname+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dn_skipname ();
- int
- main ()
- {
- return dn_skipname ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind_dn_skipname=yes
- else
- ac_cv_lib_bind_dn_skipname=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_dn_skipname" >&5
- $as_echo "$ac_cv_lib_bind_dn_skipname" >&6; }
- if test "x$ac_cv_lib_bind_dn_skipname" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lbind" >&5
- $as_echo_n "checking for __dn_skipname in -lbind... " >&6; }
- if ${ac_cv_lib_bind___dn_skipname+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __dn_skipname ();
- int
- main ()
- {
- return __dn_skipname ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind___dn_skipname=yes
- else
- ac_cv_lib_bind___dn_skipname=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___dn_skipname" >&5
- $as_echo "$ac_cv_lib_bind___dn_skipname" >&6; }
- if test "x$ac_cv_lib_bind___dn_skipname" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lbind"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case bind in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lbind $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
- $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
- ac_cv_func_dn_skipname=yes
- else
- unset ac_cv_lib_socket_dn_skipname
- unset ac_cv_lib_socket___dn_skipname
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dn_skipname in -lsocket" >&5
- $as_echo_n "checking for dn_skipname in -lsocket... " >&6; }
- if ${ac_cv_lib_socket_dn_skipname+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dn_skipname ();
- int
- main ()
- {
- return dn_skipname ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket_dn_skipname=yes
- else
- ac_cv_lib_socket_dn_skipname=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_dn_skipname" >&5
- $as_echo "$ac_cv_lib_socket_dn_skipname" >&6; }
- if test "x$ac_cv_lib_socket_dn_skipname" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __dn_skipname in -lsocket" >&5
- $as_echo_n "checking for __dn_skipname in -lsocket... " >&6; }
- if ${ac_cv_lib_socket___dn_skipname+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __dn_skipname ();
- int
- main ()
- {
- return __dn_skipname ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket___dn_skipname=yes
- else
- ac_cv_lib_socket___dn_skipname=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___dn_skipname" >&5
- $as_echo "$ac_cv_lib_socket___dn_skipname" >&6; }
- if test "x$ac_cv_lib_socket___dn_skipname" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lsocket"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case socket in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsocket $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_DN_SKIPNAME 1" >>confdefs.h
- $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
- ac_cv_func_dn_skipname=yes
- else
- :
- fi
- fi
- fi
- ;;
- esac
- unset ac_cv_func_res_search
- unset ac_cv_func___res_search
- unset found
- ac_fn_c_check_func "$LINENO" "res_search" "ac_cv_func_res_search"
- if test "x$ac_cv_func_res_search" = xyes; then :
- found=yes
- else
- ac_fn_c_check_func "$LINENO" "__res_search" "ac_cv_func___res_search"
- if test "x$ac_cv_func___res_search" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- case $found in
- yes)
- $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
- ac_cv_func_res_search=yes
- ;;
- *)
- unset ac_cv_lib_resolv_res_search
- unset ac_cv_lib_resolv___res_search
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
- $as_echo_n "checking for res_search in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv_res_search+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char res_search ();
- int
- main ()
- {
- return res_search ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv_res_search=yes
- else
- ac_cv_lib_resolv_res_search=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
- $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
- if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lresolv" >&5
- $as_echo_n "checking for __res_search in -lresolv... " >&6; }
- if ${ac_cv_lib_resolv___res_search+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresolv $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __res_search ();
- int
- main ()
- {
- return __res_search ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_resolv___res_search=yes
- else
- ac_cv_lib_resolv___res_search=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_search" >&5
- $as_echo "$ac_cv_lib_resolv___res_search" >&6; }
- if test "x$ac_cv_lib_resolv___res_search" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lresolv"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case resolv in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lresolv $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
- $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
- ac_cv_func_res_search=yes
- else
- unset ac_cv_lib_bind_res_search
- unset ac_cv_lib_bind___res_search
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lbind" >&5
- $as_echo_n "checking for res_search in -lbind... " >&6; }
- if ${ac_cv_lib_bind_res_search+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char res_search ();
- int
- main ()
- {
- return res_search ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind_res_search=yes
- else
- ac_cv_lib_bind_res_search=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_res_search" >&5
- $as_echo "$ac_cv_lib_bind_res_search" >&6; }
- if test "x$ac_cv_lib_bind_res_search" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lbind" >&5
- $as_echo_n "checking for __res_search in -lbind... " >&6; }
- if ${ac_cv_lib_bind___res_search+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbind $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __res_search ();
- int
- main ()
- {
- return __res_search ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_bind___res_search=yes
- else
- ac_cv_lib_bind___res_search=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind___res_search" >&5
- $as_echo "$ac_cv_lib_bind___res_search" >&6; }
- if test "x$ac_cv_lib_bind___res_search" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lbind"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case bind in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lbind $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
- $as_echo "#define HAVE_LIBBIND 1" >>confdefs.h
- ac_cv_func_res_search=yes
- else
- unset ac_cv_lib_socket_res_search
- unset ac_cv_lib_socket___res_search
- unset found
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lsocket" >&5
- $as_echo_n "checking for res_search in -lsocket... " >&6; }
- if ${ac_cv_lib_socket_res_search+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char res_search ();
- int
- main ()
- {
- return res_search ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket_res_search=yes
- else
- ac_cv_lib_socket_res_search=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_res_search" >&5
- $as_echo "$ac_cv_lib_socket_res_search" >&6; }
- if test "x$ac_cv_lib_socket_res_search" = xyes; then :
- found=yes
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_search in -lsocket" >&5
- $as_echo_n "checking for __res_search in -lsocket... " >&6; }
- if ${ac_cv_lib_socket___res_search+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsocket $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char __res_search ();
- int
- main ()
- {
- return __res_search ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_socket___res_search=yes
- else
- ac_cv_lib_socket___res_search=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket___res_search" >&5
- $as_echo "$ac_cv_lib_socket___res_search" >&6; }
- if test "x$ac_cv_lib_socket___res_search" = xyes; then :
- found=yes
- else
- found=no
- fi
- fi
- if test "$found" = "yes"; then
- ac_libs=$LIBS
- LIBS="$LIBS -lsocket"
- if test "$cross_compiling" = yes; then :
- found=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- main() { return (0); }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- found=yes
- else
- found=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- LIBS=$ac_libs
- fi
- if test "$found" = "yes"; then
- case socket in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lsocket $LIBS"
- ;;
- esac
- $as_echo "#define HAVE_RES_SEARCH 1" >>confdefs.h
- $as_echo "#define HAVE_LIBSOCKET 1" >>confdefs.h
- ac_cv_func_res_search=yes
- else
- :
- fi
- fi
- fi
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime() declaration fails" >&5
- $as_echo_n "checking whether strptime() declaration fails... " >&6; }
- if ${ac_cv_strptime_decl_fails+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <time.h>
- int
- main ()
- {
- #ifndef HAVE_STRPTIME
- #error no strptime() on this platform
- #else
- /* use invalid strptime() declaration to see if it fails to compile */
- int strptime(const char *s, const char *format, struct tm *tm);
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_strptime_decl_fails=no
- else
- ac_cv_strptime_decl_fails=yes
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strptime_decl_fails" >&5
- $as_echo "$ac_cv_strptime_decl_fails" >&6; }
- if test "$ac_cv_strptime_decl_fails" = "yes"; then
- $as_echo "#define HAVE_STRPTIME_DECL_FAILS 1" >>confdefs.h
- fi
- for ac_header in wchar.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
- if test "x$ac_cv_header_wchar_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_WCHAR_H 1
- _ACEOF
- fi
- done
- for ac_func in mblen mbrlen mbsinit
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
- $as_echo_n "checking for mbstate_t... " >&6; }
- if ${ac_cv_type_mbstate_t+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef HAVE_WCHAR_H
- # include <wchar.h>
- #endif
- int
- main ()
- {
- mbstate_t a;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_type_mbstate_t=yes
- else
- ac_cv_type_mbstate_t=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
- $as_echo "$ac_cv_type_mbstate_t" >&6; }
- if test "$ac_cv_type_mbstate_t" = "yes"; then
- $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
- fi
- for ac_header in atomic.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "atomic.h" "ac_cv_header_atomic_h" "$ac_includes_default"
- if test "x$ac_cv_header_atomic_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATOMIC_H 1
- _ACEOF
- fi
- done
- ac_fn_c_check_decl "$LINENO" "arc4random_buf" "ac_cv_have_decl_arc4random_buf" "$ac_includes_default"
- if test "x$ac_cv_have_decl_arc4random_buf" = xyes; then :
- ac_have_decl=1
- else
- ac_have_decl=0
- fi
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DECL_ARC4RANDOM_BUF $ac_have_decl
- _ACEOF
- php_with_password_argon2=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Argon2 support" >&5
- $as_echo_n "checking for Argon2 support... " >&6; }
- # Check whether --with-password-argon2 was given.
- if test "${with_password_argon2+set}" = set; then :
- withval=$with_password_argon2; PHP_PASSWORD_ARGON2=$withval
- else
- PHP_PASSWORD_ARGON2=no
- test "$PHP_ENABLE_ALL" && PHP_PASSWORD_ARGON2=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PASSWORD_ARGON2 in
- shared,*)
- PHP_PASSWORD_ARGON2=`echo "$PHP_PASSWORD_ARGON2"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PASSWORD_ARGON2=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PASSWORD_ARGON2" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Argon2 library" >&5
- $as_echo_n "checking for Argon2 library... " >&6; }
- for i in $PHP_PASSWORD_ARGON2 /usr /usr/local ; do
- if test -r $i/include/argon2.h; then
- ARGON2_DIR=$i;
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
- $as_echo "found in $i" >&6; }
- break
- fi
- done
- if test -z "$ARGON2_DIR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- as_fn_error $? "Please ensure the argon2 header and library are installed" "$LINENO" 5
- fi
- if test -n "$ARGON2_DIR/$PHP_LIBDIR"; then
- if test "$ARGON2_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ARGON2_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$ARGON2_DIR/$PHP_LIBDIR" || echo "$ARGON2_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$ARGON2_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $ARGON2_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ARGON2_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case argon2 in
- c|c_r|pthread*) ;;
- *)
- LIBS="-largon2 $LIBS"
- ;;
- esac
- if test "$ARGON2_DIR/include" != "/usr/include"; then
- if test -z "$ARGON2_DIR/include" || echo "$ARGON2_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$ARGON2_DIR/include
- else
- ep_dir=`echo $ARGON2_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ARGON2_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for argon2id_hash_raw in -largon2" >&5
- $as_echo_n "checking for argon2id_hash_raw in -largon2... " >&6; }
- if ${ac_cv_lib_argon2_argon2id_hash_raw+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-largon2 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char argon2id_hash_raw ();
- int
- main ()
- {
- return argon2id_hash_raw ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_argon2_argon2id_hash_raw=yes
- else
- ac_cv_lib_argon2_argon2id_hash_raw=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_argon2_argon2id_hash_raw" >&5
- $as_echo "$ac_cv_lib_argon2_argon2id_hash_raw" >&6; }
- if test "x$ac_cv_lib_argon2_argon2id_hash_raw" = xyes; then :
- LIBS="$LIBS -largon2"
- $as_echo "#define HAVE_ARGON2LIB 1" >>confdefs.h
- else
- as_fn_error $? "Problem with libargon2.(a|so). Please verify that Argon2 header and libaries >= 20161029 are installed" "$LINENO" 5
- fi
- fi
- for ac_header in net/if.h
- do :
- ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
- #ifdef HAVE_SYS_SOCKET_H
- #include <sys/socket.h>
- #endif
- #include <net/if.h>
- "
- if test "x$ac_cv_header_net_if_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_NET_IF_H 1
- _ACEOF
- fi
- done
- for ac_header in netdb.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
- if test "x$ac_cv_header_netdb_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_NETDB_H 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable getifaddrs" >&5
- $as_echo_n "checking for usable getifaddrs... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <ifaddrs.h>
- int
- main ()
- {
- struct ifaddrs *interfaces;
- if (!getifaddrs(&interfaces)) {
- freeifaddrs(interfaces);
- }
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_have_getifaddrs=yes
- else
- ac_have_getifaddrs=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test "$ac_have_getifaddrs" = "yes" ; then
- $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- ext_builddir=ext/standard
- ext_srcdir=$abs_srcdir/ext/standard
- ext_dir=ext/standard
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "" != "shared" && test "" != "yes" && test "" != "cli"; then
- PHP_STANDARD_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
- cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
- flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
- info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
- microtime.c pack.c pageinfo.c quot_print.c rand.c mt_rand.c \
- soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
- var.c versioning.c assert.c strnatcmp.c levenshtein.c \
- incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
- http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
- var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
- filters.c proc_open.c streamsfuncs.c http.c password.c \
- random.c net.c hrtime.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC standard;$ext_dir"
- if test "" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC standard;$ext_dir"
- fi
- else
- if test "" = "shared" || test "" = "yes"; then
- PHP_STANDARD_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
- cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
- flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
- info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
- microtime.c pack.c pageinfo.c quot_print.c rand.c mt_rand.c \
- soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
- var.c versioning.c assert.c strnatcmp.c levenshtein.c \
- incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
- http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
- var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
- filters.c proc_open.c streamsfuncs.c http.c password.c \
- random.c net.c hrtime.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_standard="$shared_objects_standard $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/standard.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/standard.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_standard"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/standard.$suffix: $ext_builddir/standard.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/standard.$suffix \$(phplibdir)
- $ext_builddir/standard.$suffix: \$(shared_objects_standard) \$(STANDARD_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_standard) \$(STANDARD_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_STANDARD 1
- _ACEOF
- fi
- fi
- if test "" != "shared" && test "" != "yes" && test "" = "cli"; then
- PHP_STANDARD_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
- cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
- flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
- info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
- microtime.c pack.c pageinfo.c quot_print.c rand.c mt_rand.c \
- soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
- var.c versioning.c assert.c strnatcmp.c levenshtein.c \
- incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
- http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
- var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
- filters.c proc_open.c streamsfuncs.c http.c password.c \
- random.c net.c hrtime.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC standard;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in array.c base64.c basic_functions.c browscap.c crc32.c crypt.c \
- cyr_convert.c datetime.c dir.c dl.c dns.c exec.c file.c filestat.c \
- flock_compat.c formatted_print.c fsock.c head.c html.c image.c \
- info.c iptc.c lcg.c link.c mail.c math.c md5.c metaphone.c \
- microtime.c pack.c pageinfo.c quot_print.c rand.c mt_rand.c \
- soundex.c string.c scanf.c syslog.c type.c uniqid.c url.c \
- var.c versioning.c assert.c strnatcmp.c levenshtein.c \
- incomplete_class.c url_scanner_ex.c ftp_fopen_wrapper.c \
- http_fopen_wrapper.c php_fopen_wrapper.c credits.c css.c \
- var_unserializer.c ftok.c sha1.c user_filters.c uuencode.c \
- filters.c proc_open.c streamsfuncs.c http.c password.c \
- random.c net.c hrtime.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC standard;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=standard
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- src=$ext_srcdir/Makefile.frag
- ac_srcdir=$ext_srcdir
- ac_builddir=$ext_builddir
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- for header_file in ext/standard/; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- php_enable_sysvmsg=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V IPC support" >&5
- $as_echo_n "checking whether to enable System V IPC support... " >&6; }
- # Check whether --enable-sysvmsg was given.
- if test "${enable_sysvmsg+set}" = set; then :
- enableval=$enable_sysvmsg; PHP_SYSVMSG=$enableval
- else
- PHP_SYSVMSG=no
- test "$PHP_ENABLE_ALL" && PHP_SYSVMSG=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SYSVMSG in
- shared,*)
- PHP_SYSVMSG=`echo "$PHP_SYSVMSG"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SYSVMSG=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_SYSVMSG" != "no"; then
- ac_fn_c_check_header_mongrel "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default"
- if test "x$ac_cv_header_sys_msg_h" = xyes; then :
- else
- as_fn_error $? "Cannot enable System V IPC support, sys/msg.h is missing" "$LINENO" 5
- fi
- $as_echo "#define HAVE_SYSVMSG 1" >>confdefs.h
- ext_builddir=ext/sysvmsg
- ext_srcdir=$abs_srcdir/ext/sysvmsg
- ext_dir=ext/sysvmsg
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_SYSVMSG_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in sysvmsg.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC sysvmsg;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC sysvmsg;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_SYSVMSG_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in sysvmsg.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_sysvmsg="$shared_objects_sysvmsg $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvmsg.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvmsg.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvmsg"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/sysvmsg.$suffix: $ext_builddir/sysvmsg.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/sysvmsg.$suffix \$(phplibdir)
- $ext_builddir/sysvmsg.$suffix: \$(shared_objects_sysvmsg) \$(SYSVMSG_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_sysvmsg) \$(SYSVMSG_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_SYSVMSG 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_SYSVMSG_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in sysvmsg.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC sysvmsg;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in sysvmsg.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC sysvmsg;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=sysvmsg
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- fi
- php_enable_sysvsem=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V semaphore support" >&5
- $as_echo_n "checking whether to enable System V semaphore support... " >&6; }
- # Check whether --enable-sysvsem was given.
- if test "${enable_sysvsem+set}" = set; then :
- enableval=$enable_sysvsem; PHP_SYSVSEM=$enableval
- else
- PHP_SYSVSEM=no
- test "$PHP_ENABLE_ALL" && PHP_SYSVSEM=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SYSVSEM in
- shared,*)
- PHP_SYSVSEM=`echo "$PHP_SYSVSEM"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SYSVSEM=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_SYSVSEM" != "no"; then
- ext_builddir=ext/sysvsem
- ext_srcdir=$abs_srcdir/ext/sysvsem
- ext_dir=ext/sysvsem
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_SYSVSEM_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in sysvsem.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC sysvsem;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC sysvsem;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_SYSVSEM_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in sysvsem.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_sysvsem="$shared_objects_sysvsem $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvsem.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvsem.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvsem"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/sysvsem.$suffix: $ext_builddir/sysvsem.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/sysvsem.$suffix \$(phplibdir)
- $ext_builddir/sysvsem.$suffix: \$(shared_objects_sysvsem) \$(SYSVSEM_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_sysvsem) \$(SYSVSEM_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_SYSVSEM 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_SYSVSEM_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in sysvsem.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC sysvsem;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in sysvsem.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC sysvsem;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=sysvsem
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- $as_echo "#define HAVE_SYSVSEM 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union semun" >&5
- $as_echo_n "checking for union semun... " >&6; }
- if ${php_cv_semun+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/ipc.h>
- #include <sys/sem.h>
- int
- main ()
- {
- union semun x;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- php_cv_semun=yes
- else
- php_cv_semun=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_semun" >&5
- $as_echo "$php_cv_semun" >&6; }
- if test "$php_cv_semun" = "yes"; then
- $as_echo "#define HAVE_SEMUN 1" >>confdefs.h
- else
- $as_echo "#define HAVE_SEMUN 0" >>confdefs.h
- fi
- fi
- php_enable_sysvshm=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable System V shared memory support" >&5
- $as_echo_n "checking whether to enable System V shared memory support... " >&6; }
- # Check whether --enable-sysvshm was given.
- if test "${enable_sysvshm+set}" = set; then :
- enableval=$enable_sysvshm; PHP_SYSVSHM=$enableval
- else
- PHP_SYSVSHM=no
- test "$PHP_ENABLE_ALL" && PHP_SYSVSHM=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_SYSVSHM in
- shared,*)
- PHP_SYSVSHM=`echo "$PHP_SYSVSHM"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_SYSVSHM=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_SYSVSHM" != "no"; then
- $as_echo "#define HAVE_SYSVSHM 1" >>confdefs.h
- ext_builddir=ext/sysvshm
- ext_srcdir=$abs_srcdir/ext/sysvshm
- ext_dir=ext/sysvshm
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_SYSVSHM_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in sysvshm.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC sysvshm;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC sysvshm;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_SYSVSHM_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in sysvshm.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_sysvshm="$shared_objects_sysvshm $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/sysvshm.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/sysvshm.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_sysvshm"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/sysvshm.$suffix: $ext_builddir/sysvshm.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/sysvshm.$suffix \$(phplibdir)
- $ext_builddir/sysvshm.$suffix: \$(shared_objects_sysvshm) \$(SYSVSHM_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_sysvshm) \$(SYSVSHM_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_SYSVSHM 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_SYSVSHM_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in sysvshm.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC sysvshm;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in sysvshm.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC sysvshm;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=sysvshm
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- fi
- php_with_tidy=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIDY support" >&5
- $as_echo_n "checking for TIDY support... " >&6; }
- # Check whether --with-tidy was given.
- if test "${with_tidy+set}" = set; then :
- withval=$with_tidy; PHP_TIDY=$withval
- else
- PHP_TIDY=no
- test "$PHP_ENABLE_ALL" && PHP_TIDY=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_TIDY in
- shared,*)
- PHP_TIDY=`echo "$PHP_TIDY"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_TIDY=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_TIDY" != "no"; then
- if test "$PHP_TIDY" != "yes"; then
- TIDY_SEARCH_DIRS=$PHP_TIDY
- else
- TIDY_SEARCH_DIRS="/usr/local /usr"
- fi
- for i in $TIDY_SEARCH_DIRS; do
- for j in tidy tidyp; do
- if test -f $i/include/$j/$j.h; then
- TIDY_DIR=$i
- TIDY_INCDIR=$i/include/$j
- TIDY_LIB_NAME=$j
- break
- elif test -f $i/include/$j.h; then
- TIDY_DIR=$i
- TIDY_INCDIR=$i/include
- TIDY_LIB_NAME=$j
- break
- fi
- done
- done
- if test -z "$TIDY_DIR"; then
- as_fn_error $? "Cannot find libtidy" "$LINENO" 5
- else
- if test -f "$TIDY_INCDIR/tidybuffio.h"; then
- $as_echo "#define HAVE_TIDYBUFFIO_H 1" >>confdefs.h
- fi
- fi
- TIDY_LIBDIR=$TIDY_DIR/$PHP_LIBDIR
- if test "$TIDY_LIB_NAME" == 'tidyp'; then
- $as_echo "#define HAVE_TIDYP_H 1" >>confdefs.h
- else
- $as_echo "#define HAVE_TIDY_H 1" >>confdefs.h
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$TIDY_LIB_NAME''_tidyOptGetDoc" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -l$TIDY_LIB_NAME" >&5
- $as_echo_n "checking for tidyOptGetDoc in -l$TIDY_LIB_NAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$TIDY_LIB_NAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char tidyOptGetDoc ();
- int
- main ()
- {
- return tidyOptGetDoc ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$TIDY_LIB_NAME_tidyOptGetDoc
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyOptGetDoc in -ltidy5" >&5
- $as_echo_n "checking for tidyOptGetDoc in -ltidy5... " >&6; }
- if ${ac_cv_lib_tidy5_tidyOptGetDoc+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltidy5 $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char tidyOptGetDoc ();
- int
- main ()
- {
- return tidyOptGetDoc ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_tidy5_tidyOptGetDoc=yes
- else
- ac_cv_lib_tidy5_tidyOptGetDoc=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tidy5_tidyOptGetDoc" >&5
- $as_echo "$ac_cv_lib_tidy5_tidyOptGetDoc" >&6; }
- if test "x$ac_cv_lib_tidy5_tidyOptGetDoc" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- TIDY_LIB_NAME=tidy5
- $as_echo "#define HAVE_TIDYOPTGETDOC 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_tidy5_tidyOptGetDoc
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$TIDY_LIB_NAME''_tidyReleaseDate" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tidyReleaseDate in -l$TIDY_LIB_NAME" >&5
- $as_echo_n "checking for tidyReleaseDate in -l$TIDY_LIB_NAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$TIDY_LIB_NAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char tidyReleaseDate ();
- int
- main ()
- {
- return tidyReleaseDate ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_TIDYRELEASEDATE 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$TIDY_LIB_NAME_tidyReleaseDate
- fi
- if test "$ext_shared" = "yes"; then
- TIDY_SHARED_LIBADD="-l$TIDY_LIB_NAME $TIDY_SHARED_LIBADD"
- if test -n "$TIDY_LIBDIR"; then
- if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then
- if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$TIDY_LIBDIR
- else
- ep_dir=`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$TIDY_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- TIDY_SHARED_LIBADD="-L$ai_p $TIDY_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && TIDY_SHARED_LIBADD="$ld_runpath_switch$ai_p $TIDY_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$TIDY_LIBDIR"; then
- if test "$TIDY_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$TIDY_LIBDIR" != "/usr/lib"; then
- if test -z "$TIDY_LIBDIR" || echo "$TIDY_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$TIDY_LIBDIR
- else
- ep_dir=`echo $TIDY_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$TIDY_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $TIDY_LIB_NAME in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$TIDY_LIB_NAME $LIBS"
- ;;
- esac
- fi
- if test "$TIDY_INCDIR" != "/usr/include"; then
- if test -z "$TIDY_INCDIR" || echo "$TIDY_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$TIDY_INCDIR
- else
- ep_dir=`echo $TIDY_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$TIDY_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ext_builddir=ext/tidy
- ext_srcdir=$abs_srcdir/ext/tidy
- ext_dir=ext/tidy
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_TIDY_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in tidy.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC tidy;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC tidy;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_TIDY_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in tidy.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_tidy="$shared_objects_tidy $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/tidy.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/tidy.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tidy"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/tidy.$suffix: $ext_builddir/tidy.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/tidy.$suffix \$(phplibdir)
- $ext_builddir/tidy.$suffix: \$(shared_objects_tidy) \$(TIDY_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_tidy) \$(TIDY_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_TIDY 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_TIDY_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in tidy.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC tidy;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in tidy.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC tidy;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=tidy
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST TIDY_SHARED_LIBADD"
- $as_echo "#define HAVE_TIDY 1" >>confdefs.h
- fi
- php_enable_tokenizer=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable tokenizer support" >&5
- $as_echo_n "checking whether to enable tokenizer support... " >&6; }
- # Check whether --enable-tokenizer was given.
- if test "${enable_tokenizer+set}" = set; then :
- enableval=$enable_tokenizer; PHP_TOKENIZER=$enableval
- else
- PHP_TOKENIZER=yes
- test "$PHP_ENABLE_ALL" && PHP_TOKENIZER=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_TOKENIZER in
- shared,*)
- PHP_TOKENIZER=`echo "$PHP_TOKENIZER"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_TOKENIZER=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_TOKENIZER" != "no"; then
- ext_builddir=ext/tokenizer
- ext_srcdir=$abs_srcdir/ext/tokenizer
- ext_dir=ext/tokenizer
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_TOKENIZER_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in tokenizer.c tokenizer_data.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC tokenizer;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC tokenizer;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_TOKENIZER_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in tokenizer.c tokenizer_data.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_tokenizer="$shared_objects_tokenizer $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/tokenizer.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/tokenizer.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_tokenizer"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/tokenizer.$suffix: $ext_builddir/tokenizer.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/tokenizer.$suffix \$(phplibdir)
- $ext_builddir/tokenizer.$suffix: \$(shared_objects_tokenizer) \$(TOKENIZER_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_tokenizer) \$(TOKENIZER_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_TOKENIZER 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_TOKENIZER_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in tokenizer.c tokenizer_data.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC tokenizer;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in tokenizer.c tokenizer_data.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC tokenizer;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=tokenizer
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- src=$ext_srcdir/Makefile.frag
- ac_srcdir=$ext_srcdir
- ac_builddir=$ext_builddir
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- fi
- php_enable_wddx=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable WDDX support" >&5
- $as_echo_n "checking whether to enable WDDX support... " >&6; }
- # Check whether --enable-wddx was given.
- if test "${enable_wddx+set}" = set; then :
- enableval=$enable_wddx; PHP_WDDX=$enableval
- else
- PHP_WDDX=no
- test "$PHP_ENABLE_ALL" && PHP_WDDX=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_WDDX in
- shared,*)
- PHP_WDDX=`echo "$PHP_WDDX"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_WDDX=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_LIBXML_DIR"; then
- php_with_libxml_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
- $as_echo_n "checking libxml2 install dir... " >&6; }
- # Check whether --with-libxml-dir was given.
- if test "${with_libxml_dir+set}" = set; then :
- withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
- else
- PHP_LIBXML_DIR=no
- fi
- ext_output=$PHP_LIBXML_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- php_with_libexpat_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat dir for WDDX" >&5
- $as_echo_n "checking libexpat dir for WDDX... " >&6; }
- # Check whether --with-libexpat-dir was given.
- if test "${with_libexpat_dir+set}" = set; then :
- withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
- else
- PHP_LIBEXPAT_DIR=no
- fi
- ext_output=$PHP_LIBEXPAT_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_WDDX" != "no"; then
- if test "$PHP_LIBEXPAT_DIR" = "no"; then
- if test "$PHP_LIBXML" = "no"; then
- as_fn_error $? "WDDX extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
- fi
- found_libxml=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
- $as_echo_n "checking for xml2-config path... " >&6; }
- if ${ac_cv_php_xml2_config_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- for i in $PHP_LIBXML_DIR /usr/local /usr; do
- if test -x "$i/bin/xml2-config"; then
- ac_cv_php_xml2_config_path="$i/bin/xml2-config"
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
- $as_echo "$ac_cv_php_xml2_config_path" >&6; }
- if test -x "$ac_cv_php_xml2_config_path"; then
- XML2_CONFIG="$ac_cv_php_xml2_config_path"
- libxml_full_version=`$XML2_CONFIG --version`
- ac_IFS=$IFS
- IFS="."
- set $libxml_full_version
- IFS=$ac_IFS
- LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
- if test "$LIBXML_VERSION" -ge "2006011"; then
- found_libxml=yes
- LIBXML_LIBS=`$XML2_CONFIG --libs`
- LIBXML_INCS=`$XML2_CONFIG --cflags`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- if test "$found_libxml" = "no"; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libxml-2.0; then
- if $PKG_CONFIG --atleast-version=2.6.11 libxml-2.0; then
- found_libxml=yes
- LIBXML_LIBS=`$PKG_CONFIG --libs libxml-2.0`
- LIBXML_INCS=`$PKG_CONFIG --cflags-only-I libxml-2.0`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- fi
- if test "$found_libxml" = "yes"; then
- for ac_i in $LIBXML_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- WDDX_SHARED_LIBADD="$WDDX_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $LIBXML_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
- $as_echo_n "checking whether libxml build works... " >&6; }
- if ${php_cv_libxml_build_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- old_LIBS=$LIBS
- LIBS="
- $WDDX_SHARED_LIBADD
- $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char xmlInitParser();
- int main() {
- xmlInitParser();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- php_cv_libxml_build_works=yes
- else
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
- $as_echo "$php_cv_libxml_build_works" >&6; }
- if test "$php_cv_libxml_build_works" = "yes"; then
- $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
- fi
- if test "$PHP_XML" = "no"; then
- case ext/xml in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in compat.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- BUILD_DIR="$BUILD_DIR ext/xml"
- fi
- else
- as_fn_error $? "libxml2 not found. Use --with-libxml-dir=<DIR>" "$LINENO" 5
- fi
- fi
- if test "$PHP_LIBEXPAT_DIR" != "no"; then
- for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
- if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
- EXPAT_DIR=$i
- break
- fi
- done
- if test -z "$EXPAT_DIR"; then
- as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5
- fi
- if test "$EXPAT_DIR/include" != "/usr/include"; then
- if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$EXPAT_DIR/include
- else
- ep_dir=`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$EXPAT_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- WDDX_SHARED_LIBADD="-lexpat $WDDX_SHARED_LIBADD"
- if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
- if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$EXPAT_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- WDDX_SHARED_LIBADD="-L$ai_p $WDDX_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && WDDX_SHARED_LIBADD="$ld_runpath_switch$ai_p $WDDX_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
- if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$EXPAT_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case expat in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lexpat $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
- fi
- $as_echo "#define HAVE_WDDX 1" >>confdefs.h
- ext_builddir=ext/wddx
- ext_srcdir=$abs_srcdir/ext/wddx
- ext_dir=ext/wddx
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_WDDX_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in wddx.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC wddx;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC wddx;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_WDDX_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in wddx.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_wddx="$shared_objects_wddx $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/wddx.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/wddx.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_wddx"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/wddx.$suffix: $ext_builddir/wddx.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/wddx.$suffix \$(phplibdir)
- $ext_builddir/wddx.$suffix: \$(shared_objects_wddx) \$(WDDX_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_wddx) \$(WDDX_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_WDDX 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_WDDX_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in wddx.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC wddx;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in wddx.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC wddx;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=wddx
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- am_i_shared=$PHP_WDDX_SHARED
- is_it_shared=$PHP_LIBXML_SHARED
- is_it_enabled=$PHP_LIBXML
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension wddx to build statically, but it
- depends on extension libxml, which you've configured to build shared.
- You either need to build wddx shared or build libxml statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension wddx, which depends on extension libxml,
- but you've either not enabled libxml, or have disabled it.
- " "$LINENO" 5
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD"
- fi
- php_enable_xml=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XML support" >&5
- $as_echo_n "checking whether to enable XML support... " >&6; }
- # Check whether --enable-xml was given.
- if test "${enable_xml+set}" = set; then :
- enableval=$enable_xml; PHP_XML=$enableval
- else
- PHP_XML=yes
- test "$PHP_ENABLE_ALL" && PHP_XML=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_XML in
- shared,*)
- PHP_XML=`echo "$PHP_XML"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_XML=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_LIBXML_DIR"; then
- php_with_libxml_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
- $as_echo_n "checking libxml2 install dir... " >&6; }
- # Check whether --with-libxml-dir was given.
- if test "${with_libxml_dir+set}" = set; then :
- withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
- else
- PHP_LIBXML_DIR=no
- fi
- ext_output=$PHP_LIBXML_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- php_with_libexpat_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat install dir" >&5
- $as_echo_n "checking libexpat install dir... " >&6; }
- # Check whether --with-libexpat-dir was given.
- if test "${with_libexpat_dir+set}" = set; then :
- withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
- else
- PHP_LIBEXPAT_DIR=no
- fi
- ext_output=$PHP_LIBEXPAT_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_XML" != "no"; then
- if test "$PHP_LIBEXPAT_DIR" = "no"; then
- if test "$PHP_LIBXML" = "no"; then
- as_fn_error $? "XML extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
- fi
- found_libxml=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
- $as_echo_n "checking for xml2-config path... " >&6; }
- if ${ac_cv_php_xml2_config_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- for i in $PHP_LIBXML_DIR /usr/local /usr; do
- if test -x "$i/bin/xml2-config"; then
- ac_cv_php_xml2_config_path="$i/bin/xml2-config"
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
- $as_echo "$ac_cv_php_xml2_config_path" >&6; }
- if test -x "$ac_cv_php_xml2_config_path"; then
- XML2_CONFIG="$ac_cv_php_xml2_config_path"
- libxml_full_version=`$XML2_CONFIG --version`
- ac_IFS=$IFS
- IFS="."
- set $libxml_full_version
- IFS=$ac_IFS
- LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
- if test "$LIBXML_VERSION" -ge "2006011"; then
- found_libxml=yes
- LIBXML_LIBS=`$XML2_CONFIG --libs`
- LIBXML_INCS=`$XML2_CONFIG --cflags`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- if test "$found_libxml" = "no"; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libxml-2.0; then
- if $PKG_CONFIG --atleast-version=2.6.11 libxml-2.0; then
- found_libxml=yes
- LIBXML_LIBS=`$PKG_CONFIG --libs libxml-2.0`
- LIBXML_INCS=`$PKG_CONFIG --cflags-only-I libxml-2.0`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- fi
- if test "$found_libxml" = "yes"; then
- for ac_i in $LIBXML_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- XML_SHARED_LIBADD="$XML_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- XML_SHARED_LIBADD="$XML_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $LIBXML_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
- $as_echo_n "checking whether libxml build works... " >&6; }
- if ${php_cv_libxml_build_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- old_LIBS=$LIBS
- LIBS="
- $XML_SHARED_LIBADD
- $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char xmlInitParser();
- int main() {
- xmlInitParser();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- php_cv_libxml_build_works=yes
- else
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
- $as_echo "$php_cv_libxml_build_works" >&6; }
- if test "$php_cv_libxml_build_works" = "yes"; then
- $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
- fi
- xml_extra_sources="compat.c"
- am_i_shared=$PHP_XML_SHARED
- is_it_shared=$PHP_LIBXML_SHARED
- is_it_enabled=$PHP_LIBXML
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension xml to build statically, but it
- depends on extension libxml, which you've configured to build shared.
- You either need to build xml shared or build libxml statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension xml, which depends on extension libxml,
- but you've either not enabled libxml, or have disabled it.
- " "$LINENO" 5
- fi
- else
- as_fn_error $? "libxml2 not found. Use --with-libxml-dir=<DIR>" "$LINENO" 5
- fi
- fi
- if test "$PHP_LIBEXPAT_DIR" != "no"; then
- for i in $PHP_XML $PHP_LIBEXPAT_DIR /usr /usr/local; do
- if test -f "$i/$PHP_LIBDIR/libexpat.a" || test -f "$i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME"; then
- EXPAT_DIR=$i
- break
- fi
- done
- if test -z "$EXPAT_DIR"; then
- as_fn_error $? "not found. Please reinstall the expat distribution." "$LINENO" 5
- fi
- if test "$EXPAT_DIR/include" != "/usr/include"; then
- if test -z "$EXPAT_DIR/include" || echo "$EXPAT_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$EXPAT_DIR/include
- else
- ep_dir=`echo $EXPAT_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$EXPAT_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- XML_SHARED_LIBADD="-lexpat $XML_SHARED_LIBADD"
- if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
- if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$EXPAT_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- XML_SHARED_LIBADD="-L$ai_p $XML_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && XML_SHARED_LIBADD="$ld_runpath_switch$ai_p $XML_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$EXPAT_DIR/$PHP_LIBDIR"; then
- if test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$EXPAT_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$EXPAT_DIR/$PHP_LIBDIR" || echo "$EXPAT_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$EXPAT_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $EXPAT_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$EXPAT_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case expat in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lexpat $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
- fi
- ext_builddir=ext/xml
- ext_srcdir=$abs_srcdir/ext/xml
- ext_dir=ext/xml
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_XML_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in xml.c $xml_extra_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC xml;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC xml;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_XML_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in xml.c $xml_extra_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_xml="$shared_objects_xml $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xml.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/xml.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xml"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/xml.$suffix: $ext_builddir/xml.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/xml.$suffix \$(phplibdir)
- $ext_builddir/xml.$suffix: \$(shared_objects_xml) \$(XML_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_xml) \$(XML_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_XML 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_XML_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in xml.c $xml_extra_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC xml;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in xml.c $xml_extra_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC xml;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=xml
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST XML_SHARED_LIBADD"
- for header_file in ext/xml/; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- $as_echo "#define HAVE_XML 1" >>confdefs.h
- fi
- php_enable_xmlreader=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLReader support" >&5
- $as_echo_n "checking whether to enable XMLReader support... " >&6; }
- # Check whether --enable-xmlreader was given.
- if test "${enable_xmlreader+set}" = set; then :
- enableval=$enable_xmlreader; PHP_XMLREADER=$enableval
- else
- PHP_XMLREADER=yes
- test "$PHP_ENABLE_ALL" && PHP_XMLREADER=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_XMLREADER in
- shared,*)
- PHP_XMLREADER=`echo "$PHP_XMLREADER"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_XMLREADER=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_LIBXML_DIR"; then
- php_with_libxml_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
- $as_echo_n "checking libxml2 install dir... " >&6; }
- # Check whether --with-libxml-dir was given.
- if test "${with_libxml_dir+set}" = set; then :
- withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
- else
- PHP_LIBXML_DIR=no
- fi
- ext_output=$PHP_LIBXML_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- if test "$PHP_XMLREADER" != "no"; then
- if test "$PHP_LIBXML" = "no"; then
- as_fn_error $? "XMLReader extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
- fi
- found_libxml=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
- $as_echo_n "checking for xml2-config path... " >&6; }
- if ${ac_cv_php_xml2_config_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- for i in $PHP_LIBXML_DIR /usr/local /usr; do
- if test -x "$i/bin/xml2-config"; then
- ac_cv_php_xml2_config_path="$i/bin/xml2-config"
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
- $as_echo "$ac_cv_php_xml2_config_path" >&6; }
- if test -x "$ac_cv_php_xml2_config_path"; then
- XML2_CONFIG="$ac_cv_php_xml2_config_path"
- libxml_full_version=`$XML2_CONFIG --version`
- ac_IFS=$IFS
- IFS="."
- set $libxml_full_version
- IFS=$ac_IFS
- LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
- if test "$LIBXML_VERSION" -ge "2006011"; then
- found_libxml=yes
- LIBXML_LIBS=`$XML2_CONFIG --libs`
- LIBXML_INCS=`$XML2_CONFIG --cflags`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- if test "$found_libxml" = "no"; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libxml-2.0; then
- if $PKG_CONFIG --atleast-version=2.6.11 libxml-2.0; then
- found_libxml=yes
- LIBXML_LIBS=`$PKG_CONFIG --libs libxml-2.0`
- LIBXML_INCS=`$PKG_CONFIG --cflags-only-I libxml-2.0`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- fi
- if test "$found_libxml" = "yes"; then
- for ac_i in $LIBXML_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- XMLREADER_SHARED_LIBADD="$XMLREADER_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- XMLREADER_SHARED_LIBADD="-L$ai_p $XMLREADER_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && XMLREADER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLREADER_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $LIBXML_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
- $as_echo_n "checking whether libxml build works... " >&6; }
- if ${php_cv_libxml_build_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- old_LIBS=$LIBS
- LIBS="
- $XMLREADER_SHARED_LIBADD
- $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char xmlInitParser();
- int main() {
- xmlInitParser();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- php_cv_libxml_build_works=yes
- else
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
- $as_echo "$php_cv_libxml_build_works" >&6; }
- if test "$php_cv_libxml_build_works" = "yes"; then
- $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
- fi
- $as_echo "#define HAVE_XMLREADER 1" >>confdefs.h
- ext_builddir=ext/xmlreader
- ext_srcdir=$abs_srcdir/ext/xmlreader
- ext_dir=ext/xmlreader
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_XMLREADER_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_xmlreader.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC xmlreader;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC xmlreader;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_XMLREADER_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_xmlreader.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_xmlreader="$shared_objects_xmlreader $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlreader.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlreader.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlreader"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/xmlreader.$suffix: $ext_builddir/xmlreader.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/xmlreader.$suffix \$(phplibdir)
- $ext_builddir/xmlreader.$suffix: \$(shared_objects_xmlreader) \$(XMLREADER_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_xmlreader) \$(XMLREADER_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_XMLREADER 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_XMLREADER_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_xmlreader.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC xmlreader;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_xmlreader.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC xmlreader;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=xmlreader
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- am_i_shared=$PHP_XMLREADER_SHARED
- is_it_shared=$PHP_DOM_SHARED
- is_it_enabled=$PHP_DOM
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension xmlreader to build statically, but it
- depends on extension dom, which you've configured to build shared.
- You either need to build xmlreader shared or build dom statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "xtrue" != "xtrue"; then
- as_fn_error $? "
- You've configured extension xmlreader, which depends on extension dom,
- but you've either not enabled dom, or have disabled it.
- " "$LINENO" 5
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST XMLREADER_SHARED_LIBADD"
- else
- as_fn_error $? "libxml2 not found. Please check your libxml2 installation." "$LINENO" 5
- fi
- fi
- # Local macros for automake & autoconf
- php_with_xmlrpc=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLRPC-EPI support" >&5
- $as_echo_n "checking for XMLRPC-EPI support... " >&6; }
- # Check whether --with-xmlrpc was given.
- if test "${with_xmlrpc+set}" = set; then :
- withval=$with_xmlrpc; PHP_XMLRPC=$withval
- else
- PHP_XMLRPC=no
- test "$PHP_ENABLE_ALL" && PHP_XMLRPC=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_XMLRPC in
- shared,*)
- PHP_XMLRPC=`echo "$PHP_XMLRPC"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_XMLRPC=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_LIBXML_DIR"; then
- php_with_libxml_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
- $as_echo_n "checking libxml2 install dir... " >&6; }
- # Check whether --with-libxml-dir was given.
- if test "${with_libxml_dir+set}" = set; then :
- withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
- else
- PHP_LIBXML_DIR=no
- fi
- ext_output=$PHP_LIBXML_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- php_with_libexpat_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libexpat dir for XMLRPC-EPI" >&5
- $as_echo_n "checking libexpat dir for XMLRPC-EPI... " >&6; }
- # Check whether --with-libexpat-dir was given.
- if test "${with_libexpat_dir+set}" = set; then :
- withval=$with_libexpat_dir; PHP_LIBEXPAT_DIR=$withval
- else
- PHP_LIBEXPAT_DIR=no
- fi
- ext_output=$PHP_LIBEXPAT_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_iconv_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking iconv dir for XMLRPC-EPI" >&5
- $as_echo_n "checking iconv dir for XMLRPC-EPI... " >&6; }
- # Check whether --with-iconv-dir was given.
- if test "${with_iconv_dir+set}" = set; then :
- withval=$with_iconv_dir; PHP_ICONV_DIR=$withval
- else
- PHP_ICONV_DIR=no
- fi
- ext_output=$PHP_ICONV_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_XMLRPC" != "no"; then
- am_i_shared=$PHP_XMLRPC_SHARED
- is_it_shared=$PHP_LIBXML_SHARED
- is_it_enabled=$PHP_LIBXML
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension xmlrpc to build statically, but it
- depends on extension libxml, which you've configured to build shared.
- You either need to build xmlrpc shared or build libxml statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension xmlrpc, which depends on extension libxml,
- but you've either not enabled libxml, or have disabled it.
- " "$LINENO" 5
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST XMLRPC_SHARED_LIBADD"
- $as_echo "#define HAVE_XMLRPC 1" >>confdefs.h
- if test "$PHP_LIBEXPAT_DIR" = "no"; then
- if test "$PHP_LIBXML" = "no"; then
- as_fn_error $? "XML-RPC extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
- fi
- found_libxml=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
- $as_echo_n "checking for xml2-config path... " >&6; }
- if ${ac_cv_php_xml2_config_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- for i in $PHP_LIBXML_DIR /usr/local /usr; do
- if test -x "$i/bin/xml2-config"; then
- ac_cv_php_xml2_config_path="$i/bin/xml2-config"
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
- $as_echo "$ac_cv_php_xml2_config_path" >&6; }
- if test -x "$ac_cv_php_xml2_config_path"; then
- XML2_CONFIG="$ac_cv_php_xml2_config_path"
- libxml_full_version=`$XML2_CONFIG --version`
- ac_IFS=$IFS
- IFS="."
- set $libxml_full_version
- IFS=$ac_IFS
- LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
- if test "$LIBXML_VERSION" -ge "2006011"; then
- found_libxml=yes
- LIBXML_LIBS=`$XML2_CONFIG --libs`
- LIBXML_INCS=`$XML2_CONFIG --cflags`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- if test "$found_libxml" = "no"; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libxml-2.0; then
- if $PKG_CONFIG --atleast-version=2.6.11 libxml-2.0; then
- found_libxml=yes
- LIBXML_LIBS=`$PKG_CONFIG --libs libxml-2.0`
- LIBXML_INCS=`$PKG_CONFIG --cflags-only-I libxml-2.0`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- fi
- if test "$found_libxml" = "yes"; then
- for ac_i in $LIBXML_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- XMLRPC_SHARED_LIBADD="$XMLRPC_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $LIBXML_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
- $as_echo_n "checking whether libxml build works... " >&6; }
- if ${php_cv_libxml_build_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- old_LIBS=$LIBS
- LIBS="
- $XMLRPC_SHARED_LIBADD
- $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char xmlInitParser();
- int main() {
- xmlInitParser();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- php_cv_libxml_build_works=yes
- else
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
- $as_echo "$php_cv_libxml_build_works" >&6; }
- if test "$php_cv_libxml_build_works" = "yes"; then
- $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
- fi
- if test "$PHP_XML" = "no"; then
- case ext/xml in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "ext/xml"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/ext/xml/"; ac_bdir="ext/xml/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in compat.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- BUILD_DIR="$BUILD_DIR ext/xml"
- fi
- else
- as_fn_error $? "libxml2 not found. Use --with-libxml-dir=<DIR>" "$LINENO" 5
- fi
- else
- testval=no
- for i in $PHP_LIBEXPAT_DIR $XMLRPC_DIR /usr/local /usr; do
- if test -f $i/$PHP_LIBDIR/libexpat.a || test -f $i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME; then
- $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
- if test "$ext_shared" = "yes"; then
- XMLRPC_SHARED_LIBADD="-lexpat $XMLRPC_SHARED_LIBADD"
- if test -n "$i/$PHP_LIBDIR"; then
- if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$i/$PHP_LIBDIR
- else
- ep_dir=`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$i/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$i/$PHP_LIBDIR"; then
- if test "$i/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$i/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$i/$PHP_LIBDIR" || echo "$i/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$i/$PHP_LIBDIR
- else
- ep_dir=`echo $i/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$i/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case expat in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lexpat $LIBS"
- ;;
- esac
- fi
- if test "$i/include" != "/usr/include"; then
- if test -z "$i/include" || echo "$i/include" | grep '^/' >/dev/null ; then
- ai_p=$i/include
- else
- ep_dir=`echo $i/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$i/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- testval=yes
- break
- fi
- done
- if test "$testval" = "no"; then
- as_fn_error $? "XML-RPC support requires libexpat. Use --with-libexpat-dir=<DIR> (deprecated!)" "$LINENO" 5
- fi
- fi
- if test "$PHP_ICONV_SHARED" = "yes" || test "$PHP_ICONV" = "no"; then
- if test "$PHP_ICONV_DIR" != "no"; then
- PHP_ICONV=$PHP_ICONV_DIR
- fi
- if test -z "$PHP_ICONV" || test "$PHP_ICONV" = "no"; then
- PHP_ICONV=yes
- fi
- found_iconv=no
- unset ICONV_DIR
- # Create the directories for a VPATH build:
- $php_shtool mkdir -p ext/iconv
- echo > ext/iconv/php_have_bsd_iconv.h
- echo > ext/iconv/php_have_ibm_iconv.h
- echo > ext/iconv/php_have_glibc_iconv.h
- echo > ext/iconv/php_have_libiconv.h
- echo > ext/iconv/php_have_iconv.h
- echo > ext/iconv/php_php_iconv_impl.h
- echo > ext/iconv/php_iconv_aliased_libiconv.h
- echo > ext/iconv/php_php_iconv_h_path.h
- echo > ext/iconv/php_iconv_supports_errno.h
- if test "$PHP_ICONV" = "yes"; then
- LIBS_save="$LIBS"
- LIBS=
- ac_fn_c_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
- if test "x$ac_cv_func_iconv" = xyes; then :
- found_iconv=yes
- else
- ac_fn_c_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv"
- if test "x$ac_cv_func_libiconv" = xyes; then :
- echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
- $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
- found_iconv=yes
- fi
- fi
- LIBS="$LIBS_save"
- fi
- if test "$found_iconv" = "no"; then
- for i in $PHP_ICONV /usr/local /usr; do
- if test -r $i/include/giconv.h; then
- $as_echo "#define HAVE_GICONV_H 1" >>confdefs.h
- ICONV_DIR=$i
- iconv_lib_name=giconv
- break
- elif test -r $i/include/iconv.h; then
- ICONV_DIR=$i
- iconv_lib_name=iconv
- break
- fi
- done
- if test -z "$ICONV_DIR"; then
- as_fn_error $? "Please specify the install prefix of iconv with --with-iconv=<DIR>" "$LINENO" 5
- fi
- if test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.a ||
- test -f $ICONV_DIR/$PHP_LIBDIR/lib$iconv_lib_name.$SHLIB_SUFFIX_NAME
- then
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$ICONV_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_libiconv" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv in -l$iconv_lib_name" >&5
- $as_echo_n "checking for libiconv in -l$iconv_lib_name... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$iconv_lib_name $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char libiconv ();
- int
- main ()
- {
- return libiconv ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- found_iconv=yes
- echo "#define HAVE_LIBICONV 1" > ext/iconv/php_have_libiconv.h
- $as_echo "#define HAVE_LIBICONV 1" >>confdefs.h
- echo "#define ICONV_ALIASED_LIBICONV 1" > ext/iconv/php_iconv_aliased_libiconv.h
- $as_echo "#define ICONV_ALIASED_LIBICONV 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$iconv_lib_name_libiconv
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$ICONV_DIR/$PHP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$iconv_lib_name''_iconv" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in -l$iconv_lib_name" >&5
- $as_echo_n "checking for iconv in -l$iconv_lib_name... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$iconv_lib_name $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char iconv ();
- int
- main ()
- {
- return iconv ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- found_iconv=yes
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$iconv_lib_name_iconv
- fi
- fi
- fi
- fi
- if test "$found_iconv" = "yes"; then
- echo "#define HAVE_ICONV 1" > ext/iconv/php_have_iconv.h
- $as_echo "#define HAVE_ICONV 1" >>confdefs.h
- if test -n "$ICONV_DIR"; then
- if test "$ext_shared" = "yes"; then
- XMLRPC_SHARED_LIBADD="-l$iconv_lib_name $XMLRPC_SHARED_LIBADD"
- if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
- if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$ICONV_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$ICONV_DIR/$PHP_LIBDIR"; then
- if test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$ICONV_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$ICONV_DIR/$PHP_LIBDIR" || echo "$ICONV_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$ICONV_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $ICONV_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ICONV_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case $iconv_lib_name in
- c|c_r|pthread*) ;;
- *)
- LIBS="-l$iconv_lib_name $LIBS"
- ;;
- esac
- fi
- if test "$ICONV_DIR/include" != "/usr/include"; then
- if test -z "$ICONV_DIR/include" || echo "$ICONV_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$ICONV_DIR/include
- else
- ep_dir=`echo $ICONV_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ICONV_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- fi
- else
- as_fn_error $? "iconv not found, in order to build xmlrpc you need the iconv library" "$LINENO" 5
- fi
- fi
- fi
- if test "$PHP_XMLRPC" = "yes"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
- set dummy ${ac_tool_prefix}ranlib; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_RANLIB+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- RANLIB=$ac_cv_prog_RANLIB
- if test -n "$RANLIB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
- $as_echo "$RANLIB" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_RANLIB"; then
- ac_ct_RANLIB=$RANLIB
- # Extract the first word of "ranlib", so it can be a program name with args.
- set dummy ranlib; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_RANLIB"; then
- ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_RANLIB="ranlib"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
- if test -n "$ac_ct_RANLIB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
- $as_echo "$ac_ct_RANLIB" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_RANLIB" = x; then
- RANLIB=":"
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- RANLIB=$ac_ct_RANLIB
- fi
- else
- RANLIB="$ac_cv_prog_RANLIB"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
- $as_echo_n "checking for inline... " >&6; }
- if ${ac_cv_c_inline+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_c_inline=no
- for ac_kw in inline __inline__ __inline; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifndef __cplusplus
- typedef int foo_t;
- static $ac_kw foo_t static_foo () {return 0; }
- $ac_kw foo_t foo () {return 0; }
- #endif
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_inline=$ac_kw
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- test "$ac_cv_c_inline" != no && break
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
- $as_echo "$ac_cv_c_inline" >&6; }
- case $ac_cv_c_inline in
- inline | yes) ;;
- *)
- case $ac_cv_c_inline in
- no) ac_val=;;
- *) ac_val=$ac_cv_c_inline;;
- esac
- cat >>confdefs.h <<_ACEOF
- #ifndef __cplusplus
- #define inline $ac_val
- #endif
- _ACEOF
- ;;
- esac
- $as_echo "#define UNDEF_THREADS_HACK /**/" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
- $as_echo_n "checking for ANSI C header files... " >&6; }
- if ${ac_cv_header_stdc+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_header_stdc=yes
- else
- ac_cv_header_stdc=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <string.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "memchr" >/dev/null 2>&1; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "free" >/dev/null 2>&1; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then :
- :
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ctype.h>
- #include <stdlib.h>
- #if ((' ' & 0x0FF) == 0x020)
- # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #else
- # define ISLOWER(c) \
- (('a' <= (c) && (c) <= 'i') \
- || ('j' <= (c) && (c) <= 'r') \
- || ('s' <= (c) && (c) <= 'z'))
- # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
- #endif
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int
- main ()
- {
- int i;
- for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i))
- || toupper (i) != TOUPPER (i))
- return 2;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- else
- ac_cv_header_stdc=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
- $as_echo "$ac_cv_header_stdc" >&6; }
- if test $ac_cv_header_stdc = yes; then
- $as_echo "#define STDC_HEADERS 1" >>confdefs.h
- fi
- for ac_header in xmlparse.h xmltok.h stdlib.h strings.h string.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
- $as_echo_n "checking size of char... " >&6; }
- if ${ac_cv_sizeof_char+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_char" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (char)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_char=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
- $as_echo "$ac_cv_sizeof_char" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_CHAR $ac_cv_sizeof_char
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
- $as_echo_n "checking size of int... " >&6; }
- if ${ac_cv_sizeof_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
- $as_echo "$ac_cv_sizeof_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_INT $ac_cv_sizeof_int
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
- $as_echo_n "checking size of long... " >&6; }
- if ${ac_cv_sizeof_long+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
- $as_echo "$ac_cv_sizeof_long" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG $ac_cv_sizeof_long
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
- $as_echo_n "checking size of long long... " >&6; }
- if ${ac_cv_sizeof_long_long+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long long)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_long=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
- $as_echo "$ac_cv_sizeof_long_long" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
- _ACEOF
- ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
- if test "x$ac_cv_type_size_t" = xyes; then :
- else
- cat >>confdefs.h <<_ACEOF
- #define size_t unsigned int
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
- $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
- if ${ac_cv_header_time+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/time.h>
- #include <time.h>
- int
- main ()
- {
- if ((struct tm *) 0)
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_header_time=yes
- else
- ac_cv_header_time=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
- $as_echo "$ac_cv_header_time" >&6; }
- if test $ac_cv_header_time = yes; then
- $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
- $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
- if ${ac_cv_type_uid_t+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "uid_t" >/dev/null 2>&1; then :
- ac_cv_type_uid_t=yes
- else
- ac_cv_type_uid_t=no
- fi
- rm -f conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
- $as_echo "$ac_cv_type_uid_t" >&6; }
- if test $ac_cv_type_uid_t = no; then
- $as_echo "#define uid_t int" >>confdefs.h
- $as_echo "#define gid_t int" >>confdefs.h
- fi
- # Standard XMLRPC list
- for ac_func in \
- strtoul strtoull snprintf \
- strstr strpbrk strerror\
- memcpy memmove
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- ext_builddir=ext/xmlrpc
- ext_srcdir=$abs_srcdir/ext/xmlrpc
- ext_dir=ext/xmlrpc
- ac_extra=`echo "-I@ext_srcdir@/libxmlrpc -DVERSION="0.50""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_XMLRPC_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
- libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
- libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
- libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
- libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
- libxmlrpc/xml_to_soap.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC xmlrpc;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_XMLRPC_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
- libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
- libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
- libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
- libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
- libxmlrpc/xml_to_soap.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_xmlrpc="$shared_objects_xmlrpc $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlrpc.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlrpc.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/xmlrpc.$suffix: $ext_builddir/xmlrpc.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/xmlrpc.$suffix \$(phplibdir)
- $ext_builddir/xmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_XMLRPC 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_XMLRPC_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
- libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
- libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
- libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
- libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
- libxmlrpc/xml_to_soap.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC xmlrpc;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in xmlrpc-epi-php.c libxmlrpc/base64.c \
- libxmlrpc/simplestring.c libxmlrpc/xml_to_dandarpc.c \
- libxmlrpc/xmlrpc_introspection.c libxmlrpc/encodings.c \
- libxmlrpc/system_methods.c libxmlrpc/xml_to_xmlrpc.c \
- libxmlrpc/queue.c libxmlrpc/xml_element.c libxmlrpc/xmlrpc.c \
- libxmlrpc/xml_to_soap.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=xmlrpc
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir/libxmlrpc"
- XMLRPC_MODULE_TYPE=builtin
- $as_echo "#define HAVE_XMLRPC_BUNDLED 1" >>confdefs.h
- elif test "$PHP_XMLRPC" != "no"; then
- if test -r $PHP_XMLRPC/include/xmlrpc.h; then
- XMLRPC_DIR=$PHP_XMLRPC/include
- elif test -r $PHP_XMLRPC/include/xmlrpc-epi/xmlrpc.h; then
- XMLRPC_DIR=$PHP_XMLRPC/include/xmlrpc-epi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMLRPC-EPI in default path" >&5
- $as_echo_n "checking for XMLRPC-EPI in default path... " >&6; }
- for i in /usr/local /usr; do
- if test -r $i/include/xmlrpc.h; then
- XMLRPC_DIR=$i/include
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
- $as_echo "found in $i" >&6; }
- break
- fi
- done
- fi
- if test -z "$XMLRPC_DIR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- as_fn_error $? "Please reinstall the XMLRPC-EPI distribution" "$LINENO" 5
- fi
- if test "$XMLRPC_DIR" != "/usr/include"; then
- if test -z "$XMLRPC_DIR" || echo "$XMLRPC_DIR" | grep '^/' >/dev/null ; then
- ai_p=$XMLRPC_DIR
- else
- ep_dir=`echo $XMLRPC_DIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$XMLRPC_DIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- if test "$ext_shared" = "yes"; then
- XMLRPC_SHARED_LIBADD="-lxmlrpc $XMLRPC_SHARED_LIBADD"
- if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then
- if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$XMLRPC_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$XMLRPC_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- XMLRPC_SHARED_LIBADD="-L$ai_p $XMLRPC_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && XMLRPC_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLRPC_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$XMLRPC_DIR/$PHP_LIBDIR"; then
- if test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$XMLRPC_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$XMLRPC_DIR/$PHP_LIBDIR" || echo "$XMLRPC_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$XMLRPC_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $XMLRPC_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$XMLRPC_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case xmlrpc in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lxmlrpc $LIBS"
- ;;
- esac
- fi
- ext_builddir=ext/xmlrpc
- ext_srcdir=$abs_srcdir/ext/xmlrpc
- ext_dir=ext/xmlrpc
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_XMLRPC_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in xmlrpc-epi-php.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC xmlrpc;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_XMLRPC_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in xmlrpc-epi-php.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_xmlrpc="$shared_objects_xmlrpc $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlrpc.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlrpc.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlrpc"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/xmlrpc.$suffix: $ext_builddir/xmlrpc.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/xmlrpc.$suffix \$(phplibdir)
- $ext_builddir/xmlrpc.$suffix: \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_xmlrpc) \$(XMLRPC_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_XMLRPC 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_XMLRPC_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in xmlrpc-epi-php.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC xmlrpc;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in xmlrpc-epi-php.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC xmlrpc;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=xmlrpc
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- XMLRPC_MODULE_TYPE=external
- fi
- php_enable_xmlwriter=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable XMLWriter support" >&5
- $as_echo_n "checking whether to enable XMLWriter support... " >&6; }
- # Check whether --enable-xmlwriter was given.
- if test "${enable_xmlwriter+set}" = set; then :
- enableval=$enable_xmlwriter; PHP_XMLWRITER=$enableval
- else
- PHP_XMLWRITER=yes
- test "$PHP_ENABLE_ALL" && PHP_XMLWRITER=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_XMLWRITER in
- shared,*)
- PHP_XMLWRITER=`echo "$PHP_XMLWRITER"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_XMLWRITER=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_LIBXML_DIR"; then
- php_with_libxml_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libxml2 install dir" >&5
- $as_echo_n "checking libxml2 install dir... " >&6; }
- # Check whether --with-libxml-dir was given.
- if test "${with_libxml_dir+set}" = set; then :
- withval=$with_libxml_dir; PHP_LIBXML_DIR=$withval
- else
- PHP_LIBXML_DIR=no
- fi
- ext_output=$PHP_LIBXML_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- if test "$PHP_XMLWRITER" != "no"; then
- if test "$PHP_LIBXML" = "no"; then
- as_fn_error $? "XMLWriter extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
- fi
- found_libxml=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xml2-config path" >&5
- $as_echo_n "checking for xml2-config path... " >&6; }
- if ${ac_cv_php_xml2_config_path+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- for i in $PHP_LIBXML_DIR /usr/local /usr; do
- if test -x "$i/bin/xml2-config"; then
- ac_cv_php_xml2_config_path="$i/bin/xml2-config"
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_php_xml2_config_path" >&5
- $as_echo "$ac_cv_php_xml2_config_path" >&6; }
- if test -x "$ac_cv_php_xml2_config_path"; then
- XML2_CONFIG="$ac_cv_php_xml2_config_path"
- libxml_full_version=`$XML2_CONFIG --version`
- ac_IFS=$IFS
- IFS="."
- set $libxml_full_version
- IFS=$ac_IFS
- LIBXML_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
- if test "$LIBXML_VERSION" -ge "2006011"; then
- found_libxml=yes
- LIBXML_LIBS=`$XML2_CONFIG --libs`
- LIBXML_INCS=`$XML2_CONFIG --cflags`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- if test "$found_libxml" = "no"; then
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libxml-2.0; then
- if $PKG_CONFIG --atleast-version=2.6.11 libxml-2.0; then
- found_libxml=yes
- LIBXML_LIBS=`$PKG_CONFIG --libs libxml-2.0`
- LIBXML_INCS=`$PKG_CONFIG --cflags-only-I libxml-2.0`
- else
- as_fn_error $? "libxml2 version 2.6.11 or greater required." "$LINENO" 5
- fi
- fi
- fi
- if test "$found_libxml" = "yes"; then
- for ac_i in $LIBXML_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- XMLWRITER_SHARED_LIBADD="$XMLWRITER_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- XMLWRITER_SHARED_LIBADD="-L$ai_p $XMLWRITER_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && XMLWRITER_SHARED_LIBADD="$ld_runpath_switch$ai_p $XMLWRITER_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $LIBXML_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libxml build works" >&5
- $as_echo_n "checking whether libxml build works... " >&6; }
- if ${php_cv_libxml_build_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- old_LIBS=$LIBS
- LIBS="
- $XMLWRITER_SHARED_LIBADD
- $LIBS"
- if test "$cross_compiling" = yes; then :
- LIBS=$old_LIBS
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- char xmlInitParser();
- int main() {
- xmlInitParser();
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBS=$old_LIBS
- php_cv_libxml_build_works=yes
- else
- LIBS=$old_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- as_fn_error $? "build test failed. Please check the config.log for details." "$LINENO" 5
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_libxml_build_works" >&5
- $as_echo "$php_cv_libxml_build_works" >&6; }
- if test "$php_cv_libxml_build_works" = "yes"; then
- $as_echo "#define HAVE_LIBXML 1" >>confdefs.h
- fi
- $as_echo "#define HAVE_XMLWRITER 1" >>confdefs.h
- ext_builddir=ext/xmlwriter
- ext_srcdir=$abs_srcdir/ext/xmlwriter
- ext_dir=ext/xmlwriter
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_XMLWRITER_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_xmlwriter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC xmlwriter;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC xmlwriter;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_XMLWRITER_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_xmlwriter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_xmlwriter="$shared_objects_xmlwriter $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xmlwriter.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/xmlwriter.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xmlwriter"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/xmlwriter.$suffix: $ext_builddir/xmlwriter.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/xmlwriter.$suffix \$(phplibdir)
- $ext_builddir/xmlwriter.$suffix: \$(shared_objects_xmlwriter) \$(XMLWRITER_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_xmlwriter) \$(XMLWRITER_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_XMLWRITER 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_XMLWRITER_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_xmlwriter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC xmlwriter;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_xmlwriter.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC xmlwriter;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=xmlwriter
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST XMLWRITER_SHARED_LIBADD"
- else
- as_fn_error $? "libxml2 not found. Please check your libxml2 installation." "$LINENO" 5
- fi
- fi
- php_with_xsl=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSL support" >&5
- $as_echo_n "checking for XSL support... " >&6; }
- # Check whether --with-xsl was given.
- if test "${with_xsl+set}" = set; then :
- withval=$with_xsl; PHP_XSL=$withval
- else
- PHP_XSL=no
- test "$PHP_ENABLE_ALL" && PHP_XSL=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_XSL in
- shared,*)
- PHP_XSL=`echo "$PHP_XSL"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_XSL=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_XSL" != "no"; then
- if test "$PHP_LIBXML" = "no"; then
- as_fn_error $? "XSL extension requires LIBXML extension, add --enable-libxml" "$LINENO" 5
- fi
- if test "$PHP_DOM" = "no"; then
- as_fn_error $? "XSL extension requires DOM extension, add --enable-dom" "$LINENO" 5
- fi
- for i in $PHP_XSL /usr/local /usr; do
- if test -x "$i/bin/xslt-config"; then
- XSLT_CONFIG=$i/bin/xslt-config
- break
- fi
- done
- if test -z "$XSLT_CONFIG"; then
- as_fn_error $? "xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution" "$LINENO" 5
- else
- libxslt_full_version=`$XSLT_CONFIG --version`
- ac_IFS=$IFS
- IFS="."
- set $libxslt_full_version
- IFS=$ac_IFS
- LIBXSLT_VERSION=`expr $1 \* 1000000 + $2 \* 1000 + $3`
- if test "$LIBXSLT_VERSION" -ge "1001000"; then
- XSL_LIBS=`$XSLT_CONFIG --libs`
- XSL_INCS=`$XSLT_CONFIG --cflags`
- for ac_i in $XSL_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- XSL_SHARED_LIBADD="$XSL_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- for ac_i in $XSL_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXSLT support" >&5
- $as_echo_n "checking for EXSLT support... " >&6; }
- for i in $PHP_XSL /usr/local /usr; do
- if test -r "$i/include/libexslt/exslt.h"; then
- PHP_XSL_EXSL_DIR=$i
- break
- fi
- done
- if test -z "$PHP_XSL_EXSL_DIR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
- $as_echo "found" >&6; }
- if test "$ext_shared" = "yes"; then
- XSL_SHARED_LIBADD="-lexslt $XSL_SHARED_LIBADD"
- if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then
- if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- XSL_SHARED_LIBADD="-L$ai_p $XSL_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && XSL_SHARED_LIBADD="$ld_runpath_switch$ai_p $XSL_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"; then
- if test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" || echo "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_XSL_EXSL_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_XSL_EXSL_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_XSL_EXSL_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case exslt in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lexslt $LIBS"
- ;;
- esac
- fi
- if test "$PHP_XSL_EXSL_DIR/include" != "/usr/include"; then
- if test -z "$PHP_XSL_EXSL_DIR/include" || echo "$PHP_XSL_EXSL_DIR/include" | grep '^/' >/dev/null ; then
- ai_p=$PHP_XSL_EXSL_DIR/include
- else
- ep_dir=`echo $PHP_XSL_EXSL_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_XSL_EXSL_DIR/include"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- $as_echo "#define HAVE_XSL_EXSLT 1" >>confdefs.h
- fi
- else
- as_fn_error $? "libxslt version 1.1.0 or greater required." "$LINENO" 5
- fi
- fi
- $as_echo "#define HAVE_XSL 1" >>confdefs.h
- ext_builddir=ext/xsl
- ext_srcdir=$abs_srcdir/ext/xsl
- ext_dir=ext/xsl
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_XSL_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_xsl.c xsltprocessor.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC xsl;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC xsl;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_XSL_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_xsl.c xsltprocessor.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_xsl="$shared_objects_xsl $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/xsl.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/xsl.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_xsl"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/xsl.$suffix: $ext_builddir/xsl.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/xsl.$suffix \$(phplibdir)
- $ext_builddir/xsl.$suffix: \$(shared_objects_xsl) \$(XSL_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_xsl) \$(XSL_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_XSL 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_XSL_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_xsl.c xsltprocessor.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC xsl;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_xsl.c xsltprocessor.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC xsl;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=xsl
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST XSL_SHARED_LIBADD"
- am_i_shared=$PHP_XSL_SHARED
- is_it_shared=$PHP_LIBXML_SHARED
- is_it_enabled=$PHP_LIBXML
- if test "$am_i_shared" = "no" && test "$is_it_shared" = "yes" ; then
- as_fn_error $? "
- You've configured extension xsl to build statically, but it
- depends on extension libxml, which you've configured to build shared.
- You either need to build xsl shared or build libxml statically for the
- build to be successful.
- " "$LINENO" 5
- fi
- if test "x$is_it_enabled" = "xno" && test "x" != "xtrue"; then
- as_fn_error $? "
- You've configured extension xsl, which depends on extension libxml,
- but you've either not enabled libxml, or have disabled it.
- " "$LINENO" 5
- fi
- fi
- php_enable_zend_test=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zend-test extension" >&5
- $as_echo_n "checking whether to enable zend-test extension... " >&6; }
- # Check whether --enable-zend-test was given.
- if test "${enable_zend_test+set}" = set; then :
- enableval=$enable_zend_test; PHP_ZEND_TEST=$enableval
- else
- PHP_ZEND_TEST=no
- test "$PHP_ENABLE_ALL" && PHP_ZEND_TEST=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_ZEND_TEST in
- shared,*)
- PHP_ZEND_TEST=`echo "$PHP_ZEND_TEST"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_ZEND_TEST=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_ZEND_TEST" != "no"; then
- ext_builddir=ext/zend_test
- ext_srcdir=$abs_srcdir/ext/zend_test
- ext_dir=ext/zend_test
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_ZEND_TEST_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in test.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC zend_test;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC zend_test;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_ZEND_TEST_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in test.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_zend_test="$shared_objects_zend_test $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zend_test.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/zend_test.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zend_test"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/zend_test.$suffix: $ext_builddir/zend_test.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/zend_test.$suffix \$(phplibdir)
- $ext_builddir/zend_test.$suffix: \$(shared_objects_zend_test) \$(ZEND_TEST_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_zend_test) \$(ZEND_TEST_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_ZEND_TEST 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_ZEND_TEST_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in test.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC zend_test;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in test.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC zend_test;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=zend_test
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- fi
- php_enable_zip=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip archive read/writesupport" >&5
- $as_echo_n "checking for zip archive read/writesupport... " >&6; }
- # Check whether --enable-zip was given.
- if test "${enable_zip+set}" = set; then :
- enableval=$enable_zip; PHP_ZIP=$enableval
- else
- PHP_ZIP=no
- test "$PHP_ENABLE_ALL" && PHP_ZIP=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_ZIP in
- shared,*)
- PHP_ZIP=`echo "$PHP_ZIP"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_ZIP=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_ZLIB_DIR"; then
- php_with_zlib_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
- $as_echo_n "checking for the location of libz... " >&6; }
- # Check whether --with-zlib-dir was given.
- if test "${with_zlib_dir+set}" = set; then :
- withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
- else
- PHP_ZLIB_DIR=no
- fi
- ext_output=$PHP_ZLIB_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- php_with_pcre_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking pcre install prefix" >&5
- $as_echo_n "checking pcre install prefix... " >&6; }
- # Check whether --with-pcre-dir was given.
- if test "${with_pcre_dir+set}" = set; then :
- withval=$with_pcre_dir; PHP_PCRE_DIR=$withval
- else
- PHP_PCRE_DIR=no
- fi
- ext_output=$PHP_PCRE_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_with_libzip=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking libzip" >&5
- $as_echo_n "checking libzip... " >&6; }
- # Check whether --with-libzip was given.
- if test "${with_libzip+set}" = set; then :
- withval=$with_libzip; PHP_LIBZIP=$withval
- else
- PHP_LIBZIP=yes
- fi
- ext_output=$PHP_LIBZIP
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_ZIP" != "no"; then
- if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then
- if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then
- PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
- PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include/zlib"
- elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then
- PHP_ZLIB_DIR="$PHP_ZLIB_DIR"
- PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include"
- else
- as_fn_error $? "Can not find zlib headers under \"$PHP_ZLIB_DIR\"" "$LINENO" 5
- fi
- else
- for i in /usr/local /usr; do
- if test -f "$i/include/zlib/zlib.h"; then
- PHP_ZLIB_DIR="$i"
- PHP_ZLIB_INCDIR="$i/include/zlib"
- elif test -f "$i/include/zlib.h"; then
- PHP_ZLIB_DIR="$i"
- PHP_ZLIB_INCDIR="$i/include"
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of zlib" >&5
- $as_echo_n "checking for the location of zlib... " >&6; }
- if test "$PHP_ZLIB_DIR" = "no"; then
- as_fn_error $? "zip support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are located" "$LINENO" 5
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_ZLIB_DIR" >&5
- $as_echo "$PHP_ZLIB_DIR" >&6; }
- if test "$ext_shared" = "yes"; then
- ZIP_SHARED_LIBADD="-lz $ZIP_SHARED_LIBADD"
- if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
- if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$PHP_ZLIB_DIR/$PHP_LIBDIR"; then
- if test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$PHP_ZLIB_DIR/$PHP_LIBDIR" != "/usr/lib"; then
- if test -z "$PHP_ZLIB_DIR/$PHP_LIBDIR" || echo "$PHP_ZLIB_DIR/$PHP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ZLIB_DIR/$PHP_LIBDIR
- else
- ep_dir=`echo $PHP_ZLIB_DIR/$PHP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ZLIB_DIR/$PHP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case z in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lz $LIBS"
- ;;
- esac
- fi
- if test "$PHP_ZLIB_INCDIR" != "/usr/include"; then
- if test -z "$PHP_ZLIB_INCDIR" || echo "$PHP_ZLIB_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$PHP_ZLIB_INCDIR
- else
- ep_dir=`echo $PHP_ZLIB_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$PHP_ZLIB_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- fi
- if test "$PHP_LIBZIP" != "no"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzip" >&5
- $as_echo_n "checking for libzip... " >&6; }
- if test -r $PHP_LIBZIP/include/zip.h; then
- LIBZIP_CFLAGS="-I$PHP_LIBZIP/include"
- LIBZIP_LIBDIR="$PHP_LIBZIP/$PHP_LIBDIR"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: from option: found in $PHP_LIBZIP" >&5
- $as_echo "from option: found in $PHP_LIBZIP" >&6; }
- elif test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libzip; then
- if $PKG_CONFIG libzip --atleast-version 0.11; then
- LIBZIP_CFLAGS=`$PKG_CONFIG libzip --cflags`
- LIBZIP_LIBDIR=`$PKG_CONFIG libzip --variable=libdir`
- LIBZIP_VERSON=`$PKG_CONFIG libzip --modversion`
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: from pkgconfig: version $LIBZIP_VERSON found in $LIBZIP_LIBDIR" >&5
- $as_echo "from pkgconfig: version $LIBZIP_VERSON found in $LIBZIP_LIBDIR" >&6; }
- else
- as_fn_error $? "system libzip must be upgraded to version >= 0.11" "$LINENO" 5
- fi
- else
- for i in /usr/local /usr; do
- if test -r $i/include/zip.h; then
- LIBZIP_CFLAGS="-I$i/include"
- LIBZIP_LIBDIR="$i/$PHP_LIBDIR"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path: found in $i" >&5
- $as_echo "in default path: found in $i" >&6; }
- break
- fi
- done
- fi
- if test -z "$LIBZIP_LIBDIR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
- $as_echo "not found" >&6; }
- as_fn_error $? "Please reinstall the libzip distribution" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$LIBZIP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_open in -lzip" >&5
- $as_echo_n "checking for zip_open in -lzip... " >&6; }
- if ${ac_cv_lib_zip_zip_open+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lzip $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char zip_open ();
- int
- main ()
- {
- return zip_open ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_zip_zip_open=yes
- else
- ac_cv_lib_zip_zip_open=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_open" >&5
- $as_echo "$ac_cv_lib_zip_zip_open" >&6; }
- if test "x$ac_cv_lib_zip_zip_open" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$ext_shared" = "yes"; then
- ZIP_SHARED_LIBADD="-lzip $ZIP_SHARED_LIBADD"
- if test -n "$LIBZIP_LIBDIR"; then
- if test "$LIBZIP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBZIP_LIBDIR" != "/usr/lib"; then
- if test -z "$LIBZIP_LIBDIR" || echo "$LIBZIP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LIBZIP_LIBDIR
- else
- ep_dir=`echo $LIBZIP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LIBZIP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LIBZIP_LIBDIR"; then
- if test "$LIBZIP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBZIP_LIBDIR" != "/usr/lib"; then
- if test -z "$LIBZIP_LIBDIR" || echo "$LIBZIP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LIBZIP_LIBDIR
- else
- ep_dir=`echo $LIBZIP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LIBZIP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case zip in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lzip $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_LIBZIP 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_zip_zip_open
- as_fn_error $? "could not find usable libzip" "$LINENO" 5
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$LIBZIP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_file_set_encryption in -lzip" >&5
- $as_echo_n "checking for zip_file_set_encryption in -lzip... " >&6; }
- if ${ac_cv_lib_zip_zip_file_set_encryption+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lzip $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char zip_file_set_encryption ();
- int
- main ()
- {
- return zip_file_set_encryption ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_zip_zip_file_set_encryption=yes
- else
- ac_cv_lib_zip_zip_file_set_encryption=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_file_set_encryption" >&5
- $as_echo "$ac_cv_lib_zip_zip_file_set_encryption" >&6; }
- if test "x$ac_cv_lib_zip_zip_file_set_encryption" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- if test "$ext_shared" = "yes"; then
- ZIP_SHARED_LIBADD="-lzip $ZIP_SHARED_LIBADD"
- if test -n "$LIBZIP_LIBDIR"; then
- if test "$LIBZIP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBZIP_LIBDIR" != "/usr/lib"; then
- if test -z "$LIBZIP_LIBDIR" || echo "$LIBZIP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LIBZIP_LIBDIR
- else
- ep_dir=`echo $LIBZIP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LIBZIP_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- ZIP_SHARED_LIBADD="-L$ai_p $ZIP_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && ZIP_SHARED_LIBADD="$ld_runpath_switch$ai_p $ZIP_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- else
- if test -n "$LIBZIP_LIBDIR"; then
- if test "$LIBZIP_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$LIBZIP_LIBDIR" != "/usr/lib"; then
- if test -z "$LIBZIP_LIBDIR" || echo "$LIBZIP_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$LIBZIP_LIBDIR
- else
- ep_dir=`echo $LIBZIP_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$LIBZIP_LIBDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- case zip in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lzip $LIBS"
- ;;
- esac
- fi
- $as_echo "#define HAVE_ENCRYPTION 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_zip_zip_file_set_encryption
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libzip >= 1.2.0 needed for encryption support" >&5
- $as_echo "$as_me: WARNING: Libzip >= 1.2.0 needed for encryption support" >&2;}
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$LIBZIP_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zip_libzip_version in -lzip" >&5
- $as_echo_n "checking for zip_libzip_version in -lzip... " >&6; }
- if ${ac_cv_lib_zip_zip_libzip_version+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lzip $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char zip_libzip_version ();
- int
- main ()
- {
- return zip_libzip_version ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_zip_zip_libzip_version=yes
- else
- ac_cv_lib_zip_zip_libzip_version=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zip_zip_libzip_version" >&5
- $as_echo "$ac_cv_lib_zip_zip_libzip_version" >&6; }
- if test "x$ac_cv_lib_zip_zip_libzip_version" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- $as_echo "#define HAVE_LIBZIP_VERSION 1" >>confdefs.h
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_zip_zip_libzip_version
- fi
- $as_echo "#define HAVE_ZIP 1" >>confdefs.h
- for ac_i in $LIBZIP_CFLAGS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- ext_builddir=ext/zip
- ext_srcdir=$abs_srcdir/ext/zip
- ext_dir=ext/zip
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_ZIP_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_zip.c zip_stream.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC zip;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC zip;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_ZIP_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_zip.c zip_stream.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_zip="$shared_objects_zip $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zip.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/zip.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zip"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/zip.$suffix: $ext_builddir/zip.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/zip.$suffix \$(phplibdir)
- $ext_builddir/zip.$suffix: \$(shared_objects_zip) \$(ZIP_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_zip) \$(ZIP_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_ZIP 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_ZIP_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_zip.c zip_stream.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC zip;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_zip.c zip_stream.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC zip;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=zip
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST ZIP_SHARED_LIBADD"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ========================================================" >&5
- $as_echo "$as_me: WARNING: ========================================================" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of bundled libzip is deprecated and will be removed." >&5
- $as_echo "$as_me: WARNING: Use of bundled libzip is deprecated and will be removed." >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Some features such as encryption and bzip2 are not available." >&5
- $as_echo "$as_me: WARNING: Some features such as encryption and bzip2 are not available." >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use system library and --with-libzip is recommended." >&5
- $as_echo "$as_me: WARNING: Use system library and --with-libzip is recommended." >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ========================================================" >&5
- $as_echo "$as_me: WARNING: ========================================================" >&2;}
- PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_add_dir.c lib/zip_add_entry.c\
- lib/zip_buffer.c lib/zip_file_set_mtime.c lib/zip_io_util.c lib/zip_source_begin_write.c \
- lib/zip_source_call.c lib/zip_source_commit_write.c lib/zip_source_is_deleted.c \
- lib/zip_source_remove.c lib/zip_source_rollback_write.c lib/zip_source_seek.c \
- lib/zip_source_seek_write.c lib/zip_source_supports.c lib/zip_source_tell.c \
- lib/zip_source_tell_write.c lib/zip_source_write.c \
- lib/zip_close.c lib/zip_delete.c lib/zip_dir_add.c lib/zip_dirent.c lib/zip_discard.c lib/zip_entry.c\
- lib/zip_err_str.c lib/zip_error.c lib/zip_error_clear.c lib/zip_error_get.c lib/zip_error_get_sys_type.c\
- lib/zip_error_strerror.c lib/zip_error_to_str.c lib/zip_extra_field.c lib/zip_extra_field_api.c\
- lib/zip_fclose.c lib/zip_fdopen.c lib/zip_file_add.c lib/zip_file_error_clear.c lib/zip_file_error_get.c\
- lib/zip_file_get_comment.c lib/zip_file_get_offset.c lib/zip_file_rename.c lib/zip_file_replace.c\
- lib/zip_file_set_comment.c lib/zip_file_strerror.c lib/zip_filerange_crc.c lib/zip_fopen.c\
- lib/zip_file_get_external_attributes.c lib/zip_file_set_external_attributes.c \
- lib/zip_fopen_encrypted.c lib/zip_fopen_index.c lib/zip_fopen_index_encrypted.c lib/zip_fread.c\
- lib/zip_get_archive_comment.c lib/zip_get_archive_flag.c lib/zip_get_compression_implementation.c\
- lib/zip_get_encryption_implementation.c lib/zip_get_file_comment.c lib/zip_get_name.c lib/zip_get_num_entries.c \
- lib/zip_get_num_files.c lib/zip_memdup.c lib/zip_name_locate.c lib/zip_new.c lib/zip_open.c lib/zip_rename.c lib/zip_replace.c\
- lib/zip_hash.c \
- lib/zip_set_archive_comment.c lib/zip_set_archive_flag.c lib/zip_set_default_password.c lib/zip_set_file_comment.c\
- lib/zip_set_file_compression.c lib/zip_set_name.c lib/zip_source_buffer.c lib/zip_source_close.c lib/zip_source_crc.c\
- lib/zip_source_deflate.c lib/zip_source_error.c lib/zip_source_file.c lib/zip_source_filep.c lib/zip_source_free.c\
- lib/zip_source_function.c lib/zip_source_layered.c lib/zip_source_open.c lib/zip_source_pkware.c \
- lib/zip_source_read.c lib/zip_source_stat.c lib/zip_source_window.c lib/zip_source_zip.c lib/zip_source_zip_new.c\
- lib/zip_stat.c lib/zip_stat_index.c lib/zip_stat_init.c lib/zip_strerror.c lib/zip_string.c lib/zip_unchange.c lib/zip_unchange_all.c\
- lib/zip_unchange_archive.c lib/zip_unchange_data.c lib/zip_utf-8.c lib/mkstemp.c"
- $as_echo "#define HAVE_ZIP 1" >>confdefs.h
- ext_builddir=ext/zip
- ext_srcdir=$abs_srcdir/ext/zip
- ext_dir=ext/zip
- ac_extra=
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_ZIP_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC zip;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC zip;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_ZIP_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_zip="$shared_objects_zip $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/zip.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/zip.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_zip"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/zip.$suffix: $ext_builddir/zip.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/zip.$suffix \$(phplibdir)
- $ext_builddir/zip.$suffix: \$(shared_objects_zip) \$(ZIP_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_zip) \$(ZIP_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_ZIP 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_ZIP_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC zip;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in php_zip.c zip_stream.c $PHP_ZIP_SOURCES; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC zip;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=zip
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- $php_shtool mkdir -p $ext_builddir/lib
- if test "$ext_srcdir/lib" != "/usr/include"; then
- if test -z "$ext_srcdir/lib" || echo "$ext_srcdir/lib" | grep '^/' >/dev/null ; then
- ai_p=$ext_srcdir/lib
- else
- ep_dir=`echo $ext_srcdir/lib|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ext_srcdir/lib"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST ZIP_SHARED_LIBADD"
- fi
- for ac_header in stdbool.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
- if test "x$ac_cv_header_stdbool_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STDBOOL_H 1
- _ACEOF
- fi
- done
- for ac_header in fts.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "fts.h" "ac_cv_header_fts_h" "$ac_includes_default"
- if test "x$ac_cv_header_fts_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_FTS_H 1
- _ACEOF
- fi
- done
- ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
- if test "x$ac_cv_type_int8_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT8_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
- if test "x$ac_cv_type_int16_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT16_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
- if test "x$ac_cv_type_int32_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT32_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
- if test "x$ac_cv_type_int64_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT64_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
- if test "x$ac_cv_type_uint8_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT8_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
- if test "x$ac_cv_type_uint16_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT16_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
- if test "x$ac_cv_type_uint32_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT32_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
- if test "x$ac_cv_type_uint64_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT64_T 1
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
- if test "x$ac_cv_type_ssize_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SSIZE_T 1
- _ACEOF
- fi
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
- $as_echo_n "checking size of short... " >&6; }
- if ${ac_cv_sizeof_short+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_short" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (short)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_short=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
- $as_echo "$ac_cv_sizeof_short" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_SHORT $ac_cv_sizeof_short
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
- $as_echo_n "checking size of int... " >&6; }
- if ${ac_cv_sizeof_int+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_int" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (int)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_int=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
- $as_echo "$ac_cv_sizeof_int" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_INT $ac_cv_sizeof_int
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
- $as_echo_n "checking size of long... " >&6; }
- if ${ac_cv_sizeof_long+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
- $as_echo "$ac_cv_sizeof_long" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG $ac_cv_sizeof_long
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
- $as_echo_n "checking size of long long... " >&6; }
- if ${ac_cv_sizeof_long_long+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_long_long" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (long long)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_long_long=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
- $as_echo "$ac_cv_sizeof_long_long" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
- _ACEOF
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
- $as_echo_n "checking size of off_t... " >&6; }
- if ${ac_cv_sizeof_off_t+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_off_t" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (off_t)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_off_t=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
- $as_echo "$ac_cv_sizeof_off_t" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
- _ACEOF
- if test "$ac_cv_sizeof_off_t" = "0" ; then
- as_fn_error $? "off_t undefined; check your library configuration" "$LINENO" 5
- fi
- # The cast to long int works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
- $as_echo_n "checking size of size_t... " >&6; }
- if ${ac_cv_sizeof_size_t+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_size_t" = yes; then
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error 77 "cannot compute sizeof (size_t)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_size_t=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
- $as_echo "$ac_cv_sizeof_size_t" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
- _ACEOF
- # Extract the first word of "touch", so it can be a program name with args.
- set dummy touch; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_TOUCH+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $TOUCH in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- TOUCH=$ac_cv_path_TOUCH
- if test -n "$TOUCH"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
- $as_echo "$TOUCH" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "unzip", so it can be a program name with args.
- set dummy unzip; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_UNZIP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $UNZIP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- ;;
- esac
- fi
- UNZIP=$ac_cv_path_UNZIP
- if test -n "$UNZIP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
- $as_echo "$UNZIP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
- #include <$ac_cv_struct_tm>
- "
- if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_TM_TM_ZONE 1
- _ACEOF
- fi
- if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
- $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
- else
- ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
- "
- if test "x$ac_cv_have_decl_tzname" = xyes; then :
- ac_have_decl=1
- else
- ac_have_decl=0
- fi
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DECL_TZNAME $ac_have_decl
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
- $as_echo_n "checking for tzname... " >&6; }
- if ${ac_cv_var_tzname+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <time.h>
- #if !HAVE_DECL_TZNAME
- extern char *tzname[];
- #endif
- int
- main ()
- {
- return tzname[0][0];
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_var_tzname=yes
- else
- ac_cv_var_tzname=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
- $as_echo "$ac_cv_var_tzname" >&6; }
- if test $ac_cv_var_tzname = yes; then
- $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
- fi
- fi
- case $host_os
- in
- *bsd*) MANFMT=mdoc;;
- *) MANFMT=man;;
- esac
- src=$ext_srcdir/Makefile.frag
- ac_srcdir=$ext_srcdir
- ac_builddir=$ext_builddir
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- fi
- php_enable_mysqlnd=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable mysqlnd" >&5
- $as_echo_n "checking whether to enable mysqlnd... " >&6; }
- # Check whether --enable-mysqlnd was given.
- if test "${enable_mysqlnd+set}" = set; then :
- enableval=$enable_mysqlnd; PHP_MYSQLND=$enableval
- else
- PHP_MYSQLND=no
- test "$PHP_ENABLE_ALL" && PHP_MYSQLND=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_MYSQLND in
- shared,*)
- PHP_MYSQLND=`echo "$PHP_MYSQLND"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_MYSQLND=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- php_enable_mysqlnd_compression_support=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable compressed protocol support in mysqlnd" >&5
- $as_echo_n "checking whether to disable compressed protocol support in mysqlnd... " >&6; }
- # Check whether --enable-mysqlnd_compression_support was given.
- if test "${enable_mysqlnd_compression_support+set}" = set; then :
- enableval=$enable_mysqlnd_compression_support; PHP_MYSQLND_COMPRESSION_SUPPORT=$enableval
- else
- PHP_MYSQLND_COMPRESSION_SUPPORT=yes
- fi
- ext_output=$PHP_MYSQLND_COMPRESSION_SUPPORT
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test -z "$PHP_ZLIB_DIR"; then
- php_with_zlib_dir=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the location of libz" >&5
- $as_echo_n "checking for the location of libz... " >&6; }
- # Check whether --with-zlib-dir was given.
- if test "${with_zlib_dir+set}" = set; then :
- withval=$with_zlib_dir; PHP_ZLIB_DIR=$withval
- else
- PHP_ZLIB_DIR=no
- fi
- ext_output=$PHP_ZLIB_DIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- fi
- if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes"; then
- mysqlnd_ps_sources="mysqlnd_ps.c mysqlnd_ps_codec.c"
- mysqlnd_base_sources="mysqlnd_connection.c mysqlnd_alloc.c mysqlnd_charset.c mysqlnd_wireprotocol.c \
- mysqlnd_loaddata.c mysqlnd_reverse_api.c mysqlnd_vio.c mysqlnd_protocol_frame_codec.c \
- mysqlnd_statistics.c mysqlnd_driver.c mysqlnd_ext_plugin.c mysqlnd_auth.c \
- mysqlnd_result.c mysqlnd_result_meta.c mysqlnd_debug.c mysqlnd_commands.c \
- mysqlnd_block_alloc.c mysqlnd_read_buffer.c mysqlnd_plugin.c php_mysqlnd.c"
- if test "$PHP_MYSQLND_COMPRESSION_SUPPORT" != "no"; then
- $as_echo "#define MYSQLND_COMPRESSION_WANTED 1" >>confdefs.h
- fi
- $as_echo "#define MYSQLND_SSL_SUPPORTED 1" >>confdefs.h
- test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
- if test "$PHP_OPENSSL" != "no" || test "$PHP_OPENSSL_DIR" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSA_get_default_method in -lssl" >&5
- $as_echo_n "checking for DSA_get_default_method in -lssl... " >&6; }
- if ${ac_cv_lib_ssl_DSA_get_default_method+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lssl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char DSA_get_default_method ();
- int
- main ()
- {
- return DSA_get_default_method ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ssl_DSA_get_default_method=yes
- else
- ac_cv_lib_ssl_DSA_get_default_method=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_DSA_get_default_method" >&5
- $as_echo "$ac_cv_lib_ssl_DSA_get_default_method" >&6; }
- if test "x$ac_cv_lib_ssl_DSA_get_default_method" = xyes; then :
- $as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_free in -lcrypto" >&5
- $as_echo_n "checking for X509_free in -lcrypto... " >&6; }
- if ${ac_cv_lib_crypto_X509_free+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcrypto $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char X509_free ();
- int
- main ()
- {
- return X509_free ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_crypto_X509_free=yes
- else
- ac_cv_lib_crypto_X509_free=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_X509_free" >&5
- $as_echo "$ac_cv_lib_crypto_X509_free" >&6; }
- if test "x$ac_cv_lib_crypto_X509_free" = xyes; then :
- $as_echo "#define HAVE_DSA_DEFAULT_METHOD 1" >>confdefs.h
- fi
- found_openssl=no
- unset OPENSSL_INCDIR
- unset OPENSSL_LIBDIR
- test -z "$PHP_OPENSSL" && PHP_OPENSSL=no
- test -z "$PHP_IMAP_SSL" && PHP_IMAP_SSL=no
- if test "$PHP_OPENSSL" != "no"; then
- PHP_OPENSSL_DIR=$PHP_OPENSSL
- elif test "$PHP_IMAP_SSL" != "no"; then
- PHP_OPENSSL_DIR=$PHP_IMAP_SSL
- fi
- if test -z "$PKG_CONFIG"; then
- # Extract the first word of "pkg-config", so it can be a program name with args.
- set dummy pkg-config; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_path_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
- ;;
- esac
- fi
- PKG_CONFIG=$ac_cv_path_PKG_CONFIG
- if test -n "$PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
- $as_echo "$PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test "$PHP_OPENSSL_DIR" = "yes" && test -x "$PKG_CONFIG" && $PKG_CONFIG --exists openssl; then
- if $PKG_CONFIG --atleast-version=1.0.1 openssl; then
- found_openssl=yes
- OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
- OPENSSL_INCS=`$PKG_CONFIG --cflags-only-I openssl`
- OPENSSL_INCDIR=`$PKG_CONFIG --variable=includedir openssl`
- else
- as_fn_error $? "OpenSSL version 1.0.1 or greater required." "$LINENO" 5
- fi
- if test -n "$OPENSSL_LIBS"; then
- for ac_i in $OPENSSL_LIBS; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- MYSQLND_SHARED_LIBADD="$MYSQLND_SHARED_LIBADD -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- MYSQLND_SHARED_LIBADD="$MYSQLND_SHARED_LIBADD -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- MYSQLND_SHARED_LIBADD="-L$ai_p $MYSQLND_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && MYSQLND_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLND_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- if test -n "$OPENSSL_INCS"; then
- for ac_i in $OPENSSL_INCS; do
- case $ac_i in
- -I*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/include"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- fi
- fi
- if test "$found_openssl" = "no"; then
- if test "$PHP_OPENSSL_DIR" = "yes"; then
- PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
- fi
- for i in $PHP_OPENSSL_DIR; do
- if test -r $i/include/openssl/evp.h; then
- OPENSSL_INCDIR=$i/include
- fi
- if test -r $i/$PHP_LIBDIR/libssl.a -o -r $i/$PHP_LIBDIR/libssl.$SHLIB_SUFFIX_NAME; then
- OPENSSL_LIBDIR=$i/$PHP_LIBDIR
- fi
- test -n "$OPENSSL_INCDIR" && test -n "$OPENSSL_LIBDIR" && break
- done
- if test -z "$OPENSSL_INCDIR"; then
- as_fn_error $? "Cannot find OpenSSL's <evp.h>" "$LINENO" 5
- fi
- if test -z "$OPENSSL_LIBDIR"; then
- as_fn_error $? "Cannot find OpenSSL's libraries" "$LINENO" 5
- fi
- old_CPPFLAGS=$CPPFLAGS
- CPPFLAGS=-I$OPENSSL_INCDIR
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
- $as_echo_n "checking for OpenSSL version... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <openssl/opensslv.h>
- #if OPENSSL_VERSION_NUMBER >= 0x10001001L
- yes
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "yes" >/dev/null 2>&1; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 1.0.1" >&5
- $as_echo ">= 1.0.1" >&6; }
- else
- as_fn_error $? "OpenSSL version 1.0.1 or greater required." "$LINENO" 5
- fi
- rm -f conftest*
- CPPFLAGS=$old_CPPFLAGS
- if test "$OPENSSL_INCDIR" != "/usr/include"; then
- if test -z "$OPENSSL_INCDIR" || echo "$OPENSSL_INCDIR" | grep '^/' >/dev/null ; then
- ai_p=$OPENSSL_INCDIR
- else
- ep_dir=`echo $OPENSSL_INCDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OPENSSL_INCDIR"`
- fi
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INCLUDEPATH$unique=set"
- if test ""; then
- INCLUDES="-I$ai_p $INCLUDES"
- else
- INCLUDES="$INCLUDES -I$ai_p"
- fi
- fi
- fi
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$OPENSSL_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_free in -lcrypto" >&5
- $as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
- if ${ac_cv_lib_crypto_CRYPTO_free+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcrypto $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char CRYPTO_free ();
- int
- main ()
- {
- return CRYPTO_free ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_crypto_CRYPTO_free=yes
- else
- ac_cv_lib_crypto_CRYPTO_free=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
- $as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
- if test "x$ac_cv_lib_crypto_CRYPTO_free" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- case crypto in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- MYSQLND_SHARED_LIBADD="-lcrypto $MYSQLND_SHARED_LIBADD"
- else
- case crypto in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lcrypto $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_crypto_CRYPTO_free
- as_fn_error $? "libcrypto not found!" "$LINENO" 5
- fi
- old_LIBS=$LIBS
- LIBS="$LIBS -lcrypto"
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff="
- -L$OPENSSL_LIBDIR
- "
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_ssl_version in -lssl" >&5
- $as_echo_n "checking for SSL_CTX_set_ssl_version in -lssl... " >&6; }
- if ${ac_cv_lib_ssl_SSL_CTX_set_ssl_version+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lssl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char SSL_CTX_set_ssl_version ();
- int
- main ()
- {
- return SSL_CTX_set_ssl_version ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_ssl_SSL_CTX_set_ssl_version=yes
- else
- ac_cv_lib_ssl_SSL_CTX_set_ssl_version=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&5
- $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" >&6; }
- if test "x$ac_cv_lib_ssl_SSL_CTX_set_ssl_version" = xyes; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- found_openssl=yes
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_ssl_SSL_CTX_set_ssl_version
- as_fn_error $? "libssl not found!" "$LINENO" 5
- fi
- LIBS=$old_LIBS
- case ssl in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- MYSQLND_SHARED_LIBADD="-lssl $MYSQLND_SHARED_LIBADD"
- else
- case ssl in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lssl $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- case crypto in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- MYSQLND_SHARED_LIBADD="-lcrypto $MYSQLND_SHARED_LIBADD"
- else
- case crypto in
- c|c_r|pthread*) ;;
- *)
- LIBS="-lcrypto $LIBS"
- ;;
- esac
- fi
- ;;
- esac
- if test "$OPENSSL_LIBDIR" != "/usr/$PHP_LIBDIR" && test "$OPENSSL_LIBDIR" != "/usr/lib"; then
- if test -z "$OPENSSL_LIBDIR" || echo "$OPENSSL_LIBDIR" | grep '^/' >/dev/null ; then
- ai_p=$OPENSSL_LIBDIR
- else
- ep_dir=`echo $OPENSSL_LIBDIR|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$OPENSSL_LIBDIR"`
- fi
- if test "$ext_shared" = "yes"; then
- MYSQLND_SHARED_LIBADD="-L$ai_p $MYSQLND_SHARED_LIBADD"
- test -n "$ld_runpath_switch" && MYSQLND_SHARED_LIBADD="$ld_runpath_switch$ai_p $MYSQLND_SHARED_LIBADD"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- fi
- if test "$found_openssl" = "yes"; then
- OPENSSL_INCDIR_OPT=-I$OPENSSL_INCDIR
- $as_echo "#define MYSQLND_HAVE_SSL 1" >>confdefs.h
- fi
- fi
- mysqlnd_sources="$mysqlnd_base_sources $mysqlnd_ps_sources"
- ext_builddir=ext/mysqlnd
- ext_srcdir=$abs_srcdir/ext/mysqlnd
- ext_dir=ext/mysqlnd
- ac_extra=`echo "-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
- PHP_MYSQLND_SHARED=no
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $mysqlnd_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC mysqlnd;$ext_dir"
- if test "$ext_shared" != "nocli"; then
- EXT_CLI_STATIC="$EXT_CLI_STATIC mysqlnd;$ext_dir"
- fi
- else
- if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
- PHP_MYSQLND_SHARED=yes
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$shared_c_pre
- b_cxx_pre=$shared_cxx_pre
- b_c_meta=$shared_c_meta
- b_cxx_meta=$shared_cxx_meta
- b_c_post=$shared_c_post
- b_cxx_post=$shared_cxx_post
- b_lo=$shared_lo
- old_IFS=$IFS
- for ac_src in $mysqlnd_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- shared_objects_mysqlnd="$shared_objects_mysqlnd $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- install_modules="install-modules"
- suffix=la
- case $host_alias in
- *aix*)
- additional_flags="-Wl,-G"
- ;;
- esac
- if test "x" = "xyes"; then
- PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/mysqlnd.$suffix"
- else
- PHP_MODULES="$PHP_MODULES \$(phplibdir)/mysqlnd.$suffix"
- fi
- PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_mysqlnd"
- cat >>Makefile.objects<<EOF
- \$(phplibdir)/mysqlnd.$suffix: $ext_builddir/mysqlnd.$suffix
- \$(LIBTOOL) --mode=install cp $ext_builddir/mysqlnd.$suffix \$(phplibdir)
- $ext_builddir/mysqlnd.$suffix: \$(shared_objects_mysqlnd) \$(MYSQLND_SHARED_DEPENDENCIES)
- \$(LIBTOOL) --mode=link \$(CC) \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(LDFLAGS) $additional_flags -o \$@ -export-dynamic -avoid-version -prefer-pic -module -rpath \$(phplibdir) \$(EXTRA_LDFLAGS) \$(shared_objects_mysqlnd) \$(MYSQLND_SHARED_LIBADD)
- EOF
- cat >>confdefs.h <<_ACEOF
- #define COMPILE_DL_MYSQLND 1
- _ACEOF
- fi
- fi
- if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
- PHP_MYSQLND_SHARED=no
- case "$PHP_SAPI" in
- cgi|embed|phpdbg)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $mysqlnd_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- EXT_STATIC="$EXT_STATIC mysqlnd;$ext_dir"
- ;;
- *)
- case $ext_dir in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "$ext_dir"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/$ext_dir/"; ac_bdir="$ext_dir/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in $mysqlnd_sources; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- ;;
- esac
- EXT_CLI_STATIC="$EXT_CLI_STATIC mysqlnd;$ext_dir"
- fi
- BUILD_DIR="$BUILD_DIR $ext_builddir"
- if test "$ext_builddir" = "."; then
- PHP_PECL_EXTENSION=mysqlnd
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
- fi
- $php_shtool mkdir -p ext/mysqlnd
- for header_file in ext/mysqlnd/; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- fi
- if test "$PHP_MYSQLND" != "no" || test "$PHP_MYSQLND_ENABLED" = "yes" || test "$PHP_MYSQLI" != "no"; then
- $php_shtool mkdir -p ext/mysqlnd
- fi
- if test "$PHP_RECODE" != "no"; then
- test "$PHP_IMAP" != "no" && recode_conflict="$recode_conflict imap"
- if test -n "$MYSQL_LIBNAME"; then
- save_old_LDFLAGS=$LDFLAGS
- ac_stuff=""
- save_ext_shared=$ext_shared
- ext_shared=yes
- for ac_i in $ac_stuff; do
- case $ac_i in
- -pthread)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -pthread"
- else
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS$unique=set"
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
- fi
- unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$EXTRA_LDFLAGS_PROGRAM$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "EXTRA_LDFLAGS_PROGRAM$unique=set"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $ac_i"
- fi
- fi
- ;;
- -l*)
- ac_ii=`echo $ac_i|cut -c 3-`
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- if test "$ext_shared" = "yes"; then
- LDFLAGS="$LDFLAGS -l$ac_ii"
- else
- case $ac_ii in
- c|c_r|pthread*) ;;
- *)
- LIBS="$LIBS -l$ac_ii"
- ;;
- esac
- fi
- ;;
- esac
- ;;
- -L*)
- ac_ii=`echo $ac_i|cut -c 3-`
- if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
- if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
- ai_p=$ac_ii
- else
- ep_dir=`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`
- ep_realdir=`(cd "$ep_dir" && pwd)`
- ai_p="$ep_realdir"/`basename "$ac_ii"`
- fi
- if test "$ext_shared" = "yes"; then
- LDFLAGS="-L$ai_p $LDFLAGS"
- test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
- else
- unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "LIBPATH$unique=set"
- test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
- LDFLAGS="$LDFLAGS -L$ai_p"
- PHP_RPATHS="$PHP_RPATHS $ai_p"
- fi
- fi
- fi
- ;;
- esac
- done
- as_ac_Lib=`$as_echo "ac_cv_lib_$MYSQL_LIBNAME''_hash_insert" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hash_insert in -l$MYSQL_LIBNAME" >&5
- $as_echo_n "checking for hash_insert in -l$MYSQL_LIBNAME... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-l$MYSQL_LIBNAME $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char hash_insert ();
- int
- main ()
- {
- return hash_insert ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- eval "$as_ac_Lib=yes"
- else
- eval "$as_ac_Lib=no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- eval ac_res=\$$as_ac_Lib
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
- $as_echo "$ac_res" >&6; }
- if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- recode_conflict="$recode_conflict mysql"
- else
- LDFLAGS=$save_old_LDFLAGS
- ext_shared=$save_ext_shared
- unset ac_cv_lib_$MYSQL_LIBNAME_hash_insert
- fi
- fi
- if test -n "$recode_conflict"; then
- as_fn_error $? "recode extension can not be configured together with:$recode_conflict" "$LINENO" 5
- fi
- fi
- enable_shared=yes
- enable_static=yes
- case $php_sapi_module in
- shared)
- enable_static=no
- case $with_pic in
- yes)
- standard_libtool_flag='-prefer-pic'
- ;;
- no)
- standard_libtool_flag='-prefer-non-pic'
- ;;
- esac
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS -avoid-version -module"
- ;;
- *)
- standard_libtool_flag='-prefer-non-pic -static'
- if test -z "$PHP_MODULES" && test -z "$PHP_ZEND_EX"; then
- enable_shared=no
- fi
- ;;
- esac
- EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
- if test "$ac_cv_lib_crypt_crypt" = "yes"; then
- EXTRA_LIBS="-lcrypt $EXTRA_LIBS -lcrypt"
- fi
- unset LIBS LDFLAGS
- # Check whether --enable- was given.
- if test "${enable_+set}" = set; then :
- enableval=$enable_;
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring PEAR${T_ME}" >&5
- $as_echo "${T_MD}Configuring PEAR${T_ME}" >&6; }
- # compatibility
- if test -z "$with_pear" && test "$enable_pear" = "no"; then
- with_pear=no
- fi
- # If CLI is disabled -> disable PEAR
- if test "$PHP_CLI" = "no"; then
- with_pear=no
- fi
- php_with_pear=DEFAULT
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install PEAR" >&5
- $as_echo_n "checking whether to install PEAR... " >&6; }
- # Check whether --with-pear was given.
- if test "${with_pear+set}" = set; then :
- withval=$with_pear; PHP_PEAR=$withval
- else
- PHP_PEAR=DEFAULT
- test "$PHP_ENABLE_ALL" && PHP_PEAR=$PHP_ENABLE_ALL
- fi
- ext_output="yes, shared"
- ext_shared=yes
- case $PHP_PEAR in
- shared,*)
- PHP_PEAR=`echo "$PHP_PEAR"|$SED 's/^shared,//'`
- ;;
- shared)
- PHP_PEAR=yes
- ;;
- no)
- ext_output=no
- ext_shared=no
- ;;
- *)
- ext_output=yes
- ext_shared=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
- $as_echo "$ext_output" >&6; }
- if test "$PHP_PEAR" != "no"; then
- if test "$PHP_XML" = "no"; then
- pear_error_msg="$pear_error_msg
- PEAR requires XML to be enabled. Add --enable-xml to the configure line. (or --without-pear)"
- fi
- if test "$pear_error_msg"; then
- as_fn_error $? "$pear_error_msg" "$LINENO" 5
- fi
- install_pear="install-pear"
- PEAR_INSTALLDIR=$PHP_PEAR
- if test "$PHP_PEAR" = "DEFAULT" || test "$PHP_PEAR" = "yes"; then
- case $PHP_LAYOUT in
- GNU) PEAR_INSTALLDIR=$datadir/pear;;
- *) PEAR_INSTALLDIR=$libdir/php;;
- esac
- fi
- src=$abs_srcdir/pear/Makefile.frag
- ac_srcdir=$abs_srcdir/pear
- ac_builddir=pear
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- fi
- # Check whether --enable- was given.
- if test "${enable_+set}" = set; then :
- enableval=$enable_;
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring Zend${T_ME}" >&5
- $as_echo "${T_MD}Configuring Zend${T_ME}" >&6; }
- # we only support certain bison versions;
- # min: 2.4 (i.e. 204, major * 100 + minor for easier comparison)
- bison_version_min="204"
- # non-working versions, e.g. "3.0 3.2";
- # remove "none" when introducing the first incompatible bison version an
- # separate any following additions by spaces
- bison_version_exclude=""
- # for standalone build of Zend Engine
- test -z "$SED" && SED=sed
- bison_version=none
- if test "$YACC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5
- $as_echo_n "checking for bison version... " >&6; }
- if ${php_cv_bison_version+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- bison_version_vars=`$YACC --version 2> /dev/null | grep 'GNU Bison' | cut -d ' ' -f 4 | $SED -e 's/\./ /g' | tr -d a-z`
- php_cv_bison_version=invalid
- if test -n "$bison_version_vars"; then
- set $bison_version_vars
- bison_version="${1}.${2}"
- bison_version_num="`expr ${1} \* 100 + ${2}`"
- if test $bison_version_num -ge $bison_version_min; then
- php_cv_bison_version="$bison_version (ok)"
- for bison_check_version in $bison_version_exclude; do
- if test "$bison_version" = "$bison_check_version"; then
- php_cv_bison_version=invalid
- break
- fi
- done
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_bison_version" >&5
- $as_echo "$php_cv_bison_version" >&6; }
- fi
- case $php_cv_bison_version in
- ""|invalid)
- bison_msg="This bison version is not supported for regeneration of the Zend/PHP parsers (found: $bison_version, min: $bison_version_min, excluded: $bison_version_exclude)."
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $bison_msg" >&5
- $as_echo "$as_me: WARNING: $bison_msg" >&2;}
- YACC="exit 0;"
- ;;
- esac
- if test "$CC" = "gcc" -a "$ac_cv_prog_cc_g" = "yes" -a \
- "`uname -sv`" = "AIX 4"; then
- CFLAGS=`echo $CFLAGS | sed -e 's/-g//'`
- fi
- if test "$ac_cv_c_compiler_gnu" = "yes" -a "`uname -s`" = "Rhapsody"; then
- CPPFLAGS="$CPPFLAGS -traditional-cpp"
- fi
- for ac_header in inttypes.h \
- stdint.h \
- limits.h \
- malloc.h \
- string.h \
- unistd.h \
- stdarg.h \
- sys/types.h \
- sys/time.h \
- signal.h \
- unix.h \
- stdlib.h \
- cpuid.h \
- dlfcn.h
- do :
- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
- if test "x$ac_cv_type_size_t" = xyes; then :
- else
- cat >>confdefs.h <<_ACEOF
- #define size_t unsigned int
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "uint" "ac_cv_type_uint" "$ac_includes_default"
- if test "x$ac_cv_type_uint" = xyes; then :
- else
- cat >>confdefs.h <<_ACEOF
- #define uint unsigned int
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "ulong" "ac_cv_type_ulong" "$ac_includes_default"
- if test "x$ac_cv_type_ulong" = xyes; then :
- else
- cat >>confdefs.h <<_ACEOF
- #define ulong unsigned long
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5
- $as_echo_n "checking for int32_t... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #if HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- #if HAVE_INTTYPES_H
- #include <inttypes.h>
- #elif HAVE_STDINT_H
- #include <stdint.h>
- #endif
- int
- main ()
- {
- if ((int32_t *) 0)
- return 0;
- if (sizeof (int32_t))
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INT32_T 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
- $as_echo_n "checking for uint32_t... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #if HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- #if HAVE_INTTYPES_H
- #include <inttypes.h>
- #elif HAVE_STDINT_H
- #include <stdint.h>
- #endif
- int
- main ()
- {
- if ((uint32_t *) 0)
- return 0;
- if (sizeof (uint32_t))
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UINT32_T 1
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- for ac_func in vprintf
- do :
- ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
- if test "x$ac_cv_func_vprintf" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_VPRINTF 1
- _ACEOF
- ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
- if test "x$ac_cv_func__doprnt" = xyes; then :
- $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
- fi
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
- $as_echo_n "checking for working memcmp... " >&6; }
- if ${ac_cv_func_memcmp_working+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_func_memcmp_working=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- int
- main ()
- {
- /* Some versions of memcmp are not 8-bit clean. */
- char c0 = '\100', c1 = '\200', c2 = '\201';
- if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
- return 1;
- /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
- or more and with at least one buffer not starting on a 4-byte boundary.
- William Lewis provided this test program. */
- {
- char foo[21];
- char bar[21];
- int i;
- for (i = 0; i < 4; i++)
- {
- char *a = foo + i;
- char *b = bar + i;
- strcpy (a, "--------01111111");
- strcpy (b, "--------10000000");
- if (memcmp (a, b, 16) >= 0)
- return 1;
- }
- return 0;
- }
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_memcmp_working=yes
- else
- ac_cv_func_memcmp_working=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
- $as_echo "$ac_cv_func_memcmp_working" >&6; }
- test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
- *" memcmp.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
- ;;
- esac
- # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
- # for constant arguments. Useless!
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
- $as_echo_n "checking for working alloca.h... " >&6; }
- if ${ac_cv_working_alloca_h+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <alloca.h>
- int
- main ()
- {
- char *p = (char *) alloca (2 * sizeof (int));
- if (p) return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_working_alloca_h=yes
- else
- ac_cv_working_alloca_h=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
- $as_echo "$ac_cv_working_alloca_h" >&6; }
- if test $ac_cv_working_alloca_h = yes; then
- $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
- $as_echo_n "checking for alloca... " >&6; }
- if ${ac_cv_func_alloca_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __GNUC__
- # define alloca __builtin_alloca
- #else
- # ifdef _MSC_VER
- # include <malloc.h>
- # define alloca _alloca
- # else
- # ifdef HAVE_ALLOCA_H
- # include <alloca.h>
- # else
- # ifdef _AIX
- #pragma alloca
- # else
- # ifndef alloca /* predefined by HP cc +Olibcalls */
- void *alloca (size_t);
- # endif
- # endif
- # endif
- # endif
- #endif
- int
- main ()
- {
- char *p = (char *) alloca (1);
- if (p) return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_func_alloca_works=yes
- else
- ac_cv_func_alloca_works=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
- $as_echo "$ac_cv_func_alloca_works" >&6; }
- if test $ac_cv_func_alloca_works = yes; then
- $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
- else
- # The SVR3 libPW and SVR4 libucb both contain incompatible functions
- # that cause trouble. Some versions do not even contain alloca or
- # contain a buggy version. If you still want to use their alloca,
- # use ar to extract alloca.o from them instead of compiling alloca.c.
- ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
- $as_echo "#define C_ALLOCA 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
- $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
- if ${ac_cv_os_cray+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #if defined CRAY && ! defined CRAY2
- webecray
- #else
- wenotbecray
- #endif
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "webecray" >/dev/null 2>&1; then :
- ac_cv_os_cray=yes
- else
- ac_cv_os_cray=no
- fi
- rm -f conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
- $as_echo "$ac_cv_os_cray" >&6; }
- if test $ac_cv_os_cray = yes; then
- for ac_func in _getb67 GETB67 getb67; do
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define CRAY_STACKSEG_END $ac_func
- _ACEOF
- break
- fi
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
- $as_echo_n "checking stack direction for C alloca... " >&6; }
- if ${ac_cv_c_stack_direction+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_c_stack_direction=0
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- int
- find_stack_direction (int *addr, int depth)
- {
- int dir, dummy = 0;
- if (! addr)
- addr = &dummy;
- *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
- dir = depth ? find_stack_direction (addr, depth - 1) : 0;
- return dir + dummy;
- }
- int
- main (int argc, char **argv)
- {
- return find_stack_direction (0, argc + !argv + 20) < 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_c_stack_direction=1
- else
- ac_cv_c_stack_direction=-1
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
- $as_echo "$ac_cv_c_stack_direction" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define STACK_DIRECTION $ac_cv_c_stack_direction
- _ACEOF
- fi
- for ac_func in memcpy strdup getpid kill strtod strtol finite fpclass sigsetjmp
- do :
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sprintf is broken" >&5
- $as_echo_n "checking whether sprintf is broken... " >&6; }
- if ${ac_cv_broken_sprintf+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_broken_sprintf=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- int main() {char buf[20]; return sprintf(buf,"testing 123")!=11; }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_broken_sprintf=no
- else
- ac_cv_broken_sprintf=yes
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sprintf" >&5
- $as_echo "$ac_cv_broken_sprintf" >&6; }
- if test "$ac_cv_broken_sprintf" = "yes"; then
- ac_result=1
- else
- ac_result=0
- fi
- cat >>confdefs.h <<_ACEOF
- #define ZEND_BROKEN_SPRINTF $ac_result
- _ACEOF
- ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h>
- "
- if test "x$ac_cv_have_decl_isfinite" = xyes; then :
- ac_have_decl=1
- else
- ac_have_decl=0
- fi
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DECL_ISFINITE $ac_have_decl
- _ACEOF
- ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h>
- "
- if test "x$ac_cv_have_decl_isnan" = xyes; then :
- ac_have_decl=1
- else
- ac_have_decl=0
- fi
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DECL_ISNAN $ac_have_decl
- _ACEOF
- ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h>
- "
- if test "x$ac_cv_have_decl_isinf" = xyes; then :
- ac_have_decl=1
- else
- ac_have_decl=0
- fi
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DECL_ISINF $ac_have_decl
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fp_except is defined" >&5
- $as_echo_n "checking whether fp_except is defined... " >&6; }
- if ${ac_cv_type_fp_except+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <floatingpoint.h>
- int
- main ()
- {
- fp_except x = (fp_except) 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_type_fp_except=yes
- else
- ac_cv_type_fp_except=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_fp_except" >&5
- $as_echo "$ac_cv_type_fp_except" >&6; }
- if test "$ac_cv_type_fp_except" = "yes"; then
- $as_echo "#define HAVE_FP_EXCEPT 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _FPU_SETCW" >&5
- $as_echo_n "checking for usable _FPU_SETCW... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <fpu_control.h>
- int
- main ()
- {
- fpu_control_t fpu_oldcw, fpu_cw;
- volatile double result;
- double a = 2877.0;
- volatile double b = 1000000.0;
- _FPU_GETCW(fpu_oldcw);
- fpu_cw = (fpu_oldcw & ~_FPU_EXTENDED & ~_FPU_SINGLE) | _FPU_DOUBLE;
- _FPU_SETCW(fpu_cw);
- result = a / b;
- _FPU_SETCW(fpu_oldcw);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cfp_have__fpu_setcw=yes
- else
- ac_cfp_have__fpu_setcw=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test "$ac_cfp_have__fpu_setcw" = "yes" ; then
- $as_echo "#define HAVE__FPU_SETCW 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable fpsetprec" >&5
- $as_echo_n "checking for usable fpsetprec... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <machine/ieeefp.h>
- int
- main ()
- {
- fp_prec_t fpu_oldprec;
- volatile double result;
- double a = 2877.0;
- volatile double b = 1000000.0;
- fpu_oldprec = fpgetprec();
- fpsetprec(FP_PD);
- result = a / b;
- fpsetprec(fpu_oldprec);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cfp_have_fpsetprec=yes
- else
- ac_cfp_have_fpsetprec=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test "$ac_cfp_have_fpsetprec" = "yes" ; then
- $as_echo "#define HAVE_FPSETPREC 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp" >&5
- $as_echo_n "checking for usable _controlfp... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <float.h>
- int
- main ()
- {
- unsigned int fpu_oldcw;
- volatile double result;
- double a = 2877.0;
- volatile double b = 1000000.0;
- fpu_oldcw = _controlfp(0, 0);
- _controlfp(_PC_53, _MCW_PC);
- result = a / b;
- _controlfp(fpu_oldcw, _MCW_PC);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cfp_have__controlfp=yes
- else
- ac_cfp_have__controlfp=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test "$ac_cfp_have__controlfp" = "yes" ; then
- $as_echo "#define HAVE__CONTROLFP 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable _controlfp_s" >&5
- $as_echo_n "checking for usable _controlfp_s... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <float.h>
- int
- main ()
- {
- unsigned int fpu_oldcw, fpu_cw;
- volatile double result;
- double a = 2877.0;
- volatile double b = 1000000.0;
- _controlfp_s(&fpu_cw, 0, 0);
- fpu_oldcw = fpu_cw;
- _controlfp_s(&fpu_cw, _PC_53, _MCW_PC);
- result = a / b;
- _controlfp_s(&fpu_cw, fpu_oldcw, _MCW_PC);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cfp_have__controlfp_s=yes
- else
- ac_cfp_have__controlfp_s=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test "$ac_cfp_have__controlfp_s" = "yes" ; then
- $as_echo "#define HAVE__CONTROLFP_S 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FPU control word can be manipulated by inline assembler" >&5
- $as_echo_n "checking whether FPU control word can be manipulated by inline assembler... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* nothing */
- int
- main ()
- {
- unsigned int oldcw, cw;
- volatile double result;
- double a = 2877.0;
- volatile double b = 1000000.0;
- __asm__ __volatile__ ("fnstcw %0" : "=m" (*&oldcw));
- cw = (oldcw & ~0x0 & ~0x300) | 0x200;
- __asm__ __volatile__ ("fldcw %0" : : "m" (*&cw));
- result = a / b;
- __asm__ __volatile__ ("fldcw %0" : : "m" (*&oldcw));
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cfp_have_fpu_inline_asm_x86=yes
- else
- ac_cfp_have_fpu_inline_asm_x86=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test "$ac_cfp_have_fpu_inline_asm_x86" = "yes" ; then
- $as_echo "#define HAVE_FPU_INLINE_ASM_X86 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether double cast to long preserves least significant bits" >&5
- $as_echo_n "checking whether double cast to long preserves least significant bits... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <limits.h>
- int main()
- {
- if (sizeof(long) == 4) {
- double d = (double) LONG_MIN * LONG_MIN + 2e9;
- if ((long) d == 2e9 && (long) -d == -2e9) {
- return 0;
- }
- } else if (sizeof(long) == 8) {
- double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */
- if ((long) 18e18 == correct) { /* On 64-bit, only check between LONG_MAX and ULONG_MAX */
- return 0;
- }
- }
- return 1;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- $as_echo "#define ZEND_DVAL_TO_LVAL_CAST_OK 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- for ac_header in dlfcn.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
- if test "x$ac_cv_header_dlfcn_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_DLFCN_H 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dlsym() requires a leading underscore in symbol names" >&5
- $as_echo_n "checking whether dlsym() requires a leading underscore in symbol names... " >&6; }
- if test "$cross_compiling" = yes; then :
- else
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- lt_status=$lt_dlunknown
- cat > conftest.$ac_ext <<EOF
- #line 96708 "configure"
- #include "confdefs.h"
- #if HAVE_DLFCN_H
- #include <dlfcn.h>
- #endif
- #include <stdio.h>
- #ifdef RTLD_GLOBAL
- # define LT_DLGLOBAL RTLD_GLOBAL
- #else
- # ifdef DL_GLOBAL
- # define LT_DLGLOBAL DL_GLOBAL
- # else
- # define LT_DLGLOBAL 0
- # endif
- #endif
- /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- find out it does not work in some platform. */
- #ifndef LT_DLLAZY_OR_NOW
- # ifdef RTLD_LAZY
- # define LT_DLLAZY_OR_NOW RTLD_LAZY
- # else
- # ifdef DL_LAZY
- # define LT_DLLAZY_OR_NOW DL_LAZY
- # else
- # ifdef RTLD_NOW
- # define LT_DLLAZY_OR_NOW RTLD_NOW
- # else
- # ifdef DL_NOW
- # define LT_DLLAZY_OR_NOW DL_NOW
- # else
- # define LT_DLLAZY_OR_NOW 0
- # endif
- # endif
- # endif
- # endif
- #endif
- void fnord() { int i=42;}
- int main ()
- {
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- int status = $lt_dlunknown;
- if (self)
- {
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- /* dlclose (self); */
- }
- else
- puts (dlerror ());
- return (status);
- }
- EOF
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
- (./conftest; exit; ) >&5 2>/dev/null
- lt_status=$?
- case x$lt_status in
- x$lt_dlno_uscore)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- ;;
- x$lt_dlneed_uscore)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define DLSYM_NEEDS_UNDERSCORE 1" >>confdefs.h
- ;;
- x$lt_dlunknown|x*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- ;;
- esac
- else :
- # compilation failed
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- rm -fr conftest*
- # Check whether --enable-maintainer-zts was given.
- if test "${enable_maintainer_zts+set}" = set; then :
- enableval=$enable_maintainer_zts;
- ZEND_MAINTAINER_ZTS=$enableval
- else
- ZEND_MAINTAINER_ZTS=no
- fi
- # Check whether --enable-inline-optimization was given.
- if test "${enable_inline_optimization+set}" = set; then :
- enableval=$enable_inline_optimization;
- ZEND_INLINE_OPTIMIZATION=$enableval
- else
- ZEND_INLINE_OPTIMIZATION=yes
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread-safety" >&5
- $as_echo_n "checking whether to enable thread-safety... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_MAINTAINER_ZTS" >&5
- $as_echo "$ZEND_MAINTAINER_ZTS" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable inline optimization for GCC" >&5
- $as_echo_n "checking whether to enable inline optimization for GCC... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_INLINE_OPTIMIZATION" >&5
- $as_echo "$ZEND_INLINE_OPTIMIZATION" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Zend debugging" >&5
- $as_echo_n "checking whether to enable Zend debugging... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_DEBUG" >&5
- $as_echo "$ZEND_DEBUG" >&6; }
- if test "$ZEND_DEBUG" = "yes"; then
- $as_echo "#define ZEND_DEBUG 1" >>confdefs.h
- echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g"
- if test "$CFLAGS" = "-g -O0"; then
- CFLAGS=-g
- fi
- test -n "$GCC" && DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall"
- test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \
- DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
- else
- $as_echo "#define ZEND_DEBUG 0" >>confdefs.h
- fi
- test -n "$DEBUG_CFLAGS" && CFLAGS="$CFLAGS $DEBUG_CFLAGS"
- if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
- $as_echo "#define ZTS 1" >>confdefs.h
- CFLAGS="$CFLAGS -DZTS"
- fi
- if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
- INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//`
- else
- INLINE_CFLAGS="$CFLAGS"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
- $as_echo_n "checking for inline... " >&6; }
- if ${ac_cv_c_inline+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_c_inline=no
- for ac_kw in inline __inline__ __inline; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifndef __cplusplus
- typedef int foo_t;
- static $ac_kw foo_t static_foo () {return 0; }
- $ac_kw foo_t foo () {return 0; }
- #endif
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_inline=$ac_kw
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- test "$ac_cv_c_inline" != no && break
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
- $as_echo "$ac_cv_c_inline" >&6; }
- case $ac_cv_c_inline in
- inline | yes) ;;
- *)
- case $ac_cv_c_inline in
- no) ac_val=;;
- *) ac_val=$ac_cv_c_inline;;
- esac
- cat >>confdefs.h <<_ACEOF
- #ifndef __cplusplus
- #define inline $ac_val
- #endif
- _ACEOF
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system is Darwin" >&5
- $as_echo_n "checking target system is Darwin... " >&6; }
- if echo "$target" | grep "darwin" > /dev/null; then
- $as_echo "#define DARWIN 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MM alignment and log values" >&5
- $as_echo_n "checking for MM alignment and log values... " >&6; }
- if test "$cross_compiling" = yes; then :
- LIBZEND_MM_ALIGN=8
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- typedef union _mm_align_test {
- void *ptr;
- double dbl;
- long lng;
- } mm_align_test;
- #if (defined (__GNUC__) && __GNUC__ >= 2)
- #define ZEND_MM_ALIGNMENT (__alignof__ (mm_align_test))
- #else
- #define ZEND_MM_ALIGNMENT (sizeof(mm_align_test))
- #endif
- int main()
- {
- int i = ZEND_MM_ALIGNMENT;
- int zeros = 0;
- FILE *fp;
- while (i & ~0x1) {
- zeros++;
- i = i >> 1;
- }
- fp = fopen("conftest.zend", "w");
- fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT, zeros);
- fclose(fp);
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- LIBZEND_MM_ALIGN=`cat conftest.zend | cut -d ' ' -f 1`
- LIBZEND_MM_ALIGN_LOG2=`cat conftest.zend | cut -d ' ' -f 2`
- cat >>confdefs.h <<_ACEOF
- #define ZEND_MM_ALIGNMENT $LIBZEND_MM_ALIGN
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define ZEND_MM_ALIGNMENT_LOG2 $LIBZEND_MM_ALIGN_LOG2
- _ACEOF
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
- $as_echo "done" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory allocation using mmap(MAP_ANON)" >&5
- $as_echo_n "checking for memory allocation using mmap(MAP_ANON)... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <sys/mman.h>
- #include <stdlib.h>
- #include <stdio.h>
- #ifndef MAP_ANON
- # ifdef MAP_ANONYMOUS
- # define MAP_ANON MAP_ANONYMOUS
- # endif
- #endif
- #ifndef MREMAP_MAYMOVE
- # define MREMAP_MAYMOVE 0
- #endif
- #ifndef MAP_FAILED
- # define MAP_FAILED ((void*)-1)
- #endif
- #define SEG_SIZE (256*1024)
- int main()
- {
- void *seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
- if (seg == MAP_FAILED) {
- return 1;
- }
- if (munmap(seg, SEG_SIZE) != 0) {
- return 2;
- }
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- $as_echo "#define HAVE_MEM_MMAP_ANON 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory allocation using mmap(\"/dev/zero\")" >&5
- $as_echo_n "checking for memory allocation using mmap(\"/dev/zero\")... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <sys/mman.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include <unistd.h>
- #ifndef MAP_ANON
- # ifdef MAP_ANONYMOUS
- # define MAP_ANON MAP_ANONYMOUS
- # endif
- #endif
- #ifndef MREMAP_MAYMOVE
- # define MREMAP_MAYMOVE 0
- #endif
- #ifndef MAP_FAILED
- # define MAP_FAILED ((void*)-1)
- #endif
- #define SEG_SIZE (256*1024)
- int main()
- {
- int fd;
- void *seg;
- fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR);
- if (fd < 0) {
- return 1;
- }
- seg = mmap(NULL, SEG_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
- if (seg == MAP_FAILED) {
- return 2;
- }
- if (munmap(seg, SEG_SIZE) != 0) {
- return 3;
- }
- if (close(fd) != 0) {
- return 4;
- }
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- $as_echo "#define HAVE_MEM_MMAP_ZERO 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- for ac_func in mremap
- do :
- ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap"
- if test "x$ac_cv_func_mremap" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_MREMAP 1
- _ACEOF
- fi
- done
- # Check whether --enable-zend-signals was given.
- if test "${enable_zend_signals+set}" = set; then :
- enableval=$enable_zend_signals;
- ZEND_SIGNALS=$enableval
- else
- ZEND_SIGNALS=yes
- fi
- ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
- if test "x$ac_cv_func_sigaction" = xyes; then :
- $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
- else
- ZEND_SIGNALS=no
- fi
- if test "$ZEND_SIGNALS" = "yes"; then
- $as_echo "#define ZEND_SIGNALS 1" >>confdefs.h
- CFLAGS="$CFLAGS -DZEND_SIGNALS"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable zend signal handling" >&5
- $as_echo_n "checking whether to enable zend signal handling... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZEND_SIGNALS" >&5
- $as_echo "$ZEND_SIGNALS" >&6; }
- if test "$ZEND_MAINTAINER_ZTS" = "yes"; then
- $as_echo "#define ZTS 1" >>confdefs.h
- PHP_THREAD_SAFETY=yes
- else
- PHP_THREAD_SAFETY=no
- fi
- INCLUDES="$INCLUDES -I\$(top_builddir)/TSRM"
- INCLUDES="$INCLUDES -I\$(top_builddir)/Zend"
- if test "$abs_srcdir" != "$abs_builddir"; then
- INCLUDES="$INCLUDES -I\$(top_srcdir)/main -I\$(top_srcdir)/Zend"
- INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM -I\$(top_builddir)/"
- fi
- ZEND_EXTRA_LIBS="$LIBS"
- unset LIBS LDFLAGS
- # Check whether --enable- was given.
- if test "${enable_+set}" = set; then :
- enableval=$enable_;
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring TSRM${T_ME}" >&5
- $as_echo "${T_MD}Configuring TSRM${T_ME}" >&6; }
- for ac_header in stdarg.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
- if test "x$ac_cv_header_stdarg_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STDARG_H 1
- _ACEOF
- fi
- done
- for ac_func in sigprocmask
- do :
- ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
- if test "x$ac_cv_func_sigprocmask" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SIGPROCMASK 1
- _ACEOF
- fi
- done
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5
- $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
- if ${ac_cv_func_which_gethostbyname_r+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ################################################################
- ac_cv_func_which_gethostbyname_r=unknown
- #
- # ONE ARGUMENT (sanity check)
- #
- # This should fail, as there is no variant of gethostbyname_r() that takes
- # a single argument. If it actually compiles, then we can assume that
- # netdb.h is not declaring the function, and the compiler is thereby
- # assuming an implicit prototype. In which case, we're out of luck.
- #
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <netdb.h>
- int
- main ()
- {
- char *name = "www.gnu.org";
- (void)gethostbyname_r(name) /* ; */
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_func_which_gethostbyname_r=no
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- #
- # SIX ARGUMENTS
- # (e.g. Linux)
- #
- if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <netdb.h>
- int
- main ()
- {
- char *name = "www.gnu.org";
- struct hostent ret, *retp;
- char buf[1024];
- int buflen = 1024;
- int my_h_errno;
- (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_func_which_gethostbyname_r=six
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- #
- # FIVE ARGUMENTS
- # (e.g. Solaris)
- #
- if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <netdb.h>
- int
- main ()
- {
- char *name = "www.gnu.org";
- struct hostent ret;
- char buf[1024];
- int buflen = 1024;
- int my_h_errno;
- (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_func_which_gethostbyname_r=five
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- #
- # THREE ARGUMENTS
- # (e.g. AIX, HP-UX, Tru64)
- #
- if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <netdb.h>
- int
- main ()
- {
- char *name = "www.gnu.org";
- struct hostent ret;
- struct hostent_data data;
- (void)gethostbyname_r(name, &ret, &data) /* ; */
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_func_which_gethostbyname_r=three
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- ################################################################
- fi
- case "$ac_cv_func_which_gethostbyname_r" in
- three|five|six)
- $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
- ;;
- esac
- case "$ac_cv_func_which_gethostbyname_r" in
- three)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5
- $as_echo "three" >&6; }
- $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
- ;;
- five)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
- $as_echo "five" >&6; }
- $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
- ;;
- six)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5
- $as_echo "six" >&6; }
- $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
- ;;
- no)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5
- $as_echo "cannot find function declaration in netdb.h" >&6; }
- ;;
- unknown)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
- $as_echo "can't tell" >&6; }
- ;;
- *)
- as_fn_error $? "internal error" "$LINENO" 5
- ;;
- esac
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- if test "$PHP_THREAD_SAFETY" = "yes"; then
- # Check whether --with-tsrm-pth was given.
- if test "${with_tsrm_pth+set}" = set; then :
- withval=$with_tsrm_pth;
- TSRM_PTH=$withval
- else
- TSRM_PTH=no
- fi
- # Check whether --with-tsrm-st was given.
- if test "${with_tsrm_st+set}" = set; then :
- withval=$with_tsrm_st;
- TSRM_ST=$withval
- else
- TSRM_ST=no
- fi
- # Check whether --with-tsrm-pthreads was given.
- if test "${with_tsrm_pthreads+set}" = set; then :
- withval=$with_tsrm_pthreads;
- TSRM_PTHREADS=$withval
- else
- TSRM_PTHREADS=yes
- fi
- test "$TSRM_PTH" = "yes" && TSRM_PTH=pth-config
- if test "$TSRM_PTH" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth" >&5
- $as_echo_n "checking for GNU Pth... " >&6; }
- PTH_PREFIX="`$TSRM_PTH --prefix`"
- if test -z "$PTH_PREFIX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: Please check your Pth installation" >&5
- $as_echo "Please check your Pth installation" >&6; }
- fi
- CPPFLAGS="$CPPFLAGS `$TSRM_PTH --cflags`"
- LDFLAGS="$LDFLAGS `$TSRM_PTH --ldflags`"
- LIBS="$LIBS `$TSRM_PTH --libs`"
- $as_echo "#define GNUPTH 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - installed in $PTH_PREFIX" >&5
- $as_echo "yes - installed in $PTH_PREFIX" >&6; }
- elif test "$TSRM_ST" != "no"; then
- if test -r "$TSRM_ST/include/st.h"; then
- CPPFLAGS="$CPPFLAGS -I$TSRM_ST/include"
- LDFLAGS="$LDFLAGS -L$TSRM_ST/lib"
- elif test -r "$TSRM_ST/st.h"; then
- CPPFLAGS="$CPPFLAGS -I$TSRM_ST"
- LDFLAGS="$LDFLAGS -L$TSRM_ST"
- fi
- for ac_header in st.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "st.h" "ac_cv_header_st_h" "$ac_includes_default"
- if test "x$ac_cv_header_st_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ST_H 1
- _ACEOF
- else
- as_fn_error $? "Sorry, I was unable to locate the State Threads header file. Please specify the prefix using --with-tsrm-st=/prefix" "$LINENO" 5
- fi
- done
- LIBS="$LIBS -lst"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SGI's State Threads" >&5
- $as_echo_n "checking for SGI's State Threads... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- $as_echo "#define TSRM_ST 1" >>confdefs.h
- elif test "$TSRM_PTHREADS" != "no"; then
- save_CFLAGS=$CFLAGS
- save_LIBS=$LIBS
- if test -n "$ac_cv_pthreads_lib"; then
- LIBS="$LIBS -l$ac_cv_pthreads_lib"
- fi
- if test -n "$ac_cv_pthreads_cflags"; then
- CFLAGS="$CFLAGS $ac_cv_pthreads_cflags"
- fi
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- #include <stddef.h>
- void *thread_routine(void *data) {
- return data;
- }
- int main() {
- pthread_t thd;
- pthread_mutexattr_t mattr;
- int data = 1;
- pthread_mutexattr_init(&mattr);
- return pthread_create(&thd, NULL, thread_routine, &data);
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- pthreads_checked=yes
- else
- pthreads_checked=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$save_LIBS
- CFLAGS=$save_CFLAGS
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_cflags" >&5
- $as_echo_n "checking for pthreads_cflags... " >&6; }
- if ${ac_cv_pthreads_cflags+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_pthreads_cflags=
- if test "$pthreads_working" != "yes"; then
- for flag in -kthread -pthread -pthreads -mthreads -Kthread -threads -mt -qthreaded; do
- ac_save=$CFLAGS
- CFLAGS="$CFLAGS $flag"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- #include <stddef.h>
- void *thread_routine(void *data) {
- return data;
- }
- int main() {
- pthread_t thd;
- pthread_mutexattr_t mattr;
- int data = 1;
- pthread_mutexattr_init(&mattr);
- return pthread_create(&thd, NULL, thread_routine, &data);
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- pthreads_checked=yes
- else
- pthreads_checked=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CFLAGS=$ac_save
- if test "$pthreads_checked" = "yes"; then
- ac_cv_pthreads_cflags=$flag
- break
- fi
- done
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_cflags" >&5
- $as_echo "$ac_cv_pthreads_cflags" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_lib" >&5
- $as_echo_n "checking for pthreads_lib... " >&6; }
- if ${ac_cv_pthreads_lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_pthreads_lib=
- if test "$pthreads_working" != "yes"; then
- for lib in pthread pthreads c_r; do
- ac_save=$LIBS
- LIBS="$LIBS -l$lib"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- #include <stddef.h>
- void *thread_routine(void *data) {
- return data;
- }
- int main() {
- pthread_t thd;
- pthread_mutexattr_t mattr;
- int data = 1;
- pthread_mutexattr_init(&mattr);
- return pthread_create(&thd, NULL, thread_routine, &data);
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- pthreads_checked=yes
- else
- pthreads_checked=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_save
- if test "$pthreads_checked" = "yes"; then
- ac_cv_pthreads_lib=$lib
- break
- fi
- done
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthreads_lib" >&5
- $as_echo "$ac_cv_pthreads_lib" >&6; }
- if test "x$ac_cv_pthreads_cflags" != "x" -o "x$ac_cv_pthreads_lib" != "x"; then
- pthreads_working="yes"
- fi
- if test "$pthreads_working" = "yes"; then
- threads_result="POSIX-Threads found"
- else
- threads_result="POSIX-Threads not found"
- fi
- if test "$pthreads_working" != "yes"; then
- as_fn_error $? "Your system seems to lack POSIX threads." "$LINENO" 5
- fi
- $as_echo "#define PTHREADS 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX threads" >&5
- $as_echo_n "checking for POSIX threads... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- fi
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LDFLAGS"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $LDFLAGS"
- EXTRA_LIBS="$EXTRA_LIBS $LIBS"
- unset LIBS LDFLAGS
- test "$prefix" = "NONE" && prefix=/usr/local
- test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
- test "$program_prefix" = "NONE" && program_prefix=
- test "$program_suffix" = "NONE" && program_suffix=
- case $libdir in
- '${exec_prefix}/lib')
- libdir=$libdir/php
- ;;
- esac
- case `eval echo $datadir` in
- '${prefix}/share')
- datadir=$datadir/php
- ;;
- esac
- phplibdir=`pwd`/modules
- $php_shtool mkdir -p $phplibdir
- phptempdir=`pwd`/libs
- old_exec_prefix=$exec_prefix
- old_libdir=$libdir
- old_datadir=$datadir
- exec_prefix=`eval echo $exec_prefix`
- libdir=`eval echo $libdir`
- datadir=`eval eval echo $datadir`
- ZEND_MODULE_API_NO=`$EGREP '#define ZEND_MODULE_API_NO ' $srcdir/Zend/zend_modules.h|$SED 's/#define ZEND_MODULE_API_NO //'`
- if test -z "$EXTENSION_DIR"; then
- extbasedir=$ZEND_MODULE_API_NO
- if test "$oldstyleextdir" = "yes"; then
- if test "$PHP_DEBUG" = "1"; then
- part1=debug
- else
- part1=no-debug
- fi
- if test "$enable_maintainer_zts" = "yes"; then
- part2=zts
- else
- part2=non-zts
- fi
- extbasedir=$part1-$part2-$extbasedir
- EXTENSION_DIR=$libdir/extensions/$extbasedir
- else
- if test "$enable_maintainer_zts" = "yes"; then
- extbasedir=$extbasedir-zts
- fi
- if test "$PHP_DEBUG" = "1"; then
- extbasedir=$extbasedir-debug
- fi
- EXTENSION_DIR=$libdir/$extbasedir
- fi
- fi
- case $PHP_LAYOUT in
- GNU)
- datarootdir=$prefix/share
- ;;
- *)
- datarootdir=$prefix/php
- ;;
- esac
- EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR`
- EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR`
- EXPANDED_LOCALSTATEDIR=`eval echo $localstatedir`
- EXPANDED_BINDIR=`eval echo $bindir`
- EXPANDED_SBINDIR=`eval echo $sbindir`
- EXPANDED_MANDIR=`eval echo $mandir`
- EXPANDED_LIBDIR=$libdir
- EXPANDED_SYSCONFDIR=`eval echo $sysconfdir`
- EXPANDED_DATADIR=$datadir
- EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
- EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
- INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
- exec_prefix=$old_exec_prefix
- libdir=$old_libdir
- datadir=$old_datadir
- if test -n "$php_ldflags_add_usr_lib"; then
- PHP_RPATHS="$PHP_RPATHS /usr/lib"
- fi
- OLD_RPATHS=$PHP_RPATHS
- unset PHP_RPATHS
- for i in $OLD_RPATHS; do
- PHP_LDFLAGS="$PHP_LDFLAGS -L$i"
- PHP_RPATHS="$PHP_RPATHS -R $i"
- NATIVE_RPATHS="$NATIVE_RPATHS $ld_runpath_switch$i"
- done
- if test "$PHP_RPATH" = "no"; then
- unset PHP_RPATHS
- unset NATIVE_RPATHS
- fi
- if test -z "$php_ldflags_add_usr_lib"; then
- unset ac_new_flags
- for i in $PHP_LDFLAGS; do
- case $i in
- -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;;
- *) ac_new_flags="$ac_new_flags $i" ;;
- esac
- done
- PHP_LDFLAGS=$ac_new_flags
- unset ac_new_flags
- for i in $LDFLAGS; do
- case $i in
- -L/usr/$PHP_LIBDIR|-L/usr/$PHP_LIBDIR/) ;;
- *) ac_new_flags="$ac_new_flags $i" ;;
- esac
- done
- LDFLAGS=$ac_new_flags
- fi
- EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS"
- EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS"
- # SOURCE_DATE_EPOCH for reproducible builds https://reproducible-builds.org/specs/source-date-epoch/
- PHP_BUILD_DATE=`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d 2>/dev/null`
- if test $? -ne 0 ; then
- PHP_BUILD_DATE=`date -u +%Y-%m-%d`
- fi
- cat >>confdefs.h <<_ACEOF
- #define PHP_BUILD_DATE "$PHP_BUILD_DATE"
- _ACEOF
- PHP_UNAME=`uname -a | xargs`
- cat >>confdefs.h <<_ACEOF
- #define PHP_UNAME "$PHP_UNAME"
- _ACEOF
- PHP_OS=`uname | xargs`
- cat >>confdefs.h <<_ACEOF
- #define PHP_OS "$PHP_OS"
- _ACEOF
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_INSTALLED_SAPIS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FASTCGI_OBJS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI_OBJS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARY_OBJS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_GLOBAL_OBJS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BINARIES"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX"
- PHP_VAR_SUBST="$PHP_VAR_SUBST EXT_LIBS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST abs_builddir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST abs_srcdir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_builddir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST php_abs_top_srcdir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST bindir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST sbindir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix"
- PHP_VAR_SUBST="$PHP_VAR_SUBST program_prefix"
- PHP_VAR_SUBST="$PHP_VAR_SUBST program_suffix"
- PHP_VAR_SUBST="$PHP_VAR_SUBST includedir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST libdir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST mandir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST phptempdir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
- PHP_VAR_SUBST="$PHP_VAR_SUBST localstatedir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST datadir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST datarootdir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST sysconfdir"
- PHP_VAR_SUBST="$PHP_VAR_SUBST EXEEXT"
- PHP_VAR_SUBST="$PHP_VAR_SUBST CC"
- PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN"
- PHP_VAR_SUBST="$PHP_VAR_SUBST CPP"
- PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST CXX"
- PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN"
- PHP_VAR_SUBST="$PHP_VAR_SUBST DEBUG_CFLAGS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR"
- PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS_PROGRAM"
- PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXTRA_LIBS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES"
- PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_INCLUDES"
- PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDE_PATH"
- PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_IT"
- PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL"
- PHP_VAR_SUBST="$PHP_VAR_SUBST LN_S"
- PHP_VAR_SUBST="$PHP_VAR_SUBST NATIVE_RPATHS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PEAR_INSTALLDIR"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_BUILD_DATE"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LDFLAGS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_LIBS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST OVERALL_TARGET"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_RPATHS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_SAPI"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_VERSION_ID"
- PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL"
- PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL"
- PHP_VAR_SUBST="$PHP_VAR_SUBST WARNING_LEVEL"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKS"
- PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_FRAMEWORKPATH"
- PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS"
- old_CC=$CC
- if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
- CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags"
- INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags"
- CPPFLAGS="$CPPFLAGS $ac_cv_pthreads_cflags"
- fi
- if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then
- CPPFLAGS="$CPPFLAGS -DTHREAD=1"
- fi
- ZEND_EXT_TYPE="zend_extension"
- PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXT_TYPE"
- # Check whether --enable- was given.
- if test "${enable_+set}" = set; then :
- enableval=$enable_;
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Configuring libtool${T_ME}" >&5
- $as_echo "${T_MD}Configuring libtool${T_ME}" >&6; }
- LDFLAGS="$LDFLAGS $PHP_AIX_LDFLAGS"
- case $host_alias in
- *darwin9*|*darwin10*)
- ac_cv_exeext=
- ;;
- esac
- # Check whether --enable-shared was given.
- if test "${enable_shared+set}" = set; then :
- enableval=$enable_shared; p=${PACKAGE-default}
- case $enableval in
- yes) enable_shared=yes ;;
- no) enable_shared=no ;;
- *)
- enable_shared=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_shared=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac
- else
- enable_shared=yes
- fi
- # Check whether --enable-static was given.
- if test "${enable_static+set}" = set; then :
- enableval=$enable_static; p=${PACKAGE-default}
- case $enableval in
- yes) enable_static=yes ;;
- no) enable_static=no ;;
- *)
- enable_static=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_static=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac
- else
- enable_static=yes
- fi
- # Check whether --enable-fast-install was given.
- if test "${enable_fast_install+set}" = set; then :
- enableval=$enable_fast_install; p=${PACKAGE-default}
- case $enableval in
- yes) enable_fast_install=yes ;;
- no) enable_fast_install=no ;;
- *)
- enable_fast_install=no
- # Look at the argument we got. We use all the common list separators.
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for pkg in $enableval; do
- IFS="$lt_save_ifs"
- if test "X$pkg" = "X$p"; then
- enable_fast_install=yes
- fi
- done
- IFS="$lt_save_ifs"
- ;;
- esac
- else
- enable_fast_install=yes
- fi
- # Check whether --with-gnu-ld was given.
- if test "${with_gnu_ld+set}" = set; then :
- withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
- else
- with_gnu_ld=no
- fi
- ac_prog=ld
- if test "$GCC" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
- $as_echo_n "checking for ld used by $CC... " >&6; }
- case $host in
- *-*-mingw*)
- # gcc leaves a trailing carriage return which upsets mingw
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
- *)
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
- esac
- case $ac_prog in
- # Accept absolute paths.
- [\\/]* | ?:[\\/]*)
- re_direlt='/[^/][^/]*/\.\./'
- # Canonicalize the pathname of ld
- ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
- done
- test -z "$LD" && LD="$ac_prog"
- ;;
- "")
- # If it fails, then pretend we aren't using GCC.
- ac_prog=ld
- ;;
- *)
- # If it is relative, then search for the first ld in PATH.
- with_gnu_ld=unknown
- ;;
- esac
- elif test "$with_gnu_ld" = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
- $as_echo_n "checking for GNU ld... " >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
- $as_echo_n "checking for non-GNU ld... " >&6; }
- fi
- if ${lt_cv_path_LD+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -z "$LD"; then
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- lt_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some variants of GNU ld only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
- *GNU* | *'with BFD'*)
- test "$with_gnu_ld" != no && break
- ;;
- *)
- test "$with_gnu_ld" != yes && break
- ;;
- esac
- fi
- done
- IFS="$lt_save_ifs"
- else
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
- fi
- fi
- LD="$lt_cv_path_LD"
- if test -n "$LD"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
- $as_echo "$LD" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
- $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
- if ${lt_cv_prog_gnu_ld+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # I'd rather use --version here, but apparently some GNU lds only accept -v.
- case `$LD -v 2>&1 </dev/null` in
- *GNU* | *'with BFD'*)
- lt_cv_prog_gnu_ld=yes
- ;;
- *)
- lt_cv_prog_gnu_ld=no
- ;;
- esac
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
- $as_echo "$lt_cv_prog_gnu_ld" >&6; }
- with_gnu_ld=$lt_cv_prog_gnu_ld
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
- $as_echo_n "checking for $LD option to reload object files... " >&6; }
- if ${lt_cv_ld_reload_flag+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_ld_reload_flag='-r'
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
- $as_echo "$lt_cv_ld_reload_flag" >&6; }
- reload_flag=$lt_cv_ld_reload_flag
- case $reload_flag in
- "" | " "*) ;;
- *) reload_flag=" $reload_flag" ;;
- esac
- reload_cmds='$LD$reload_flag -o $output$reload_objs'
- case $host_os in
- darwin*)
- if test "$GCC" = yes; then
- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
- else
- reload_cmds='$LD$reload_flag -o $output$reload_objs'
- fi
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
- $as_echo_n "checking for BSD-compatible nm... " >&6; }
- if ${lt_cv_path_NM+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$NM"; then
- # Let the user override the test.
- lt_cv_path_NM="$NM"
- else
- lt_nm_to_check="${ac_tool_prefix}nm"
- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
- lt_nm_to_check="$lt_nm_to_check nm"
- fi
- for lt_tmp_nm in $lt_nm_to_check; do
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- tmp_nm="$ac_dir/$lt_tmp_nm"
- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
- # Check to see if the nm accepts a BSD-compat flag.
- # Adding the `sed 1q' prevents false positives on HP-UX, which says:
- # nm: unknown option "B" ignored
- # Tru64's nm complains that /dev/null is an invalid object file
- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
- */dev/null* | *'Invalid file or object type'*)
- lt_cv_path_NM="$tmp_nm -B"
- break
- ;;
- *)
- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
- */dev/null*)
- lt_cv_path_NM="$tmp_nm -p"
- break
- ;;
- *)
- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
- continue # so that we can try to find one that supports BSD flags
- ;;
- esac
- ;;
- esac
- fi
- done
- IFS="$lt_save_ifs"
- done
- test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
- $as_echo "$lt_cv_path_NM" >&6; }
- NM="$lt_cv_path_NM"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
- $as_echo_n "checking how to recognize dependent libraries... " >&6; }
- if ${lt_cv_deplibs_check_method+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_file_magic_cmd='$MAGIC_CMD'
- lt_cv_file_magic_test_file=
- lt_cv_deplibs_check_method='unknown'
- # Need to set the preceding variable on all platforms that support
- # interlibrary dependencies.
- # 'none' -- dependencies not supported.
- # `unknown' -- same as none, but documents that we really don't know.
- # 'pass_all' -- all dependencies passed with no checks.
- # 'test_compile' -- check by making test program.
- # 'file_magic [[regex]]' -- check by looking for files in library path
- # which responds to the $file_magic_cmd with a given extended regex.
- # If you have `file' or equivalent on your system and you're not sure
- # whether `pass_all' will *always* work, you probably want this one.
- case $host_os in
- aix[4-9]*)
- lt_cv_deplibs_check_method=pass_all
- ;;
- beos*)
- lt_cv_deplibs_check_method=pass_all
- ;;
- bsdi[45]*)
- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
- lt_cv_file_magic_cmd='/usr/bin/file -L'
- lt_cv_file_magic_test_file=/shlib/libc.so
- ;;
- cygwin*)
- # func_win32_libid is a shell function defined in ltmain.sh
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
- lt_cv_file_magic_cmd='func_win32_libid'
- ;;
- mingw* | pw32*)
- # Base MSYS/MinGW do not provide the 'file' command needed by
- # func_win32_libid shell function, so use a weaker test based on 'objdump',
- # unless we find 'file', for example because we are cross-compiling.
- if ( file / ) >/dev/null 2>&1; then
- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
- lt_cv_file_magic_cmd='func_win32_libid'
- else
- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
- lt_cv_file_magic_cmd='$OBJDUMP -f'
- fi
- ;;
- darwin* | rhapsody*)
- lt_cv_deplibs_check_method=pass_all
- ;;
- freebsd* | dragonfly*)
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- case $host_cpu in
- i*86 )
- # Not sure whether the presence of OpenBSD here was a mistake.
- # Let's accept both of them until this is cleared up.
- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
- ;;
- esac
- else
- lt_cv_deplibs_check_method=pass_all
- fi
- ;;
- gnu*)
- lt_cv_deplibs_check_method=pass_all
- ;;
- hpux10.20* | hpux11*)
- lt_cv_file_magic_cmd=/usr/bin/file
- case $host_cpu in
- ia64*)
- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
- ;;
- hppa*64*)
- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
- ;;
- *)
- lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
- lt_cv_file_magic_test_file=/usr/lib/libc.sl
- ;;
- esac
- ;;
- interix[3-9]*)
- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
- ;;
- irix5* | irix6* | nonstopux*)
- case $LD in
- *-32|*"-32 ") libmagic=32-bit;;
- *-n32|*"-n32 ") libmagic=N32;;
- *-64|*"-64 ") libmagic=64-bit;;
- *) libmagic=never-match;;
- esac
- lt_cv_deplibs_check_method=pass_all
- ;;
- # This must be Linux ELF.
- linux* | k*bsd*-gnu)
- lt_cv_deplibs_check_method=pass_all
- ;;
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
- else
- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
- fi
- ;;
- newos6*)
- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
- lt_cv_file_magic_cmd=/usr/bin/file
- lt_cv_file_magic_test_file=/usr/lib/libnls.so
- ;;
- nto-qnx*)
- lt_cv_deplibs_check_method=unknown
- ;;
- openbsd*)
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
- else
- lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
- fi
- ;;
- osf3* | osf4* | osf5*)
- lt_cv_deplibs_check_method=pass_all
- ;;
- rdos*)
- lt_cv_deplibs_check_method=pass_all
- ;;
- solaris*)
- lt_cv_deplibs_check_method=pass_all
- ;;
- sysv4 | sysv4.3*)
- case $host_vendor in
- motorola)
- 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]'
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
- ;;
- ncr)
- lt_cv_deplibs_check_method=pass_all
- ;;
- sequent)
- lt_cv_file_magic_cmd='/bin/file'
- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
- ;;
- sni)
- lt_cv_file_magic_cmd='/bin/file'
- lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
- lt_cv_file_magic_test_file=/lib/libc.so
- ;;
- siemens)
- lt_cv_deplibs_check_method=pass_all
- ;;
- pc)
- lt_cv_deplibs_check_method=pass_all
- ;;
- esac
- ;;
- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
- lt_cv_deplibs_check_method=pass_all
- ;;
- esac
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
- $as_echo "$lt_cv_deplibs_check_method" >&6; }
- file_magic_cmd=$lt_cv_file_magic_cmd
- deplibs_check_method=$lt_cv_deplibs_check_method
- test -z "$deplibs_check_method" && deplibs_check_method=unknown
- # If no C compiler was specified, use CC.
- LTCC=${LTCC-"$CC"}
- # If no C compiler flags were specified, use CFLAGS.
- LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
- # Allow CC to be a program name with arguments.
- compiler=$CC
- #AC_ARG_ENABLE([libtool-lock],
- #[ --disable-libtool-lock avoid locking (might break parallel builds)])
- #test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
- # Some flags need to be propagated to the compiler or linker for good
- # libtool support.
- case $host in
- ia64-*-hpux*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- case `/usr/bin/file conftest.$ac_objext` in
- *ELF-32*)
- HPUX_IA64_MODE="32"
- ;;
- *ELF-64*)
- HPUX_IA64_MODE="64"
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
- *-*-irix6*)
- # Find out which ABI we are using.
- echo '#line 98725 "configure"' > conftest.$ac_ext
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- if test "$lt_cv_prog_gnu_ld" = yes; then
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -melf32bsmip"
- ;;
- *N32*)
- LD="${LD-ld} -melf32bmipn32"
- ;;
- *64-bit*)
- LD="${LD-ld} -melf64bmip"
- ;;
- esac
- else
- case `/usr/bin/file conftest.$ac_objext` in
- *32-bit*)
- LD="${LD-ld} -32"
- ;;
- *N32*)
- LD="${LD-ld} -n32"
- ;;
- *64-bit*)
- LD="${LD-ld} -64"
- ;;
- esac
- fi
- fi
- rm -rf conftest*
- ;;
- x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
- s390*-*linux*|sparc*-*linux*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- case `/usr/bin/file conftest.o` in
- *32-bit*)
- case $host in
- x86_64-*kfreebsd*-gnu)
- LD="${LD-ld} -m elf_i386_fbsd"
- ;;
- x86_64-*linux*)
- LD="${LD-ld} -m elf_i386"
- ;;
- powerpc64le-*linux*)
- LD="${LD-ld} -m elf32lppclinux"
- ;;
- powerpc64-*linux*)
- LD="${LD-ld} -m elf32ppclinux"
- ;;
- s390x-*linux*)
- LD="${LD-ld} -m elf_s390"
- ;;
- sparc64-*linux*)
- LD="${LD-ld} -m elf32_sparc"
- ;;
- esac
- ;;
- *64-bit*)
- case $host in
- x86_64-*kfreebsd*-gnu)
- LD="${LD-ld} -m elf_x86_64_fbsd"
- ;;
- x86_64-*linux*)
- LD="${LD-ld} -m elf_x86_64"
- ;;
- powerpcle-*linux*)
- LD="${LD-ld} -m elf64lppc"
- ;;
- powerpc-*linux*)
- LD="${LD-ld} -m elf64ppc"
- ;;
- s390*-*linux*)
- LD="${LD-ld} -m elf64_s390"
- ;;
- sparc*-*linux*)
- LD="${LD-ld} -m elf64_sparc"
- ;;
- esac
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
- *-*-sco3.2v5*)
- # On SCO OpenServer 5, we need -belf to get full-featured binaries.
- SAVE_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -belf"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
- $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
- if ${lt_cv_cc_needs_belf+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- lt_cv_cc_needs_belf=yes
- else
- lt_cv_cc_needs_belf=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
- $as_echo "$lt_cv_cc_needs_belf" >&6; }
- if test x"$lt_cv_cc_needs_belf" != x"yes"; then
- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
- CFLAGS="$SAVE_CFLAGS"
- fi
- ;;
- sparc*-*solaris*)
- # Find out which ABI we are using.
- echo 'int i;' > conftest.$ac_ext
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- case `/usr/bin/file conftest.o` in
- *64-bit*)
- case $lt_cv_prog_gnu_ld in
- yes*) LD="${LD-ld} -m elf64_sparc" ;;
- *)
- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
- LD="${LD-ld} -64"
- fi
- ;;
- esac
- ;;
- esac
- fi
- rm -rf conftest*
- ;;
- esac
- need_locks="$enable_libtool_lock"
- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
- (test "X$CXX" != "Xg++"))) ; then
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
- $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
- if test -z "$CXXCPP"; then
- if ${ac_cv_prog_CXXCPP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # Double quotes because CXXCPP needs to be expanded
- for CXXCPP in "$CXX -E" "/lib/cpp"
- do
- ac_preproc_ok=false
- for ac_cxx_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_cxx_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_cxx_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- break
- fi
- done
- ac_cv_prog_CXXCPP=$CXXCPP
- fi
- CXXCPP=$ac_cv_prog_CXXCPP
- else
- ac_cv_prog_CXXCPP=$CXXCPP
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
- $as_echo "$CXXCPP" >&6; }
- ac_preproc_ok=false
- for ac_cxx_preproc_warn_flag in '' yes
- do
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> exists even on freestanding compilers.
- # On the NeXT, cc -E runs the code through the compiler's parser,
- # not just through cpp. "Syntax error" is here to catch this case.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef __STDC__
- # include <limits.h>
- #else
- # include <assert.h>
- #endif
- Syntax error
- _ACEOF
- if ac_fn_cxx_try_cpp "$LINENO"; then :
- else
- # Broken: fails on valid input.
- continue
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- # OK, works on sane cases. Now check whether nonexistent headers
- # can be detected and how.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ac_nonexistent.h>
- _ACEOF
- if ac_fn_cxx_try_cpp "$LINENO"; then :
- # Broken: success on invalid input.
- continue
- else
- # Passes both tests.
- ac_preproc_ok=:
- break
- fi
- rm -f conftest.err conftest.i conftest.$ac_ext
- done
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
- rm -f conftest.i conftest.err conftest.$ac_ext
- if $ac_preproc_ok; then :
- else
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
- as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
- See \`config.log' for more details" "$LINENO" 5; }
- fi
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- fi
- # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
- # find the maximum length of command line arguments
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
- $as_echo_n "checking the maximum length of command line arguments... " >&6; }
- if ${lt_cv_sys_max_cmd_len+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- i=0
- teststring="ABCD"
- case $build_os in
- msdosdjgpp*)
- # On DJGPP, this test can blow up pretty badly due to problems in libc
- # (any single argument exceeding 2000 bytes causes a buffer overrun
- # during glob expansion). Even if it were fixed, the result of this
- # check would be larger than it should be.
- lt_cv_sys_max_cmd_len=12288; # 12K is about right
- ;;
- gnu*)
- # Under GNU Hurd, this test is not required because there is
- # no limit to the length of command line arguments.
- # Libtool will interpret -1 as no limit whatsoever
- lt_cv_sys_max_cmd_len=-1;
- ;;
- cygwin* | mingw*)
- # On Win9x/ME, this test blows up -- it succeeds, but takes
- # about 5 minutes as the teststring grows exponentially.
- # Worse, since 9x/ME are not pre-emptively multitasking,
- # you end up with a "frozen" computer, even though with patience
- # the test eventually succeeds (with a max line length of 256k).
- # Instead, let's just punt: use the minimum linelength reported by
- # all of the supported platforms: 8192 (on NT/2K/XP).
- lt_cv_sys_max_cmd_len=8192;
- ;;
- amigaos*)
- # On AmigaOS with pdksh, this test takes hours, literally.
- # So we just punt and use a minimum line length of 8192.
- lt_cv_sys_max_cmd_len=8192;
- ;;
- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
- # This has been around since 386BSD, at least. Likely further.
- if test -x /sbin/sysctl; then
- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
- elif test -x /usr/sbin/sysctl; then
- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
- else
- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
- fi
- # And add a safety zone
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
- ;;
- interix*)
- # We know the value 262144 and hardcode it with a safety zone (like BSD)
- lt_cv_sys_max_cmd_len=196608
- ;;
- osf*)
- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
- # nice to cause kernel panics so lets avoid the loop below.
- # First set a reasonable default.
- lt_cv_sys_max_cmd_len=16384
- #
- if test -x /sbin/sysconfig; then
- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
- *1*) lt_cv_sys_max_cmd_len=-1 ;;
- esac
- fi
- ;;
- sco3.2v5*)
- lt_cv_sys_max_cmd_len=102400
- ;;
- sysv5* | sco5v6* | sysv4.2uw2*)
- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
- if test -n "$kargmax"; then
- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
- else
- lt_cv_sys_max_cmd_len=32768
- fi
- ;;
- *)
- lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
- if test -n "$lt_cv_sys_max_cmd_len"; then
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
- else
- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
- while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
- = "XX$teststring") >/dev/null 2>&1 &&
- new_result=`expr "X$teststring" : ".*" 2>&1` &&
- lt_cv_sys_max_cmd_len=$new_result &&
- test $i != 17 # 1/2 MB should be enough
- do
- i=`expr $i + 1`
- teststring=$teststring$teststring
- done
- teststring=
- # Add a significant safety factor because C++ compilers can tack on massive
- # amounts of additional arguments before passing them to the linker.
- # It appears as though 1/2 is a usable value.
- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
- fi
- ;;
- esac
- fi
- if test -n $lt_cv_sys_max_cmd_len ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
- $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
- $as_echo "none" >&6; }
- fi
- # Check for command to grab the raw symbol name followed by C symbol from nm.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
- $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
- if ${lt_cv_sys_global_symbol_pipe+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # These are sane defaults that work on at least a few old systems.
- # [They come from Ultrix. What could be older than Ultrix?!! ;)]
- # Character class describing NM global symbol codes.
- symcode='[BCDEGRST]'
- # Regexp to match symbols that can be accessed directly from C.
- sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
- # Transform an extracted symbol line into a proper C declaration
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
- # Transform an extracted symbol line into symbol name and symbol address
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- # Define system-specific variables.
- case $host_os in
- aix*)
- symcode='[BCDT]'
- ;;
- cygwin* | mingw* | pw32*)
- symcode='[ABCDGISTW]'
- ;;
- hpux*) # Its linker distinguishes data from code symbols
- if test "$host_cpu" = ia64; then
- symcode='[ABCDEGRST]'
- fi
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- ;;
- linux* | k*bsd*-gnu)
- if test "$host_cpu" = ia64; then
- symcode='[ABCDGIRSTW]'
- lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
- lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
- fi
- ;;
- irix* | nonstopux*)
- symcode='[BCDEGRST]'
- ;;
- osf*)
- symcode='[BCDEGQRST]'
- ;;
- solaris*)
- symcode='[BDRT]'
- ;;
- sco3.2v5*)
- symcode='[DT]'
- ;;
- sysv4.2uw2*)
- symcode='[DT]'
- ;;
- sysv5* | sco5v6* | unixware* | OpenUNIX*)
- symcode='[ABDT]'
- ;;
- sysv4)
- symcode='[DFNSTU]'
- ;;
- esac
- # Handle CRLF in mingw tool chain
- opt_cr=
- case $build_os in
- mingw*)
- opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
- ;;
- esac
- # If we're using GNU nm, then use its standard symbol codes.
- case `$NM -V 2>&1` in
- *GNU* | *'with BFD'*)
- symcode='[ABCDGIRSTW]' ;;
- esac
- # Try without a prefix undercore, then with it.
- for ac_symprfx in "" "_"; do
- # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
- symxfrm="\\1 $ac_symprfx\\2 \\2"
- # Write the raw and C identifiers.
- lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
- # Check to see that the pipe works correctly.
- pipe_works=no
- rm -f conftest*
- cat > conftest.$ac_ext <<EOF
- #ifdef __cplusplus
- extern "C" {
- #endif
- char nm_test_var;
- void nm_test_func(){}
- #ifdef __cplusplus
- }
- #endif
- int main(){nm_test_var='a';nm_test_func();return(0);}
- EOF
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- # Now try to grab the symbols.
- nlist=conftest.nm
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
- (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && test -s "$nlist"; then
- # Try sorting and uniquifying the output.
- if sort "$nlist" | uniq > "$nlist"T; then
- mv -f "$nlist"T "$nlist"
- else
- rm -f "$nlist"T
- fi
- # Make sure that we snagged all the symbols we need.
- if grep ' nm_test_var$' "$nlist" >/dev/null; then
- if grep ' nm_test_func$' "$nlist" >/dev/null; then
- cat <<EOF > conftest.$ac_ext
- #ifdef __cplusplus
- extern "C" {
- #endif
- EOF
- # Now generate the symbol file.
- eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
- cat <<EOF >> conftest.$ac_ext
- #if defined (__STDC__) && __STDC__
- # define lt_ptr_t void *
- #else
- # define lt_ptr_t char *
- # define const
- #endif
- /* The mapping between symbol names and symbols. */
- const struct {
- const char *name;
- lt_ptr_t address;
- }
- lt_preloaded_symbols[] =
- {
- EOF
- $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
- cat <<\EOF >> conftest.$ac_ext
- {0, (lt_ptr_t) 0}
- };
- #ifdef __cplusplus
- }
- #endif
- EOF
- # Now try linking the two files.
- mv conftest.$ac_objext conftstm.$ac_objext
- lt_save_LIBS="$LIBS"
- lt_save_CFLAGS="$CFLAGS"
- LIBS="conftstm.$ac_objext"
- CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && test -s conftest${ac_exeext}; then
- pipe_works=yes
- fi
- LIBS="$lt_save_LIBS"
- CFLAGS="$lt_save_CFLAGS"
- else
- echo "cannot find nm_test_func in $nlist" >&5
- fi
- else
- echo "cannot find nm_test_var in $nlist" >&5
- fi
- else
- echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
- fi
- else
- echo "$progname: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -rf conftest* conftst*
- # Do not use the global_symbol_pipe unless it works.
- if test "$pipe_works" = yes; then
- break
- else
- lt_cv_sys_global_symbol_pipe=
- fi
- done
- fi
- if test -z "$lt_cv_sys_global_symbol_pipe"; then
- lt_cv_sys_global_symbol_to_cdecl=
- fi
- if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
- $as_echo "failed" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
- $as_echo "ok" >&6; }
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
- $as_echo_n "checking for objdir... " >&6; }
- if ${lt_cv_objdir+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- rm -f .libs 2>/dev/null
- mkdir .libs 2>/dev/null
- if test -d .libs; then
- lt_cv_objdir=.libs
- else
- # MS-DOS does not allow filenames that begin with a dot.
- lt_cv_objdir=_libs
- fi
- rmdir .libs 2>/dev/null
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
- $as_echo "$lt_cv_objdir" >&6; }
- objdir=$lt_cv_objdir
- case $host_os in
- aix3*)
- # AIX sometimes has problems with the GCC collect2 program. For some
- # reason, if we set the COLLECT_NAMES environment variable, the problems
- # vanish in a puff of smoke.
- if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
- fi
- ;;
- esac
- # Sed substitution that helps us do robust quoting. It backslashifies
- # metacharacters that are still active within double-quoted strings.
- Xsed='sed -e 1s/^X//'
- sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
- # Same as above, but do not quote variable references.
- double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
- # Sed substitution to delay expansion of an escaped shell variable in a
- # double_quote_subst'ed string.
- delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
- # Sed substitution to avoid accidental globbing in evaled expressions
- no_glob_subst='s/\*/\\\*/g'
- # Constants:
- rm="rm -f"
- # Global variables:
- default_ofile=libtool
- can_build_shared=yes
- # All known linkers require a `.a' archive for static linking (except MSVC,
- # which needs '.lib').
- libext=a
- ltmain="$ac_aux_dir/ltmain.sh"
- ofile="$default_ofile"
- with_gnu_ld="$lt_cv_prog_gnu_ld"
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
- set dummy ${ac_tool_prefix}ar; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_AR+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$AR"; then
- ac_cv_prog_AR="$AR" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_AR="${ac_tool_prefix}ar"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- AR=$ac_cv_prog_AR
- if test -n "$AR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
- $as_echo "$AR" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_AR"; then
- ac_ct_AR=$AR
- # Extract the first word of "ar", so it can be a program name with args.
- set dummy ar; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_AR+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_AR"; then
- ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_AR="ar"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_AR=$ac_cv_prog_ac_ct_AR
- if test -n "$ac_ct_AR"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
- $as_echo "$ac_ct_AR" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_AR" = x; then
- AR="false"
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- AR=$ac_ct_AR
- fi
- else
- AR="$ac_cv_prog_AR"
- fi
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
- set dummy ${ac_tool_prefix}ranlib; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_RANLIB+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$RANLIB"; then
- ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- RANLIB=$ac_cv_prog_RANLIB
- if test -n "$RANLIB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
- $as_echo "$RANLIB" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_RANLIB"; then
- ac_ct_RANLIB=$RANLIB
- # Extract the first word of "ranlib", so it can be a program name with args.
- set dummy ranlib; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_RANLIB"; then
- ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_RANLIB="ranlib"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
- if test -n "$ac_ct_RANLIB"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
- $as_echo "$ac_ct_RANLIB" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_RANLIB" = x; then
- RANLIB=":"
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- RANLIB=$ac_ct_RANLIB
- fi
- else
- RANLIB="$ac_cv_prog_RANLIB"
- fi
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
- set dummy ${ac_tool_prefix}strip; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_STRIP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$STRIP"; then
- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_STRIP="${ac_tool_prefix}strip"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- STRIP=$ac_cv_prog_STRIP
- if test -n "$STRIP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
- $as_echo "$STRIP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_STRIP"; then
- ac_ct_STRIP=$STRIP
- # Extract the first word of "strip", so it can be a program name with args.
- set dummy strip; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_STRIP"; then
- ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_STRIP="strip"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
- if test -n "$ac_ct_STRIP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
- $as_echo "$ac_ct_STRIP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_STRIP" = x; then
- STRIP=":"
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- STRIP=$ac_ct_STRIP
- fi
- else
- STRIP="$ac_cv_prog_STRIP"
- fi
- old_CC="$CC"
- old_CFLAGS="$CFLAGS"
- # Set sane defaults for various variables
- test -z "$AR" && AR=ar
- test -z "$AR_FLAGS" && AR_FLAGS=cru
- test -z "$AS" && AS=as
- test -z "$CC" && CC=cc
- test -z "$LTCC" && LTCC=$CC
- test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
- test -z "$DLLTOOL" && DLLTOOL=dlltool
- test -z "$LD" && LD=ld
- test -z "$LN_S" && LN_S="ln -s"
- test -z "$MAGIC_CMD" && MAGIC_CMD=file
- test -z "$NM" && NM=nm
- test -z "$SED" && SED=sed
- test -z "$OBJDUMP" && OBJDUMP=objdump
- test -z "$RANLIB" && RANLIB=:
- test -z "$STRIP" && STRIP=:
- test -z "$ac_objext" && ac_objext=o
- # Determine commands to create old-style static archives.
- old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
- old_postinstall_cmds='chmod 644 $oldlib'
- old_postuninstall_cmds=
- if test -n "$RANLIB"; then
- case $host_os in
- openbsd*)
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
- ;;
- *)
- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
- ;;
- esac
- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
- fi
- for cc_temp in $compiler""; do
- case $cc_temp in
- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
- \-*) ;;
- *) break;;
- esac
- done
- cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
- # Only perform the check for file, if the check method requires it
- case $deplibs_check_method in
- file_magic*)
- if test "$file_magic_cmd" = '$MAGIC_CMD'; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
- $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
- if ${lt_cv_path_MAGIC_CMD+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $MAGIC_CMD in
- [\\/*] | ?:[\\/]*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- ;;
- *)
- lt_save_MAGIC_CMD="$MAGIC_CMD"
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
- for ac_dir in $ac_dummy; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/${ac_tool_prefix}file; then
- lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
- if test -n "$file_magic_test_file"; then
- case $deplibs_check_method in
- "file_magic "*)
- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- $EGREP "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
- *** Warning: the command libtool uses to detect shared libraries,
- *** $file_magic_cmd, produces output that libtool cannot recognize.
- *** The result is that libtool may fail to recognize shared libraries
- *** as such. This will affect the creation of libtool libraries that
- *** depend on shared libraries, but programs linked with such libtool
- *** libraries will work regardless of this problem. Nevertheless, you
- *** may want to report the problem to your system manager and/or to
- *** bug-libtool@gnu.org
- EOF
- fi ;;
- esac
- fi
- break
- fi
- done
- IFS="$lt_save_ifs"
- MAGIC_CMD="$lt_save_MAGIC_CMD"
- ;;
- esac
- fi
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if test -n "$MAGIC_CMD"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
- $as_echo "$MAGIC_CMD" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test -z "$lt_cv_path_MAGIC_CMD"; then
- if test -n "$ac_tool_prefix"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
- $as_echo_n "checking for file... " >&6; }
- if ${lt_cv_path_MAGIC_CMD+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $MAGIC_CMD in
- [\\/*] | ?:[\\/]*)
- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
- ;;
- *)
- lt_save_MAGIC_CMD="$MAGIC_CMD"
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
- for ac_dir in $ac_dummy; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f $ac_dir/file; then
- lt_cv_path_MAGIC_CMD="$ac_dir/file"
- if test -n "$file_magic_test_file"; then
- case $deplibs_check_method in
- "file_magic "*)
- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
- $EGREP "$file_magic_regex" > /dev/null; then
- :
- else
- cat <<EOF 1>&2
- *** Warning: the command libtool uses to detect shared libraries,
- *** $file_magic_cmd, produces output that libtool cannot recognize.
- *** The result is that libtool may fail to recognize shared libraries
- *** as such. This will affect the creation of libtool libraries that
- *** depend on shared libraries, but programs linked with such libtool
- *** libraries will work regardless of this problem. Nevertheless, you
- *** may want to report the problem to your system manager and/or to
- *** bug-libtool@gnu.org
- EOF
- fi ;;
- esac
- fi
- break
- fi
- done
- IFS="$lt_save_ifs"
- MAGIC_CMD="$lt_save_MAGIC_CMD"
- ;;
- esac
- fi
- MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
- if test -n "$MAGIC_CMD"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
- $as_echo "$MAGIC_CMD" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- MAGIC_CMD=:
- fi
- fi
- fi
- ;;
- esac
- case $host_os in
- rhapsody* | darwin*)
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
- set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_DSYMUTIL+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$DSYMUTIL"; then
- ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- DSYMUTIL=$ac_cv_prog_DSYMUTIL
- if test -n "$DSYMUTIL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
- $as_echo "$DSYMUTIL" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_DSYMUTIL"; then
- ac_ct_DSYMUTIL=$DSYMUTIL
- # Extract the first word of "dsymutil", so it can be a program name with args.
- set dummy dsymutil; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_DSYMUTIL"; then
- ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
- if test -n "$ac_ct_DSYMUTIL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
- $as_echo "$ac_ct_DSYMUTIL" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_DSYMUTIL" = x; then
- DSYMUTIL=":"
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- DSYMUTIL=$ac_ct_DSYMUTIL
- fi
- else
- DSYMUTIL="$ac_cv_prog_DSYMUTIL"
- fi
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
- set dummy ${ac_tool_prefix}nmedit; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_NMEDIT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$NMEDIT"; then
- ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- NMEDIT=$ac_cv_prog_NMEDIT
- if test -n "$NMEDIT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
- $as_echo "$NMEDIT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_NMEDIT"; then
- ac_ct_NMEDIT=$NMEDIT
- # Extract the first word of "nmedit", so it can be a program name with args.
- set dummy nmedit; ac_word=$2
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
- $as_echo_n "checking for $ac_word... " >&6; }
- if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_NMEDIT"; then
- ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_NMEDIT="nmedit"
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
- fi
- done
- done
- IFS=$as_save_IFS
- fi
- fi
- ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
- if test -n "$ac_ct_NMEDIT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
- $as_echo "$ac_ct_NMEDIT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_NMEDIT" = x; then
- NMEDIT=":"
- else
- case $cross_compiling:$ac_tool_warned in
- yes:)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
- ac_tool_warned=yes ;;
- esac
- NMEDIT=$ac_ct_NMEDIT
- fi
- else
- NMEDIT="$ac_cv_prog_NMEDIT"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
- $as_echo_n "checking for -single_module linker flag... " >&6; }
- if ${lt_cv_apple_cc_single_mod+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_apple_cc_single_mod=no
- if test -z "${LT_MULTI_MODULE}"; then
- # By default we will add the -single_module flag. You can override
- # by either setting the environment variable LT_MULTI_MODULE
- # non-empty at configure time, or by adding -multi_module to the
- # link flags.
- echo "int foo(void){return 1;}" > conftest.c
- $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
- -dynamiclib ${wl}-single_module conftest.c
- if test -f libconftest.dylib; then
- lt_cv_apple_cc_single_mod=yes
- rm -rf libconftest.dylib*
- fi
- rm conftest.c
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
- $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
- $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
- if ${lt_cv_ld_exported_symbols_list+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_ld_exported_symbols_list=no
- save_LDFLAGS=$LDFLAGS
- echo "_main" > conftest.sym
- LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
- cat > conftest.$ac_ext <<EOF
- #line 100123 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && test -s conftest${ac_exeext}; then
- lt_cv_ld_exported_symbols_list=yes
- rm -rf conftest*
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&6
- lt_cv_ld_exported_symbols_list=no
- rm -rf conftest*
- fi
- rm -f conftest*
- LDFLAGS="$save_LDFLAGS"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
- $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
- case $host_os in
- rhapsody* | darwin1.[0123])
- _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
- darwin1.*)
- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
- darwin*)
- # if running on 10.5 or later, the deployment target defaults
- # to the OS version, if on x86, and 10.4, the deployment
- # target defaults to 10.4. Don't you love it?
- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
- 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
- 10.[012]*)
- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
- 10.*)
- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
- esac
- ;;
- esac
- if test "$lt_cv_apple_cc_single_mod" = "yes"; then
- _lt_dar_single_mod='$single_module'
- fi
- if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
- _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
- else
- _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
- fi
- if test "$DSYMUTIL" != ":"; then
- _lt_dsymutil="~$DSYMUTIL \$lib || :"
- else
- _lt_dsymutil=
- fi
- ;;
- esac
- enable_dlopen=no
- enable_win32_dll=no
- # Check whether --enable-libtool-lock was given.
- if test "${enable_libtool_lock+set}" = set; then :
- enableval=$enable_libtool_lock;
- fi
- test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
- # Check whether --with-pic was given.
- if test "${with_pic+set}" = set; then :
- withval=$with_pic; pic_mode="$withval"
- else
- pic_mode=default
- fi
- test -z "$pic_mode" && pic_mode=default
- # Use C for the default configuration in the libtool script
- tagname=
- lt_save_CC="$CC"
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- # Source file extension for C test sources.
- ac_ext=c
- # Object file extension for compiled C test sources.
- objext=o
- objext=$objext
- # Code to be used in simple compile tests
- lt_simple_compile_test_code="int some_variable = 0;"
- # Code to be used in simple link tests
- lt_simple_link_test_code='int main(){return(0);}'
- # If no C compiler was specified, use CC.
- LTCC=${LTCC-"$CC"}
- # If no C compiler flags were specified, use CFLAGS.
- LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
- # Allow CC to be a program name with arguments.
- compiler=$CC
- # save warnings/boilerplate of simple test code
- ac_outfile=conftest.$ac_objext
- echo "$lt_simple_compile_test_code" >conftest.$ac_ext
- eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
- _lt_compiler_boilerplate=`cat conftest.err`
- $rm conftest*
- ac_outfile=conftest.$ac_objext
- echo "$lt_simple_link_test_code" >conftest.$ac_ext
- eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
- _lt_linker_boilerplate=`cat conftest.err`
- $rm -r conftest*
- ## CAVEAT EMPTOR:
- ## There is no encapsulation within the following macros, do not change
- ## the running order or otherwise move them around unless you know exactly
- ## what you are doing...
- lt_prog_compiler_no_builtin_flag=
- if test "$GCC" = yes; then
- lt_prog_compiler_no_builtin_flag=' -fno-builtin'
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
- $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
- if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_prog_compiler_rtti_exceptions=no
- ac_outfile=conftest.$ac_objext
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="-fno-rtti -fno-exceptions"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- # The option is referenced via a variable to avoid confusing sed.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"configure:100281: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>conftest.err)
- ac_status=$?
- cat conftest.err >&5
- echo "configure:100285: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s "$ac_outfile"; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings other than the usual output.
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_rtti_exceptions=yes
- fi
- fi
- $rm conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
- $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
- if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
- lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
- else
- :
- fi
- fi
- lt_prog_compiler_wl=
- lt_prog_compiler_pic=
- lt_prog_compiler_static=
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
- $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
- if test "$GCC" = yes; then
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_static='-static'
- case $host_os in
- aix*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_prog_compiler_static='-Bstatic'
- fi
- ;;
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
- ;;
- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
- mingw* | cygwin* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- # Although the cygwin gcc ignores -fPIC, still need this for old-style
- # (--disable-auto-import) libraries
- lt_prog_compiler_pic='-DDLL_EXPORT'
- ;;
- darwin* | rhapsody*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- lt_prog_compiler_pic='-fno-common'
- ;;
- interix[3-9]*)
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
- # Instead, we relocate shared libraries at runtime.
- ;;
- msdosdjgpp*)
- # Just because we use GCC doesn't mean we suddenly get shared libraries
- # on systems that don't support them.
- lt_prog_compiler_can_build_shared=no
- enable_shared=no
- ;;
- sysv4*MP*)
- if test -d /usr/nec; then
- lt_prog_compiler_pic=-Kconform_pic
- fi
- ;;
- hpux*)
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- lt_prog_compiler_pic='-fPIC'
- ;;
- esac
- ;;
- *)
- lt_prog_compiler_pic='-fPIC'
- ;;
- esac
- else
- # PORTME Check for flag to pass linker flags through the system compiler.
- case $host_os in
- aix*)
- lt_prog_compiler_wl='-Wl,'
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_prog_compiler_static='-Bstatic'
- else
- lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
- fi
- ;;
- darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- case $cc_basename in
- xlc*)
- lt_prog_compiler_pic='-qnocommon'
- lt_prog_compiler_wl='-Wl,'
- ;;
- esac
- ;;
- mingw* | cygwin* | pw32* | os2*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- lt_prog_compiler_pic='-DDLL_EXPORT'
- ;;
- hpux9* | hpux10* | hpux11*)
- lt_prog_compiler_wl='-Wl,'
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- lt_prog_compiler_pic='+Z'
- ;;
- esac
- # Is there a better lt_prog_compiler_static that works with the bundled CC?
- lt_prog_compiler_static='${wl}-a ${wl}archive'
- ;;
- irix5* | irix6* | nonstopux*)
- lt_prog_compiler_wl='-Wl,'
- # PIC (with -KPIC) is the default.
- lt_prog_compiler_static='-non_shared'
- ;;
- newsos6)
- lt_prog_compiler_pic='-KPIC'
- lt_prog_compiler_static='-Bstatic'
- ;;
- linux* | k*bsd*-gnu)
- case $cc_basename in
- # old Intel for x86_64 which still supported -KPIC.
- ecc*)
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_pic='-KPIC'
- lt_prog_compiler_static='-static'
- ;;
- # icc used to be incompatible with GCC.
- # ICC 10 doesn't accept -KPIC any more.
- icc*)
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_pic='-fPIC'
- lt_prog_compiler_static='-static'
- ;;
- pgcc* | pgf77* | pgf90* | pgf95*)
- # Portland Group compilers (*not* the Pentium gcc compiler,
- # which looks to be a dead project)
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_pic='-fpic'
- lt_prog_compiler_static='-Bstatic'
- ;;
- ccc*)
- lt_prog_compiler_wl='-Wl,'
- # All Alpha code is PIC.
- lt_prog_compiler_static='-non_shared'
- ;;
- *)
- case `$CC -V 2>&1 | sed 5q` in
- *Sun\ C*)
- # Sun C 5.9
- lt_prog_compiler_pic='-KPIC'
- lt_prog_compiler_static='-Bstatic'
- lt_prog_compiler_wl='-Wl,'
- ;;
- *Sun\ F*)
- # Sun Fortran 8.3 passes all unrecognized flags to the linker
- lt_prog_compiler_pic='-KPIC'
- lt_prog_compiler_static='-Bstatic'
- lt_prog_compiler_wl=''
- ;;
- esac
- ;;
- esac
- ;;
- osf3* | osf4* | osf5*)
- lt_prog_compiler_wl='-Wl,'
- # All OSF/1 code is PIC.
- lt_prog_compiler_static='-non_shared'
- ;;
- rdos*)
- lt_prog_compiler_static='-non_shared'
- ;;
- solaris*)
- lt_prog_compiler_pic='-KPIC'
- lt_prog_compiler_static='-Bstatic'
- case $cc_basename in
- f77* | f90* | f95*)
- lt_prog_compiler_wl='-Qoption ld ';;
- *)
- lt_prog_compiler_wl='-Wl,';;
- esac
- ;;
- sunos4*)
- lt_prog_compiler_wl='-Qoption ld '
- lt_prog_compiler_pic='-PIC'
- lt_prog_compiler_static='-Bstatic'
- ;;
- sysv4 | sysv4.2uw2* | sysv4.3*)
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_pic='-KPIC'
- lt_prog_compiler_static='-Bstatic'
- ;;
- sysv4*MP*)
- if test -d /usr/nec ;then
- lt_prog_compiler_pic='-Kconform_pic'
- lt_prog_compiler_static='-Bstatic'
- fi
- ;;
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_pic='-KPIC'
- lt_prog_compiler_static='-Bstatic'
- ;;
- unicos*)
- lt_prog_compiler_wl='-Wl,'
- lt_prog_compiler_can_build_shared=no
- ;;
- uts4*)
- lt_prog_compiler_pic='-pic'
- lt_prog_compiler_static='-Bstatic'
- ;;
- *)
- lt_prog_compiler_can_build_shared=no
- ;;
- esac
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
- $as_echo "$lt_prog_compiler_pic" >&6; }
- #
- # Check to make sure the PIC flag actually works.
- #
- if test -n "$lt_prog_compiler_pic"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
- $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
- if ${lt_cv_prog_compiler_pic_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_prog_compiler_pic_works=no
- ac_outfile=conftest.$ac_objext
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- # The option is referenced via a variable to avoid confusing sed.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"configure:100579: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>conftest.err)
- ac_status=$?
- cat conftest.err >&5
- echo "configure:100583: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s "$ac_outfile"; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings other than the usual output.
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_pic_works=yes
- fi
- fi
- $rm conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
- $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
- if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
- case $lt_prog_compiler_pic in
- "" | " "*) ;;
- *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
- esac
- else
- lt_prog_compiler_pic=
- lt_prog_compiler_can_build_shared=no
- fi
- fi
- case $host_os in
- # For platforms which do not support PIC, -DPIC is meaningless:
- *djgpp*)
- lt_prog_compiler_pic=
- ;;
- *)
- lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
- ;;
- esac
- #
- # Check to make sure the static flag actually works.
- #
- wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
- $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
- if ${lt_cv_prog_compiler_static_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_prog_compiler_static_works=no
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
- echo "$lt_simple_link_test_code" > conftest.$ac_ext
- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
- # The linker can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- # Append any errors to the config.log.
- cat conftest.err 1>&5
- $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if diff conftest.exp conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_static_works=yes
- fi
- else
- lt_cv_prog_compiler_static_works=yes
- fi
- fi
- $rm -r conftest*
- LDFLAGS="$save_LDFLAGS"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
- $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
- if test x"$lt_cv_prog_compiler_static_works" = xyes; then
- :
- else
- lt_prog_compiler_static=
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
- $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
- if ${lt_cv_prog_compiler_c_o+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_prog_compiler_c_o=no
- $rm -r conftest 2>/dev/null
- mkdir conftest
- cd conftest
- mkdir out
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="-o out/conftest2.$ac_objext"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"configure:100683: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>out/conftest.err)
- ac_status=$?
- cat out/conftest.err >&5
- echo "configure:100687: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s out/conftest2.$ac_objext
- then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_c_o=yes
- fi
- fi
- chmod u+w . 2>&5
- $rm conftest*
- # SGI C++ compiler will create directory out/ii_files/ for
- # template instantiation
- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
- $rm out/* && rmdir out
- cd ..
- rmdir conftest
- $rm conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
- $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
- hard_links="nottested"
- if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
- # do not overwrite the value of need_locks provided by the user
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
- $as_echo_n "checking if we can lock with hard links... " >&6; }
- hard_links=yes
- $rm conftest*
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- touch conftest.a
- ln conftest.a conftest.b 2>&5 || hard_links=no
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
- $as_echo "$hard_links" >&6; }
- if test "$hard_links" = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
- $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
- need_locks=warn
- fi
- else
- need_locks=no
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
- $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
- runpath_var=
- allow_undefined_flag=
- enable_shared_with_static_runtimes=no
- archive_cmds=
- archive_expsym_cmds=
- old_archive_From_new_cmds=
- old_archive_from_expsyms_cmds=
- export_dynamic_flag_spec=
- whole_archive_flag_spec=
- thread_safe_flag_spec=
- hardcode_libdir_flag_spec=
- hardcode_libdir_flag_spec_ld=
- hardcode_libdir_separator=
- hardcode_direct=no
- hardcode_minus_L=no
- hardcode_shlibpath_var=unsupported
- link_all_deplibs=unknown
- hardcode_automatic=no
- module_cmds=
- module_expsym_cmds=
- always_export_symbols=no
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- # include_expsyms should be a list of space-separated symbols to be *always*
- # included in the symbol list
- include_expsyms=
- # exclude_expsyms can be an extended regexp of symbols to exclude
- # it will be wrapped by ` (' and `)$', so one must not match beginning or
- # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
- # as well as any symbol that contains `d'.
- exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
- # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
- # platforms (ab)use it in PIC code, but their linkers get confused if
- # the symbol is explicitly referenced. Since portable code cannot
- # rely on this symbol name, it's probably fine to never include it in
- # preloaded symbol tables.
- # Exclude shared library initialization/finalization symbols.
- extract_expsyms_cmds=
- # Just being paranoid about ensuring that cc_basename is set.
- for cc_temp in $compiler""; do
- case $cc_temp in
- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
- \-*) ;;
- *) break;;
- esac
- done
- cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
- case $host_os in
- cygwin* | mingw* | pw32*)
- # FIXME: the MSVC++ port hasn't been tested in a loooong time
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- if test "$GCC" != yes; then
- with_gnu_ld=no
- fi
- ;;
- interix*)
- # we just hope/assume this is gcc and not c89 (= MSVC++)
- with_gnu_ld=yes
- ;;
- openbsd*)
- with_gnu_ld=no
- ;;
- esac
- ld_shlibs=yes
- if test "$with_gnu_ld" = yes; then
- # If archive_cmds runs LD, not CC, wlarc should be empty
- wlarc='${wl}'
- # Set some defaults for GNU ld with shared library support. These
- # are reset later if shared libraries are not supported. Putting them
- # here allows them to be overridden if necessary.
- runpath_var=LD_RUN_PATH
- hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
- export_dynamic_flag_spec='${wl}--export-dynamic'
- # ancient GNU ld didn't support --whole-archive et. al.
- if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
- whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- whole_archive_flag_spec=
- fi
- supports_anon_versioning=no
- case `$LD -v 2>/dev/null` in
- *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
- *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
- *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
- *\ 2.11.*) ;; # other 2.11 versions
- *) supports_anon_versioning=yes ;;
- esac
- # See if GNU ld supports shared libraries.
- case $host_os in
- aix[3-9]*)
- # On AIX/PPC, the GNU linker is very broken
- if test "$host_cpu" != ia64; then
- ld_shlibs=no
- cat <<EOF 1>&2
- *** Warning: the GNU linker, at least up to release 2.9.1, is reported
- *** to be unable to reliably create shared libraries on AIX.
- *** Therefore, libtool is disabling shared libraries support. If you
- *** really care for shared libraries, you may want to modify your PATH
- *** so that a non-GNU linker is found, and then restart.
- EOF
- fi
- ;;
- amigaos*)
- 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)'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
- # that the semantics of dynamic libraries on AmigaOS, at least up
- # to version 4, is to share data among multiple programs linked
- # with the same dynamic library. Since this doesn't match the
- # behavior of shared libraries on other platforms, we can't use
- # them.
- ld_shlibs=no
- ;;
- beos*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- allow_undefined_flag=unsupported
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- # support --undefined. This deserves some investigation. FIXME
- archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- else
- ld_shlibs=no
- fi
- ;;
- cygwin* | mingw* | pw32*)
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
- # as there is no search path for DLLs.
- hardcode_libdir_flag_spec='-L$libdir'
- allow_undefined_flag=unsupported
- always_export_symbols=no
- enable_shared_with_static_runtimes=yes
- export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is; otherwise, prepend...
- archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname.def;
- else
- echo EXPORTS > $output_objdir/$soname.def;
- cat $export_symbols >> $output_objdir/$soname.def;
- fi~
- $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- else
- ld_shlibs=no
- fi
- ;;
- interix[3-9]*)
- hardcode_direct=no
- hardcode_shlibpath_var=no
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
- export_dynamic_flag_spec='${wl}-E'
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
- # Instead, shared libraries are loaded at an image base (0x10000000 by
- # default) and relocated if they conflict, which is a slow very memory
- # consuming and fragmenting process. To avoid this, we pick a random,
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
- archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- 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'
- ;;
- gnu* | linux* | k*bsd*-gnu)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- tmp_addflag=
- case $cc_basename,$host_cpu in
- pgcc*) # Portland Group C compiler
- whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- tmp_addflag=' $pic_flag'
- ;;
- pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
- whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- tmp_addflag=' $pic_flag -Mnomain' ;;
- ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
- tmp_addflag=' -i_dynamic' ;;
- efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
- tmp_addflag=' -i_dynamic -nofor_main' ;;
- ifc* | ifort*) # Intel Fortran compiler
- tmp_addflag=' -nofor_main' ;;
- esac
- case `$CC -V 2>&1 | sed 5q` in
- *Sun\ C*) # Sun C 5.9
- whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- tmp_sharedflag='-G' ;;
- *Sun\ F*) # Sun Fortran 8.3
- tmp_sharedflag='-G' ;;
- *)
- tmp_sharedflag='-shared' ;;
- esac
- archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- if test $supports_anon_versioning = yes; then
- archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
- cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
- $echo "local: *; };" >> $output_objdir/$libname.ver~
- $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
- fi
- else
- ld_shlibs=no
- fi
- ;;
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
- wlarc=
- else
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- fi
- ;;
- solaris*)
- if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
- ld_shlibs=no
- cat <<EOF 1>&2
- *** Warning: The releases 2.8.* of the GNU linker cannot reliably
- *** create shared libraries on Solaris systems. Therefore, libtool
- *** is disabling shared libraries support. We urge you to upgrade GNU
- *** binutils to release 2.9.1 or newer. Another option is to modify
- *** your PATH or compiler configuration so that the native linker is
- *** used, and then restart.
- EOF
- elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- ld_shlibs=no
- fi
- ;;
- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
- case `$LD -v 2>&1` in
- *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
- ld_shlibs=no
- cat <<_LT_EOF 1>&2
- *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
- *** reliably create shared libraries on SCO systems. Therefore, libtool
- *** is disabling shared libraries support. We urge you to upgrade GNU
- *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
- *** your PATH or compiler configuration so that the native linker is
- *** used, and then restart.
- _LT_EOF
- ;;
- *)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
- else
- ld_shlibs=no
- fi
- ;;
- esac
- ;;
- sunos4*)
- archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- wlarc=
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
- *)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- else
- ld_shlibs=no
- fi
- ;;
- esac
- if test "$ld_shlibs" = no; then
- runpath_var=
- hardcode_libdir_flag_spec=
- export_dynamic_flag_spec=
- whole_archive_flag_spec=
- fi
- else
- # PORTME fill in a description of your system's linker (not GNU ld)
- case $host_os in
- aix3*)
- allow_undefined_flag=unsupported
- always_export_symbols=yes
- 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'
- # Note: this linker hardcodes the directories in LIBPATH if there
- # are no directories specified by -L.
- hardcode_minus_L=yes
- if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
- # Neither direct hardcoding nor static linking is supported with a
- # broken collect2.
- hardcode_direct=unsupported
- fi
- ;;
- aix[4-9]*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
- else
- # If we're using GNU nm, then we don't want the "-C" option.
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
- export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
- else
- export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
- fi
- aix_use_runtimelinking=no
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
- aix_use_runtimelinking=yes
- break
- fi
- done
- ;;
- esac
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
- fi
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
- archive_cmds=''
- hardcode_direct=yes
- hardcode_libdir_separator=':'
- link_all_deplibs=yes
- if test "$GCC" = yes; then
- case $host_os in aix4.[012]|aix4.[012].*)
- # We only want to do this on AIX 4.2 and lower, the check
- # below for broken collect2 doesn't work under 4.3+
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- :
- else
- # We have old collect2
- hardcode_direct=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- hardcode_minus_L=yes
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_libdir_separator=
- fi
- ;;
- esac
- shared_flag='-shared'
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
- fi
- fi
- fi
- # It seems that -bexpall does not export symbols beginning with
- # underscore (_), so it is better to generate a list of symbols to export.
- always_export_symbols=yes
- if test "$aix_use_runtimelinking" = yes; then
- # Warning - without using the other runtime loading flags (-brtl),
- # -berok will link without error, but may produce a broken library.
- allow_undefined_flag='-berok'
- # Determine the default libpath from the value encoded in an empty executable.
- cat > conftest.$ac_ext <<EOF
- #line 101147 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && test -s conftest${ac_exeext}; then
- lt_aix_libpath_sed='
- /Import File Strings/,/^$/ {
- /^0/ {
- s/^0 *\(.*\)$/\1/
- p
- }
- }'
- aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
- # Check for a 64-bit object if we didn't find anything.
- if test -z "$aix_libpath"; then
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
- fi
- rm -rf conftest*
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&6
- fi
- rm -f conftest*
- if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
- archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- else
- if test "$host_cpu" = ia64; then
- hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
- allow_undefined_flag="-z nodefs"
- 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"
- else
- # Determine the default libpath from the value encoded in an empty executable.
- cat > conftest.$ac_ext <<EOF
- #line 101189 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && test -s conftest${ac_exeext}; then
- lt_aix_libpath_sed='
- /Import File Strings/,/^$/ {
- /^0/ {
- s/^0 *\(.*\)$/\1/
- p
- }
- }'
- aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
- # Check for a 64-bit object if we didn't find anything.
- if test -z "$aix_libpath"; then
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
- fi
- rm -rf conftest*
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&6
- fi
- rm -f conftest*
- if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
- # Warning - without using the other run time loading flags,
- # -berok will link without error, but may produce a broken library.
- no_undefined_flag=' ${wl}-bernotok'
- allow_undefined_flag=' ${wl}-berok'
- # Exported symbols can be pulled into shared objects from archives
- whole_archive_flag_spec='$convenience'
- archive_cmds_need_lc=yes
- # This is similar to how AIX traditionally builds its shared libraries.
- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
- fi
- fi
- ;;
- amigaos*)
- 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)'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- # see comment about different semantics on the GNU ld section
- ld_shlibs=no
- ;;
- bsdi[45]*)
- export_dynamic_flag_spec=-rdynamic
- ;;
- cygwin* | mingw* | pw32*)
- # When not using gcc, we currently assume that we are using
- # Microsoft Visual C++.
- # hardcode_libdir_flag_spec is actually meaningless, as there is
- # no search path for DLLs.
- hardcode_libdir_flag_spec=' '
- allow_undefined_flag=unsupported
- # Tell ltmain to make .lib files, not .a files.
- libext=lib
- # Tell ltmain to make .dll files, not .so files.
- shrext_cmds=".dll"
- # FIXME: Setting linknames here is a bad hack.
- archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
- # The linker will automatically build a .lib file if we build a DLL.
- old_archive_From_new_cmds='true'
- # FIXME: Should let the user specify the lib program.
- old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
- fix_srcfile_path='`cygpath -w "$srcfile"`'
- enable_shared_with_static_runtimes=yes
- ;;
- darwin* | rhapsody*)
- case $host_os in
- rhapsody* | darwin1.[012])
- allow_undefined_flag='${wl}-undefined ${wl}suppress'
- ;;
- *) # Darwin 1.3 on
- if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
- allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- else
- case ${MACOSX_DEPLOYMENT_TARGET} in
- 10.[012])
- allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
- ;;
- 10.*)
- allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
- ;;
- esac
- fi
- ;;
- esac
- archive_cmds_need_lc=no
- hardcode_direct=no
- hardcode_automatic=yes
- hardcode_shlibpath_var=unsupported
- whole_archive_flag_spec=''
- link_all_deplibs=yes
- if test "$GCC" = yes ; then
- output_verbose_link_cmd='echo'
- archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
- module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
- 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}"
- 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}"
- else
- case $cc_basename in
- xlc*)
- output_verbose_link_cmd='echo'
- archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
- module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- ;;
- *)
- ld_shlibs=no
- ;;
- esac
- fi
- ;;
- dgux*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_shlibpath_var=no
- ;;
- # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
- # support. Future versions do this automatically, but an explicit c++rt0.o
- # does not break anything, and helps significantly (at the cost of a little
- # extra space).
- freebsd2.2*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
- # Unfortunately, older versions of FreeBSD 2 do not have this feature.
- freebsd2*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct=yes
- hardcode_minus_L=yes
- hardcode_shlibpath_var=no
- ;;
- # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
- freebsd* | dragonfly*)
- archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
- hpux9*)
- if test "$GCC" = yes; then
- archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- else
- archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- fi
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator=:
- hardcode_direct=yes
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- hardcode_minus_L=yes
- export_dynamic_flag_spec='${wl}-E'
- ;;
- hpux10*)
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
- fi
- if test "$with_gnu_ld" = no; then
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator=:
- hardcode_direct=yes
- export_dynamic_flag_spec='${wl}-E'
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- hardcode_minus_L=yes
- fi
- ;;
- hpux11*)
- if test "$GCC" = yes -a "$with_gnu_ld" = no; then
- case $host_cpu in
- hppa*64*)
- archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- ia64*)
- archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- else
- case $host_cpu in
- hppa*64*)
- archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- ia64*)
- archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- fi
- if test "$with_gnu_ld" = no; then
- hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator=:
- case $host_cpu in
- hppa*64*|ia64*)
- hardcode_libdir_flag_spec_ld='+b $libdir'
- hardcode_direct=no
- hardcode_shlibpath_var=no
- ;;
- *)
- hardcode_direct=yes
- export_dynamic_flag_spec='${wl}-E'
- # hardcode_minus_L: Not really in the search PATH,
- # but as the default location of the library.
- hardcode_minus_L=yes
- ;;
- esac
- fi
- ;;
- irix5* | irix6* | nonstopux*)
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- hardcode_libdir_flag_spec_ld='-rpath $libdir'
- fi
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- link_all_deplibs=yes
- ;;
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
- else
- archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
- fi
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- ;;
- newsos6)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct=yes
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- hardcode_shlibpath_var=no
- ;;
- openbsd*)
- if test -f /usr/libexec/ld.so; then
- hardcode_direct=yes
- hardcode_shlibpath_var=no
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
- export_dynamic_flag_spec='${wl}-E'
- else
- case $host_os in
- openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-R$libdir'
- ;;
- *)
- archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
- hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
- ;;
- esac
- fi
- else
- ld_shlibs=no
- fi
- ;;
- os2*)
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_minus_L=yes
- allow_undefined_flag=unsupported
- archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
- old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
- ;;
- osf3*)
- if test "$GCC" = yes; then
- allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- allow_undefined_flag=' -expect_unresolved \*'
- archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- fi
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator=:
- ;;
- osf4* | osf5*) # as osf3* with the addition of -msym flag
- if test "$GCC" = yes; then
- allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
- else
- allow_undefined_flag=' -expect_unresolved \*'
- archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
- $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
- # Both c and cxx compiler support -rpath directly
- hardcode_libdir_flag_spec='-rpath $libdir'
- fi
- hardcode_libdir_separator=:
- ;;
- solaris*)
- no_undefined_flag=' -z text'
- if test "$GCC" = yes; then
- wlarc='${wl}'
- archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
- else
- wlarc=''
- archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
- archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
- fi
- hardcode_libdir_flag_spec='-R$libdir'
- hardcode_shlibpath_var=no
- case $host_os in
- solaris2.[0-5] | solaris2.[0-5].*) ;;
- *)
- # The compiler driver will combine and reorder linker options,
- # but understands `-z linker_flag'. GCC discards it without `$wl',
- # but is careful enough not to reorder.
- # Supported since Solaris 2.6 (maybe 2.5.1?)
- if test "$GCC" = yes; then
- whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
- else
- whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
- fi
- ;;
- esac
- link_all_deplibs=yes
- ;;
- sunos4*)
- if test "x$host_vendor" = xsequent; then
- # Use $CC to link under sequent, because it throws in some extra .o
- # files that make .init and .fini sections work.
- archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
- fi
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_direct=yes
- hardcode_minus_L=yes
- hardcode_shlibpath_var=no
- ;;
- sysv4)
- case $host_vendor in
- sni)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct=yes # is this really true???
- ;;
- siemens)
- ## LD is ld it makes a PLAMLIB
- ## CC just makes a GrossModule.
- archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
- reload_cmds='$CC -r -o $output$reload_objs'
- hardcode_direct=no
- ;;
- motorola)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_direct=no #Motorola manual says yes, but my tests say they lie
- ;;
- esac
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var=no
- ;;
- sysv4.3*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_shlibpath_var=no
- export_dynamic_flag_spec='-Bexport'
- ;;
- sysv4*MP*)
- if test -d /usr/nec; then
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_shlibpath_var=no
- runpath_var=LD_RUN_PATH
- hardcode_runpath_var=yes
- ld_shlibs=yes
- fi
- ;;
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
- no_undefined_flag='${wl}-z,text'
- archive_cmds_need_lc=no
- hardcode_shlibpath_var=no
- runpath_var='LD_RUN_PATH'
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- fi
- ;;
- sysv5* | sco3.2v5* | sco5v6*)
- # Note: We can NOT use -z defs as we might desire, because we do not
- # link with -lc, and that would cause any symbols used from libc to
- # always be unresolved, which means just about no library would
- # ever link correctly. If we're not using GNU ld we use -z text
- # though, which does catch some bad symbols but isn't as heavy-handed
- # as -z defs.
- no_undefined_flag='${wl}-z,text'
- allow_undefined_flag='${wl}-z,nodefs'
- archive_cmds_need_lc=no
- hardcode_shlibpath_var=no
- hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
- hardcode_libdir_separator=':'
- link_all_deplibs=yes
- export_dynamic_flag_spec='${wl}-Bexport'
- runpath_var='LD_RUN_PATH'
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- else
- archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- fi
- ;;
- uts4*)
- archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-L$libdir'
- hardcode_shlibpath_var=no
- ;;
- *)
- ld_shlibs=no
- ;;
- esac
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
- $as_echo "$ld_shlibs" >&6; }
- test "$ld_shlibs" = no && can_build_shared=no
- #
- # Do we need to explicitly link libc?
- #
- case "x$archive_cmds_need_lc" in
- x|xyes)
- # Assume -lc should be added
- archive_cmds_need_lc=yes
- if test "$enable_shared" = yes && test "$GCC" = yes; then
- case $archive_cmds in
- *'~'*)
- # FIXME: we may have to deal with multi-command sequences.
- ;;
- '$CC '*)
- # Test whether the compiler implicitly links with -lc since on some
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
- # to ld, don't add -lc before -lgcc.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
- $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
- $rm conftest*
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } 2>conftest.err; then
- soname=conftest
- lib=conftest
- libobjs=conftest.$ac_objext
- deplibs=
- wl=$lt_prog_compiler_wl
- pic_flag=$lt_prog_compiler_pic
- compiler_flags=-v
- linker_flags=-v
- verstring=
- output_objdir=.
- libname=conftest
- lt_save_allow_undefined_flag=$allow_undefined_flag
- allow_undefined_flag=
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
- (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- then
- archive_cmds_need_lc=no
- else
- archive_cmds_need_lc=yes
- fi
- allow_undefined_flag=$lt_save_allow_undefined_flag
- else
- cat conftest.err 1>&5
- fi
- $rm conftest*
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
- $as_echo "$archive_cmds_need_lc" >&6; }
- ;;
- esac
- fi
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
- $as_echo_n "checking dynamic linker characteristics... " >&6; }
- library_names_spec=
- libname_spec='lib$name'
- soname_spec=
- shrext_cmds=".so"
- postinstall_cmds=
- postuninstall_cmds=
- finish_cmds=
- finish_eval=
- shlibpath_var=
- shlibpath_overrides_runpath=unknown
- version_type=none
- dynamic_linker="$host_os ld.so"
- sys_lib_dlsearch_path_spec="/lib /usr/lib"
- if test "$GCC" = yes; then
- case $host_os in
- darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
- *) lt_awk_arg="/^libraries:/" ;;
- esac
- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
- # if the path contains ";" then we assume it to be the separator
- # otherwise default to the standard path separator (i.e. ":") - it is
- # assumed that no part of a normal pathname contains ";" but that should
- # okay in the real world where ";" in dirpaths is itself problematic.
- lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
- else
- lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
- # Ok, now we have the path, separated by spaces, we can step through it
- # and add multilib dir if necessary.
- lt_tmp_lt_search_path_spec=
- lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
- for lt_sys_path in $lt_search_path_spec; do
- if test -d "$lt_sys_path/$lt_multi_os_dir"; then
- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
- else
- test -d "$lt_sys_path" && \
- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
- fi
- done
- lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
- BEGIN {RS=" "; FS="/|\n";} {
- lt_foo="";
- lt_count=0;
- for (lt_i = NF; lt_i > 0; lt_i--) {
- if ($lt_i != "" && $lt_i != ".") {
- if ($lt_i == "..") {
- lt_count++;
- } else {
- if (lt_count == 0) {
- lt_foo="/" $lt_i lt_foo;
- } else {
- lt_count--;
- }
- }
- }
- }
- if (lt_foo != "") { lt_freq[lt_foo]++; }
- if (lt_freq[lt_foo] == 1) { print lt_foo; }
- }'`
- sys_lib_search_path_spec=`echo $lt_search_path_spec`
- else
- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
- fi
- need_lib_prefix=unknown
- hardcode_into_libs=no
- # when you set need_version to no, make sure it does not cause -set_version
- # flags to be left without arguments
- need_version=unknown
- case $host_os in
- aix3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
- shlibpath_var=LIBPATH
- # AIX 3 has no versioning support, so we append a major version to the name.
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
- aix[4-9]*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- hardcode_into_libs=yes
- if test "$host_cpu" = ia64; then
- # AIX 5 supports IA64
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- else
- # With GCC up to 2.95.x, collect2 would create an import file
- # for dependence libraries. The import file would start with
- # the line `#! .'. This would cause the generated library to
- # depend on `.', always an invalid library. This was fixed in
- # development snapshots of GCC prior to 3.0.
- case $host_os in
- aix4 | aix4.[01] | aix4.[01].*)
- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
- echo ' yes '
- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
- :
- else
- can_build_shared=no
- fi
- ;;
- esac
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
- # soname into executable. Probably we can add versioning support to
- # collect2, so additional links can be useful in future.
- if test "$aix_use_runtimelinking" = yes; then
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
- # instead of lib<name>.a to let people know that these are not
- # typical AIX shared libraries.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- else
- # We preserve .a as extension for shared libraries through AIX4.2
- # and later when we are not doing run time linking.
- library_names_spec='${libname}${release}.a $libname.a'
- soname_spec='${libname}${release}${shared_ext}$major'
- fi
- shlibpath_var=LIBPATH
- fi
- ;;
- amigaos*)
- library_names_spec='$libname.ixlibrary $libname.a'
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
- ;;
- beos*)
- library_names_spec='${libname}${shared_ext}'
- dynamic_linker="$host_os ld.so"
- shlibpath_var=LIBRARY_PATH
- ;;
- bsdi[45]*)
- version_type=linux
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- # the default ld.so.conf also contains /usr/contrib/lib and
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
- # libtool to hard-code these into programs
- ;;
- cygwin* | mingw* | pw32*)
- version_type=windows
- shrext_cmds=".dll"
- need_version=no
- need_lib_prefix=no
- case $GCC,$host_os in
- yes,cygwin* | yes,mingw* | yes,pw32*)
- library_names_spec='$libname.dll.a'
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
- postinstall_cmds='base_file=`basename \${file}`~
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
- dldir=$destdir/`dirname \$dlpath`~
- test -d \$dldir || mkdir -p \$dldir~
- $install_prog $dir/$dlname \$dldir/$dlname~
- chmod a+x \$dldir/$dlname'
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
- dlpath=$dir/\$dldll~
- $rm \$dlpath'
- shlibpath_overrides_runpath=yes
- case $host_os in
- cygwin*)
- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
- ;;
- mingw*)
- # MinGW DLLs use traditional 'lib' prefix
- soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
- # It is most probably a Windows format PATH printed by
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
- # path with ; separators, and with drive letters. We can handle the
- # drive letters (cygwin fileutils understands them), so leave them,
- # especially as we might pass files found there to a mingw objdump,
- # which wouldn't understand a cygwinified path. Ahh.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
- ;;
- pw32*)
- # pw32 DLLs use 'pw' prefix rather than 'lib'
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- ;;
- esac
- ;;
- *)
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
- ;;
- esac
- dynamic_linker='Win32 ld.exe'
- # FIXME: first we should search . and the directory the executable is in
- shlibpath_var=PATH
- ;;
- darwin* | rhapsody*)
- dynamic_linker="$host_os dyld"
- version_type=darwin
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
- soname_spec='${libname}${release}${major}$shared_ext'
- shlibpath_overrides_runpath=yes
- shlibpath_var=DYLD_LIBRARY_PATH
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
- ;;
- dgux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
- freebsd* | dragonfly*)
- # DragonFly does not have aout. When/if they implement a new
- # versioning mechanism, adjust this.
- if test -x /usr/bin/objformat; then
- objformat=`/usr/bin/objformat`
- else
- case $host_os in
- freebsd[123].*) objformat=aout ;;
- *) objformat=elf ;;
- esac
- fi
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- need_version=no
- need_lib_prefix=no
- ;;
- freebsd-*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
- need_version=yes
- ;;
- esac
- shlibpath_var=LD_LIBRARY_PATH
- case $host_os in
- freebsd2*)
- shlibpath_overrides_runpath=yes
- ;;
- freebsd3.[01]* | freebsdelf3.[01]*)
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
- freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
- *) # from 4.6 on, and DragonFly
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- esac
- ;;
- gnu*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- ;;
- hpux9* | hpux10* | hpux11*)
- # Give a soname corresponding to the major version so that dld.sl refuses to
- # link against other versions.
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- case $host_cpu in
- ia64*)
- shrext_cmds='.so'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.so"
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- if test "X$HPUX_IA64_MODE" = X32; then
- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
- else
- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
- fi
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- hppa*64*)
- shrext_cmds='.sl'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- *)
- shrext_cmds='.sl'
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=SHLIB_PATH
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
- esac
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
- postinstall_cmds='chmod 555 $lib'
- ;;
- interix[3-9]*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
- irix5* | irix6* | nonstopux*)
- case $host_os in
- nonstopux*) version_type=nonstopux ;;
- *)
- if test "$lt_cv_prog_gnu_ld" = yes; then
- version_type=linux
- else
- version_type=irix
- fi ;;
- esac
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
- case $host_os in
- irix5* | nonstopux*)
- libsuff= shlibsuff=
- ;;
- *)
- case $LD in # libtool.m4 will add one of these switches to LD
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
- libsuff= shlibsuff= libmagic=32-bit;;
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
- libsuff=32 shlibsuff=N32 libmagic=N32;;
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
- libsuff=64 shlibsuff=64 libmagic=64-bit;;
- *) libsuff= shlibsuff= libmagic=never-match;;
- esac
- ;;
- esac
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- hardcode_into_libs=yes
- ;;
- # No shared lib support for Linux oldld, aout, or coff.
- linux*oldld* | linux*aout* | linux*coff*)
- dynamic_linker=no
- ;;
- # This must be Linux ELF.
- linux* | k*bsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- # This implies no fast_install, which is unacceptable.
- # Some rework will be needed to allow for fast_install
- # before this can be enabled.
- hardcode_into_libs=yes
- # Append ld.so.conf contents to the search path
- if test -f /etc/ld.so.conf; then
- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
- fi
- # We used to test for /lib/ld.so.1 and disable shared libraries on
- # powerpc, because MkLinux only supported shared libraries with the
- # GNU dynamic linker. Since this was broken with cross compilers,
- # most powerpc-linux boxes support dynamic linking these days and
- # people can always --disable-shared, the test was removed, and we
- # assume the GNU/Linux dynamic linker is in use.
- dynamic_linker='GNU/Linux ld.so'
- ;;
- netbsd*)
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- dynamic_linker='NetBSD (a.out) ld.so'
- else
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='NetBSD ld.elf_so'
- fi
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- newsos6)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
- nto-qnx*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
- openbsd*)
- version_type=sunos
- sys_lib_dlsearch_path_spec="/usr/lib"
- need_lib_prefix=no
- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
- case $host_os in
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
- *) need_version=no ;;
- esac
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- case $host_os in
- openbsd2.[89] | openbsd2.[89].*)
- shlibpath_overrides_runpath=no
- ;;
- *)
- shlibpath_overrides_runpath=yes
- ;;
- esac
- else
- shlibpath_overrides_runpath=yes
- fi
- ;;
- os2*)
- libname_spec='$name'
- shrext_cmds=".dll"
- need_lib_prefix=no
- library_names_spec='$libname${shared_ext} $libname.a'
- dynamic_linker='OS/2 ld.exe'
- shlibpath_var=LIBPATH
- ;;
- osf3* | osf4* | osf5*)
- version_type=osf
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- ;;
- rdos*)
- dynamic_linker=no
- ;;
- solaris*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- # ldd complains unless libraries are executable
- postinstall_cmds='chmod +x $lib'
- ;;
- sunos4*)
- version_type=sunos
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- fi
- need_version=yes
- ;;
- sysv4 | sysv4.3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- case $host_vendor in
- sni)
- shlibpath_overrides_runpath=no
- need_lib_prefix=no
- export_dynamic_flag_spec='${wl}-Blargedynsym'
- runpath_var=LD_RUN_PATH
- ;;
- siemens)
- need_lib_prefix=no
- ;;
- motorola)
- need_lib_prefix=no
- need_version=no
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- ;;
- esac
- ;;
- sysv4*MP*)
- if test -d /usr/nec ;then
- version_type=linux
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
- soname_spec='$libname${shared_ext}.$major'
- shlibpath_var=LD_LIBRARY_PATH
- fi
- ;;
- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
- version_type=freebsd-elf
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- if test "$with_gnu_ld" = yes; then
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
- shlibpath_overrides_runpath=no
- else
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
- shlibpath_overrides_runpath=yes
- case $host_os in
- sco3.2v5*)
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
- ;;
- esac
- fi
- sys_lib_dlsearch_path_spec='/usr/lib'
- ;;
- uts4*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
- *)
- dynamic_linker=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
- $as_echo "$dynamic_linker" >&6; }
- test "$dynamic_linker" = no && can_build_shared=no
- if ${lt_cv_sys_lib_search_path_spec+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
- fi
- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
- if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
- fi
- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
- variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
- if test "$GCC" = yes; then
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
- $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
- hardcode_action=
- if test -n "$hardcode_libdir_flag_spec" || \
- test -n "$runpath_var" || \
- test "X$hardcode_automatic" = "Xyes" ; then
- # We can hardcode non-existent directories.
- if test "$hardcode_direct" != no &&
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
- # have to relink, otherwise we might link with an installed library
- # when we should be linking with a yet-to-be-installed one
- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
- test "$hardcode_minus_L" != no; then
- # Linking always hardcodes the temporary library directory.
- hardcode_action=relink
- else
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
- hardcode_action=immediate
- fi
- else
- # We cannot hardcode anything, or else we can only hardcode existing
- # directories.
- hardcode_action=unsupported
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
- $as_echo "$hardcode_action" >&6; }
- if test "$hardcode_action" = relink; then
- # Fast installation is not supported
- enable_fast_install=no
- elif test "$shlibpath_overrides_runpath" = yes ||
- test "$enable_shared" = no; then
- # Fast installation is not necessary
- enable_fast_install=needless
- fi
- striplib=
- old_striplib=
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
- $as_echo_n "checking whether stripping libraries is possible... " >&6; }
- if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
- test -z "$striplib" && striplib="$STRIP --strip-unneeded"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- # FIXME - insert some real tests, host_os isn't really good enough
- case $host_os in
- darwin*)
- if test -n "$STRIP" ; then
- striplib="$STRIP -x"
- old_striplib="$STRIP -S"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- ;;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- ;;
- esac
- fi
- if test "x$enable_dlopen" != xyes; then
- enable_dlopen=unknown
- enable_dlopen_self=unknown
- enable_dlopen_self_static=unknown
- else
- lt_cv_dlopen=no
- lt_cv_dlopen_libs=
- case $host_os in
- beos*)
- lt_cv_dlopen="load_add_on"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
- ;;
- mingw* | pw32*)
- lt_cv_dlopen="LoadLibrary"
- lt_cv_dlopen_libs=
- ;;
- cygwin*)
- lt_cv_dlopen="dlopen"
- lt_cv_dlopen_libs=
- ;;
- darwin*)
- # if libdl is installed we need to link against it
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
- $as_echo_n "checking for dlopen in -ldl... " >&6; }
- if ${ac_cv_lib_dl_dlopen+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dlopen ();
- int
- main ()
- {
- return dlopen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dl_dlopen=yes
- else
- ac_cv_lib_dl_dlopen=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
- $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
- if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
- else
- lt_cv_dlopen="dyld"
- lt_cv_dlopen_libs=
- lt_cv_dlopen_self=yes
- fi
- ;;
- *)
- ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
- if test "x$ac_cv_func_shl_load" = xyes; then :
- lt_cv_dlopen="shl_load"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
- $as_echo_n "checking for shl_load in -ldld... " >&6; }
- if ${ac_cv_lib_dld_shl_load+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldld $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char shl_load ();
- int
- main ()
- {
- return shl_load ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dld_shl_load=yes
- else
- ac_cv_lib_dld_shl_load=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
- $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
- if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
- lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
- else
- ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
- if test "x$ac_cv_func_dlopen" = xyes; then :
- lt_cv_dlopen="dlopen"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
- $as_echo_n "checking for dlopen in -ldl... " >&6; }
- if ${ac_cv_lib_dl_dlopen+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldl $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dlopen ();
- int
- main ()
- {
- return dlopen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dl_dlopen=yes
- else
- ac_cv_lib_dl_dlopen=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
- $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
- if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
- $as_echo_n "checking for dlopen in -lsvld... " >&6; }
- if ${ac_cv_lib_svld_dlopen+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsvld $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dlopen ();
- int
- main ()
- {
- return dlopen ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_svld_dlopen=yes
- else
- ac_cv_lib_svld_dlopen=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
- $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
- if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
- lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
- $as_echo_n "checking for dld_link in -ldld... " >&6; }
- if ${ac_cv_lib_dld_dld_link+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ldld $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
- #ifdef __cplusplus
- extern "C"
- #endif
- char dld_link ();
- int
- main ()
- {
- return dld_link ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_dld_dld_link=yes
- else
- ac_cv_lib_dld_dld_link=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS=$ac_check_lib_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
- $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
- if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
- lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
- fi
- fi
- fi
- fi
- fi
- fi
- ;;
- esac
- if test "x$lt_cv_dlopen" != xno; then
- enable_dlopen=yes
- else
- enable_dlopen=no
- fi
- case $lt_cv_dlopen in
- dlopen)
- save_CPPFLAGS="$CPPFLAGS"
- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
- save_LDFLAGS="$LDFLAGS"
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
- save_LIBS="$LIBS"
- LIBS="$lt_cv_dlopen_libs $LIBS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
- $as_echo_n "checking whether a program can dlopen itself... " >&6; }
- if ${lt_cv_dlopen_self+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- lt_cv_dlopen_self=cross
- else
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- lt_status=$lt_dlunknown
- cat > conftest.$ac_ext <<EOF
- #line 102706 "configure"
- #include "confdefs.h"
- #if HAVE_DLFCN_H
- #include <dlfcn.h>
- #endif
- #include <stdio.h>
- #ifdef RTLD_GLOBAL
- # define LT_DLGLOBAL RTLD_GLOBAL
- #else
- # ifdef DL_GLOBAL
- # define LT_DLGLOBAL DL_GLOBAL
- # else
- # define LT_DLGLOBAL 0
- # endif
- #endif
- /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- find out it does not work in some platform. */
- #ifndef LT_DLLAZY_OR_NOW
- # ifdef RTLD_LAZY
- # define LT_DLLAZY_OR_NOW RTLD_LAZY
- # else
- # ifdef DL_LAZY
- # define LT_DLLAZY_OR_NOW DL_LAZY
- # else
- # ifdef RTLD_NOW
- # define LT_DLLAZY_OR_NOW RTLD_NOW
- # else
- # ifdef DL_NOW
- # define LT_DLLAZY_OR_NOW DL_NOW
- # else
- # define LT_DLLAZY_OR_NOW 0
- # endif
- # endif
- # endif
- # endif
- #endif
- void fnord() { int i=42;}
- int main ()
- {
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- int status = $lt_dlunknown;
- if (self)
- {
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- /* dlclose (self); */
- }
- else
- puts (dlerror ());
- return (status);
- }
- EOF
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
- (./conftest; exit; ) >&5 2>/dev/null
- lt_status=$?
- case x$lt_status in
- x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
- x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
- x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
- esac
- else :
- # compilation failed
- lt_cv_dlopen_self=no
- fi
- fi
- rm -fr conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
- $as_echo "$lt_cv_dlopen_self" >&6; }
- if test "x$lt_cv_dlopen_self" = xyes; then
- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
- $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
- if ${lt_cv_dlopen_self_static+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- lt_cv_dlopen_self_static=cross
- else
- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
- lt_status=$lt_dlunknown
- cat > conftest.$ac_ext <<EOF
- #line 102802 "configure"
- #include "confdefs.h"
- #if HAVE_DLFCN_H
- #include <dlfcn.h>
- #endif
- #include <stdio.h>
- #ifdef RTLD_GLOBAL
- # define LT_DLGLOBAL RTLD_GLOBAL
- #else
- # ifdef DL_GLOBAL
- # define LT_DLGLOBAL DL_GLOBAL
- # else
- # define LT_DLGLOBAL 0
- # endif
- #endif
- /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
- find out it does not work in some platform. */
- #ifndef LT_DLLAZY_OR_NOW
- # ifdef RTLD_LAZY
- # define LT_DLLAZY_OR_NOW RTLD_LAZY
- # else
- # ifdef DL_LAZY
- # define LT_DLLAZY_OR_NOW DL_LAZY
- # else
- # ifdef RTLD_NOW
- # define LT_DLLAZY_OR_NOW RTLD_NOW
- # else
- # ifdef DL_NOW
- # define LT_DLLAZY_OR_NOW DL_NOW
- # else
- # define LT_DLLAZY_OR_NOW 0
- # endif
- # endif
- # endif
- # endif
- #endif
- void fnord() { int i=42;}
- int main ()
- {
- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
- int status = $lt_dlunknown;
- if (self)
- {
- if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
- /* dlclose (self); */
- }
- else
- puts (dlerror ());
- return (status);
- }
- EOF
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
- (./conftest; exit; ) >&5 2>/dev/null
- lt_status=$?
- case x$lt_status in
- x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
- x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
- x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
- esac
- else :
- # compilation failed
- lt_cv_dlopen_self_static=no
- fi
- fi
- rm -fr conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
- $as_echo "$lt_cv_dlopen_self_static" >&6; }
- fi
- CPPFLAGS="$save_CPPFLAGS"
- LDFLAGS="$save_LDFLAGS"
- LIBS="$save_LIBS"
- ;;
- esac
- case $lt_cv_dlopen_self in
- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
- *) enable_dlopen_self=unknown ;;
- esac
- case $lt_cv_dlopen_self_static in
- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
- *) enable_dlopen_self_static=unknown ;;
- esac
- fi
- # Report which library types will actually be built
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
- $as_echo_n "checking if libtool supports shared libraries... " >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
- $as_echo "$can_build_shared" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
- $as_echo_n "checking whether to build shared libraries... " >&6; }
- test "$can_build_shared" = "no" && enable_shared=no
- # On AIX, shared libraries and static libraries use the same namespace, and
- # are all built from PIC.
- case $host_os in
- aix3*)
- test "$enable_shared" = yes && enable_static=no
- if test -n "$RANLIB"; then
- archive_cmds="$archive_cmds~\$RANLIB \$lib"
- postinstall_cmds='$RANLIB $lib'
- fi
- ;;
- aix[4-9]*)
- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
- test "$enable_shared" = yes && enable_static=no
- fi
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
- $as_echo "$enable_shared" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
- $as_echo_n "checking whether to build static libraries... " >&6; }
- # Make sure either enable_shared or enable_static is yes.
- test "$enable_shared" = yes || enable_static=yes
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
- $as_echo "$enable_static" >&6; }
- # The else clause should only fire when bootstrapping the
- # libtool distribution, otherwise you forgot to ship ltmain.sh
- # with your package, and you will get complaints that there are
- # no rules to generate ltmain.sh.
- if test -f "$ltmain"; then
- # See if we are running on zsh, and set the options which allow our commands through
- # without removal of \ escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- # Now quote all the things that may contain metacharacters while being
- # careful not to overquote the AC_SUBSTed values. We take copies of the
- # variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
- SED SHELL STRIP \
- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
- deplibs_check_method reload_flag reload_cmds need_locks \
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
- lt_cv_sys_global_symbol_to_c_name_address \
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- old_postinstall_cmds old_postuninstall_cmds \
- compiler \
- CC \
- LD \
- lt_prog_compiler_wl \
- lt_prog_compiler_pic \
- lt_prog_compiler_static \
- lt_prog_compiler_no_builtin_flag \
- export_dynamic_flag_spec \
- thread_safe_flag_spec \
- whole_archive_flag_spec \
- enable_shared_with_static_runtimes \
- old_archive_cmds \
- old_archive_from_new_cmds \
- predep_objects \
- postdep_objects \
- predeps \
- postdeps \
- compiler_lib_search_path \
- compiler_lib_search_dirs \
- archive_cmds \
- archive_expsym_cmds \
- postinstall_cmds \
- postuninstall_cmds \
- old_archive_from_expsyms_cmds \
- allow_undefined_flag \
- no_undefined_flag \
- export_symbols_cmds \
- hardcode_libdir_flag_spec \
- hardcode_libdir_flag_spec_ld \
- hardcode_libdir_separator \
- hardcode_automatic \
- module_cmds \
- module_expsym_cmds \
- lt_cv_prog_compiler_c_o \
- fix_srcfile_path \
- exclude_expsyms \
- include_expsyms; do
- case $var in
- old_archive_cmds | \
- old_archive_from_new_cmds | \
- archive_cmds | \
- archive_expsym_cmds | \
- module_cmds | \
- module_expsym_cmds | \
- old_archive_from_expsyms_cmds | \
- export_symbols_cmds | \
- extract_expsyms_cmds | reload_cmds | finish_cmds | \
- postinstall_cmds | postuninstall_cmds | \
- old_postinstall_cmds | old_postuninstall_cmds | \
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- ;;
- *)
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- ;;
- esac
- done
- case $lt_echo in
- *'\$0 --fallback-echo"')
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
- ;;
- esac
- cfgfile="${ofile}T"
- trap "$rm \"$cfgfile\"; exit 1" 1 2 15
- $rm -f "$cfgfile"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result:
- creating $ofile" >&5
- $as_echo "
- creating $ofile" >&6; }
- cat <<__EOF__ >> "$cfgfile"
- #! $SHELL
- # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
- # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
- # NOTE: Changes made to this file will be lost: look at ltmain.sh.
- #
- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
- # Free Software Foundation, Inc.
- #
- # This file is part of GNU Libtool:
- # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
- #
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2 of the License, or
- # (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful, but
- # WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program; if not, write to the Free Software
- # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- #
- # As a special exception to the GNU General Public License, if you
- # distribute this file as part of a program that contains a
- # configuration script generated by Autoconf, you may include it under
- # the same distribution terms that you use for the rest of that program.
- # A sed program that does not truncate output.
- SED=$lt_SED
- # Sed that helps us avoid accidentally triggering echo(1) options like -n.
- Xsed="$SED -e 1s/^X//"
- # The HP-UX ksh and POSIX shell print the target directory to stdout
- # if CDPATH is set.
- (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
- # The names of the tagged configurations supported by this script.
- available_tags=
- # ### BEGIN LIBTOOL CONFIG
- # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- # Shell to use when invoking shell scripts.
- SHELL=$lt_SHELL
- # Whether or not to build shared libraries.
- build_libtool_libs=$enable_shared
- # Whether or not to build static libraries.
- build_old_libs=$enable_static
- # Whether or not to add -lc for building shared libraries.
- build_libtool_need_lc=$archive_cmds_need_lc
- # Whether or not to disallow shared libs when runtime libs are static
- allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
- # Whether or not to optimize for fast installation.
- fast_install=$enable_fast_install
- # The host system.
- host_alias=$host_alias
- host=$host
- host_os=$host_os
- # The build system.
- build_alias=$build_alias
- build=$build
- build_os=$build_os
- # An echo program that does not interpret backslashes.
- echo=$lt_echo
- # The archiver.
- AR=$lt_AR
- AR_FLAGS=$lt_AR_FLAGS
- # A C compiler.
- LTCC=$lt_LTCC
- # LTCC compiler flags.
- LTCFLAGS=$lt_LTCFLAGS
- # A language-specific compiler.
- CC=$lt_compiler
- # Is the compiler the GNU C compiler?
- with_gcc=$GCC
- # An ERE matcher.
- EGREP=$lt_EGREP
- # The linker used to build libraries.
- LD=$lt_LD
- # Whether we need hard or soft links.
- LN_S=$lt_LN_S
- # A BSD-compatible nm program.
- NM=$lt_NM
- # A symbol stripping program
- STRIP=$lt_STRIP
- # Used to examine libraries when file_magic_cmd begins "file"
- MAGIC_CMD=$MAGIC_CMD
- # Used on cygwin: DLL creation program.
- DLLTOOL="$DLLTOOL"
- # Used on cygwin: object dumper.
- OBJDUMP="$OBJDUMP"
- # Used on cygwin: assembler.
- AS="$AS"
- # The name of the directory that contains temporary libtool files.
- objdir=$objdir
- # How to create reloadable object files.
- reload_flag=$lt_reload_flag
- reload_cmds=$lt_reload_cmds
- # How to pass a linker flag through the compiler.
- wl=$lt_lt_prog_compiler_wl
- # Object file suffix (normally "o").
- objext="$ac_objext"
- # Old archive suffix (normally "a").
- libext="$libext"
- # Shared library suffix (normally ".so").
- shrext_cmds='$shrext_cmds'
- # Executable file suffix (normally "").
- exeext="$exeext"
- # Additional compiler flags for building library objects.
- pic_flag=$lt_lt_prog_compiler_pic
- pic_mode=$pic_mode
- # What is the maximum length of a command?
- max_cmd_len=$lt_cv_sys_max_cmd_len
- # Does compiler simultaneously support -c and -o options?
- compiler_c_o=$lt_lt_cv_prog_compiler_c_o
- # Must we lock files when doing compilation?
- need_locks=$lt_need_locks
- # Do we need the lib prefix for modules?
- need_lib_prefix=$need_lib_prefix
- # Do we need a version for libraries?
- need_version=$need_version
- # Whether dlopen is supported.
- dlopen_support=$enable_dlopen
- # Whether dlopen of programs is supported.
- dlopen_self=$enable_dlopen_self
- # Whether dlopen of statically linked programs is supported.
- dlopen_self_static=$enable_dlopen_self_static
- # Compiler flag to prevent dynamic linking.
- link_static_flag=$lt_lt_prog_compiler_static
- # Compiler flag to turn off builtin functions.
- no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
- # Compiler flag to allow reflexive dlopens.
- export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
- # Compiler flag to generate shared objects directly from archives.
- whole_archive_flag_spec=$lt_whole_archive_flag_spec
- # Compiler flag to generate thread-safe objects.
- thread_safe_flag_spec=$lt_thread_safe_flag_spec
- # Library versioning type.
- version_type=$version_type
- # Format of library name prefix.
- libname_spec=$lt_libname_spec
- # List of archive names. First name is the real one, the rest are links.
- # The last name is the one that the linker finds with -lNAME.
- library_names_spec=$lt_library_names_spec
- # The coded name of the library, if different from the real name.
- soname_spec=$lt_soname_spec
- # Commands used to build and install an old-style archive.
- RANLIB=$lt_RANLIB
- old_archive_cmds=$lt_old_archive_cmds
- old_postinstall_cmds=$lt_old_postinstall_cmds
- old_postuninstall_cmds=$lt_old_postuninstall_cmds
- # Create an old-style archive from a shared archive.
- old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
- # Create a temporary old-style archive to link instead of a shared archive.
- old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
- # Commands used to build and install a shared archive.
- archive_cmds=$lt_archive_cmds
- archive_expsym_cmds=$lt_archive_expsym_cmds
- postinstall_cmds=$lt_postinstall_cmds
- postuninstall_cmds=$lt_postuninstall_cmds
- # Commands used to build a loadable module (assumed same as above if empty)
- module_cmds=$lt_module_cmds
- module_expsym_cmds=$lt_module_expsym_cmds
- # Commands to strip libraries.
- old_striplib=$lt_old_striplib
- striplib=$lt_striplib
- # Dependencies to place before the objects being linked to create a
- # shared library.
- predep_objects=$lt_predep_objects
- # Dependencies to place after the objects being linked to create a
- # shared library.
- postdep_objects=$lt_postdep_objects
- # Dependencies to place before the objects being linked to create a
- # shared library.
- predeps=$lt_predeps
- # Dependencies to place after the objects being linked to create a
- # shared library.
- postdeps=$lt_postdeps
- # The directories searched by this compiler when creating a shared
- # library
- compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
- # The library search path used internally by the compiler when linking
- # a shared library.
- compiler_lib_search_path=$lt_compiler_lib_search_path
- # Method to check whether dependent libraries are shared objects.
- deplibs_check_method=$lt_deplibs_check_method
- # Command to use when deplibs_check_method == file_magic.
- file_magic_cmd=$lt_file_magic_cmd
- # Flag that allows shared libraries with undefined symbols to be built.
- allow_undefined_flag=$lt_allow_undefined_flag
- # Flag that forces no undefined symbols.
- no_undefined_flag=$lt_no_undefined_flag
- # Commands used to finish a libtool library installation in a directory.
- finish_cmds=$lt_finish_cmds
- # Same as above, but a single script fragment to be evaled but not shown.
- finish_eval=$lt_finish_eval
- # Take the output of nm and produce a listing of raw symbols and C names.
- global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
- # Transform the output of nm in a proper C declaration
- global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
- # Transform the output of nm in a C name address pair
- global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
- # This is the shared library runtime path variable.
- runpath_var=$runpath_var
- # This is the shared library path variable.
- shlibpath_var=$shlibpath_var
- # Is shlibpath searched before the hard-coded library search path?
- shlibpath_overrides_runpath=$shlibpath_overrides_runpath
- # How to hardcode a shared library path into an executable.
- hardcode_action=$hardcode_action
- # Whether we should hardcode library paths into libraries.
- hardcode_into_libs=$hardcode_into_libs
- # Flag to hardcode \$libdir into a binary during linking.
- # This must work even if \$libdir does not exist.
- hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
- # If ld is used when linking, flag to hardcode \$libdir into
- # a binary during linking. This must work even if \$libdir does
- # not exist.
- hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
- # Whether we need a single -rpath flag with a separated argument.
- hardcode_libdir_separator=$lt_hardcode_libdir_separator
- # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
- # resulting binary.
- hardcode_direct=$hardcode_direct
- # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
- # resulting binary.
- hardcode_minus_L=$hardcode_minus_L
- # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
- # the resulting binary.
- hardcode_shlibpath_var=$hardcode_shlibpath_var
- # Set to yes if building a shared library automatically hardcodes DIR into the library
- # and all subsequent libraries and executables linked against it.
- hardcode_automatic=$hardcode_automatic
- # Variables whose values should be saved in libtool wrapper scripts and
- # restored at relink time.
- variables_saved_for_relink="$variables_saved_for_relink"
- # Whether libtool must link a program against all its dependency libraries.
- link_all_deplibs=$link_all_deplibs
- # Compile-time system search path for libraries
- sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
- # Run-time system search path for libraries
- sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
- # Fix the shell variable \$srcfile for the compiler.
- fix_srcfile_path=$lt_fix_srcfile_path
- # Set to yes if exported symbols are required.
- always_export_symbols=$always_export_symbols
- # The commands to list exported symbols.
- export_symbols_cmds=$lt_export_symbols_cmds
- # The commands to extract the exported symbol list from a shared archive.
- extract_expsyms_cmds=$lt_extract_expsyms_cmds
- # Symbols that should not be listed in the preloaded symbols.
- exclude_expsyms=$lt_exclude_expsyms
- # Symbols that must always be exported.
- include_expsyms=$lt_include_expsyms
- # ### END LIBTOOL CONFIG
- __EOF__
- case $host_os in
- aix3*)
- cat <<\EOF >> "$cfgfile"
- # AIX sometimes has problems with the GCC collect2 program. For some
- # reason, if we set the COLLECT_NAMES environment variable, the problems
- # vanish in a puff of smoke.
- if test "X${COLLECT_NAMES+set}" != Xset; then
- COLLECT_NAMES=
- export COLLECT_NAMES
- fi
- EOF
- ;;
- esac
- # We use sed instead of cat because bash on DJGPP gets confused if
- # if finds mixed CR/LF and LF-only lines. Since sed operates in
- # text mode, it properly converts lines to CR/LF. This bash problem
- # is reportedly fixed, but why not run on old versions too?
- sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
- mv -f "$cfgfile" "$ofile" || \
- (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
- chmod +x "$ofile"
- else
- # If there is no Makefile yet, we rely on a make rule to execute
- # `config.status --recheck' to rerun these tests and create the
- # libtool script then.
- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
- if test -f "$ltmain_in"; then
- test -f Makefile && make "$ltmain"
- fi
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- CC="$lt_save_CC"
- # Check whether --with-tags was given.
- if test "${with_tags+set}" = set; then :
- withval=$with_tags; tagnames="$withval"
- fi
- if test -f "$ltmain" && test -n "$tagnames"; then
- if test ! -f "${ofile}"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
- $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
- fi
- if test -z "$LTCC"; then
- eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
- if test -z "$LTCC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
- $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
- $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
- fi
- fi
- if test -z "$LTCFLAGS"; then
- eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
- fi
- # Extract list of available tagged configurations in $ofile.
- # Note that this assumes the entire list is on one line.
- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
- for tagname in $tagnames; do
- IFS="$lt_save_ifs"
- # Check whether tagname contains only valid characters
- case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
- "") ;;
- *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
- ;;
- esac
- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
- then
- as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
- fi
- # Update the list of available tags.
- if test -n "$tagname"; then
- echo appending configuration tag \"$tagname\" to $ofile
- case $tagname in
- CXX)
- if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
- (test "X$CXX" != "Xg++"))) ; then
- ac_ext=cpp
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
- archive_cmds_need_lc_CXX=no
- allow_undefined_flag_CXX=
- always_export_symbols_CXX=no
- archive_expsym_cmds_CXX=
- export_dynamic_flag_spec_CXX=
- hardcode_direct_CXX=no
- hardcode_libdir_flag_spec_CXX=
- hardcode_libdir_flag_spec_ld_CXX=
- hardcode_libdir_separator_CXX=
- hardcode_minus_L_CXX=no
- hardcode_shlibpath_var_CXX=unsupported
- hardcode_automatic_CXX=no
- module_cmds_CXX=
- module_expsym_cmds_CXX=
- link_all_deplibs_CXX=unknown
- old_archive_cmds_CXX=$old_archive_cmds
- no_undefined_flag_CXX=
- whole_archive_flag_spec_CXX=
- enable_shared_with_static_runtimes_CXX=no
- # Dependencies to place before and after the object being linked:
- predep_objects_CXX=
- postdep_objects_CXX=
- predeps_CXX=
- postdeps_CXX=
- compiler_lib_search_path_CXX=
- compiler_lib_search_dirs_CXX=
- # Source file extension for C++ test sources.
- ac_ext=cpp
- # Object file extension for compiled C++ test sources.
- objext=o
- objext_CXX=$objext
- # Code to be used in simple compile tests
- lt_simple_compile_test_code="int some_variable = 0;"
- # Code to be used in simple link tests
- lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
- # ltmain only uses $CC for tagged configurations so make sure $CC is set.
- # If no C compiler was specified, use CC.
- LTCC=${LTCC-"$CC"}
- # If no C compiler flags were specified, use CFLAGS.
- LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
- # Allow CC to be a program name with arguments.
- compiler=$CC
- # save warnings/boilerplate of simple test code
- ac_outfile=conftest.$ac_objext
- echo "$lt_simple_compile_test_code" >conftest.$ac_ext
- eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
- _lt_compiler_boilerplate=`cat conftest.err`
- $rm conftest*
- ac_outfile=conftest.$ac_objext
- echo "$lt_simple_link_test_code" >conftest.$ac_ext
- eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
- _lt_linker_boilerplate=`cat conftest.err`
- $rm -r conftest*
- # Allow CC to be a program name with arguments.
- lt_save_CC=$CC
- lt_save_LD=$LD
- lt_save_GCC=$GCC
- GCC=$GXX
- lt_save_with_gnu_ld=$with_gnu_ld
- lt_save_path_LD=$lt_cv_path_LD
- if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
- lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
- else
- unset lt_cv_prog_gnu_ld
- fi
- if test -n "${lt_cv_path_LDCXX+set}"; then
- lt_cv_path_LD=$lt_cv_path_LDCXX
- else
- unset lt_cv_path_LD
- fi
- test -z "${LDCXX+set}" || LD=$LDCXX
- CC=${CXX-"c++"}
- compiler=$CC
- compiler_CXX=$CC
- for cc_temp in $compiler""; do
- case $cc_temp in
- compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
- distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
- \-*) ;;
- *) break;;
- esac
- done
- cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
- # We don't want -fno-exception wen compiling C++ code, so set the
- # no_builtin_flag separately
- if test "$GXX" = yes; then
- lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
- else
- lt_prog_compiler_no_builtin_flag_CXX=
- fi
- if test "$GXX" = yes; then
- # Set up default GNU C++ configuration
- # Check whether --with-gnu-ld was given.
- if test "${with_gnu_ld+set}" = set; then :
- withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
- else
- with_gnu_ld=no
- fi
- ac_prog=ld
- if test "$GCC" = yes; then
- # Check if gcc -print-prog-name=ld gives a path.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
- $as_echo_n "checking for ld used by $CC... " >&6; }
- case $host in
- *-*-mingw*)
- # gcc leaves a trailing carriage return which upsets mingw
- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
- *)
- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
- esac
- case $ac_prog in
- # Accept absolute paths.
- [\\/]* | ?:[\\/]*)
- re_direlt='/[^/][^/]*/\.\./'
- # Canonicalize the pathname of ld
- ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
- ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
- done
- test -z "$LD" && LD="$ac_prog"
- ;;
- "")
- # If it fails, then pretend we aren't using GCC.
- ac_prog=ld
- ;;
- *)
- # If it is relative, then search for the first ld in PATH.
- with_gnu_ld=unknown
- ;;
- esac
- elif test "$with_gnu_ld" = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
- $as_echo_n "checking for GNU ld... " >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
- $as_echo_n "checking for non-GNU ld... " >&6; }
- fi
- if ${lt_cv_path_LD+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -z "$LD"; then
- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
- for ac_dir in $PATH; do
- IFS="$lt_save_ifs"
- test -z "$ac_dir" && ac_dir=.
- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
- lt_cv_path_LD="$ac_dir/$ac_prog"
- # Check to see if the program is GNU ld. I'd rather use --version,
- # but apparently some variants of GNU ld only accept -v.
- # Break only if it was the GNU/non-GNU ld that we prefer.
- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
- *GNU* | *'with BFD'*)
- test "$with_gnu_ld" != no && break
- ;;
- *)
- test "$with_gnu_ld" != yes && break
- ;;
- esac
- fi
- done
- IFS="$lt_save_ifs"
- else
- lt_cv_path_LD="$LD" # Let the user override the test with a path.
- fi
- fi
- LD="$lt_cv_path_LD"
- if test -n "$LD"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
- $as_echo "$LD" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
- $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
- if ${lt_cv_prog_gnu_ld+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- # I'd rather use --version here, but apparently some GNU lds only accept -v.
- case `$LD -v 2>&1 </dev/null` in
- *GNU* | *'with BFD'*)
- lt_cv_prog_gnu_ld=yes
- ;;
- *)
- lt_cv_prog_gnu_ld=no
- ;;
- esac
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
- $as_echo "$lt_cv_prog_gnu_ld" >&6; }
- with_gnu_ld=$lt_cv_prog_gnu_ld
- # Check if GNU C++ uses GNU ld as the underlying linker, since the
- # archiving commands below assume that GNU ld is being used.
- if test "$with_gnu_ld" = yes; then
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
- export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
- # If archive_cmds runs LD, not CC, wlarc should be empty
- # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
- # investigate it a little bit more. (MM)
- wlarc='${wl}'
- # ancient GNU ld didn't support --whole-archive et. al.
- if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
- grep 'no-whole-archive' > /dev/null; then
- whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- else
- whole_archive_flag_spec_CXX=
- fi
- else
- with_gnu_ld=no
- wlarc=
- # A generic and very simple default shared library creation
- # command for GNU C++ for the case where it uses the native
- # linker, instead of GNU ld. If possible, this setting should
- # overridden to take advantage of the native linker features on
- # the platform it is being used on.
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
- fi
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
- else
- GXX=no
- with_gnu_ld=no
- wlarc=
- fi
- # PORTME: fill in a description of your system's C++ link characteristics
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
- $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
- ld_shlibs_CXX=yes
- case $host_os in
- aix3*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- aix[4-9]*)
- if test "$host_cpu" = ia64; then
- # On IA64, the linker does run time linking by default, so we don't
- # have to do anything special.
- aix_use_runtimelinking=no
- exp_sym_flag='-Bexport'
- no_entry_flag=""
- else
- aix_use_runtimelinking=no
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
- case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
- for ld_flag in $LDFLAGS; do
- case $ld_flag in
- *-brtl*)
- aix_use_runtimelinking=yes
- break
- ;;
- esac
- done
- ;;
- esac
- exp_sym_flag='-bexport'
- no_entry_flag='-bnoentry'
- fi
- # When large executables or shared objects are built, AIX ld can
- # have problems creating the table of contents. If linking a library
- # or program results in "error TOC overflow" add -mminimal-toc to
- # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
- # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
- archive_cmds_CXX=''
- hardcode_direct_CXX=yes
- hardcode_libdir_separator_CXX=':'
- link_all_deplibs_CXX=yes
- if test "$GXX" = yes; then
- case $host_os in aix4.[012]|aix4.[012].*)
- # We only want to do this on AIX 4.2 and lower, the check
- # below for broken collect2 doesn't work under 4.3+
- collect2name=`${CC} -print-prog-name=collect2`
- if test -f "$collect2name" && \
- strings "$collect2name" | grep resolve_lib_name >/dev/null
- then
- # We have reworked collect2
- :
- else
- # We have old collect2
- hardcode_direct_CXX=unsupported
- # It fails to find uninstalled libraries when the uninstalled
- # path is not listed in the libpath. Setting hardcode_minus_L
- # to unsupported forces relinking
- hardcode_minus_L_CXX=yes
- hardcode_libdir_flag_spec_CXX='-L$libdir'
- hardcode_libdir_separator_CXX=
- fi
- ;;
- esac
- shared_flag='-shared'
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag="$shared_flag "'${wl}-G'
- fi
- else
- # not using gcc
- if test "$host_cpu" = ia64; then
- # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
- # chokes on -Wl,-G. The following line is correct:
- shared_flag='-G'
- else
- if test "$aix_use_runtimelinking" = yes; then
- shared_flag='${wl}-G'
- else
- shared_flag='${wl}-bM:SRE'
- fi
- fi
- fi
- # It seems that -bexpall does not export symbols beginning with
- # underscore (_), so it is better to generate a list of symbols to export.
- always_export_symbols_CXX=yes
- if test "$aix_use_runtimelinking" = yes; then
- # Warning - without using the other runtime loading flags (-brtl),
- # -berok will link without error, but may produce a broken library.
- allow_undefined_flag_CXX='-berok'
- # Determine the default libpath from the value encoded in an empty executable.
- cat > conftest.$ac_ext <<EOF
- #line 103863 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && test -s conftest${ac_exeext}; then
- lt_aix_libpath_sed='
- /Import File Strings/,/^$/ {
- /^0/ {
- s/^0 *\(.*\)$/\1/
- p
- }
- }'
- aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
- # Check for a 64-bit object if we didn't find anything.
- if test -z "$aix_libpath"; then
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
- fi
- rm -rf conftest*
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&6
- fi
- rm -f conftest*
- if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
- hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
- archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
- else
- if test "$host_cpu" = ia64; then
- hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
- allow_undefined_flag_CXX="-z nodefs"
- archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
- else
- # Determine the default libpath from the value encoded in an empty executable.
- cat > conftest.$ac_ext <<EOF
- #line 103906 "configure"
- #include "confdefs.h"
- int main() {
- ; return 0; }
- EOF
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } && test -s conftest${ac_exeext}; then
- lt_aix_libpath_sed='
- /Import File Strings/,/^$/ {
- /^0/ {
- s/^0 *\(.*\)$/\1/
- p
- }
- }'
- aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
- # Check for a 64-bit object if we didn't find anything.
- if test -z "$aix_libpath"; then
- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
- fi
- rm -rf conftest*
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&6
- fi
- rm -f conftest*
- if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
- hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
- # Warning - without using the other run time loading flags,
- # -berok will link without error, but may produce a broken library.
- no_undefined_flag_CXX=' ${wl}-bernotok'
- allow_undefined_flag_CXX=' ${wl}-berok'
- # Exported symbols can be pulled into shared objects from archives
- whole_archive_flag_spec_CXX='$convenience'
- archive_cmds_need_lc_CXX=yes
- # This is similar to how AIX traditionally builds its shared libraries.
- archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
- fi
- fi
- ;;
- beos*)
- if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
- allow_undefined_flag_CXX=unsupported
- # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
- # support --undefined. This deserves some investigation. FIXME
- archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- else
- ld_shlibs_CXX=no
- fi
- ;;
- chorus*)
- case $cc_basename in
- *)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- esac
- ;;
- cygwin* | mingw* | pw32*)
- # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
- # as there is no search path for DLLs.
- hardcode_libdir_flag_spec_CXX='-L$libdir'
- allow_undefined_flag_CXX=unsupported
- always_export_symbols_CXX=no
- enable_shared_with_static_runtimes_CXX=yes
- if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- # If the export-symbols file already is a .def file (1st line
- # is EXPORTS), use it as is; otherwise, prepend...
- archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
- cp $export_symbols $output_objdir/$soname.def;
- else
- echo EXPORTS > $output_objdir/$soname.def;
- cat $export_symbols >> $output_objdir/$soname.def;
- fi~
- $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
- else
- ld_shlibs_CXX=no
- fi
- ;;
- darwin* | rhapsody*)
- archive_cmds_need_lc_CXX=no
- hardcode_direct_CXX=no
- hardcode_automatic_CXX=yes
- hardcode_shlibpath_var_CXX=unsupported
- whole_archive_flag_spec_CXX=''
- link_all_deplibs_CXX=yes
- allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
- if test "$GXX" = yes ; then
- output_verbose_link_cmd='echo'
- archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
- module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
- archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
- module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
- if test "$lt_cv_apple_cc_single_mod" != "yes"; then
- archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
- archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
- fi
- else
- case $cc_basename in
- xlc*)
- output_verbose_link_cmd='echo'
- archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
- module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
- # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
- archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
- ;;
- *)
- ld_shlibs_CXX=no
- ;;
- esac
- fi
- ;;
- dgux*)
- case $cc_basename in
- ec++*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- ghcx*)
- # Green Hills C++ Compiler
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- esac
- ;;
- freebsd[12].*)
- # C++ shared libraries reported to be fairly broken before switch to ELF
- ld_shlibs_CXX=no
- ;;
- freebsd-elf*)
- archive_cmds_need_lc_CXX=no
- ;;
- freebsd* | dragonfly*)
- # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
- # conventions
- ld_shlibs_CXX=yes
- ;;
- gnu*)
- ;;
- hpux9*)
- hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
- export_dynamic_flag_spec_CXX='${wl}-E'
- hardcode_direct_CXX=yes
- hardcode_minus_L_CXX=yes # Not in the search PATH,
- # but as the default
- # location of the library.
- case $cc_basename in
- CC*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- aCC*)
- archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes; then
- archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
- else
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- fi
- ;;
- esac
- ;;
- hpux10*|hpux11*)
- if test $with_gnu_ld = no; then
- hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
- case $host_cpu in
- hppa*64*|ia64*) ;;
- *)
- export_dynamic_flag_spec_CXX='${wl}-E'
- ;;
- esac
- fi
- case $host_cpu in
- hppa*64*|ia64*)
- hardcode_direct_CXX=no
- hardcode_shlibpath_var_CXX=no
- ;;
- *)
- hardcode_direct_CXX=yes
- hardcode_minus_L_CXX=yes # Not in the search PATH,
- # but as the default
- # location of the library.
- ;;
- esac
- case $cc_basename in
- CC*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- aCC*)
- case $host_cpu in
- hppa*64*)
- archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- ia64*)
- archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- *)
- archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- esac
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes; then
- if test $with_gnu_ld = no; then
- case $host_cpu in
- hppa*64*)
- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- ia64*)
- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- *)
- archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- ;;
- esac
- fi
- else
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- fi
- ;;
- esac
- ;;
- interix[3-9]*)
- hardcode_direct_CXX=no
- hardcode_shlibpath_var_CXX=no
- hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
- export_dynamic_flag_spec_CXX='${wl}-E'
- # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
- # Instead, shared libraries are loaded at an image base (0x10000000 by
- # default) and relocated if they conflict, which is a slow very memory
- # consuming and fragmenting process. To avoid this, we pick a random,
- # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
- # time. Moving up from 0x10000000 also allows more sbrk(2) space.
- archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
- ;;
- irix5* | irix6*)
- case $cc_basename in
- CC*)
- # SGI C++
- archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- # Archives containing C++ object files must be created using
- # "CC -ar", where "CC" is the IRIX C++ compiler. This is
- # necessary to make sure instantiated templates are included
- # in the archive.
- old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
- ;;
- *)
- if test "$GXX" = yes; then
- if test "$with_gnu_ld" = no; then
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- else
- archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
- fi
- fi
- link_all_deplibs_CXX=yes
- ;;
- esac
- hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
- ;;
- linux* | k*bsd*-gnu)
- case $cc_basename in
- KCC*)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
- archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
- export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
- # Archives containing C++ object files must be created using
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
- old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
- ;;
- icpc*)
- # Intel C++
- with_gnu_ld=yes
- # version 8.0 and above of icpc choke on multiply defined symbols
- # if we add $predep_objects and $postdep_objects, however 7.1 and
- # earlier do not add the objects themselves.
- case `$CC -V 2>&1` in
- *"Version 7."*)
- archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- ;;
- *) # Version 8.0 or newer
- tmp_idyn=
- case $host_cpu in
- ia64*) tmp_idyn=' -i_dynamic';;
- esac
- archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
- ;;
- esac
- archive_cmds_need_lc_CXX=no
- hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
- export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
- whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
- ;;
- pgCC* | pgcpp*)
- # Portland Group C++ compiler
- archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
- archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
- hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
- export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
- whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- ;;
- cxx*)
- # Compaq C++
- archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
- runpath_var=LD_RUN_PATH
- hardcode_libdir_flag_spec_CXX='-rpath $libdir'
- hardcode_libdir_separator_CXX=:
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- case `$CC -V 2>&1 | sed 5q` in
- *Sun\ C*)
- # Sun C++ 5.9
- no_undefined_flag_CXX=' -zdefs'
- archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
- hardcode_libdir_flag_spec_CXX='-R$libdir'
- whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
- # Not sure whether something based on
- # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
- # would be better.
- output_verbose_link_cmd='echo'
- # Archives containing C++ object files must be created using
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
- # necessary to make sure instantiated templates are included
- # in the archive.
- old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
- ;;
- esac
- ;;
- esac
- ;;
- lynxos*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- m88k*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- mvs*)
- case $cc_basename in
- cxx*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- esac
- ;;
- netbsd*)
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
- wlarc=
- hardcode_libdir_flag_spec_CXX='-R$libdir'
- hardcode_direct_CXX=yes
- hardcode_shlibpath_var_CXX=no
- fi
- # Workaround some broken pre-1.5 toolchains
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
- ;;
- openbsd2*)
- # C++ shared libraries are fairly broken
- ld_shlibs_CXX=no
- ;;
- openbsd*)
- if test -f /usr/libexec/ld.so; then
- hardcode_direct_CXX=yes
- hardcode_shlibpath_var_CXX=no
- archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
- hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
- export_dynamic_flag_spec_CXX='${wl}-E'
- whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
- fi
- output_verbose_link_cmd='echo'
- else
- ld_shlibs_CXX=no
- fi
- ;;
- osf3*)
- case $cc_basename in
- KCC*)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
- hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
- hardcode_libdir_separator_CXX=:
- # Archives containing C++ object files must be created using
- # "CC -Bstatic", where "CC" is the KAI C++ compiler.
- old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
- ;;
- RCC*)
- # Rational C++ 2.4.1
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- cxx*)
- allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
- else
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- fi
- ;;
- esac
- ;;
- osf4* | osf5*)
- case $cc_basename in
- KCC*)
- # Kuck and Associates, Inc. (KAI) C++ Compiler
- # KCC will only create a shared library if the output file
- # ends with ".so" (or ".sl" for HP-UX), so rename the library
- # to its proper name (with version) after linking.
- archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
- hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
- hardcode_libdir_separator_CXX=:
- # Archives containing C++ object files must be created using
- # the KAI C++ compiler.
- old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
- ;;
- RCC*)
- # Rational C++ 2.4.1
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- cxx*)
- allow_undefined_flag_CXX=' -expect_unresolved \*'
- archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
- archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
- echo "-hidden">> $lib.exp~
- $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
- $rm $lib.exp'
- hardcode_libdir_flag_spec_CXX='-rpath $libdir'
- hardcode_libdir_separator_CXX=:
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- #
- # There doesn't appear to be a way to prevent this compiler from
- # explicitly linking system object files so we need to strip them
- # from the output so that they don't get included in the library
- # dependencies.
- output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
- ;;
- *)
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
- archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
- hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
- hardcode_libdir_separator_CXX=:
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
- else
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- fi
- ;;
- esac
- ;;
- psos*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- sunos4*)
- case $cc_basename in
- CC*)
- # Sun C++ 4.x
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- lcc*)
- # Lucid
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- esac
- ;;
- solaris*)
- case $cc_basename in
- CC*)
- # Sun C++ 4.2, 5.x and Centerline C++
- archive_cmds_need_lc_CXX=yes
- no_undefined_flag_CXX=' -zdefs'
- archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
- archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
- hardcode_libdir_flag_spec_CXX='-R$libdir'
- hardcode_shlibpath_var_CXX=no
- case $host_os in
- solaris2.[0-5] | solaris2.[0-5].*) ;;
- *)
- # The compiler driver will combine and reorder linker options,
- # but understands `-z linker_flag'.
- # Supported since Solaris 2.6 (maybe 2.5.1?)
- whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
- ;;
- esac
- link_all_deplibs_CXX=yes
- output_verbose_link_cmd='echo'
- # Archives containing C++ object files must be created using
- # "CC -xar", where "CC" is the Sun C++ compiler. This is
- # necessary to make sure instantiated templates are included
- # in the archive.
- old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
- ;;
- gcx*)
- # Green Hills C++ Compiler
- archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
- # The C++ compiler must be used to create the archive.
- old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
- ;;
- *)
- # GNU C++ compiler with Solaris linker
- if test "$GXX" = yes && test "$with_gnu_ld" = no; then
- no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
- if $CC --version | grep -v '^2\.7' > /dev/null; then
- archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
- else
- # g++ 2.7 appears to require `-G' NOT `-shared' on this
- # platform.
- archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
- archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
- $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
- # Commands to make compiler produce verbose output that lists
- # what "hidden" libraries, object files and flags are used when
- # linking a shared library.
- output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
- fi
- hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
- case $host_os in
- solaris2.[0-5] | solaris2.[0-5].*) ;;
- *)
- whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
- ;;
- esac
- fi
- ;;
- esac
- ;;
- sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
- no_undefined_flag_CXX='${wl}-z,text'
- archive_cmds_need_lc_CXX=no
- hardcode_shlibpath_var_CXX=no
- runpath_var='LD_RUN_PATH'
- case $cc_basename in
- CC*)
- archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- ;;
- sysv5* | sco3.2v5* | sco5v6*)
- # Note: We can NOT use -z defs as we might desire, because we do not
- # link with -lc, and that would cause any symbols used from libc to
- # always be unresolved, which means just about no library would
- # ever link correctly. If we're not using GNU ld we use -z text
- # though, which does catch some bad symbols but isn't as heavy-handed
- # as -z defs.
- # For security reasons, it is highly recommended that you always
- # use absolute paths for naming shared libraries, and exclude the
- # DT_RUNPATH tag from executables and libraries. But doing so
- # requires that you compile everything twice, which is a pain.
- # So that behaviour is only enabled if SCOABSPATH is set to a
- # non-empty value in the environment. Most likely only useful for
- # creating official distributions of packages.
- # This is a hack until libtool officially supports absolute path
- # names for shared libraries.
- no_undefined_flag_CXX='${wl}-z,text'
- allow_undefined_flag_CXX='${wl}-z,nodefs'
- archive_cmds_need_lc_CXX=no
- hardcode_shlibpath_var_CXX=no
- hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
- hardcode_libdir_separator_CXX=':'
- link_all_deplibs_CXX=yes
- export_dynamic_flag_spec_CXX='${wl}-Bexport'
- runpath_var='LD_RUN_PATH'
- case $cc_basename in
- CC*)
- archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- *)
- archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
- ;;
- esac
- ;;
- tandem*)
- case $cc_basename in
- NCC*)
- # NonStop-UX NCC 3.20
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- esac
- ;;
- vxworks*)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- *)
- # FIXME: insert proper C++ library support
- ld_shlibs_CXX=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
- $as_echo "$ld_shlibs_CXX" >&6; }
- test "$ld_shlibs_CXX" = no && can_build_shared=no
- GCC_CXX="$GXX"
- LD_CXX="$LD"
- ## CAVEAT EMPTOR:
- ## There is no encapsulation within the following macros, do not change
- ## the running order or otherwise move them around unless you know exactly
- ## what you are doing...
- cat > conftest.$ac_ext <<EOF
- class Foo
- {
- public:
- Foo (void) { a = 0; }
- private:
- int a;
- };
- EOF
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- # Parse the compiler output and extract the necessary
- # objects, libraries and library flags.
- # Sentinel used to keep track of whether or not we are before
- # the conftest object file.
- pre_test_object_deps_done=no
- # The `*' in the case matches for architectures that use `case' in
- # $output_verbose_cmd can trigger glob expansion during the loop
- # eval without this substitution.
- output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
- for p in `eval $output_verbose_link_cmd`; do
- case $p in
- -L* | -R* | -l*)
- # Some compilers place space between "-{L,R}" and the path.
- # Remove the space.
- if test $p = "-L" \
- || test $p = "-R"; then
- prev=$p
- continue
- else
- prev=
- fi
- if test "$pre_test_object_deps_done" = no; then
- case $p in
- -L* | -R*)
- # Internal compiler library paths should come after those
- # provided the user. The postdeps already come after the
- # user supplied libs so there is no need to process them.
- if test -z "$compiler_lib_search_path_CXX"; then
- compiler_lib_search_path_CXX="${prev}${p}"
- else
- compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
- fi
- ;;
- # The "-l" case would never come before the object being
- # linked, so don't bother handling this case.
- esac
- else
- if test -z "$postdeps_CXX"; then
- postdeps_CXX="${prev}${p}"
- else
- postdeps_CXX="${postdeps_CXX} ${prev}${p}"
- fi
- fi
- ;;
- *.$objext)
- # This assumes that the test object file only shows up
- # once in the compiler output.
- if test "$p" = "conftest.$objext"; then
- pre_test_object_deps_done=yes
- continue
- fi
- if test "$pre_test_object_deps_done" = no; then
- if test -z "$predep_objects_CXX"; then
- predep_objects_CXX="$p"
- else
- predep_objects_CXX="$predep_objects_CXX $p"
- fi
- else
- if test -z "$postdep_objects_CXX"; then
- postdep_objects_CXX="$p"
- else
- postdep_objects_CXX="$postdep_objects_CXX $p"
- fi
- fi
- ;;
- *) ;; # Ignore the rest.
- esac
- done
- # Clean up.
- rm -f a.out a.exe
- else
- echo "libtool.m4: error: problem compiling CXX test program"
- fi
- $rm -f confest.$objext
- compiler_lib_search_dirs_CXX=
- if test -n "$compiler_lib_search_path_CXX"; then
- compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
- fi
- # PORTME: override above test on systems where it is broken
- case $host_os in
- interix[3-9]*)
- # Interix 3.5 installs completely hosed .la files for C++, so rather than
- # hack all around it, let's just trust "g++" to DTRT.
- predep_objects_CXX=
- postdep_objects_CXX=
- postdeps_CXX=
- ;;
- linux*)
- case `$CC -V 2>&1 | sed 5q` in
- *Sun\ C*)
- # Sun C++ 5.9
- #
- # The more standards-conforming stlport4 library is
- # incompatible with the Cstd library. Avoid specifying
- # it if it's in CXXFLAGS. Ignore libCrun as
- # -library=stlport4 depends on it.
- case " $CXX $CXXFLAGS " in
- *" -library=stlport4 "*)
- solaris_use_stlport4=yes
- ;;
- esac
- if test "$solaris_use_stlport4" != yes; then
- postdeps_CXX='-library=Cstd -library=Crun'
- fi
- ;;
- esac
- ;;
- solaris*)
- case $cc_basename in
- CC*)
- # The more standards-conforming stlport4 library is
- # incompatible with the Cstd library. Avoid specifying
- # it if it's in CXXFLAGS. Ignore libCrun as
- # -library=stlport4 depends on it.
- case " $CXX $CXXFLAGS " in
- *" -library=stlport4 "*)
- solaris_use_stlport4=yes
- ;;
- esac
- # Adding this requires a known-good setup of shared libraries for
- # Sun compiler versions before 5.6, else PIC objects from an old
- # archive will be linked into the output, leading to subtle bugs.
- if test "$solaris_use_stlport4" != yes; then
- postdeps_CXX='-library=Cstd -library=Crun'
- fi
- ;;
- esac
- ;;
- esac
- case " $postdeps_CXX " in
- *" -lc "*) archive_cmds_need_lc_CXX=no ;;
- esac
- lt_prog_compiler_wl_CXX=
- lt_prog_compiler_pic_CXX=
- lt_prog_compiler_static_CXX=
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
- $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
- # C++ specific cases for pic, static, wl, etc.
- if test "$GXX" = yes; then
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_static_CXX='-static'
- case $host_os in
- aix*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_prog_compiler_static_CXX='-Bstatic'
- fi
- ;;
- amigaos*)
- # FIXME: we need at least 68020 code to build shared libraries, but
- # adding the `-m68020' flag to GCC prevents building anything better,
- # like `-m68040'.
- lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
- ;;
- beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
- # PIC is the default for these OSes.
- ;;
- mingw* | cygwin* | os2* | pw32*)
- # This hack is so that the source file can tell whether it is being
- # built for inclusion in a dll (and should export symbols for example).
- # Although the cygwin gcc ignores -fPIC, still need this for old-style
- # (--disable-auto-import) libraries
- lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
- ;;
- darwin* | rhapsody*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- lt_prog_compiler_pic_CXX='-fno-common'
- ;;
- *djgpp*)
- # DJGPP does not support shared libraries at all
- lt_prog_compiler_pic_CXX=
- ;;
- interix[3-9]*)
- # Interix 3.x gcc -fpic/-fPIC options generate broken code.
- # Instead, we relocate shared libraries at runtime.
- ;;
- sysv4*MP*)
- if test -d /usr/nec; then
- lt_prog_compiler_pic_CXX=-Kconform_pic
- fi
- ;;
- hpux*)
- # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
- # not for PA HP-UX.
- case $host_cpu in
- hppa*64*|ia64*)
- ;;
- *)
- lt_prog_compiler_pic_CXX='-fPIC'
- ;;
- esac
- ;;
- *)
- lt_prog_compiler_pic_CXX='-fPIC'
- ;;
- esac
- else
- case $host_os in
- aix[4-9]*)
- # All AIX code is PIC.
- if test "$host_cpu" = ia64; then
- # AIX 5 now supports IA64 processor
- lt_prog_compiler_static_CXX='-Bstatic'
- else
- lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
- fi
- ;;
- chorus*)
- case $cc_basename in
- cxch68*)
- # Green Hills C++ Compiler
- # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
- ;;
- esac
- ;;
- darwin*)
- # PIC is the default on this platform
- # Common symbols not allowed in MH_DYLIB files
- case $cc_basename in
- xlc*)
- lt_prog_compiler_pic_CXX='-qnocommon'
- lt_prog_compiler_wl_CXX='-Wl,'
- ;;
- esac
- ;;
- dgux*)
- case $cc_basename in
- ec++*)
- lt_prog_compiler_pic_CXX='-KPIC'
- ;;
- ghcx*)
- # Green Hills C++ Compiler
- lt_prog_compiler_pic_CXX='-pic'
- ;;
- *)
- ;;
- esac
- ;;
- freebsd* | dragonfly*)
- # FreeBSD uses GNU C++
- ;;
- hpux9* | hpux10* | hpux11*)
- case $cc_basename in
- CC*)
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
- if test "$host_cpu" != ia64; then
- lt_prog_compiler_pic_CXX='+Z'
- fi
- ;;
- aCC*)
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
- case $host_cpu in
- hppa*64*|ia64*)
- # +Z the default
- ;;
- *)
- lt_prog_compiler_pic_CXX='+Z'
- ;;
- esac
- ;;
- *)
- ;;
- esac
- ;;
- interix*)
- # This is c89, which is MS Visual C++ (no shared libs)
- # Anyone wants to do a port?
- ;;
- irix5* | irix6* | nonstopux*)
- case $cc_basename in
- CC*)
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_static_CXX='-non_shared'
- # CC pic flag -KPIC is the default.
- ;;
- *)
- ;;
- esac
- ;;
- linux* | k*bsd*-gnu)
- case $cc_basename in
- KCC*)
- # KAI C++ Compiler
- lt_prog_compiler_wl_CXX='--backend -Wl,'
- lt_prog_compiler_pic_CXX='-fPIC'
- ;;
- ecpc*)
- # old Intel C++ for x86_64 which still supported -KPIC.
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_pic_CXX='-KPIC'
- lt_prog_compiler_static_CXX='-static'
- ;;
- icpc*)
- # Intel C++, used to be incompatible with GCC.
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_pic_CXX='-fPIC'
- lt_prog_compiler_static_CXX='-static'
- ;;
- pgCC* | pgcpp*)
- # Portland Group C++ compiler.
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_pic_CXX='-fpic'
- lt_prog_compiler_static_CXX='-Bstatic'
- ;;
- cxx*)
- # Compaq C++
- # Make sure the PIC flag is empty. It appears that all Alpha
- # Linux and Compaq Tru64 Unix objects are PIC.
- lt_prog_compiler_pic_CXX=
- lt_prog_compiler_static_CXX='-non_shared'
- ;;
- *)
- case `$CC -V 2>&1 | sed 5q` in
- *Sun\ C*)
- # Sun C++ 5.9
- lt_prog_compiler_pic_CXX='-KPIC'
- lt_prog_compiler_static_CXX='-Bstatic'
- lt_prog_compiler_wl_CXX='-Qoption ld '
- ;;
- esac
- ;;
- esac
- ;;
- lynxos*)
- ;;
- m88k*)
- ;;
- mvs*)
- case $cc_basename in
- cxx*)
- lt_prog_compiler_pic_CXX='-W c,exportall'
- ;;
- *)
- ;;
- esac
- ;;
- netbsd*)
- ;;
- osf3* | osf4* | osf5*)
- case $cc_basename in
- KCC*)
- lt_prog_compiler_wl_CXX='--backend -Wl,'
- ;;
- RCC*)
- # Rational C++ 2.4.1
- lt_prog_compiler_pic_CXX='-pic'
- ;;
- cxx*)
- # Digital/Compaq C++
- lt_prog_compiler_wl_CXX='-Wl,'
- # Make sure the PIC flag is empty. It appears that all Alpha
- # Linux and Compaq Tru64 Unix objects are PIC.
- lt_prog_compiler_pic_CXX=
- lt_prog_compiler_static_CXX='-non_shared'
- ;;
- *)
- ;;
- esac
- ;;
- psos*)
- ;;
- solaris*)
- case $cc_basename in
- CC*)
- # Sun C++ 4.2, 5.x and Centerline C++
- lt_prog_compiler_pic_CXX='-KPIC'
- lt_prog_compiler_static_CXX='-Bstatic'
- lt_prog_compiler_wl_CXX='-Qoption ld '
- ;;
- gcx*)
- # Green Hills C++ Compiler
- lt_prog_compiler_pic_CXX='-PIC'
- ;;
- *)
- ;;
- esac
- ;;
- sunos4*)
- case $cc_basename in
- CC*)
- # Sun C++ 4.x
- lt_prog_compiler_pic_CXX='-pic'
- lt_prog_compiler_static_CXX='-Bstatic'
- ;;
- lcc*)
- # Lucid
- lt_prog_compiler_pic_CXX='-pic'
- ;;
- *)
- ;;
- esac
- ;;
- tandem*)
- case $cc_basename in
- NCC*)
- # NonStop-UX NCC 3.20
- lt_prog_compiler_pic_CXX='-KPIC'
- ;;
- *)
- ;;
- esac
- ;;
- sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
- case $cc_basename in
- CC*)
- lt_prog_compiler_wl_CXX='-Wl,'
- lt_prog_compiler_pic_CXX='-KPIC'
- lt_prog_compiler_static_CXX='-Bstatic'
- ;;
- esac
- ;;
- vxworks*)
- ;;
- *)
- lt_prog_compiler_can_build_shared_CXX=no
- ;;
- esac
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
- $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
- #
- # Check to make sure the PIC flag actually works.
- #
- if test -n "$lt_prog_compiler_pic_CXX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
- $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
- if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_prog_compiler_pic_works_CXX=no
- ac_outfile=conftest.$ac_objext
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- # The option is referenced via a variable to avoid confusing sed.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"configure:105158: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>conftest.err)
- ac_status=$?
- cat conftest.err >&5
- echo "configure:105162: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s "$ac_outfile"; then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings other than the usual output.
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_pic_works_CXX=yes
- fi
- fi
- $rm conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
- $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
- if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
- case $lt_prog_compiler_pic_CXX in
- "" | " "*) ;;
- *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
- esac
- else
- lt_prog_compiler_pic_CXX=
- lt_prog_compiler_can_build_shared_CXX=no
- fi
- fi
- case $host_os in
- # For platforms which do not support PIC, -DPIC is meaningless:
- *djgpp*)
- lt_prog_compiler_pic_CXX=
- ;;
- *)
- lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
- ;;
- esac
- #
- # Check to make sure the static flag actually works.
- #
- wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
- $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
- if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_prog_compiler_static_works_CXX=no
- save_LDFLAGS="$LDFLAGS"
- LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
- echo "$lt_simple_link_test_code" > conftest.$ac_ext
- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
- # The linker can only warn and ignore the option if not recognized
- # So say no if there are warnings
- if test -s conftest.err; then
- # Append any errors to the config.log.
- cat conftest.err 1>&5
- $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
- if diff conftest.exp conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_static_works_CXX=yes
- fi
- else
- lt_cv_prog_compiler_static_works_CXX=yes
- fi
- fi
- $rm -r conftest*
- LDFLAGS="$save_LDFLAGS"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
- $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
- if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
- :
- else
- lt_prog_compiler_static_CXX=
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
- $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
- if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_prog_compiler_c_o_CXX=no
- $rm -r conftest 2>/dev/null
- mkdir conftest
- cd conftest
- mkdir out
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
- lt_compiler_flag="-o out/conftest2.$ac_objext"
- # Insert the option either (1) after the last *FLAGS variable, or
- # (2) before a word containing "conftest.", or (3) at the end.
- # Note that $ac_compile itself does not contain backslashes and begins
- # with a dollar sign (not a hyphen), so the echo should work correctly.
- lt_compile=`echo "$ac_compile" | $SED \
- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
- -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
- -e 's:$: $lt_compiler_flag:'`
- (eval echo "\"configure:105262: $lt_compile\"" >&5)
- (eval "$lt_compile" 2>out/conftest.err)
- ac_status=$?
- cat out/conftest.err >&5
- echo "configure:105266: \$? = $ac_status" >&5
- if (exit $ac_status) && test -s out/conftest2.$ac_objext
- then
- # The compiler can only warn and ignore the option if not recognized
- # So say no if there are warnings
- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
- lt_cv_prog_compiler_c_o_CXX=yes
- fi
- fi
- chmod u+w . 2>&5
- $rm conftest*
- # SGI C++ compiler will create directory out/ii_files/ for
- # template instantiation
- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
- $rm out/* && rmdir out
- cd ..
- rmdir conftest
- $rm conftest*
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
- $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
- hard_links="nottested"
- if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
- # do not overwrite the value of need_locks provided by the user
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
- $as_echo_n "checking if we can lock with hard links... " >&6; }
- hard_links=yes
- $rm conftest*
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- touch conftest.a
- ln conftest.a conftest.b 2>&5 || hard_links=no
- ln conftest.a conftest.b 2>/dev/null && hard_links=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
- $as_echo "$hard_links" >&6; }
- if test "$hard_links" = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
- $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
- need_locks=warn
- fi
- else
- need_locks=no
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
- $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- case $host_os in
- aix[4-9]*)
- # If we're using GNU nm, then we don't want the "-C" option.
- # -C means demangle to AIX nm, but means don't demangle with GNU nm
- if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
- export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
- else
- export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
- fi
- ;;
- pw32*)
- export_symbols_cmds_CXX="$ltdll_cmds"
- ;;
- cygwin* | mingw*)
- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
- ;;
- *)
- export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
- ;;
- esac
- exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
- $as_echo "$ld_shlibs_CXX" >&6; }
- test "$ld_shlibs_CXX" = no && can_build_shared=no
- #
- # Do we need to explicitly link libc?
- #
- case "x$archive_cmds_need_lc_CXX" in
- x|xyes)
- # Assume -lc should be added
- archive_cmds_need_lc_CXX=yes
- if test "$enable_shared" = yes && test "$GCC" = yes; then
- case $archive_cmds_CXX in
- *'~'*)
- # FIXME: we may have to deal with multi-command sequences.
- ;;
- '$CC '*)
- # Test whether the compiler implicitly links with -lc since on some
- # systems, -lgcc has to come before -lc. If gcc already passes -lc
- # to ld, don't add -lc before -lgcc.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
- $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
- $rm conftest*
- echo "$lt_simple_compile_test_code" > conftest.$ac_ext
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; } 2>conftest.err; then
- soname=conftest
- lib=conftest
- libobjs=conftest.$ac_objext
- deplibs=
- wl=$lt_prog_compiler_wl_CXX
- pic_flag=$lt_prog_compiler_pic_CXX
- compiler_flags=-v
- linker_flags=-v
- verstring=
- output_objdir=.
- libname=conftest
- lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
- allow_undefined_flag_CXX=
- if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
- (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }
- then
- archive_cmds_need_lc_CXX=no
- else
- archive_cmds_need_lc_CXX=yes
- fi
- allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
- else
- cat conftest.err 1>&5
- fi
- $rm conftest*
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
- $as_echo "$archive_cmds_need_lc_CXX" >&6; }
- ;;
- esac
- fi
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
- $as_echo_n "checking dynamic linker characteristics... " >&6; }
- library_names_spec=
- libname_spec='lib$name'
- soname_spec=
- shrext_cmds=".so"
- postinstall_cmds=
- postuninstall_cmds=
- finish_cmds=
- finish_eval=
- shlibpath_var=
- shlibpath_overrides_runpath=unknown
- version_type=none
- dynamic_linker="$host_os ld.so"
- sys_lib_dlsearch_path_spec="/lib /usr/lib"
- need_lib_prefix=unknown
- hardcode_into_libs=no
- # when you set need_version to no, make sure it does not cause -set_version
- # flags to be left without arguments
- need_version=unknown
- case $host_os in
- aix3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
- shlibpath_var=LIBPATH
- # AIX 3 has no versioning support, so we append a major version to the name.
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
- aix[4-9]*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- hardcode_into_libs=yes
- if test "$host_cpu" = ia64; then
- # AIX 5 supports IA64
- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- else
- # With GCC up to 2.95.x, collect2 would create an import file
- # for dependence libraries. The import file would start with
- # the line `#! .'. This would cause the generated library to
- # depend on `.', always an invalid library. This was fixed in
- # development snapshots of GCC prior to 3.0.
- case $host_os in
- aix4 | aix4.[01] | aix4.[01].*)
- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
- echo ' yes '
- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
- :
- else
- can_build_shared=no
- fi
- ;;
- esac
- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
- # soname into executable. Probably we can add versioning support to
- # collect2, so additional links can be useful in future.
- if test "$aix_use_runtimelinking" = yes; then
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so
- # instead of lib<name>.a to let people know that these are not
- # typical AIX shared libraries.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- else
- # We preserve .a as extension for shared libraries through AIX4.2
- # and later when we are not doing run time linking.
- library_names_spec='${libname}${release}.a $libname.a'
- soname_spec='${libname}${release}${shared_ext}$major'
- fi
- shlibpath_var=LIBPATH
- fi
- ;;
- amigaos*)
- library_names_spec='$libname.ixlibrary $libname.a'
- # Create ${libname}_ixlibrary.a entries in /sys/libs.
- finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
- ;;
- beos*)
- library_names_spec='${libname}${shared_ext}'
- dynamic_linker="$host_os ld.so"
- shlibpath_var=LIBRARY_PATH
- ;;
- bsdi[45]*)
- version_type=linux
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
- # the default ld.so.conf also contains /usr/contrib/lib and
- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
- # libtool to hard-code these into programs
- ;;
- cygwin* | mingw* | pw32*)
- version_type=windows
- shrext_cmds=".dll"
- need_version=no
- need_lib_prefix=no
- case $GCC,$host_os in
- yes,cygwin* | yes,mingw* | yes,pw32*)
- library_names_spec='$libname.dll.a'
- # DLL is installed to $(libdir)/../bin by postinstall_cmds
- postinstall_cmds='base_file=`basename \${file}`~
- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
- dldir=$destdir/`dirname \$dlpath`~
- test -d \$dldir || mkdir -p \$dldir~
- $install_prog $dir/$dlname \$dldir/$dlname~
- chmod a+x \$dldir/$dlname'
- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
- dlpath=$dir/\$dldll~
- $rm \$dlpath'
- shlibpath_overrides_runpath=yes
- case $host_os in
- cygwin*)
- # Cygwin DLLs use 'cyg' prefix rather than 'lib'
- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
- ;;
- mingw*)
- # MinGW DLLs use traditional 'lib' prefix
- soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
- if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
- # It is most probably a Windows format PATH printed by
- # mingw gcc, but we are running on Cygwin. Gcc prints its search
- # path with ; separators, and with drive letters. We can handle the
- # drive letters (cygwin fileutils understands them), so leave them,
- # especially as we might pass files found there to a mingw objdump,
- # which wouldn't understand a cygwinified path. Ahh.
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
- else
- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
- fi
- ;;
- pw32*)
- # pw32 DLLs use 'pw' prefix rather than 'lib'
- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
- ;;
- esac
- ;;
- *)
- library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
- ;;
- esac
- dynamic_linker='Win32 ld.exe'
- # FIXME: first we should search . and the directory the executable is in
- shlibpath_var=PATH
- ;;
- darwin* | rhapsody*)
- dynamic_linker="$host_os dyld"
- version_type=darwin
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
- soname_spec='${libname}${release}${major}$shared_ext'
- shlibpath_overrides_runpath=yes
- shlibpath_var=DYLD_LIBRARY_PATH
- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
- ;;
- dgux*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
- freebsd* | dragonfly*)
- # DragonFly does not have aout. When/if they implement a new
- # versioning mechanism, adjust this.
- if test -x /usr/bin/objformat; then
- objformat=`/usr/bin/objformat`
- else
- case $host_os in
- freebsd[123].*) objformat=aout ;;
- *) objformat=elf ;;
- esac
- fi
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- need_version=no
- need_lib_prefix=no
- ;;
- freebsd-*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
- need_version=yes
- ;;
- esac
- shlibpath_var=LD_LIBRARY_PATH
- case $host_os in
- freebsd2*)
- shlibpath_overrides_runpath=yes
- ;;
- freebsd3.[01]* | freebsdelf3.[01]*)
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
- freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
- *) # from 4.6 on, and DragonFly
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- esac
- ;;
- gnu*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- ;;
- hpux9* | hpux10* | hpux11*)
- # Give a soname corresponding to the major version so that dld.sl refuses to
- # link against other versions.
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- case $host_cpu in
- ia64*)
- shrext_cmds='.so'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.so"
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- if test "X$HPUX_IA64_MODE" = X32; then
- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
- else
- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
- fi
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- hppa*64*)
- shrext_cmds='.sl'
- hardcode_into_libs=yes
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
- ;;
- *)
- shrext_cmds='.sl'
- dynamic_linker="$host_os dld.sl"
- shlibpath_var=SHLIB_PATH
- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- ;;
- esac
- # HP-UX runs *really* slowly unless shared libraries are mode 555.
- postinstall_cmds='chmod 555 $lib'
- ;;
- interix[3-9]*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- ;;
- irix5* | irix6* | nonstopux*)
- case $host_os in
- nonstopux*) version_type=nonstopux ;;
- *)
- if test "$lt_cv_prog_gnu_ld" = yes; then
- version_type=linux
- else
- version_type=irix
- fi ;;
- esac
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
- case $host_os in
- irix5* | nonstopux*)
- libsuff= shlibsuff=
- ;;
- *)
- case $LD in # libtool.m4 will add one of these switches to LD
- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
- libsuff= shlibsuff= libmagic=32-bit;;
- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
- libsuff=32 shlibsuff=N32 libmagic=N32;;
- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
- libsuff=64 shlibsuff=64 libmagic=64-bit;;
- *) libsuff= shlibsuff= libmagic=never-match;;
- esac
- ;;
- esac
- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
- hardcode_into_libs=yes
- ;;
- # No shared lib support for Linux oldld, aout, or coff.
- linux*oldld* | linux*aout* | linux*coff*)
- dynamic_linker=no
- ;;
- # This must be Linux ELF.
- linux* | k*bsd*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- # This implies no fast_install, which is unacceptable.
- # Some rework will be needed to allow for fast_install
- # before this can be enabled.
- hardcode_into_libs=yes
- # Append ld.so.conf contents to the search path
- if test -f /etc/ld.so.conf; then
- lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
- fi
- # We used to test for /lib/ld.so.1 and disable shared libraries on
- # powerpc, because MkLinux only supported shared libraries with the
- # GNU dynamic linker. Since this was broken with cross compilers,
- # most powerpc-linux boxes support dynamic linking these days and
- # people can always --disable-shared, the test was removed, and we
- # assume the GNU/Linux dynamic linker is in use.
- dynamic_linker='GNU/Linux ld.so'
- ;;
- netbsd*)
- version_type=sunos
- need_lib_prefix=no
- need_version=no
- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- dynamic_linker='NetBSD (a.out) ld.so'
- else
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- dynamic_linker='NetBSD ld.elf_so'
- fi
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- ;;
- newsos6)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
- nto-qnx*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- ;;
- openbsd*)
- version_type=sunos
- sys_lib_dlsearch_path_spec="/usr/lib"
- need_lib_prefix=no
- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
- case $host_os in
- openbsd3.3 | openbsd3.3.*) need_version=yes ;;
- *) need_version=no ;;
- esac
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
- case $host_os in
- openbsd2.[89] | openbsd2.[89].*)
- shlibpath_overrides_runpath=no
- ;;
- *)
- shlibpath_overrides_runpath=yes
- ;;
- esac
- else
- shlibpath_overrides_runpath=yes
- fi
- ;;
- os2*)
- libname_spec='$name'
- shrext_cmds=".dll"
- need_lib_prefix=no
- library_names_spec='$libname${shared_ext} $libname.a'
- dynamic_linker='OS/2 ld.exe'
- shlibpath_var=LIBPATH
- ;;
- osf3* | osf4* | osf5*)
- version_type=osf
- need_lib_prefix=no
- need_version=no
- soname_spec='${libname}${release}${shared_ext}$major'
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- shlibpath_var=LD_LIBRARY_PATH
- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
- ;;
- rdos*)
- dynamic_linker=no
- ;;
- solaris*)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- hardcode_into_libs=yes
- # ldd complains unless libraries are executable
- postinstall_cmds='chmod +x $lib'
- ;;
- sunos4*)
- version_type=sunos
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=yes
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- fi
- need_version=yes
- ;;
- sysv4 | sysv4.3*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- case $host_vendor in
- sni)
- shlibpath_overrides_runpath=no
- need_lib_prefix=no
- export_dynamic_flag_spec='${wl}-Blargedynsym'
- runpath_var=LD_RUN_PATH
- ;;
- siemens)
- need_lib_prefix=no
- ;;
- motorola)
- need_lib_prefix=no
- need_version=no
- shlibpath_overrides_runpath=no
- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
- ;;
- esac
- ;;
- sysv4*MP*)
- if test -d /usr/nec ;then
- version_type=linux
- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
- soname_spec='$libname${shared_ext}.$major'
- shlibpath_var=LD_LIBRARY_PATH
- fi
- ;;
- sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
- version_type=freebsd-elf
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- hardcode_into_libs=yes
- if test "$with_gnu_ld" = yes; then
- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
- shlibpath_overrides_runpath=no
- else
- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
- shlibpath_overrides_runpath=yes
- case $host_os in
- sco3.2v5*)
- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
- ;;
- esac
- fi
- sys_lib_dlsearch_path_spec='/usr/lib'
- ;;
- uts4*)
- version_type=linux
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- ;;
- *)
- dynamic_linker=no
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
- $as_echo "$dynamic_linker" >&6; }
- test "$dynamic_linker" = no && can_build_shared=no
- if ${lt_cv_sys_lib_search_path_spec+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
- fi
- sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
- if ${lt_cv_sys_lib_dlsearch_path_spec+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
- fi
- sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
- variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
- if test "$GCC" = yes; then
- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
- $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
- hardcode_action_CXX=
- if test -n "$hardcode_libdir_flag_spec_CXX" || \
- test -n "$runpath_var_CXX" || \
- test "X$hardcode_automatic_CXX" = "Xyes" ; then
- # We can hardcode non-existent directories.
- if test "$hardcode_direct_CXX" != no &&
- # If the only mechanism to avoid hardcoding is shlibpath_var, we
- # have to relink, otherwise we might link with an installed library
- # when we should be linking with a yet-to-be-installed one
- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
- test "$hardcode_minus_L_CXX" != no; then
- # Linking always hardcodes the temporary library directory.
- hardcode_action_CXX=relink
- else
- # We can link without hardcoding, and we can hardcode nonexisting dirs.
- hardcode_action_CXX=immediate
- fi
- else
- # We cannot hardcode anything, or else we can only hardcode existing
- # directories.
- hardcode_action_CXX=unsupported
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
- $as_echo "$hardcode_action_CXX" >&6; }
- if test "$hardcode_action_CXX" = relink; then
- # Fast installation is not supported
- enable_fast_install=no
- elif test "$shlibpath_overrides_runpath" = yes ||
- test "$enable_shared" = no; then
- # Fast installation is not necessary
- enable_fast_install=needless
- fi
- # The else clause should only fire when bootstrapping the
- # libtool distribution, otherwise you forgot to ship ltmain.sh
- # with your package, and you will get complaints that there are
- # no rules to generate ltmain.sh.
- if test -f "$ltmain"; then
- # See if we are running on zsh, and set the options which allow our commands through
- # without removal of \ escapes.
- if test -n "${ZSH_VERSION+set}" ; then
- setopt NO_GLOB_SUBST
- fi
- # Now quote all the things that may contain metacharacters while being
- # careful not to overquote the AC_SUBSTed values. We take copies of the
- # variables and quote the copies for generation of the libtool script.
- for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
- SED SHELL STRIP \
- libname_spec library_names_spec soname_spec extract_expsyms_cmds \
- old_striplib striplib file_magic_cmd finish_cmds finish_eval \
- deplibs_check_method reload_flag reload_cmds need_locks \
- lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
- lt_cv_sys_global_symbol_to_c_name_address \
- sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
- old_postinstall_cmds old_postuninstall_cmds \
- compiler_CXX \
- CC_CXX \
- LD_CXX \
- lt_prog_compiler_wl_CXX \
- lt_prog_compiler_pic_CXX \
- lt_prog_compiler_static_CXX \
- lt_prog_compiler_no_builtin_flag_CXX \
- export_dynamic_flag_spec_CXX \
- thread_safe_flag_spec_CXX \
- whole_archive_flag_spec_CXX \
- enable_shared_with_static_runtimes_CXX \
- old_archive_cmds_CXX \
- old_archive_from_new_cmds_CXX \
- predep_objects_CXX \
- postdep_objects_CXX \
- predeps_CXX \
- postdeps_CXX \
- compiler_lib_search_path_CXX \
- compiler_lib_search_dirs_CXX \
- archive_cmds_CXX \
- archive_expsym_cmds_CXX \
- postinstall_cmds_CXX \
- postuninstall_cmds_CXX \
- old_archive_from_expsyms_cmds_CXX \
- allow_undefined_flag_CXX \
- no_undefined_flag_CXX \
- export_symbols_cmds_CXX \
- hardcode_libdir_flag_spec_CXX \
- hardcode_libdir_flag_spec_ld_CXX \
- hardcode_libdir_separator_CXX \
- hardcode_automatic_CXX \
- module_cmds_CXX \
- module_expsym_cmds_CXX \
- lt_cv_prog_compiler_c_o_CXX \
- fix_srcfile_path_CXX \
- exclude_expsyms_CXX \
- include_expsyms_CXX; do
- case $var in
- old_archive_cmds_CXX | \
- old_archive_from_new_cmds_CXX | \
- archive_cmds_CXX | \
- archive_expsym_cmds_CXX | \
- module_cmds_CXX | \
- module_expsym_cmds_CXX | \
- old_archive_from_expsyms_cmds_CXX | \
- export_symbols_cmds_CXX | \
- extract_expsyms_cmds | reload_cmds | finish_cmds | \
- postinstall_cmds | postuninstall_cmds | \
- old_postinstall_cmds | old_postuninstall_cmds | \
- sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
- # Double-quote double-evaled strings.
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
- ;;
- *)
- eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
- ;;
- esac
- done
- case $lt_echo in
- *'\$0 --fallback-echo"')
- lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
- ;;
- esac
- cfgfile="$ofile"
- cat <<__EOF__ >> "$cfgfile"
- # ### BEGIN LIBTOOL TAG CONFIG: $tagname
- # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
- # Shell to use when invoking shell scripts.
- SHELL=$lt_SHELL
- # Whether or not to build shared libraries.
- build_libtool_libs=$enable_shared
- # Whether or not to build static libraries.
- build_old_libs=$enable_static
- # Whether or not to add -lc for building shared libraries.
- build_libtool_need_lc=$archive_cmds_need_lc_CXX
- # Whether or not to disallow shared libs when runtime libs are static
- allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
- # Whether or not to optimize for fast installation.
- fast_install=$enable_fast_install
- # The host system.
- host_alias=$host_alias
- host=$host
- host_os=$host_os
- # The build system.
- build_alias=$build_alias
- build=$build
- build_os=$build_os
- # An echo program that does not interpret backslashes.
- echo=$lt_echo
- # The archiver.
- AR=$lt_AR
- AR_FLAGS=$lt_AR_FLAGS
- # A C compiler.
- LTCC=$lt_LTCC
- # LTCC compiler flags.
- LTCFLAGS=$lt_LTCFLAGS
- # A language-specific compiler.
- CC=$lt_compiler_CXX
- # Is the compiler the GNU C compiler?
- with_gcc=$GCC_CXX
- # An ERE matcher.
- EGREP=$lt_EGREP
- # The linker used to build libraries.
- LD=$lt_LD_CXX
- # Whether we need hard or soft links.
- LN_S=$lt_LN_S
- # A BSD-compatible nm program.
- NM=$lt_NM
- # A symbol stripping program
- STRIP=$lt_STRIP
- # Used to examine libraries when file_magic_cmd begins "file"
- MAGIC_CMD=$MAGIC_CMD
- # Used on cygwin: DLL creation program.
- DLLTOOL="$DLLTOOL"
- # Used on cygwin: object dumper.
- OBJDUMP="$OBJDUMP"
- # Used on cygwin: assembler.
- AS="$AS"
- # The name of the directory that contains temporary libtool files.
- objdir=$objdir
- # How to create reloadable object files.
- reload_flag=$lt_reload_flag
- reload_cmds=$lt_reload_cmds
- # How to pass a linker flag through the compiler.
- wl=$lt_lt_prog_compiler_wl_CXX
- # Object file suffix (normally "o").
- objext="$ac_objext"
- # Old archive suffix (normally "a").
- libext="$libext"
- # Shared library suffix (normally ".so").
- shrext_cmds='$shrext_cmds'
- # Executable file suffix (normally "").
- exeext="$exeext"
- # Additional compiler flags for building library objects.
- pic_flag=$lt_lt_prog_compiler_pic_CXX
- pic_mode=$pic_mode
- # What is the maximum length of a command?
- max_cmd_len=$lt_cv_sys_max_cmd_len
- # Does compiler simultaneously support -c and -o options?
- compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
- # Must we lock files when doing compilation?
- need_locks=$lt_need_locks
- # Do we need the lib prefix for modules?
- need_lib_prefix=$need_lib_prefix
- # Do we need a version for libraries?
- need_version=$need_version
- # Whether dlopen is supported.
- dlopen_support=$enable_dlopen
- # Whether dlopen of programs is supported.
- dlopen_self=$enable_dlopen_self
- # Whether dlopen of statically linked programs is supported.
- dlopen_self_static=$enable_dlopen_self_static
- # Compiler flag to prevent dynamic linking.
- link_static_flag=$lt_lt_prog_compiler_static_CXX
- # Compiler flag to turn off builtin functions.
- no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
- # Compiler flag to allow reflexive dlopens.
- export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
- # Compiler flag to generate shared objects directly from archives.
- whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
- # Compiler flag to generate thread-safe objects.
- thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
- # Library versioning type.
- version_type=$version_type
- # Format of library name prefix.
- libname_spec=$lt_libname_spec
- # List of archive names. First name is the real one, the rest are links.
- # The last name is the one that the linker finds with -lNAME.
- library_names_spec=$lt_library_names_spec
- # The coded name of the library, if different from the real name.
- soname_spec=$lt_soname_spec
- # Commands used to build and install an old-style archive.
- RANLIB=$lt_RANLIB
- old_archive_cmds=$lt_old_archive_cmds_CXX
- old_postinstall_cmds=$lt_old_postinstall_cmds
- old_postuninstall_cmds=$lt_old_postuninstall_cmds
- # Create an old-style archive from a shared archive.
- old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
- # Create a temporary old-style archive to link instead of a shared archive.
- old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
- # Commands used to build and install a shared archive.
- archive_cmds=$lt_archive_cmds_CXX
- archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
- postinstall_cmds=$lt_postinstall_cmds
- postuninstall_cmds=$lt_postuninstall_cmds
- # Commands used to build a loadable module (assumed same as above if empty)
- module_cmds=$lt_module_cmds_CXX
- module_expsym_cmds=$lt_module_expsym_cmds_CXX
- # Commands to strip libraries.
- old_striplib=$lt_old_striplib
- striplib=$lt_striplib
- # Dependencies to place before the objects being linked to create a
- # shared library.
- predep_objects=$lt_predep_objects_CXX
- # Dependencies to place after the objects being linked to create a
- # shared library.
- postdep_objects=$lt_postdep_objects_CXX
- # Dependencies to place before the objects being linked to create a
- # shared library.
- predeps=$lt_predeps_CXX
- # Dependencies to place after the objects being linked to create a
- # shared library.
- postdeps=$lt_postdeps_CXX
- # The directories searched by this compiler when creating a shared
- # library
- compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
- # The library search path used internally by the compiler when linking
- # a shared library.
- compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
- # Method to check whether dependent libraries are shared objects.
- deplibs_check_method=$lt_deplibs_check_method
- # Command to use when deplibs_check_method == file_magic.
- file_magic_cmd=$lt_file_magic_cmd
- # Flag that allows shared libraries with undefined symbols to be built.
- allow_undefined_flag=$lt_allow_undefined_flag_CXX
- # Flag that forces no undefined symbols.
- no_undefined_flag=$lt_no_undefined_flag_CXX
- # Commands used to finish a libtool library installation in a directory.
- finish_cmds=$lt_finish_cmds
- # Same as above, but a single script fragment to be evaled but not shown.
- finish_eval=$lt_finish_eval
- # Take the output of nm and produce a listing of raw symbols and C names.
- global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
- # Transform the output of nm in a proper C declaration
- global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
- # Transform the output of nm in a C name address pair
- global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
- # This is the shared library runtime path variable.
- runpath_var=$runpath_var
- # This is the shared library path variable.
- shlibpath_var=$shlibpath_var
- # Is shlibpath searched before the hard-coded library search path?
- shlibpath_overrides_runpath=$shlibpath_overrides_runpath
- # How to hardcode a shared library path into an executable.
- hardcode_action=$hardcode_action_CXX
- # Whether we should hardcode library paths into libraries.
- hardcode_into_libs=$hardcode_into_libs
- # Flag to hardcode \$libdir into a binary during linking.
- # This must work even if \$libdir does not exist.
- hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
- # If ld is used when linking, flag to hardcode \$libdir into
- # a binary during linking. This must work even if \$libdir does
- # not exist.
- hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
- # Whether we need a single -rpath flag with a separated argument.
- hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
- # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
- # resulting binary.
- hardcode_direct=$hardcode_direct_CXX
- # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
- # resulting binary.
- hardcode_minus_L=$hardcode_minus_L_CXX
- # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
- # the resulting binary.
- hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
- # Set to yes if building a shared library automatically hardcodes DIR into the library
- # and all subsequent libraries and executables linked against it.
- hardcode_automatic=$hardcode_automatic_CXX
- # Variables whose values should be saved in libtool wrapper scripts and
- # restored at relink time.
- variables_saved_for_relink="$variables_saved_for_relink"
- # Whether libtool must link a program against all its dependency libraries.
- link_all_deplibs=$link_all_deplibs_CXX
- # Compile-time system search path for libraries
- sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
- # Run-time system search path for libraries
- sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
- # Fix the shell variable \$srcfile for the compiler.
- fix_srcfile_path=$lt_fix_srcfile_path
- # Set to yes if exported symbols are required.
- always_export_symbols=$always_export_symbols_CXX
- # The commands to list exported symbols.
- export_symbols_cmds=$lt_export_symbols_cmds_CXX
- # The commands to extract the exported symbol list from a shared archive.
- extract_expsyms_cmds=$lt_extract_expsyms_cmds
- # Symbols that should not be listed in the preloaded symbols.
- exclude_expsyms=$lt_exclude_expsyms_CXX
- # Symbols that must always be exported.
- include_expsyms=$lt_include_expsyms_CXX
- # ### END LIBTOOL TAG CONFIG: $tagname
- __EOF__
- else
- # If there is no Makefile yet, we rely on a make rule to execute
- # `config.status --recheck' to rerun these tests and create the
- # libtool script then.
- ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
- if test -f "$ltmain_in"; then
- test -f Makefile && make "$ltmain"
- fi
- fi
- ac_ext=c
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
- CC=$lt_save_CC
- LDCXX=$LD
- LD=$lt_save_LD
- GCC=$lt_save_GCC
- with_gnu_ldcxx=$with_gnu_ld
- with_gnu_ld=$lt_save_with_gnu_ld
- lt_cv_path_LDCXX=$lt_cv_path_LD
- lt_cv_path_LD=$lt_save_path_LD
- lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
- lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
- else
- tagname=""
- fi
- ;;
- *)
- as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
- ;;
- esac
- # Append the new tag name to the list of available tags.
- if test -n "$tagname" ; then
- available_tags="$available_tags $tagname"
- fi
- fi
- done
- IFS="$lt_save_ifs"
- # Now substitute the updated list of available tags.
- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
- mv "${ofile}T" "$ofile"
- chmod +x "$ofile"
- else
- rm -f "${ofile}T"
- as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
- fi
- fi
- # This can be used to rebuild libtool when needed
- LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
- # Always use our own libtool.
- LIBTOOL='$(SHELL) $(top_builddir)/libtool'
- # Prevent multiple expansion
- if test -z "$LIBTOOL"; then
- LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
- else
- LIBTOOL="$LIBTOOL --silent"
- fi
- if test -z "$LIBTOOL"; then
- LIBTOOL='$(SHELL) $(top_builddir)/libtool --preserve-dup-deps'
- else
- LIBTOOL="$LIBTOOL --preserve-dup-deps"
- fi
- test -z "$PHP_COMPILE" && PHP_COMPILE='$(LIBTOOL) --mode=compile $(COMPILE) -c $<'
- test -z "$CXX_PHP_COMPILE" && CXX_PHP_COMPILE='$(LIBTOOL) --mode=compile $(CXX_COMPILE) -c $<'
- SHARED_LIBTOOL='$(LIBTOOL)'
- CC=$old_CC
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}Generating files${T_ME}" >&5
- $as_echo "${T_MD}Generating files${T_ME}" >&6; }
- CXXFLAGS_CLEAN=$CXXFLAGS
- CFLAGS_CLEAN="$CFLAGS \$(PROF_FLAGS)"
- CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
- INLINE_CFLAGS="$INLINE_CFLAGS $standard_libtool_flag"
- CXXFLAGS="$CXXFLAGS $standard_libtool_flag \$(PROF_FLAGS)"
- if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then
- pharcmd=pharcmd
- pharcmd_install=install-pharcmd
- else
- pharcmd=
- pharcmd_install=
- fi;
- all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd"
- install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install"
- PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets"
- PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets"
- PHP_VAR_SUBST="$PHP_VAR_SUBST install_binary_targets"
- for header_file in Zend/ TSRM/ include/ main/ main/streams/; do
- unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
- cmd="echo $ac_n \"\$INSTALLHEADERS$unique$ac_c\""
- if test -n "$unique" && test "`eval $cmd`" = "" ; then
- eval "INSTALLHEADERS$unique=set"
- INSTALL_HEADERS="$INSTALL_HEADERS $header_file"
- fi
- done
- case TSRM in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "TSRM"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/TSRM/"; ac_bdir="TSRM/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in TSRM.c tsrm_strtok_r.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- case main in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/main/"; ac_bdir="main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in main.c snprintf.c spprintf.c php_sprintf.c \
- fopen_wrappers.c alloca.c php_scandir.c \
- php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
- strlcat.c explicit_bzero.c mergesort.c reentrancy.c php_variables.c php_ticks.c \
- network.c php_open_temporary_file.c \
- output.c getopt.c php_syslog.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- case main in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/main/"; ac_bdir="main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in fastcgi.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_FASTCGI_OBJS="$PHP_FASTCGI_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- case main/streams in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "main/streams"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/main/streams/"; ac_bdir="main/streams/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in streams.c cast.c memory.c filter.c \
- plain_wrapper.c userspace.c transports.c xp_socket.c mmap.c \
- glob_wrapper.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- case /main in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in internal_functions.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_SAPI_OBJS="$PHP_SAPI_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- case /main in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "/main"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in internal_functions_cli.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_BINARY_OBJS="$PHP_BINARY_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- case Zend in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in \
- zend_language_parser.c zend_language_scanner.c \
- zend_ini_parser.c zend_ini_scanner.c \
- zend_alloc.c zend_compile.c zend_constants.c zend_dtrace.c \
- zend_execute_API.c zend_highlight.c zend_llist.c \
- zend_vm_opcodes.c zend_opcode.c zend_operators.c zend_ptr_stack.c zend_stack.c \
- zend_variables.c zend.c zend_API.c zend_extensions.c zend_hash.c \
- zend_list.c zend_builtin_functions.c zend_sprintf.c \
- zend_ini.c zend_sort.c zend_multibyte.c zend_ts_hash.c zend_stream.c \
- zend_iterators.c zend_interfaces.c zend_exceptions.c zend_strtod.c zend_gc.c \
- zend_closures.c zend_float.c zend_string.c zend_signal.c zend_generators.c \
- zend_virtual_cwd.c zend_ast.c zend_objects.c zend_object_handlers.c zend_objects_API.c \
- zend_default_classes.c zend_inheritance.c zend_smart_str.c zend_cpuinfo.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre \
- -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.s) ac_comp="$b_c_pre \
- -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.S) ac_comp="$b_c_pre \
- -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre \
- -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
- flag=-O0
- else
- flag=
- fi
- case Zend in
- "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
- /*) ac_srcdir=`echo "Zend"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
- *) ac_srcdir="$abs_srcdir/Zend/"; ac_bdir="Zend/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
- esac
- b_c_pre=$php_c_pre
- b_cxx_pre=$php_cxx_pre
- b_c_meta=$php_c_meta
- b_cxx_meta=$php_cxx_meta
- b_c_post=$php_c_post
- b_cxx_post=$php_cxx_post
- b_lo=$php_lo
- old_IFS=$IFS
- for ac_src in zend_execute.c; do
- IFS=.
- set $ac_src
- ac_obj=$1
- IFS=$old_IFS
- PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
- case $ac_src in
- *.c) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_c_post" ;;
- *.s) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_c_post" ;;
- *.S) ac_comp="$b_c_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_c_post" ;;
- *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $flag$b_cxx_post" ;;
- esac
- cat >>Makefile.objects<<EOF
- $ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
- $ac_comp
- EOF
- done
- BUILD_DIR="$BUILD_DIR main main/streams"
- BUILD_DIR="$BUILD_DIR TSRM"
- BUILD_DIR="$BUILD_DIR Zend"
- src=$abs_srcdir/scripts/Makefile.frag
- ac_srcdir=$abs_srcdir/scripts
- ac_builddir=scripts
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- src=$abs_srcdir/Makefile.frag
- ac_srcdir=$abs_srcdir/Zend
- ac_builddir=Zend
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- src=$abs_srcdir/Zend/Makefile.frag
- ac_srcdir=$abs_srcdir/Zend
- ac_builddir=Zend
- test -f "$src" && $SED -e "s#\$(srcdir)#$ac_srcdir#g" -e "s#\$(builddir)#$ac_builddir#g" $src >> Makefile.fragments
- $php_shtool mkdir -p $BUILD_DIR
- cat >Makefile <<EOF
- srcdir = $abs_srcdir
- builddir = $abs_builddir
- top_srcdir = $abs_srcdir
- top_builddir = $abs_builddir
- EOF
- for i in $PHP_VAR_SUBST; do
- eval echo "$i = \$$i" >> Makefile
- done
- cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile
- $as_echo "#define HAVE_BUILD_DEFS_H 1" >>confdefs.h
- $php_shtool mkdir -p pear/scripts
- $php_shtool mkdir -p scripts
- $php_shtool mkdir -p scripts/man1
- ALL_OUTPUT_FILES="php7.spec main/build-defs.h \
- scripts/phpize scripts/man1/phpize.1 \
- scripts/php-config scripts/man1/php-config.1 \
- $PHP_OUTPUT_FILES"
- for arg in $ac_configure_args; do
- case $arg in
- --with-*)
- arg_name="`echo $arg | $SED -e 's/--with-/with-/g' -e 's/=.*//g'`"
- ;;
- --without-*)
- arg_name="`echo $arg | $SED -e 's/--without-/with-/g' -e 's/=.*//g'`"
- ;;
- --enable-*)
- arg_name="`echo $arg | $SED -e 's/--enable-/enable-/g' -e 's/=.*//g'`"
- ;;
- --disable-*)
- arg_name="`echo $arg | $SED -e 's/--disable-/enable-/g' -e 's/=.*//g'`"
- ;;
- *)
- continue
- ;;
- esac
- case $arg_name in
- # Allow --disable-all / --enable-all
- enable-all);;
- # Allow certain libtool options
- enable-libtool-lock | with-pic | with-tags | enable-shared | enable-static | enable-fast-install | with-gnu-ld);;
- # Allow certain TSRM options
- with-tsrm-pth | with-tsrm-st | with-tsrm-pthreads );;
- # Allow certain Zend options
- with-zend-vm | enable-maintainer-zts | enable-inline-optimization);;
- # All the rest must be set using the PHP_ARG_* macros
- # PHP_ARG_* macros set php_enable_<arg_name> or php_with_<arg_name>
- *)
- # Options that exist before PHP 6
- if test "$PHP_MAJOR_VERSION" -lt "6"; then
- case $arg_name in
- enable-zend-multibyte) continue;;
- esac
- fi
- is_arg_set=php_`echo $arg_name | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ-' 'abcdefghijklmnopqrstuvwxyz_'`
- if eval test "x\$$is_arg_set" = "x"; then
- PHP_UNKNOWN_CONFIGURE_OPTIONS="$PHP_UNKNOWN_CONFIGURE_OPTIONS
- $arg"
- fi
- ;;
- esac
- done
- ac_config_files="$ac_config_files $ALL_OUTPUT_FILES"
- ac_config_commands="$ac_config_commands default"
- cat >confcache <<\_ACEOF
- # This file is a shell script that caches the results of configure
- # tests run on this system so they can be shared between configure
- # scripts and configure runs, see configure's option --config-cache.
- # It is not useful on other systems. If it contains results you don't
- # want to keep, you may remove or edit it.
- #
- # config.status only pays attention to the cache file if you give it
- # the --recheck option to rerun configure.
- #
- # `ac_cv_env_foo' variables (set or unset) will be overridden when
- # loading this file, other *unset* `ac_cv_foo' will be assigned the
- # following values.
- _ACEOF
- # The following way of writing the cache mishandles newlines in values,
- # but we know of no workaround that is simple, portable, and efficient.
- # So, we kill variables containing newlines.
- # Ultrix sh set writes to stderr and can't be redirected directly,
- # and sets the high bit in the cache file unless we assign to the vars.
- (
- for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
- eval ac_val=\$$ac_var
- case $ac_val in #(
- *${as_nl}*)
- case $ac_var in #(
- *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
- $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
- esac
- case $ac_var in #(
- _ | IFS | as_nl) ;; #(
- BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
- *) { eval $ac_var=; unset $ac_var;} ;;
- esac ;;
- esac
- done
- (set) 2>&1 |
- case $as_nl`(ac_space=' '; set) 2>&1` in #(
- *${as_nl}ac_space=\ *)
- # `set' does not quote correctly, so add quotes: double-quote
- # substitution turns \\\\ into \\, and sed turns \\ into \.
- sed -n \
- "s/'/'\\\\''/g;
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
- ;; #(
- *)
- # `set' quotes correctly as required by POSIX, so do not add quotes.
- sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
- ;;
- esac |
- sort
- ) |
- sed '
- /^ac_cv_env_/b end
- t clear
- :clear
- s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
- t end
- s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
- :end' >>confcache
- if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
- if test -w "$cache_file"; then
- if test "x$cache_file" != "x/dev/null"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
- $as_echo "$as_me: updating cache $cache_file" >&6;}
- if test ! -f "$cache_file" || test -h "$cache_file"; then
- cat confcache >"$cache_file"
- else
- case $cache_file in #(
- */* | ?:*)
- mv -f confcache "$cache_file"$$ &&
- mv -f "$cache_file"$$ "$cache_file" ;; #(
- *)
- mv -f confcache "$cache_file" ;;
- esac
- fi
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
- $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
- fi
- fi
- rm -f confcache
- test "x$prefix" = xNONE && prefix=$ac_default_prefix
- # Let make expand exec_prefix.
- test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
- DEFS=-DHAVE_CONFIG_H
- ac_libobjs=
- ac_ltlibobjs=
- U=
- for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
- # 1. Remove the extension, and $U if already installed.
- ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
- ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
- # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
- # will be set to the directory where LIBOBJS objects are built.
- as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
- as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
- done
- LIBOBJS=$ac_libobjs
- LTLIBOBJS=$ac_ltlibobjs
- : "${CONFIG_STATUS=./config.status}"
- ac_write_fail=0
- ac_clean_files_save=$ac_clean_files
- ac_clean_files="$ac_clean_files $CONFIG_STATUS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
- $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
- as_write_fail=0
- cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
- #! $SHELL
- # Generated by $as_me.
- # Run this file to recreate the current configuration.
- # Compiler output produced by configure, useful for debugging
- # configure, is in config.log if it exists.
- debug=false
- ac_cs_recheck=false
- ac_cs_silent=false
- SHELL=\${CONFIG_SHELL-$SHELL}
- export SHELL
- _ASEOF
- cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
- ## -------------------- ##
- ## M4sh Initialization. ##
- ## -------------------- ##
- # Be more Bourne compatible
- DUALCASE=1; export DUALCASE # for MKS sh
- if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
- emulate sh
- NULLCMD=:
- # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
- # is contrary to our usage. Disable this feature.
- alias -g '${1+"$@"}'='"$@"'
- setopt NO_GLOB_SUBST
- else
- case `(set -o) 2>/dev/null` in #(
- *posix*) :
- set -o posix ;; #(
- *) :
- ;;
- esac
- fi
- as_nl='
- '
- export as_nl
- # Printing a long string crashes Solaris 7 /usr/bin/printf.
- as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
- as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
- as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
- # Prefer a ksh shell builtin over an external printf program on Solaris,
- # but without wasting forks for bash or zsh.
- if test -z "$BASH_VERSION$ZSH_VERSION" \
- && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='print -r --'
- as_echo_n='print -rn --'
- elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
- as_echo='printf %s\n'
- as_echo_n='printf %s'
- else
- if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
- as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
- as_echo_n='/usr/ucb/echo -n'
- else
- as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
- as_echo_n_body='eval
- arg=$1;
- case $arg in #(
- *"$as_nl"*)
- expr "X$arg" : "X\\(.*\\)$as_nl";
- arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
- esac;
- expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
- '
- export as_echo_n_body
- as_echo_n='sh -c $as_echo_n_body as_echo'
- fi
- export as_echo_body
- as_echo='sh -c $as_echo_body as_echo'
- fi
- # The user is always right.
- if test "${PATH_SEPARATOR+set}" != set; then
- PATH_SEPARATOR=:
- (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
- (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
- PATH_SEPARATOR=';'
- }
- fi
- # IFS
- # We need space, tab and new line, in precisely that order. Quoting is
- # there to prevent editors from complaining about space-tab.
- # (If _AS_PATH_WALK were called with IFS unset, it would disable word
- # splitting by setting IFS to empty value.)
- IFS=" "" $as_nl"
- # Find who we are. Look in the path if we contain no directory separator.
- as_myself=
- case $0 in #((
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
- done
- IFS=$as_save_IFS
- ;;
- esac
- # We did not find ourselves, most probably we were run as `sh COMMAND'
- # in which case we are not to be found in the path.
- if test "x$as_myself" = x; then
- as_myself=$0
- fi
- if test ! -f "$as_myself"; then
- $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
- exit 1
- fi
- # Unset variables that we do not need and which cause bugs (e.g. in
- # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
- # suppresses any "Segmentation fault" message there. '((' could
- # trigger a bug in pdksh 5.2.14.
- for as_var in BASH_ENV ENV MAIL MAILPATH
- do eval test x\${$as_var+set} = xset \
- && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
- done
- PS1='$ '
- PS2='> '
- PS4='+ '
- # NLS nuisances.
- LC_ALL=C
- export LC_ALL
- LANGUAGE=C
- export LANGUAGE
- # CDPATH.
- (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
- # as_fn_error STATUS ERROR [LINENO LOG_FD]
- # ----------------------------------------
- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
- # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
- # script with STATUS, using 1 if that was 0.
- as_fn_error ()
- {
- as_status=$1; test $as_status -eq 0 && as_status=1
- if test "$4"; then
- as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
- $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
- fi
- $as_echo "$as_me: error: $2" >&2
- as_fn_exit $as_status
- } # as_fn_error
- # as_fn_set_status STATUS
- # -----------------------
- # Set $? to STATUS, without forking.
- as_fn_set_status ()
- {
- return $1
- } # as_fn_set_status
- # as_fn_exit STATUS
- # -----------------
- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
- as_fn_exit ()
- {
- set +e
- as_fn_set_status $1
- exit $1
- } # as_fn_exit
- # as_fn_unset VAR
- # ---------------
- # Portably unset VAR.
- as_fn_unset ()
- {
- { eval $1=; unset $1;}
- }
- as_unset=as_fn_unset
- # as_fn_append VAR VALUE
- # ----------------------
- # Append the text in VALUE to the end of the definition contained in VAR. Take
- # advantage of any shell optimizations that allow amortized linear growth over
- # repeated appends, instead of the typical quadratic growth present in naive
- # implementations.
- if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
- eval 'as_fn_append ()
- {
- eval $1+=\$2
- }'
- else
- as_fn_append ()
- {
- eval $1=\$$1\$2
- }
- fi # as_fn_append
- # as_fn_arith ARG...
- # ------------------
- # Perform arithmetic evaluation on the ARGs, and store the result in the
- # global $as_val. Take advantage of shells that can avoid forks. The arguments
- # must be portable across $(()) and expr.
- if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
- eval 'as_fn_arith ()
- {
- as_val=$(( $* ))
- }'
- else
- as_fn_arith ()
- {
- as_val=`expr "$@" || test $? -eq 1`
- }
- fi # as_fn_arith
- if expr a : '\(a\)' >/dev/null 2>&1 &&
- test "X`expr 00001 : '.*\(...\)'`" = X001; then
- as_expr=expr
- else
- as_expr=false
- fi
- if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
- as_basename=basename
- else
- as_basename=false
- fi
- if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
- as_dirname=dirname
- else
- as_dirname=false
- fi
- as_me=`$as_basename -- "$0" ||
- $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
- X"$0" : 'X\(//\)$' \| \
- X"$0" : 'X\(/\)' \| . 2>/dev/null ||
- $as_echo X/"$0" |
- sed '/^.*\/\([^/][^/]*\)\/*$/{
- s//\1/
- q
- }
- /^X\/\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\/\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- # Avoid depending upon Character Ranges.
- as_cr_letters='abcdefghijklmnopqrstuvwxyz'
- as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
- as_cr_Letters=$as_cr_letters$as_cr_LETTERS
- as_cr_digits='0123456789'
- as_cr_alnum=$as_cr_Letters$as_cr_digits
- ECHO_C= ECHO_N= ECHO_T=
- case `echo -n x` in #(((((
- -n*)
- case `echo 'xy\c'` in
- *c*) ECHO_T=' ';; # ECHO_T is single tab character.
- xy) ECHO_C='\c';;
- *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
- ECHO_T=' ';;
- esac;;
- *)
- ECHO_N='-n';;
- esac
- rm -f conf$$ conf$$.exe conf$$.file
- if test -d conf$$.dir; then
- rm -f conf$$.dir/conf$$.file
- else
- rm -f conf$$.dir
- mkdir conf$$.dir 2>/dev/null
- fi
- if (echo >conf$$.file) 2>/dev/null; then
- if ln -s conf$$.file conf$$ 2>/dev/null; then
- as_ln_s='ln -s'
- # ... but there are two gotchas:
- # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
- # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
- # In both cases, we have to default to `cp -pR'.
- ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
- as_ln_s='cp -pR'
- elif ln conf$$.file conf$$ 2>/dev/null; then
- as_ln_s=ln
- else
- as_ln_s='cp -pR'
- fi
- else
- as_ln_s='cp -pR'
- fi
- rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
- rmdir conf$$.dir 2>/dev/null
- # as_fn_mkdir_p
- # -------------
- # Create "$as_dir" as a directory, including parents if necessary.
- as_fn_mkdir_p ()
- {
- case $as_dir in #(
- -*) as_dir=./$as_dir;;
- esac
- test -d "$as_dir" || eval $as_mkdir_p || {
- as_dirs=
- while :; do
- case $as_dir in #(
- *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
- *) as_qdir=$as_dir;;
- esac
- as_dirs="'$as_qdir' $as_dirs"
- as_dir=`$as_dirname -- "$as_dir" ||
- $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$as_dir" : 'X\(//\)[^/]' \| \
- X"$as_dir" : 'X\(//\)$' \| \
- X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
- $as_echo X"$as_dir" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- test -d "$as_dir" && break
- done
- test -z "$as_dirs" || eval "mkdir $as_dirs"
- } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
- } # as_fn_mkdir_p
- if mkdir -p . 2>/dev/null; then
- as_mkdir_p='mkdir -p "$as_dir"'
- else
- test -d ./-p && rmdir ./-p
- as_mkdir_p=false
- fi
- # as_fn_executable_p FILE
- # -----------------------
- # Test if FILE is an executable regular file.
- as_fn_executable_p ()
- {
- test -f "$1" && test -x "$1"
- } # as_fn_executable_p
- as_test_x='test -x'
- as_executable_p=as_fn_executable_p
- # Sed expression to map a string onto a valid CPP name.
- as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
- # Sed expression to map a string onto a valid variable name.
- as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
- exec 6>&1
- ## ----------------------------------- ##
- ## Main body of $CONFIG_STATUS script. ##
- ## ----------------------------------- ##
- _ASEOF
- test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
- # Save the log message, to keep $0 and so on meaningful, and to
- # report actual input values of CONFIG_FILES etc. instead of their
- # values after options handling.
- ac_log="
- This file was extended by $as_me, which was
- generated by GNU Autoconf 2.69. Invocation command line was
- CONFIG_FILES = $CONFIG_FILES
- CONFIG_HEADERS = $CONFIG_HEADERS
- CONFIG_LINKS = $CONFIG_LINKS
- CONFIG_COMMANDS = $CONFIG_COMMANDS
- $ $0 $@
- on `(hostname || uname -n) 2>/dev/null | sed 1q`
- "
- _ACEOF
- case $ac_config_files in *"
- "*) set x $ac_config_files; shift; ac_config_files=$*;;
- esac
- case $ac_config_headers in *"
- "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
- esac
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- # Files that config.status was made for.
- config_files="$ac_config_files"
- config_headers="$ac_config_headers"
- config_commands="$ac_config_commands"
- _ACEOF
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
- ac_cs_usage="\
- \`$as_me' instantiates files and other configuration actions
- from templates according to the current configuration. Unless the files
- and actions are specified as TAGs, all are instantiated by default.
- Usage: $0 [OPTION]... [TAG]...
- -h, --help print this help, then exit
- -V, --version print version number and configuration settings, then exit
- --config print configuration, then exit
- -q, --quiet, --silent
- do not print progress messages
- -d, --debug don't remove temporary files
- --recheck update $as_me by reconfiguring in the same conditions
- --file=FILE[:TEMPLATE]
- instantiate the configuration file FILE
- --header=FILE[:TEMPLATE]
- instantiate the configuration header FILE
- Configuration files:
- $config_files
- Configuration headers:
- $config_headers
- Configuration commands:
- $config_commands
- Report bugs to the package provider."
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
- ac_cs_version="\\
- config.status
- configured by $0, generated by GNU Autoconf 2.69,
- with options \\"\$ac_cs_config\\"
- Copyright (C) 2012 Free Software Foundation, Inc.
- This config.status script is free software; the Free Software Foundation
- gives unlimited permission to copy, distribute and modify it."
- ac_pwd='$ac_pwd'
- srcdir='$srcdir'
- test -n "\$AWK" || AWK=awk
- _ACEOF
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
- # The default lists apply if the user does not specify any file.
- ac_need_defaults=:
- while test $# != 0
- do
- case $1 in
- --*=?*)
- ac_option=`expr "X$1" : 'X\([^=]*\)='`
- ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
- ac_shift=:
- ;;
- --*=)
- ac_option=`expr "X$1" : 'X\([^=]*\)='`
- ac_optarg=
- ac_shift=:
- ;;
- *)
- ac_option=$1
- ac_optarg=$2
- ac_shift=shift
- ;;
- esac
- case $ac_option in
- # Handling of the options.
- -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
- ac_cs_recheck=: ;;
- --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
- $as_echo "$ac_cs_version"; exit ;;
- --config | --confi | --conf | --con | --co | --c )
- $as_echo "$ac_cs_config"; exit ;;
- --debug | --debu | --deb | --de | --d | -d )
- debug=: ;;
- --file | --fil | --fi | --f )
- $ac_shift
- case $ac_optarg in
- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
- '') as_fn_error $? "missing file argument" ;;
- esac
- as_fn_append CONFIG_FILES " '$ac_optarg'"
- ac_need_defaults=false;;
- --header | --heade | --head | --hea )
- $ac_shift
- case $ac_optarg in
- *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
- esac
- as_fn_append CONFIG_HEADERS " '$ac_optarg'"
- ac_need_defaults=false;;
- --he | --h)
- # Conflict between --help and --header
- as_fn_error $? "ambiguous option: \`$1'
- Try \`$0 --help' for more information.";;
- --help | --hel | -h )
- $as_echo "$ac_cs_usage"; exit ;;
- -q | -quiet | --quiet | --quie | --qui | --qu | --q \
- | -silent | --silent | --silen | --sile | --sil | --si | --s)
- ac_cs_silent=: ;;
- # This is an error.
- -*) as_fn_error $? "unrecognized option: \`$1'
- Try \`$0 --help' for more information." ;;
- *) as_fn_append ac_config_targets " $1"
- ac_need_defaults=false ;;
- esac
- shift
- done
- ac_configure_extra_args=
- if $ac_cs_silent; then
- exec 6>/dev/null
- ac_configure_extra_args="$ac_configure_extra_args --silent"
- fi
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- if \$ac_cs_recheck; then
- set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
- shift
- \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
- CONFIG_SHELL='$SHELL'
- export CONFIG_SHELL
- exec "\$@"
- fi
- _ACEOF
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
- exec 5>>config.log
- {
- echo
- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
- ## Running $as_me. ##
- _ASBOX
- $as_echo "$ac_log"
- } >&5
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- #
- # INIT-COMMANDS
- #
- if test "\$CONFIG_FILES" = "$ALL_OUTPUT_FILES" || test "\$CONFIG_FILES" = " $ALL_OUTPUT_FILES" || test -z "\$CONFIG_FILES"; then
- REDO_ALL=yes
- fi
- ################################################################
- # Create configuration headers
- #
- test -d TSRM || $php_shtool mkdir TSRM
- echo '#include <../main/php_config.h>' > TSRM/tsrm_config.h
- test -d Zend || $php_shtool mkdir Zend
- cat >Zend/zend_config.h <<FEO
- #include <../main/php_config.h>
- #if defined(APACHE) && defined(PHP_API_VERSION)
- #undef HAVE_DLFCN_H
- #endif
- FEO
- # run this only when generating all the files?
- if test -n "\$REDO_ALL"; then
- # Hacking while airborne considered harmful.
- #
- echo "creating main/internal_functions.c"
- extensions="$EXT_STATIC"
- sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$extensions > main/internal_functions.c
- echo "creating main/internal_functions_cli.c"
- cli_extensions="$EXT_CLI_STATIC"
- sh $srcdir/build/genif.sh $srcdir/main/internal_functions.c.in $srcdir "$EXTRA_MODULE_PTRS" $AWK \$cli_extensions > main/internal_functions_cli.c
- if test -n "$PHP_APXS_BROKEN"; then
- echo "+--------------------------------------------------------------------+"
- echo "| WARNING: Your $APXS script is most likely broken."
- echo "| |"
- echo "| Please go read http://www.php.net/faq.build#faq.build.apxs |"
- echo "| and make the changes described there and try again. |"
- fi
- if test -n "$DEBUG_LOG"; then
- rm -f config.cache
- cat <<X
- +--------------------------------------------------------------------+
- | *** ATTENTION *** |
- | |
- | Something is likely to be messed up here, because the configure |
- | script was not able to detect a simple feature on your platform. |
- | This is often caused by incorrect configuration parameters. Please |
- | see the file debug.log for error messages. |
- | |
- | If you are unable to fix this, send the file debug.log to the |
- | php-install@lists.php.net mailing list and include appropriate |
- | information about your setup. |
- X
- fi
- if test "$PHP_SAPI" = "apache2handler"; then
- if test "$APACHE_VERSION" -ge 2004001; then
- if test -z "$APACHE_THREADED_MPM"; then
- cat <<X
- +--------------------------------------------------------------------+
- | *** WARNING *** |
- | |
- | You have built PHP for Apache's current non-threaded MPM. |
- | If you change Apache to use a threaded MPM you must reconfigure |
- | PHP with --enable-maintainer-zts |
- X
- fi
- fi
- fi
- # Warn about linking Apache with libpthread if oci8 extension is enabled on linux.
- if test "$PHP_OCI8" != "no"; then
- if test "$PHP_SAPI" = "apache"; then
- if test `uname` = "Linux"; then
- cat <<X
- +--------------------------------------------------------------------+
- | *** WARNING *** |
- | |
- | Please check that your Apache (httpd) is linked with libpthread. |
- | If not, you have to recompile Apache with pthread. For more |
- | details, see this page: http://www.php.net/manual/ref.oci8.php |
- X
- fi
- fi
- if test "$PHP_SIGCHILD" != "yes"; then
- if test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then
- cat <<X
- +--------------------------------------------------------------------+
- | Notice: |
- | If you encounter <defunc> processes when using a local Oracle |
- | database, set the value BEQUEATH_DETACH=YES in Oracle Net's |
- | sqlnet.ora file on the PHP host, or set the environment variable |
- | BEQUEATH_DETACH to YES before starting Apache. If the problem |
- | still occurs, then recompile PHP and specify --enable-sigchild |
- | when configuring. |
- X
- fi
- fi
- fi
- cat <<X
- +--------------------------------------------------------------------+
- | License: |
- | This software is subject to the PHP License, available in this |
- | distribution in the file LICENSE. By continuing this installation |
- | process, you are bound by the terms of this license agreement. |
- | If you do not agree with the terms of this license, you must abort |
- | the installation process at this point. |
- +--------------------------------------------------------------------+
- Thank you for using PHP.
- X
- # Output unknown configure options
- if test "$PHP_UNKNOWN_CONFIGURE_OPTIONS"; then
- echo "Notice: Following unknown configure options were used:
- $PHP_UNKNOWN_CONFIGURE_OPTIONS
- Check '$0 --help' for available options
- "
- fi
- fi
- _ACEOF
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
- # Handling of arguments.
- for ac_config_target in $ac_config_targets
- do
- case $ac_config_target in
- "main/php_config.h") CONFIG_HEADERS="$CONFIG_HEADERS main/php_config.h" ;;
- "$ALL_OUTPUT_FILES") CONFIG_FILES="$CONFIG_FILES $ALL_OUTPUT_FILES" ;;
- "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
- *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
- esac
- done
- # If the user did not use the arguments to specify the items to instantiate,
- # then the envvar interface is used. Set only those that are not.
- # We use the long form for the default assignment because of an extremely
- # bizarre bug on SunOS 4.1.3.
- if $ac_need_defaults; then
- test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
- test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
- test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
- fi
- # Have a temporary directory for convenience. Make it in the build tree
- # simply because there is no reason against having it here, and in addition,
- # creating and moving files from /tmp can sometimes cause problems.
- # Hook for its removal unless debugging.
- # Note that there is a small window in which the directory will not be cleaned:
- # after its creation but before its name has been assigned to `$tmp'.
- $debug ||
- {
- tmp= ac_tmp=
- trap 'exit_status=$?
- : "${ac_tmp:=$tmp}"
- { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
- ' 0
- trap 'as_fn_exit 1' 1 2 13 15
- }
- # Create a (secure) tmp directory for tmp files.
- {
- tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
- test -d "$tmp"
- } ||
- {
- tmp=./conf$$-$RANDOM
- (umask 077 && mkdir "$tmp")
- } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
- ac_tmp=$tmp
- # Set up the scripts for CONFIG_FILES section.
- # No need to generate them if there are no CONFIG_FILES.
- # This happens for instance with `./config.status config.h'.
- if test -n "$CONFIG_FILES"; then
- ac_cr=`echo X | tr X '\015'`
- # On cygwin, bash can eat \r inside `` if the user requested igncr.
- # But we know of no other shell where ac_cr would be empty at this
- # point, so we can use a bashism as a fallback.
- if test "x$ac_cr" = x; then
- eval ac_cr=\$\'\\r\'
- fi
- ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
- if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
- ac_cs_awk_cr='\\r'
- else
- ac_cs_awk_cr=$ac_cr
- fi
- echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
- _ACEOF
- {
- echo "cat >conf$$subs.awk <<_ACEOF" &&
- echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
- echo "_ACEOF"
- } >conf$$subs.sh ||
- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
- ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
- ac_delim='%!_!# '
- for ac_last_try in false false false false false :; do
- . ./conf$$subs.sh ||
- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
- ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
- if test $ac_delim_n = $ac_delim_num; then
- break
- elif $ac_last_try; then
- as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
- else
- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
- fi
- done
- rm -f conf$$subs.sh
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
- _ACEOF
- sed -n '
- h
- s/^/S["/; s/!.*/"]=/
- p
- g
- s/^[^!]*!//
- :repl
- t repl
- s/'"$ac_delim"'$//
- t delim
- :nl
- h
- s/\(.\{148\}\)..*/\1/
- t more1
- s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
- p
- n
- b repl
- :more1
- s/["\\]/\\&/g; s/^/"/; s/$/"\\/
- p
- g
- s/.\{148\}//
- t nl
- :delim
- h
- s/\(.\{148\}\)..*/\1/
- t more2
- s/["\\]/\\&/g; s/^/"/; s/$/"/
- p
- b
- :more2
- s/["\\]/\\&/g; s/^/"/; s/$/"\\/
- p
- g
- s/.\{148\}//
- t delim
- ' <conf$$subs.awk | sed '
- /^[^""]/{
- N
- s/\n//
- }
- ' >>$CONFIG_STATUS || ac_write_fail=1
- rm -f conf$$subs.awk
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- _ACAWK
- cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
- for (key in S) S_is_set[key] = 1
- FS = ""
- }
- {
- line = $ 0
- nfields = split(line, field, "@")
- substed = 0
- len = length(field[1])
- for (i = 2; i < nfields; i++) {
- key = field[i]
- keylen = length(key)
- if (S_is_set[key]) {
- value = S[key]
- line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
- len += length(value) + length(field[++i])
- substed = 1
- } else
- len += 1 + keylen
- }
- print line
- }
- _ACAWK
- _ACEOF
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
- if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
- sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
- else
- cat
- fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
- || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
- _ACEOF
- # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
- # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
- # trailing colons and then remove the whole line if VPATH becomes empty
- # (actually we leave an empty line to preserve line numbers).
- if test "x$srcdir" = x.; then
- ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
- h
- s///
- s/^/:/
- s/[ ]*$/:/
- s/:\$(srcdir):/:/g
- s/:\${srcdir}:/:/g
- s/:@srcdir@:/:/g
- s/^:*//
- s/:*$//
- x
- s/\(=[ ]*\).*/\1/
- G
- s/\n//
- s/^[^=]*=[ ]*$//
- }'
- fi
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
- fi # test -n "$CONFIG_FILES"
- # Set up the scripts for CONFIG_HEADERS section.
- # No need to generate them if there are no CONFIG_HEADERS.
- # This happens for instance with `./config.status Makefile'.
- if test -n "$CONFIG_HEADERS"; then
- cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
- BEGIN {
- _ACEOF
- # Transform confdefs.h into an awk script `defines.awk', embedded as
- # here-document in config.status, that substitutes the proper values into
- # config.h.in to produce config.h.
- # Create a delimiter string that does not exist in confdefs.h, to ease
- # handling of long lines.
- ac_delim='%!_!# '
- for ac_last_try in false false :; do
- ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
- if test -z "$ac_tt"; then
- break
- elif $ac_last_try; then
- as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
- else
- ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
- fi
- done
- # For the awk script, D is an array of macro values keyed by name,
- # likewise P contains macro parameters if any. Preserve backslash
- # newline sequences.
- ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
- sed -n '
- s/.\{148\}/&'"$ac_delim"'/g
- t rset
- :rset
- s/^[ ]*#[ ]*define[ ][ ]*/ /
- t def
- d
- :def
- s/\\$//
- t bsnl
- s/["\\]/\\&/g
- s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
- D["\1"]=" \3"/p
- s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
- d
- :bsnl
- s/["\\]/\\&/g
- s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
- D["\1"]=" \3\\\\\\n"\\/p
- t cont
- s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
- t cont
- d
- :cont
- n
- s/.\{148\}/&'"$ac_delim"'/g
- t clear
- :clear
- s/\\$//
- t bsnlc
- s/["\\]/\\&/g; s/^/"/; s/$/"/p
- d
- :bsnlc
- s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
- b cont
- ' <confdefs.h | sed '
- s/'"$ac_delim"'/"\\\
- "/g' >>$CONFIG_STATUS || ac_write_fail=1
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- for (key in D) D_is_set[key] = 1
- FS = ""
- }
- /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
- line = \$ 0
- split(line, arg, " ")
- if (arg[1] == "#") {
- defundef = arg[2]
- mac1 = arg[3]
- } else {
- defundef = substr(arg[1], 2)
- mac1 = arg[2]
- }
- split(mac1, mac2, "(") #)
- macro = mac2[1]
- prefix = substr(line, 1, index(line, defundef) - 1)
- if (D_is_set[macro]) {
- # Preserve the white space surrounding the "#".
- print prefix "define", macro P[macro] D[macro]
- next
- } else {
- # Replace #undef with comments. This is necessary, for example,
- # in the case of _POSIX_SOURCE, which is predefined and required
- # on some systems where configure will not decide to define it.
- if (defundef == "undef") {
- print "/*", prefix defundef, macro, "*/"
- next
- }
- }
- }
- { print }
- _ACAWK
- _ACEOF
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
- as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
- fi # test -n "$CONFIG_HEADERS"
- eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
- shift
- for ac_tag
- do
- case $ac_tag in
- :[FHLC]) ac_mode=$ac_tag; continue;;
- esac
- case $ac_mode$ac_tag in
- :[FHL]*:*);;
- :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
- :[FH]-) ac_tag=-:-;;
- :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
- esac
- ac_save_IFS=$IFS
- IFS=:
- set x $ac_tag
- IFS=$ac_save_IFS
- shift
- ac_file=$1
- shift
- case $ac_mode in
- :L) ac_source=$1;;
- :[FH])
- ac_file_inputs=
- for ac_f
- do
- case $ac_f in
- -) ac_f="$ac_tmp/stdin";;
- *) # Look for the file first in the build tree, then in the source tree
- # (if the path is not absolute). The absolute path cannot be DOS-style,
- # because $ac_f cannot contain `:'.
- test -f "$ac_f" ||
- case $ac_f in
- [\\/$]*) false;;
- *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
- esac ||
- as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
- esac
- case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
- as_fn_append ac_file_inputs " '$ac_f'"
- done
- # Let's still pretend it is `configure' which instantiates (i.e., don't
- # use $as_me), people would be surprised to read:
- # /* config.h. Generated by config.status. */
- configure_input='Generated from '`
- $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
- `' by configure.'
- if test x"$ac_file" != x-; then
- configure_input="$ac_file. $configure_input"
- { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
- $as_echo "$as_me: creating $ac_file" >&6;}
- fi
- # Neutralize special characters interpreted by sed in replacement strings.
- case $configure_input in #(
- *\&* | *\|* | *\\* )
- ac_sed_conf_input=`$as_echo "$configure_input" |
- sed 's/[\\\\&|]/\\\\&/g'`;; #(
- *) ac_sed_conf_input=$configure_input;;
- esac
- case $ac_tag in
- *:-:* | *:-) cat >"$ac_tmp/stdin" \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
- esac
- ;;
- esac
- ac_dir=`$as_dirname -- "$ac_file" ||
- $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_file" : 'X\(//\)[^/]' \| \
- X"$ac_file" : 'X\(//\)$' \| \
- X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
- $as_echo X"$ac_file" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
- s//\1/
- q
- }
- /^X\(\/\/\)[^/].*/{
- s//\1/
- q
- }
- /^X\(\/\/\)$/{
- s//\1/
- q
- }
- /^X\(\/\).*/{
- s//\1/
- q
- }
- s/.*/./; q'`
- as_dir="$ac_dir"; as_fn_mkdir_p
- ac_builddir=.
- case "$ac_dir" in
- .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *)
- ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
- # A ".." for each directory in $ac_dir_suffix.
- ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
- case $ac_top_builddir_sub in
- "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
- *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
- esac ;;
- esac
- ac_abs_top_builddir=$ac_pwd
- ac_abs_builddir=$ac_pwd$ac_dir_suffix
- # for backward compatibility:
- ac_top_builddir=$ac_top_build_prefix
- case $srcdir in
- .) # We are building in place.
- ac_srcdir=.
- ac_top_srcdir=$ac_top_builddir_sub
- ac_abs_top_srcdir=$ac_pwd ;;
- [\\/]* | ?:[\\/]* ) # Absolute name.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir
- ac_abs_top_srcdir=$srcdir ;;
- *) # Relative name.
- ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_build_prefix$srcdir
- ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
- esac
- ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
- case $ac_mode in
- :F)
- #
- # CONFIG_FILE
- #
- _ACEOF
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
- # If the template does not know about datarootdir, expand it.
- # FIXME: This hack should be removed a few years after 2.60.
- ac_datarootdir_hack=; ac_datarootdir_seen=
- ac_sed_dataroot='
- /datarootdir/ {
- p
- q
- }
- /@datadir@/p
- /@docdir@/p
- /@infodir@/p
- /@localedir@/p
- /@mandir@/p'
- case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
- *datarootdir*) ac_datarootdir_seen=yes;;
- *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
- $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- ac_datarootdir_hack='
- s&@datadir@&$datadir&g
- s&@docdir@&$docdir&g
- s&@infodir@&$infodir&g
- s&@localedir@&$localedir&g
- s&@mandir@&$mandir&g
- s&\\\${datarootdir}&$datarootdir&g' ;;
- esac
- _ACEOF
- # Neutralize VPATH when `$srcdir' = `.'.
- # Shell code in configure.ac might set extrasub.
- # FIXME: do we really want to maintain this feature?
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- ac_sed_extra="$ac_vpsub
- $extrasub
- _ACEOF
- cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
- :t
- /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
- s|@configure_input@|$ac_sed_conf_input|;t t
- s&@top_builddir@&$ac_top_builddir_sub&;t t
- s&@top_build_prefix@&$ac_top_build_prefix&;t t
- s&@srcdir@&$ac_srcdir&;t t
- s&@abs_srcdir@&$ac_abs_srcdir&;t t
- s&@top_srcdir@&$ac_top_srcdir&;t t
- s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
- s&@builddir@&$ac_builddir&;t t
- s&@abs_builddir@&$ac_abs_builddir&;t t
- s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
- $ac_datarootdir_hack
- "
- eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
- >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
- test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
- { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
- { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
- "$ac_tmp/out"`; test -z "$ac_out"; } &&
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
- which seems to be undefined. Please make sure it is defined" >&5
- $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
- which seems to be undefined. Please make sure it is defined" >&2;}
- rm -f "$ac_tmp/stdin"
- case $ac_file in
- -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
- *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
- esac \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
- ;;
- :H)
- #
- # CONFIG_HEADER
- #
- if test x"$ac_file" != x-; then
- {
- $as_echo "/* $configure_input */" \
- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
- } >"$ac_tmp/config.h" \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
- if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
- $as_echo "$as_me: $ac_file is unchanged" >&6;}
- else
- rm -f "$ac_file"
- mv "$ac_tmp/config.h" "$ac_file" \
- || as_fn_error $? "could not create $ac_file" "$LINENO" 5
- fi
- else
- $as_echo "/* $configure_input */" \
- && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
- || as_fn_error $? "could not create -" "$LINENO" 5
- fi
- ;;
- :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
- $as_echo "$as_me: executing $ac_file commands" >&6;}
- ;;
- esac
- done # for ac_tag
- as_fn_exit 0
- _ACEOF
- ac_clean_files=$ac_clean_files_save
- test $ac_write_fail = 0 ||
- as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
- # configure is writing to config.log, and then calls config.status.
- # config.status does its own redirection, appending to config.log.
- # Unfortunately, on DOS this fails, as config.log is still kept open
- # by configure, so config.status won't be able to write to it; its
- # output is simply discarded. So we exec the FD to /dev/null,
- # effectively closing config.log, so it can be properly (re)opened and
- # appended to by config.status. When coming back to configure, we
- # need to make the FD available again.
- if test "$no_create" != yes; then
- ac_cs_success=:
- ac_config_status_args=
- test "$silent" = yes &&
- ac_config_status_args="$ac_config_status_args --quiet"
- exec 5>/dev/null
- $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
- exec 5>>config.log
- # Use ||, not &&, to avoid exiting from the if with $? = 1, which
- # would make configure fail if this is the last instruction.
- $ac_cs_success || as_fn_exit 1
- fi
- if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
- $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
- fi
|