123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275 |
- #! /bin/sh
- # From configure.ac Revision: 432815 .
- # Guess values for system-dependent variables and create Makefiles.
- # Generated by GNU Autoconf 2.69 for asterisk trunk.
- #
- # Report bugs to <https://issues.asterisk.org>.
- #
- #
- # 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.
- #
- # "Asterisk"
- ## -------------------- ##
- ## 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 and
- $0: https://issues.asterisk.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'"
- 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='asterisk'
- PACKAGE_TARNAME='asterisk'
- PACKAGE_VERSION='trunk'
- PACKAGE_STRING='asterisk trunk'
- PACKAGE_BUGREPORT='https://issues.asterisk.org'
- PACKAGE_URL=''
- ac_unique_file="main/asterisk.c"
- # 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
- PBX_SYSLOG
- PBX_SYSLOG_FACILITY_LOG_UUCP
- PBX_SYSLOG_FACILITY_LOG_SYSLOG
- PBX_SYSLOG_FACILITY_LOG_NEWS
- PBX_SYSLOG_FACILITY_LOG_MAIL
- PBX_SYSLOG_FACILITY_LOG_LPR
- PBX_SYSLOG_FACILITY_LOG_KERN
- PBX_SYSLOG_FACILITY_LOG_FTP
- PBX_SYSLOG_FACILITY_LOG_DAEMON
- PBX_SYSLOG_FACILITY_LOG_CRON
- PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
- PBX_SYSLOG_FACILITY_LOG_AUTH
- PBX_GENERIC_ODBC
- GENERIC_ODBC_INCLUDE
- GENERIC_ODBC_LIB
- GTK2_LIBS
- GTK2_CFLAGS
- PBX_LAUNCHD
- CONFIG_SDL
- PBX_SO_NOSIGPIPE
- PBX_MSG_NOSIGNAL
- PBX_IXJUSER
- GMIME_LIBS
- GMIME_CFLAGS
- OPENH323_BUILD
- OPENH323_SUFFIX
- OPENH323_LIBDIR
- OPENH323_INCDIR
- OPENH323DIR
- PWLIB_PLATFORM
- PWLIB_LIBDIR
- PWLIB_INCDIR
- PWLIBDIR
- PTLIB_CONFIG
- PJPROJECT_LIBS
- PJPROJECT_CFLAGS
- PG_CONFIG
- CONFIG_NETSNMP
- CONFIG_NEON29
- CONFIG_NEON
- CONFIG_MYSQLCLIENT
- PBX_MISDN_FAC_ERROR
- PBX_MISDN_FAC_RESULT
- LIBEDIT_LIBS
- LIBEDIT_CFLAGS
- LIBEDIT_INTERNAL
- ILBC_LIBS
- ILBC_CFLAGS
- ILBC_INTERNAL
- GSM_INTERNAL
- PBX_DAHDI_HALF_FULL
- PKG_CONFIG_LIBDIR
- PKG_CONFIG_PATH
- PKG_CONFIG
- PBX_DLADDR
- PBX_IP_MTU_DISCOVER
- PBX_RTLD_NOLOAD
- PBX_GLOB_BRACE
- PBX_GLOB_NOMAGIC
- AST_RPATH
- AST_CLANG_BLOCKS
- AST_CLANG_BLOCKS_LIBS
- AST_NESTED_FUNCTIONS
- AST_NATIVE_ARCH
- AST_SHADOW_WARNINGS
- AST_NO_STRICT_OVERFLOW
- AST_FORTIFY_SOURCE
- AST_TRAMPOLINES
- AST_DECLARATION_AFTER_STATEMENT
- GC_LDFLAGS
- GC_CFLAGS
- PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
- PBX_PTHREAD_RWLOCK_INITIALIZER
- AST_ASTERISKSSL
- HAS_POLL
- PBX_DYNAMIC_LIST
- POW_LIB
- PBX_WORKING_FORK
- LIBOBJS
- CONFIG_LIBXML2
- UUID_LIB
- UUID_INCLUDE
- EDITLINE_LIB
- ALLOCA
- PBX_ZLIB
- ZLIB_DIR
- ZLIB_INCLUDE
- ZLIB_LIB
- PBX_X11
- X11_DIR
- X11_INCLUDE
- X11_LIB
- PBX_VPB
- VPB_DIR
- VPB_INCLUDE
- VPB_LIB
- PBX_VORBIS
- VORBIS_DIR
- VORBIS_INCLUDE
- VORBIS_LIB
- PBX_UNIXODBC
- UNIXODBC_DIR
- UNIXODBC_INCLUDE
- UNIXODBC_LIB
- PBX_UNBOUND
- UNBOUND_DIR
- UNBOUND_INCLUDE
- UNBOUND_LIB
- PBX_TONEZONE
- TONEZONE_DIR
- TONEZONE_INCLUDE
- TONEZONE_LIB
- PBX_TINFO
- TINFO_DIR
- TINFO_INCLUDE
- TINFO_LIB
- PBX_TIMERFD
- TIMERFD_DIR
- TIMERFD_INCLUDE
- TIMERFD_LIB
- PBX_TERMCAP
- TERMCAP_DIR
- TERMCAP_INCLUDE
- TERMCAP_LIB
- PBX_FREETDS
- FREETDS_DIR
- FREETDS_INCLUDE
- FREETDS_LIB
- PBX_SUPPSERV
- SUPPSERV_DIR
- SUPPSERV_INCLUDE
- SUPPSERV_LIB
- PBX_OPENSSL
- OPENSSL_DIR
- OPENSSL_INCLUDE
- OPENSSL_LIB
- PBX_SRTP_SHUTDOWN
- SRTP_SHUTDOWN_DIR
- SRTP_SHUTDOWN_INCLUDE
- SRTP_SHUTDOWN_LIB
- PBX_SRTP
- SRTP_DIR
- SRTP_INCLUDE
- SRTP_LIB
- PBX_SQLITE3
- SQLITE3_DIR
- SQLITE3_INCLUDE
- SQLITE3_LIB
- PBX_SQLITE
- SQLITE_DIR
- SQLITE_INCLUDE
- SQLITE_LIB
- PBX_SPEEXDSP
- SPEEXDSP_DIR
- SPEEXDSP_INCLUDE
- SPEEXDSP_LIB
- PBX_SPEEX_PREPROCESS
- SPEEX_PREPROCESS_DIR
- SPEEX_PREPROCESS_INCLUDE
- SPEEX_PREPROCESS_LIB
- PBX_SPEEX
- SPEEX_DIR
- SPEEX_INCLUDE
- SPEEX_LIB
- PBX_SS7
- SS7_DIR
- SS7_INCLUDE
- SS7_LIB
- PBX_SPANDSP
- SPANDSP_DIR
- SPANDSP_INCLUDE
- SPANDSP_LIB
- SOUNDS_CACHE_DIR
- PBX_SDL_IMAGE
- SDL_IMAGE_DIR
- SDL_IMAGE_INCLUDE
- SDL_IMAGE_LIB
- PBX_SDL
- SDL_DIR
- SDL_INCLUDE
- SDL_LIB
- PBX_RESAMPLE
- RESAMPLE_DIR
- RESAMPLE_INCLUDE
- RESAMPLE_LIB
- PBX_RADIUS
- RADIUS_DIR
- RADIUS_INCLUDE
- RADIUS_LIB
- PBX_PWLIB
- PWLIB_DIR
- PWLIB_INCLUDE
- PWLIB_LIB
- PBX_PRI_REVERSE_CHARGE
- PRI_REVERSE_CHARGE_DIR
- PRI_REVERSE_CHARGE_INCLUDE
- PRI_REVERSE_CHARGE_LIB
- PBX_PRI_SERVICE_MESSAGES
- PRI_SERVICE_MESSAGES_DIR
- PRI_SERVICE_MESSAGES_INCLUDE
- PRI_SERVICE_MESSAGES_LIB
- PBX_PRI_PROG_W_CAUSE
- PRI_PROG_W_CAUSE_DIR
- PRI_PROG_W_CAUSE_INCLUDE
- PRI_PROG_W_CAUSE_LIB
- PBX_PRI_INBANDDISCONNECT
- PRI_INBANDDISCONNECT_DIR
- PRI_INBANDDISCONNECT_INCLUDE
- PRI_INBANDDISCONNECT_LIB
- PBX_PRI_SETUP_KEYPAD
- PRI_SETUP_KEYPAD_DIR
- PRI_SETUP_KEYPAD_INCLUDE
- PRI_SETUP_KEYPAD_LIB
- PBX_PRI_CALL_REROUTING
- PRI_CALL_REROUTING_DIR
- PRI_CALL_REROUTING_INCLUDE
- PRI_CALL_REROUTING_LIB
- PBX_PRI_CALL_HOLD
- PRI_CALL_HOLD_DIR
- PRI_CALL_HOLD_INCLUDE
- PRI_CALL_HOLD_LIB
- PBX_PRI_SUBADDR
- PRI_SUBADDR_DIR
- PRI_SUBADDR_INCLUDE
- PRI_SUBADDR_LIB
- PBX_PRI_HANGUP_FIX
- PRI_HANGUP_FIX_DIR
- PRI_HANGUP_FIX_INCLUDE
- PRI_HANGUP_FIX_LIB
- PBX_PRI_CCSS
- PRI_CCSS_DIR
- PRI_CCSS_INCLUDE
- PRI_CCSS_LIB
- PBX_PRI_TRANSFER
- PRI_TRANSFER_DIR
- PRI_TRANSFER_INCLUDE
- PRI_TRANSFER_LIB
- PBX_PRI_AOC_EVENTS
- PRI_AOC_EVENTS_DIR
- PRI_AOC_EVENTS_INCLUDE
- PRI_AOC_EVENTS_LIB
- PBX_PRI_CALL_WAITING
- PRI_CALL_WAITING_DIR
- PRI_CALL_WAITING_INCLUDE
- PRI_CALL_WAITING_LIB
- PBX_PRI_MCID
- PRI_MCID_DIR
- PRI_MCID_INCLUDE
- PRI_MCID_LIB
- PBX_PRI_MWI
- PRI_MWI_DIR
- PRI_MWI_INCLUDE
- PRI_MWI_LIB
- PBX_PRI_DISPLAY_TEXT
- PRI_DISPLAY_TEXT_DIR
- PRI_DISPLAY_TEXT_INCLUDE
- PRI_DISPLAY_TEXT_LIB
- PBX_PRI_MWI_V2
- PRI_MWI_V2_DIR
- PRI_MWI_V2_INCLUDE
- PRI_MWI_V2_LIB
- PBX_PRI_DATETIME_SEND
- PRI_DATETIME_SEND_DIR
- PRI_DATETIME_SEND_INCLUDE
- PRI_DATETIME_SEND_LIB
- PBX_PRI_L2_PERSISTENCE
- PRI_L2_PERSISTENCE_DIR
- PRI_L2_PERSISTENCE_INCLUDE
- PRI_L2_PERSISTENCE_LIB
- PBX_PRI_SETUP_ACK_INBAND
- PRI_SETUP_ACK_INBAND_DIR
- PRI_SETUP_ACK_INBAND_INCLUDE
- PRI_SETUP_ACK_INBAND_LIB
- PBX_PRI
- PRI_DIR
- PRI_INCLUDE
- PRI_LIB
- PBX_PORTAUDIO
- PORTAUDIO_DIR
- PORTAUDIO_INCLUDE
- PORTAUDIO_LIB
- PBX_PJ_SSL_CERT_LOAD_FROM_FILES2
- PJ_SSL_CERT_LOAD_FROM_FILES2_DIR
- PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE
- PJ_SSL_CERT_LOAD_FROM_FILES2_LIB
- PBX_PJSIP_GET_DEST_INFO
- PJSIP_GET_DEST_INFO_DIR
- PJSIP_GET_DEST_INFO_INCLUDE
- PJSIP_GET_DEST_INFO_LIB
- PBX_PJSIP_REPLACE_MEDIA_STREAM
- PJSIP_REPLACE_MEDIA_STREAM_DIR
- PJSIP_REPLACE_MEDIA_STREAM_INCLUDE
- PJSIP_REPLACE_MEDIA_STREAM_LIB
- PBX_PJ_TRANSACTION_GRP_LOCK
- PJ_TRANSACTION_GRP_LOCK_DIR
- PJ_TRANSACTION_GRP_LOCK_INCLUDE
- PJ_TRANSACTION_GRP_LOCK_LIB
- PBX_POPT
- POPT_DIR
- POPT_INCLUDE
- POPT_LIB
- PBX_PJPROJECT
- PJPROJECT_DIR
- PJPROJECT_INCLUDE
- PJPROJECT_LIB
- PBX_PGSQL
- PGSQL_DIR
- PGSQL_INCLUDE
- PGSQL_LIB
- PBX_OSS
- OSS_DIR
- OSS_INCLUDE
- OSS_LIB
- PBX_OSPTK
- OSPTK_DIR
- OSPTK_INCLUDE
- OSPTK_LIB
- PBX_OPUS
- OPUS_DIR
- OPUS_INCLUDE
- OPUS_LIB
- PBX_OPENR2
- OPENR2_DIR
- OPENR2_INCLUDE
- OPENR2_LIB
- PBX_OGG
- OGG_DIR
- OGG_INCLUDE
- OGG_LIB
- PBX_NEWT
- NEWT_DIR
- NEWT_INCLUDE
- NEWT_LIB
- PBX_NETSNMP
- NETSNMP_DIR
- NETSNMP_INCLUDE
- NETSNMP_LIB
- PBX_NEON29
- NEON29_DIR
- NEON29_INCLUDE
- NEON29_LIB
- PBX_NEON
- NEON_DIR
- NEON_INCLUDE
- NEON_LIB
- PBX_NCURSES
- NCURSES_DIR
- NCURSES_INCLUDE
- NCURSES_LIB
- PBX_NBS
- NBS_DIR
- NBS_INCLUDE
- NBS_LIB
- PBX_MYSQLCLIENT
- MYSQLCLIENT_DIR
- MYSQLCLIENT_INCLUDE
- MYSQLCLIENT_LIB
- PBX_MISDN
- MISDN_DIR
- MISDN_INCLUDE
- MISDN_LIB
- PBX_LUA
- LUA_DIR
- LUA_INCLUDE
- LUA_LIB
- PBX_LTDL
- LTDL_DIR
- LTDL_INCLUDE
- LTDL_LIB
- PBX_LIBXSLT_CLEANUP
- LIBXSLT_CLEANUP_DIR
- LIBXSLT_CLEANUP_INCLUDE
- LIBXSLT_CLEANUP_LIB
- PBX_LIBXSLT
- LIBXSLT_DIR
- LIBXSLT_INCLUDE
- LIBXSLT_LIB
- PBX_LIBXML2
- LIBXML2_DIR
- LIBXML2_INCLUDE
- LIBXML2_LIB
- PBX_LIBEDIT
- LIBEDIT_DIR
- LIBEDIT_INCLUDE
- LIBEDIT_LIB
- CURL_LIB
- CURL_INCLUDE
- _libcurl_config
- PBX_CURL
- PBX_LDAP
- LDAP_DIR
- LDAP_INCLUDE
- LDAP_LIB
- PBX_KQUEUE
- KQUEUE_DIR
- KQUEUE_INCLUDE
- KQUEUE_LIB
- PBX_URIPARSER
- URIPARSER_DIR
- URIPARSER_INCLUDE
- URIPARSER_LIB
- PBX_JANSSON
- JANSSON_DIR
- JANSSON_INCLUDE
- JANSSON_LIB
- PBX_JACK
- JACK_DIR
- JACK_INCLUDE
- JACK_LIB
- PBX_ISDNNET
- ISDNNET_DIR
- ISDNNET_INCLUDE
- ISDNNET_LIB
- PBX_IODBC
- IODBC_DIR
- IODBC_INCLUDE
- IODBC_LIB
- PBX_INOTIFY
- INOTIFY_DIR
- INOTIFY_INCLUDE
- INOTIFY_LIB
- PBX_IMAP_TK
- IMAP_TK_DIR
- IMAP_TK_INCLUDE
- IMAP_TK_LIB
- PBX_IKSEMEL
- IKSEMEL_DIR
- IKSEMEL_INCLUDE
- IKSEMEL_LIB
- PBX_ICONV
- ICONV_DIR
- ICONV_INCLUDE
- ICONV_LIB
- PBX_ICAL
- ICAL_DIR
- ICAL_INCLUDE
- ICAL_LIB
- PBX_HOARD
- HOARD_DIR
- HOARD_INCLUDE
- HOARD_LIB
- PBX_OPENH323
- OPENH323_DIR
- OPENH323_INCLUDE
- OPENH323_LIB
- PBX_GMIME
- GMIME_DIR
- GMIME_INCLUDE
- GMIME_LIB
- PBX_GTK2
- GTK2_DIR
- GTK2_INCLUDE
- GTK2_LIB
- PBX_ILBC
- ILBC_DIR
- ILBC_INCLUDE
- ILBC_LIB
- PBX_GSM
- GSM_DIR
- GSM_INCLUDE
- GSM_LIB
- PBX_FFMPEG
- FFMPEG_DIR
- FFMPEG_INCLUDE
- FFMPEG_LIB
- PBX_DAHDI
- DAHDI_DIR
- DAHDI_INCLUDE
- DAHDI_LIB
- PBX_OPENSSL_EC
- OPENSSL_EC_DIR
- OPENSSL_EC_INCLUDE
- OPENSSL_EC_LIB
- PBX_OPENSSL_SRTP
- OPENSSL_SRTP_DIR
- OPENSSL_SRTP_INCLUDE
- OPENSSL_SRTP_LIB
- PBX_CRYPTO
- CRYPTO_DIR
- CRYPTO_INCLUDE
- CRYPTO_LIB
- PBX_CRYPT
- CRYPT_DIR
- CRYPT_INCLUDE
- CRYPT_LIB
- PBX_CURSES
- CURSES_DIR
- CURSES_INCLUDE
- CURSES_LIB
- PBX_COROSYNC_CFG_STATE_TRACK
- COROSYNC_CFG_STATE_TRACK_DIR
- COROSYNC_CFG_STATE_TRACK_INCLUDE
- COROSYNC_CFG_STATE_TRACK_LIB
- PBX_COROSYNC
- COROSYNC_DIR
- COROSYNC_INCLUDE
- COROSYNC_LIB
- PBX_CAP
- CAP_DIR
- CAP_INCLUDE
- CAP_LIB
- PBX_BLUETOOTH
- BLUETOOTH_DIR
- BLUETOOTH_INCLUDE
- BLUETOOTH_LIB
- PBX_BKTR
- BKTR_DIR
- BKTR_INCLUDE
- BKTR_LIB
- PBX_BFD
- BFD_DIR
- BFD_INCLUDE
- BFD_LIB
- PBX_ALSA
- ALSA_DIR
- ALSA_INCLUDE
- ALSA_LIB
- AST_CODE_COVERAGE
- AST_DEVMODE_STRICT
- AST_DEVMODE
- NOISY_BUILD
- PTHREAD_CFLAGS
- PTHREAD_LIBS
- PTHREAD_CC
- acx_pthread_config
- MD5
- SOXMIX
- PBX_FLEX
- PBX_BISON
- OPENSSL
- SHA1SUM
- LDCONFIG
- DOWNLOAD
- FETCH
- GIT
- XMLSTARLET
- XMLLINT
- KPATHSEA
- CATDVI
- RUBBER
- CURL
- WGET
- DOT
- DOXYGEN
- LN
- DIRNAME
- BASENAME
- COMPRESS
- FIND
- PYTHON
- FLEX
- CMP
- BISON
- GNU_LD
- ac_ct_AR
- AR
- ac_ct_STRIP
- STRIP
- GNU_MAKE
- LN_S
- INSTALL_DATA
- INSTALL_SCRIPT
- INSTALL_PROGRAM
- AWK
- SED
- CXXCPP
- ac_ct_CXX
- CXXFLAGS
- RANLIB
- LD
- CXX
- PBX_OSREV
- UNAME
- CONFIG_SIGNED_CHAR
- PBX_WINARCH
- OSARCH
- HOST_OS
- HOST_VENDOR
- HOST_CPU
- HOST_PLATFORM
- BUILD_OS
- BUILD_VENDOR
- BUILD_CPU
- BUILD_PLATFORM
- astvarrundir
- astlogdir
- astspooldir
- astkeydir
- astdbdir
- astdatadir
- astvarlibdir
- astmandir
- astmoddir
- astlibdir
- astheaderdir
- astetcdir
- astsbindir
- EGREP
- GREP
- CPP
- OBJEXT
- EXEEXT
- ac_ct_CC
- CPPFLAGS
- LDFLAGS
- CFLAGS
- CC
- CONFIG_LDFLAGS
- CONFIG_CFLAGS
- host_os
- host_vendor
- host_cpu
- host
- build_os
- build_vendor
- build_cpu
- build
- 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
- 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_gnu_ld
- enable_dev_mode
- enable_coverage
- with_asound
- with_bfd
- with_execinfo
- with_bluetooth
- with_cap
- with_cpg
- with_curses
- with_crypt
- with_crypto
- with_dahdi
- with_avcodec
- with_gsm
- with_ilbc
- with_gtk2
- with_gmime
- with_h323
- with_hoard
- with_ical
- with_iconv
- with_iksemel
- with_imap
- with_inotify
- with_iodbc
- with_isdnnet
- with_jack
- with_jansson
- with_uriparser
- with_kqueue
- with_ldap
- with_libcurl
- with_libedit
- with_libxml2
- with_libxslt
- with_ltdl
- with_lua
- with_misdn
- with_mysqlclient
- with_nbs
- with_ncurses
- with_neon
- with_neon29
- with_netsnmp
- with_newt
- with_ogg
- with_openr2
- with_opus
- with_osptk
- with_oss
- with_postgres
- with_pjproject
- with_popt
- with_portaudio
- with_pri
- with_pwlib
- with_radius
- with_resample
- with_sdl
- with_SDL_image
- with_sounds_cache
- with_spandsp
- with_ss7
- with_speex
- with_speexdsp
- with_sqlite
- with_sqlite3
- with_srtp
- with_ssl
- with_suppserv
- with_tds
- with_termcap
- with_timerfd
- with_tinfo
- with_tonezone
- with_unbound
- with_unixodbc
- with_vorbis
- with_vpb
- with_x11
- with_z
- enable_xmldoc
- enable_largefile
- enable_internal_poll
- enable_asteriskssl
- enable_rpath
- '
- ac_precious_vars='build_alias
- host_alias
- target_alias
- CC
- CFLAGS
- LDFLAGS
- LIBS
- CPPFLAGS
- CPP
- CXX
- CXXFLAGS
- CCC
- CXXCPP
- PKG_CONFIG
- PKG_CONFIG_PATH
- PKG_CONFIG_LIBDIR
- ILBC_CFLAGS
- ILBC_LIBS
- LIBEDIT_CFLAGS
- LIBEDIT_LIBS
- PJPROJECT_CFLAGS
- PJPROJECT_LIBS
- GMIME_CFLAGS
- GMIME_LIBS
- GTK2_CFLAGS
- GTK2_LIBS'
- # 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'
- includedir='${prefix}/include'
- oldincludedir='/usr/include'
- docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
- 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 ;;
- -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
- 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 asterisk trunk 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]
- --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/asterisk]
- --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]
- _ACEOF
- fi
- if test -n "$ac_init_help"; then
- case $ac_init_help in
- short | recursive ) echo "Configuration of asterisk trunk:";;
- esac
- cat <<\_ACEOF
- Optional Features:
- --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]
- --enable-dev-mode Turn on developer mode
- --enable-coverage Turn on code coverage tracking (for gcov)
- --disable-xmldoc Explicitly disable XML documentation
- --disable-largefile omit support for large files
- --enable-internal-poll Use Asterisk's poll implementation
- --disable-asteriskssl Disable Asterisk's SSL wrapper library
- --disable-rpath Disables rpath linker option checking
- Optional Packages:
- --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
- --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
- --with-gnu-ld assume the C compiler uses GNU ld [default=no]
- --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
- --with-bfd=PATH use Debug symbol decoding files in PATH
- --with-execinfo=PATH use Stack Backtrace files in PATH
- --with-bluetooth=PATH use Bluetooth files in PATH
- --with-cap=PATH use POSIX 1.e capabilities files in PATH
- --with-cpg=PATH use Corosync files in PATH
- --with-curses=PATH use curses files in PATH
- --with-crypt=PATH use password and data encryption files in PATH
- --with-crypto=PATH use OpenSSL Cryptography files in PATH
- --with-dahdi=PATH use DAHDI files in PATH
- --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
- --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
- otherwise
- --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
- otherwise
- --with-gtk2=PATH use gtk2 files in PATH
- --with-gmime=PATH use GMime files in PATH
- --with-h323=PATH use OpenH323 files in PATH
- --with-hoard=PATH use Hoard Memory Allocator files in PATH
- --with-ical=PATH use iCal files in PATH
- --with-iconv=PATH use Iconv files in PATH
- --with-iksemel=PATH use Iksemel Jabber files in PATH
- --with-imap=PATH use UW IMAP Toolkit files in PATH
- --with-inotify=PATH use inotify support files in PATH
- --with-iodbc=PATH use iODBC files in PATH
- --with-isdnnet=PATH use ISDN4Linux files in PATH
- --with-jack=PATH use Jack Audio Connection Kit files in PATH
- --with-jansson=PATH use Jansson JSON library files in PATH
- --with-uriparser=PATH use uriparser library files in PATH
- --with-kqueue=PATH use kqueue support files in PATH
- --with-ldap=PATH use OpenLDAP files in PATH
- --with-libcurl=DIR look for the curl library in DIR
- --with-libedit=PATH use NetBSD Editline library files in PATH, use
- 'internal' Editline otherwise
- --with-libxml2=PATH use LibXML2 files in PATH
- --with-libxslt=PATH use LibXSLT files in PATH
- --with-ltdl=PATH use libtool files in PATH
- --with-lua=PATH use Lua files in PATH
- --with-misdn=PATH use mISDN user files in PATH
- --with-mysqlclient=PATH use MySQL client files in PATH
- --with-nbs=PATH use Network Broadcast Sound files in PATH
- --with-ncurses=PATH use ncurses files in PATH
- --with-neon=PATH use neon files in PATH
- --with-neon29=PATH use neon29 files in PATH
- --with-netsnmp=PATH use Net-SNMP files in PATH
- --with-newt=PATH use newt files in PATH
- --with-ogg=PATH use OGG files in PATH
- --with-openr2=PATH use MFR2 files in PATH
- --with-opus=PATH use Opus files in PATH
- --with-osptk=PATH use OSP Toolkit files in PATH
- --with-oss=PATH use Open Sound System files in PATH
- --with-postgres=PATH use PostgreSQL files in PATH
- --with-pjproject=PATH use PJPROJECT files in PATH
- --with-popt=PATH use popt files in PATH
- --with-portaudio=PATH use PortAudio files in PATH
- --with-pri=PATH use ISDN PRI files in PATH
- --with-pwlib=PATH use PWlib files in PATH
- --with-radius=PATH use Radius Client files in PATH
- --with-resample=PATH use LIBRESAMPLE files in PATH
- --with-sdl=PATH use Sdl files in PATH
- --with-SDL_image=PATH use Sdl Image files in PATH
- --with-sounds-cache=PATH
- use cached sound tarfiles in PATH
- --with-spandsp=PATH use SPANDSP files in PATH
- --with-ss7=PATH use ISDN SS7 files in PATH
- --with-speex=PATH use Speex files in PATH
- --with-speex=PATH use Speex preprocess routines files in PATH
- --with-speexdsp=PATH use SpeexDSP files in PATH
- --with-sqlite=PATH use SQLite files in PATH
- --with-sqlite3=PATH use SQLite files in PATH
- --with-srtp=PATH use Secure RTP files in PATH
- --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
- --with-suppserv=PATH use mISDN Supplemental Services files in PATH
- --with-tds=PATH use FreeTDS files in PATH
- --with-termcap=PATH use Termcap files in PATH
- --with-timerfd=PATH use timerfd files in PATH
- --with-tinfo=PATH use Term Info files in PATH
- --with-tonezone=PATH use tonezone files in PATH
- --with-unbound=PATH use unbound files in PATH
- --with-unixodbc=PATH use unixODBC files in PATH
- --with-vorbis=PATH use Vorbis files in PATH
- --with-vpb=PATH use Voicetronix API files in PATH
- --with-x11=PATH use X11 files in PATH
- --with-z=PATH use zlib compression files in PATH
- 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
- CXX C++ compiler command
- CXXFLAGS C++ compiler flags
- CXXCPP C++ preprocessor
- PKG_CONFIG path to pkg-config utility
- PKG_CONFIG_PATH
- directories to add to pkg-config's search path
- PKG_CONFIG_LIBDIR
- path overriding pkg-config's built-in search path
- ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
- ILBC_LIBS linker flags for ILBC, overriding pkg-config
- LIBEDIT_CFLAGS
- C compiler flags for LIBEDIT, overriding pkg-config
- LIBEDIT_LIBS
- linker flags for LIBEDIT, overriding pkg-config
- PJPROJECT_CFLAGS
- C compiler flags for PJPROJECT, overriding pkg-config
- PJPROJECT_LIBS
- linker flags for PJPROJECT, overriding pkg-config
- GMIME_CFLAGS
- C compiler flags for GMIME, overriding pkg-config
- GMIME_LIBS linker flags for GMIME, overriding pkg-config
- GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
- GTK2_LIBS linker flags for GTK2, overriding pkg-config
- 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 <https://issues.asterisk.org>.
- _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
- asterisk configure trunk
- 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.
- "Asterisk"
- _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;}
- ( $as_echo "## ------------------------------------------ ##
- ## Report this to https://issues.asterisk.org ##
- ## ------------------------------------------ ##"
- ) | sed "s/^/$as_me: WARNING: /" >&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_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
- # 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_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_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_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_cxx_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_cxx_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_cxx_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_cxx_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_cxx_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;}
- ( $as_echo "## ------------------------------------------ ##
- ## Report this to https://issues.asterisk.org ##
- ## ------------------------------------------ ##"
- ) | sed "s/^/$as_me: WARNING: /" >&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_cxx_check_header_mongrel
- # ac_fn_cxx_try_link LINENO
- # -------------------------
- # Try to link conftest.$ac_ext, and return whether this succeeded.
- ac_fn_cxx_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_cxx_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_cxx_try_link
- # ac_fn_cxx_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_cxx_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_cxx_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_cxx_check_header_compile
- 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 asterisk $as_me trunk, 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 " stdlib.h"
- as_fn_append ac_header_list " unistd.h"
- as_fn_append ac_header_list " sys/param.h"
- 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
- # cross-compile macros
- 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
- # check existence of the package
- ac_aux_dir=
- for ac_dir in `pwd` "$srcdir"/`pwd`; 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 \`pwd\` \"$srcdir\"/\`pwd\`" "$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.
- # preserve any CFLAGS or LDFLAGS that may be set
- # NOTE: This must be done before calling any macros that end up
- # calling AC_PROG_CC or the like, since they will set a default
- # set of CFLAGS ("-g -O2") if the user did not supply any, and
- # we don't want those default flags to be carried over into the
- # rest of the build system since we have other means of controlling
- # debugging symbol generation and optimization.
- CONFIG_CFLAGS="${CFLAGS}"
- CONFIG_LDFLAGS="${LDFLAGS}"
- # specify output header file
- ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
- # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
- # other macro that uses the C compiler, or the default order will be used.
- 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 gcc cc
- 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 gcc cc
- 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 -O2"
- else
- CFLAGS="-g"
- fi
- else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- 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
- { $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 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
- # System default paths
- astsbindir='${sbindir}'
- astetcdir='${sysconfdir}/asterisk'
- astheaderdir='${includedir}/asterisk'
- astlibdir='${libdir}'
- astmoddir='${libdir}/asterisk/modules'
- astmandir='${mandir}'
- astvarlibdir='${localstatedir}/lib/asterisk'
- astdatadir='${astvarlibdir}'
- astdbdir='${astvarlibdir}'
- astkeydir='${astvarlibdir}'
- astspooldir='${localstatedir}/spool/asterisk'
- astlogdir='${localstatedir}/log/asterisk'
- astvarrundir='${localstatedir}/run/asterisk'
- case "${host_os}" in
- *bsd*)
- if test ${prefix} = 'NONE'; then
- astvarlibdir='${prefix}/share/asterisk'
- astdbdir='${localstatedir}/db/asterisk'
- fi
- ;;
- darwin*)
- if test ${prefix} = 'NONE'; then
- astvarrundir='/Library/Application Support/Asterisk/Run'
- fi
- ;;
- esac
- case "${host_os}" in
- freebsd*)
- ac_default_prefix=/usr/local
- CPPFLAGS=-I/usr/local/include
- LDFLAGS=-L/usr/local/lib
- ;;
- openbsd*)
- ac_default_prefix=/usr/local
- if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
- if test ${sysconfdir} = '${prefix}/etc'; then
- astetcdir=/etc/asterisk
- fi
- if test ${mandir} = '${prefix}/man'; then
- astmandir=/usr/share/man
- fi
- fi
- CPPFLAGS=-I/usr/local/include
- LDFLAGS=-L/usr/local/lib
- ;;
- darwin*)
- ac_default_prefix=/usr/local
- if test ${prefix} = 'NONE'; then
- astmoddir='/Library/Application Support/Asterisk/Modules'
- astvarlibdir='/Library/Application Support/Asterisk'
- astlogdir=/Library/Logs/Asterisk
- astvarrundir='/Library/Application Support/Asterisk/Run'
- fi
- $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
- $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
- ;;
- solaris*)
- if test ${prefix} = 'NONE'; then
- astetcdir=/var/etc/asterisk
- astsbindir=/opt/asterisk/sbin
- astlibdir=/opt/asterisk/lib
- astmoddir=/opt/asterisk/lib/modules
- astheaderdir=/opt/asterisk/include
- astmandir=/opt/asterisk/man
- astvarlibdir=/var/opt/asterisk
- astspooldir=/var/spool/asterisk
- astlogdir=/var/log/asterisk
- astvarrundir=/var/run/asterisk
- fi
- ;;
- *)
- ac_default_prefix=/usr
- if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
- if test ${sysconfdir} = '${prefix}/etc'; then
- sysconfdir=/etc
- fi
- if test ${mandir} = '${prefix}/man'; then
- mandir=/usr/share/man
- fi
- fi
- ;;
- esac
- if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
- if test ${localstatedir} = '${prefix}/var'; then
- localstatedir=/var
- fi
- fi
- BUILD_PLATFORM=${build}
- BUILD_CPU=${build_cpu}
- BUILD_VENDOR=${build_vendor}
- BUILD_OS=${build_os}
- HOST_PLATFORM=${host}
- HOST_CPU=${host_cpu}
- HOST_VENDOR=${host_vendor}
- HOST_OS=${host_os}
- PBX_WINARCH=0
- case "${host_os}" in
- freebsd*)
- OSARCH=FreeBSD
- ;;
- netbsd*)
- OSARCH=NetBSD
- ;;
- openbsd*)
- OSARCH=OpenBSD
- ;;
- solaris*)
- OSARCH=SunOS
- ;;
- mingw32)
- OSARCH=mingw32
- PBX_WINARCH=1
- ;;
- cygwin)
- OSARCH=cygwin
- PBX_WINARCH=1
- ;;
- linux-gnueabi* | linux-gnuspe)
- OSARCH=linux-gnu
- ;;
- kfreebsd*-gnu)
- OSARCH=kfreebsd-gnu
- ;;
- *)
- OSARCH=${host_os}
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
- $as_echo_n "checking whether char is unsigned... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <limits.h>
- #if CHAR_MIN == 0
- #error
- #endif
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- CONFIG_SIGNED_CHAR=""
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- CONFIG_SIGNED_CHAR="-fsigned-char"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- # check for uname
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
- set dummy ${ac_tool_prefix}uname; 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_UNAME+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $UNAME in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_UNAME="$UNAME" # 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_UNAME="$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
- UNAME=$ac_cv_path_UNAME
- if test -n "$UNAME"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
- $as_echo "$UNAME" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_UNAME"; then
- ac_pt_UNAME=$UNAME
- # Extract the first word of "uname", so it can be a program name with args.
- set dummy uname; 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_ac_pt_UNAME+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ac_pt_UNAME in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # 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_ac_pt_UNAME="$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
- ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
- if test -n "$ac_pt_UNAME"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_UNAME" >&5
- $as_echo "$ac_pt_UNAME" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_UNAME" = x; then
- UNAME="No"
- 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
- UNAME=$ac_pt_UNAME
- fi
- else
- UNAME="$ac_cv_path_UNAME"
- fi
- if test ! x"${UNAME}" = xNo; then
- PBX_OSREV=$(${UNAME} -r)
- fi
- # cross-compile checks
- if test "${cross_compiling}" = "yes";
- then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
- set dummy ${ac_tool_prefix}gcc; 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}gcc"
- $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
- fi
- if test -z "$ac_cv_prog_CC"; then
- ac_ct_CC=$CC
- # Extract the first word of "gcc", so it can be a program name with args.
- set dummy gcc; 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="gcc"
- $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
- 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
- else
- CC="$ac_cv_prog_CC"
- fi
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
- set dummy ${ac_tool_prefix}g++; 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}g++"
- $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
- fi
- if test -z "$ac_cv_prog_CXX"; then
- ac_ct_CXX=$CXX
- # Extract the first word of "g++", so it can be a program name with args.
- set dummy g++; 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="g++"
- $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
- if test "x$ac_ct_CXX" = x; then
- CXX=":"
- 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
- else
- CXX="$ac_cv_prog_CXX"
- fi
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
- set dummy ${ac_tool_prefix}ld; 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_LD+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$LD"; then
- ac_cv_prog_LD="$LD" # 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_LD="${ac_tool_prefix}ld"
- $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
- LD=$ac_cv_prog_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
- fi
- if test -z "$ac_cv_prog_LD"; then
- ac_ct_LD=$LD
- # Extract the first word of "ld", so it can be a program name with args.
- set dummy ld; 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_LD+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_LD"; then
- ac_cv_prog_ac_ct_LD="$ac_ct_LD" # 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_LD="ld"
- $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_LD=$ac_cv_prog_ac_ct_LD
- if test -n "$ac_ct_LD"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
- $as_echo "$ac_ct_LD" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_LD" = x; then
- LD=":"
- 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
- LD=$ac_ct_LD
- fi
- else
- LD="$ac_cv_prog_LD"
- 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
- fi
- # Checks for programs.
- 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 -O2"
- else
- CXXFLAGS="-g"
- fi
- else
- if test "$GXX" = yes; then
- CXXFLAGS="-O2"
- 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=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
- 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
- # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
- # the developers regenerating the configure script don't have to install libtool.
- { $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 ${ac_cv_path_SED+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
- for ac_i in 1 2 3 4 5 6 7; do
- ac_script="$ac_script$as_nl$ac_script"
- done
- echo "$ac_script" | sed 99q >conftest.sed
- $as_unset ac_script || ac_script=
- if test -z "$SED"; then
- ac_path_SED_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
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_prog in sed gsed; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
- as_fn_executable_p "$ac_path_SED" || continue
- # Check for GNU ac_path_SED and select it if it is found.
- # Check for GNU $ac_path_SED
- case `"$ac_path_SED" --version 2>&1` in
- *GNU*)
- ac_cv_path_SED="$ac_path_SED" ac_path_SED_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 '' >> "conftest.nl"
- "$ac_path_SED" -f conftest.sed < "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_SED_max-0}; then
- # Best one so far, save it but keep looking for a better one
- ac_cv_path_SED="$ac_path_SED"
- ac_path_SED_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_SED_found && break 3
- done
- done
- done
- IFS=$as_save_IFS
- if test -z "$ac_cv_path_SED"; then
- as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
- fi
- else
- ac_cv_path_SED=$SED
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
- $as_echo "$ac_cv_path_SED" >&6; }
- SED="$ac_cv_path_SED"
- rm -f conftest.sed
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
- $as_echo_n "checking for egrep... " >&6; }
- if ${ac_cv_prog_egrep+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if echo a | (grep -E '(a|b)') >/dev/null 2>&1
- then ac_cv_prog_egrep='grep -E'
- else ac_cv_prog_egrep='egrep'
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_egrep" >&5
- $as_echo "$ac_cv_prog_egrep" >&6; }
- EGREP=$ac_cv_prog_egrep
- # 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
- # note, does not work on FreeBSD
- for ac_prog in gawk mawk nawk awk
- 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
- 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_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
- # Find a good install program. We prefer a C program (faster),
- # so one script is as good as another. But avoid the broken or
- # incompatible versions:
- # SysV /etc/install, /usr/sbin/install
- # SunOS /usr/etc/install
- # IRIX /sbin/install
- # AIX /bin/install
- # AmigaOS /C/install, which installs bootblocks on floppy discs
- # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
- # AFS /usr/afsws/bin/install, which mishandles nonexistent args
- # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
- # OS/2's system install, which has a completely different semantic
- # ./install, which can be erroneously created by make from ./install.sh.
- # Reject install programs that cannot install multiple files.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
- $as_echo_n "checking for a BSD-compatible install... " >&6; }
- if test -z "$INSTALL"; then
- if ${ac_cv_path_install+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in $PATH
- do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- # Account for people who put trailing slashes in PATH elements.
- case $as_dir/ in #((
- ./ | .// | /[cC]/* | \
- /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
- ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
- /usr/ucb/* ) ;;
- *)
- # OSF1 and SCO ODT 3.0 have their own names for install.
- # Don't use installbsd from OSF since it installs stuff as root
- # by default.
- for ac_prog in ginstall scoinst install; do
- for ac_exec_ext in '' $ac_executable_extensions; do
- if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
- if test $ac_prog = install &&
- grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
- # AIX install. It has an incompatible calling convention.
- :
- elif test $ac_prog = install &&
- grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
- # program-specific install script used by HP pwplus--don't use.
- :
- else
- rm -rf conftest.one conftest.two conftest.dir
- echo one > conftest.one
- echo two > conftest.two
- mkdir conftest.dir
- if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
- test -s conftest.one && test -s conftest.two &&
- test -s conftest.dir/conftest.one &&
- test -s conftest.dir/conftest.two
- then
- ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
- break 3
- fi
- fi
- fi
- done
- done
- ;;
- esac
- done
- IFS=$as_save_IFS
- rm -rf conftest.one conftest.two conftest.dir
- fi
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL=$ac_cv_path_install
- else
- # As a last resort, use the slow shell script. Don't cache a
- # value for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the value is a relative name.
- INSTALL=$ac_install_sh
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
- $as_echo "$INSTALL" >&6; }
- # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
- # It thinks the first close brace ends the variable substitution.
- test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
- test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
- test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
- { $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
- 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 GNU make" >&5
- $as_echo_n "checking for GNU make... " >&6; }
- if ${ac_cv_GNU_MAKE+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_GNU_MAKE='Not Found' ;
- ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
- ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
- for a in make gmake gnumake ; do
- if test -z "$a" ; then continue ; fi ;
- if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
- ac_cv_GNU_MAKE=$a ;
- ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
- ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
- break;
- fi
- done ;
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
- $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
- if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
- as_fn_error $? "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5
- exit 1
- fi
- GNU_MAKE=$ac_cv_GNU_MAKE
- { $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"
- if test -n "$ac_tool_prefix"; then
- for ac_prog in strip gstrip
- 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_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$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
- 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
- test -n "$STRIP" && break
- done
- fi
- if test -z "$STRIP"; then
- ac_ct_STRIP=$STRIP
- for ac_prog in strip gstrip
- 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_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="$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_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
- test -n "$ac_ct_STRIP" && break
- done
- 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
- fi
- if test -n "$ac_tool_prefix"; then
- for ac_prog in ar gar
- 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_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$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
- 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
- test -n "$AR" && break
- done
- fi
- if test -z "$AR"; then
- ac_ct_AR=$AR
- for ac_prog in ar gar
- 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_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="$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_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
- test -n "$ac_ct_AR" && break
- done
- if test "x$ac_ct_AR" = x; then
- AR=":"
- 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
- fi
- GNU_LD=0
- if test "x$with_gnu_ld" = "xyes" ; then
- GNU_LD=1
- fi
- # Extract the first word of "bison", so it can be a program name with args.
- set dummy bison; 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_BISON+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $BISON in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_BISON="$BISON" # 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_BISON="$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_BISON" && ac_cv_path_BISON=":"
- ;;
- esac
- fi
- BISON=$ac_cv_path_BISON
- if test -n "$BISON"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
- $as_echo "$BISON" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "cmp", so it can be a program name with args.
- set dummy cmp; 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_CMP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $CMP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CMP="$CMP" # 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_CMP="$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_CMP" && ac_cv_path_CMP=":"
- ;;
- esac
- fi
- CMP=$ac_cv_path_CMP
- if test -n "$CMP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
- $as_echo "$CMP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "flex", so it can be a program name with args.
- set dummy flex; 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_FLEX+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $FLEX in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_FLEX="$FLEX" # 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_FLEX="$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_FLEX" && ac_cv_path_FLEX=":"
- ;;
- esac
- fi
- FLEX=$ac_cv_path_FLEX
- if test -n "$FLEX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
- $as_echo "$FLEX" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "grep", so it can be a program name with args.
- set dummy grep; 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_GREP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $GREP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_GREP="$GREP" # 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_GREP="$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_GREP" && ac_cv_path_GREP=":"
- ;;
- esac
- fi
- GREP=$ac_cv_path_GREP
- if test -n "$GREP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
- $as_echo "$GREP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "python", so it can be a program name with args.
- set dummy python; 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_PYTHON+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PYTHON in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PYTHON="$PYTHON" # 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_PYTHON="$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_PYTHON" && ac_cv_path_PYTHON=":"
- ;;
- esac
- fi
- PYTHON=$ac_cv_path_PYTHON
- if test -n "$PYTHON"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
- $as_echo "$PYTHON" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "find", so it can be a program name with args.
- set dummy find; 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_FIND+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $FIND in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_FIND="$FIND" # 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_FIND="$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_FIND" && ac_cv_path_FIND=":"
- ;;
- esac
- fi
- FIND=$ac_cv_path_FIND
- if test -n "$FIND"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
- $as_echo "$FIND" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "compress", so it can be a program name with args.
- set dummy compress; 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_COMPRESS+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $COMPRESS in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_COMPRESS="$COMPRESS" # 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_COMPRESS="$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_COMPRESS" && ac_cv_path_COMPRESS=":"
- ;;
- esac
- fi
- COMPRESS=$ac_cv_path_COMPRESS
- if test -n "$COMPRESS"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
- $as_echo "$COMPRESS" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "basename", so it can be a program name with args.
- set dummy basename; 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_BASENAME+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $BASENAME in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_BASENAME="$BASENAME" # 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_BASENAME="$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_BASENAME" && ac_cv_path_BASENAME=":"
- ;;
- esac
- fi
- BASENAME=$ac_cv_path_BASENAME
- if test -n "$BASENAME"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
- $as_echo "$BASENAME" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "dirname", so it can be a program name with args.
- set dummy dirname; 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_DIRNAME+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $DIRNAME in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_DIRNAME="$DIRNAME" # 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_DIRNAME="$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_DIRNAME" && ac_cv_path_DIRNAME=":"
- ;;
- esac
- fi
- DIRNAME=$ac_cv_path_DIRNAME
- if test -n "$DIRNAME"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
- $as_echo "$DIRNAME" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "sh", so it can be a program name with args.
- set dummy sh; 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_SHELL+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $SHELL in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_SHELL="$SHELL" # 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_SHELL="$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_SHELL" && ac_cv_path_SHELL=":"
- ;;
- esac
- fi
- SHELL=$ac_cv_path_SHELL
- if test -n "$SHELL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL" >&5
- $as_echo "$SHELL" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "ln", so it can be a program name with args.
- set dummy ln; 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_LN+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $LN in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_LN="$LN" # 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_LN="$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_LN" && ac_cv_path_LN=":"
- ;;
- esac
- fi
- LN=$ac_cv_path_LN
- if test -n "$LN"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
- $as_echo "$LN" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "doxygen", so it can be a program name with args.
- set dummy doxygen; 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_DOXYGEN+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $DOXYGEN in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_DOXYGEN="$DOXYGEN" # 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_DOXYGEN="$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_DOXYGEN" && ac_cv_path_DOXYGEN=":"
- ;;
- esac
- fi
- DOXYGEN=$ac_cv_path_DOXYGEN
- if test -n "$DOXYGEN"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
- $as_echo "$DOXYGEN" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "dot", so it can be a program name with args.
- set dummy dot; 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_DOT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $DOT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_DOT="$DOT" # 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_DOT="$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_DOT" && ac_cv_path_DOT=":"
- ;;
- esac
- fi
- DOT=$ac_cv_path_DOT
- if test -n "$DOT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
- $as_echo "$DOT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "wget", so it can be a program name with args.
- set dummy wget; 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_WGET+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $WGET in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_WGET="$WGET" # 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_WGET="$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_WGET" && ac_cv_path_WGET=":"
- ;;
- esac
- fi
- WGET=$ac_cv_path_WGET
- if test -n "$WGET"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
- $as_echo "$WGET" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "curl", so it can be a program name with args.
- set dummy curl; 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_CURL+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $CURL in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CURL="$CURL" # 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_CURL="$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_CURL" && ac_cv_path_CURL=":"
- ;;
- esac
- fi
- CURL=$ac_cv_path_CURL
- if test -n "$CURL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
- $as_echo "$CURL" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "rubber", so it can be a program name with args.
- set dummy rubber; 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_RUBBER+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $RUBBER in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_RUBBER="$RUBBER" # 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_RUBBER="$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_RUBBER" && ac_cv_path_RUBBER=":"
- ;;
- esac
- fi
- RUBBER=$ac_cv_path_RUBBER
- if test -n "$RUBBER"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBBER" >&5
- $as_echo "$RUBBER" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "catdvi", so it can be a program name with args.
- set dummy catdvi; 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_CATDVI+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $CATDVI in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CATDVI="$CATDVI" # 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_CATDVI="$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_CATDVI" && ac_cv_path_CATDVI=":"
- ;;
- esac
- fi
- CATDVI=$ac_cv_path_CATDVI
- if test -n "$CATDVI"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CATDVI" >&5
- $as_echo "$CATDVI" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "kpsewhich", so it can be a program name with args.
- set dummy kpsewhich; 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_KPATHSEA+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $KPATHSEA in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_KPATHSEA="$KPATHSEA" # 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_KPATHSEA="$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_KPATHSEA" && ac_cv_path_KPATHSEA=":"
- ;;
- esac
- fi
- KPATHSEA=$ac_cv_path_KPATHSEA
- if test -n "$KPATHSEA"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KPATHSEA" >&5
- $as_echo "$KPATHSEA" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "xmllint", so it can be a program name with args.
- set dummy xmllint; 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_XMLLINT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $XMLLINT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_XMLLINT="$XMLLINT" # 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_XMLLINT="$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_XMLLINT" && ac_cv_path_XMLLINT=":"
- ;;
- esac
- fi
- XMLLINT=$ac_cv_path_XMLLINT
- if test -n "$XMLLINT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
- $as_echo "$XMLLINT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "xmlstarlet", so it can be a program name with args.
- set dummy xmlstarlet; 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_XMLSTARLET+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $XMLSTARLET in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_XMLSTARLET="$XMLSTARLET" # 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_XMLSTARLET="$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_XMLSTARLET" && ac_cv_path_XMLSTARLET=":"
- ;;
- esac
- fi
- XMLSTARLET=$ac_cv_path_XMLSTARLET
- if test -n "$XMLSTARLET"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLSTARLET" >&5
- $as_echo "$XMLSTARLET" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "git", so it can be a program name with args.
- set dummy git; 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_GIT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $GIT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_GIT="$GIT" # 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_GIT="$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_GIT" && ac_cv_path_GIT=":"
- ;;
- esac
- fi
- GIT=$ac_cv_path_GIT
- if test -n "$GIT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
- $as_echo "$GIT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "${WGET}" != ":" ; then
- DOWNLOAD=${WGET}
- else if test "${CURL}" != ":" ; then
- DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\""
- else
- # Extract the first word of "fetch", so it can be a program name with args.
- set dummy fetch; 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_FETCH+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $FETCH in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_FETCH="$FETCH" # 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_FETCH="$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_FETCH" && ac_cv_path_FETCH=":"
- ;;
- esac
- fi
- FETCH=$ac_cv_path_FETCH
- if test -n "$FETCH"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FETCH" >&5
- $as_echo "$FETCH" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- DOWNLOAD=${FETCH}
- fi
- fi
- # Extract the first word of "ldconfig", so it can be a program name with args.
- set dummy ldconfig; 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_LDCONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $LDCONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_LDCONFIG="$LDCONFIG" # 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_LDCONFIG="$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_LDCONFIG" && ac_cv_path_LDCONFIG=":"
- ;;
- esac
- fi
- LDCONFIG=$ac_cv_path_LDCONFIG
- if test -n "$LDCONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
- $as_echo "$LDCONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "sha1sum", so it can be a program name with args.
- set dummy sha1sum; 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_SHA1SUM+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $SHA1SUM in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_SHA1SUM="$SHA1SUM" # 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_SHA1SUM="$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_SHA1SUM" && ac_cv_path_SHA1SUM="$ac_aux_dir/build_tools/sha1sum-sh"
- ;;
- esac
- fi
- SHA1SUM=$ac_cv_path_SHA1SUM
- if test -n "$SHA1SUM"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHA1SUM" >&5
- $as_echo "$SHA1SUM" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- # Extract the first word of "openssl", so it can be a program name with args.
- set dummy openssl; 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_OPENSSL+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $OPENSSL in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_OPENSSL="$OPENSSL" # 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_OPENSSL="$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_OPENSSL" && ac_cv_path_OPENSSL=":"
- ;;
- esac
- fi
- OPENSSL=$ac_cv_path_OPENSSL
- if test -n "$OPENSSL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
- $as_echo "$OPENSSL" >&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 bison that supports parse-param" >&5
- $as_echo_n "checking for bison that supports parse-param... " >&6; }
- if ${ac_cv_path_BISON2+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "x$BISON" != "x:" ; then
- # Create a temporary directory $tmp in $TMPDIR (default /tmp).
- # Use mktemp if possible; otherwise fall back on mkdir,
- # with $RANDOM to make collisions less likely.
- : ${TMPDIR=/tmp}
- {
- tmp=`
- (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
- ` &&
- test -n "$tmp" && test -d "$tmp"
- } || {
- tmp=$TMPDIR/foo$$-$RANDOM
- (umask 077 && mkdir "$tmp")
- } || exit $?
- cat >$tmp/test.y <<__EOL__
- %parse-param {struct parse_io *parseio}
- %%
- file : { \$\$ = parseio->pval = 1; }
- ;
- %%
- __EOL__
- ${BISON} -o ${tmp}/test.tab.c ${tmp}/test.y >/dev/null 2>&1
- if test -e "${tmp}/test.tab.c"; then
- ac_cv_path_BISON2=${BISON}
- fi
- rm -rf ${tmp}
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_BISON2" >&5
- $as_echo "$ac_cv_path_BISON2" >&6; }
- if test "x${ac_cv_path_BISON2}" = "x" ; then
- BISON=:
- PBX_BISON=0
- else
- PBX_BISON=1
- fi
- if test "x${FLEX}" = "x:" ; then
- PBX_FLEX=0
- else
- PBX_FLEX=1
- fi
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
- set dummy ${ac_tool_prefix}soxmix; 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_SOXMIX+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$SOXMIX"; then
- ac_cv_prog_SOXMIX="$SOXMIX" # 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_SOXMIX="${ac_tool_prefix}soxmix"
- $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
- SOXMIX=$ac_cv_prog_SOXMIX
- if test -n "$SOXMIX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOXMIX" >&5
- $as_echo "$SOXMIX" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_prog_SOXMIX"; then
- ac_ct_SOXMIX=$SOXMIX
- # Extract the first word of "soxmix", so it can be a program name with args.
- set dummy soxmix; 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_SOXMIX+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$ac_ct_SOXMIX"; then
- ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # 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_SOXMIX="soxmix"
- $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_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
- if test -n "$ac_ct_SOXMIX"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SOXMIX" >&5
- $as_echo "$ac_ct_SOXMIX" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_ct_SOXMIX" = x; then
- SOXMIX=":"
- 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
- SOXMIX=$ac_ct_SOXMIX
- fi
- else
- SOXMIX="$ac_cv_prog_SOXMIX"
- fi
- if test "${SOXMIX}" != ":" ; then
- $as_echo "#define HAVE_SOXMIX 1" >>confdefs.h
- fi
- for ac_prog in md5 md5sum gmd5sum digest
- 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_MD5+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$MD5"; then
- ac_cv_prog_MD5="$MD5" # 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_MD5="$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
- MD5=$ac_cv_prog_MD5
- if test -n "$MD5"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5" >&5
- $as_echo "$MD5" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$MD5" && break
- done
- if test "${MD5}" = "digest" ; then
- MD5="${MD5} -a md5"
- 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
- acx_pthread_ok=no
- # We used to check for pthread.h first, but this fails if pthread.h
- # requires special compiler flags (e.g. on True64 or Sequent).
- # It gets checked for in the link test anyway.
- # First of all, check if the user has set any of the PTHREAD_LIBS,
- # etcetera environment variables, and if threads linking works using
- # them:
- if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
- save_LIBS="$LIBS"
- LIBS="$PTHREAD_LIBS $LIBS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
- $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
- 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 pthread_join ();
- int
- main ()
- {
- return pthread_join ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- acx_pthread_ok=yes
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
- $as_echo "$acx_pthread_ok" >&6; }
- if test x"$acx_pthread_ok" = xno; then
- PTHREAD_LIBS=""
- PTHREAD_CFLAGS=""
- fi
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
- fi
- # We must check for the threads library under a number of different
- # names; the ordering is very important because some systems
- # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
- # libraries is broken (non-POSIX).
- # Create a list of thread flags to try. Items starting with a "-" are
- # C compiler flags, and other items are library names, except for "none"
- # which indicates that we try without any flags at all, and "pthread-config"
- # which is a program returning the flags for the Pth emulation library.
- acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
- # The ordering *is* (sometimes) important. Some notes on the
- # individual items follow:
- # pthreads: AIX (must check this before -lpthread)
- # none: in case threads are in libc; should be tried before -Kthread and
- # other compiler flags to prevent continual compiler warnings
- # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
- # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
- # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
- # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
- # -pthreads: Solaris/gcc
- # -mthreads: Mingw32/gcc, Lynx/gcc
- # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
- # doesn't hurt to check since this sometimes defines pthreads too;
- # also defines -D_REENTRANT)
- # ... -mt is also the pthreads flag for HP/aCC
- # pthread: Linux, etcetera
- # --thread-safe: KAI C++
- # pthread-config: use pthread-config program (for GNU Pth library)
- case "${host_cpu}-${host_os}" in
- *solaris*)
- # On Solaris (at least, for some versions), libc contains stubbed
- # (non-functional) versions of the pthreads routines, so link-based
- # tests will erroneously succeed. (We need to link with -pthreads/-mt/
- # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
- # a function called by this macro, so we could check for that, but
- # who knows whether they'll stub that too in a future libc.) So,
- # we'll just look for -pthreads and -lpthread first:
- acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
- ;;
- esac
- if test x"$acx_pthread_ok" = xno; then
- for flag in $acx_pthread_flags; do
- case $flag in
- none)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
- $as_echo_n "checking whether pthreads work without any flags... " >&6; }
- ;;
- -*)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
- $as_echo_n "checking whether pthreads work with $flag... " >&6; }
- PTHREAD_CFLAGS="$flag"
- ;;
- pthread-config)
- # Extract the first word of "pthread-config", so it can be a program name with args.
- set dummy pthread-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_prog_acx_pthread_config+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$acx_pthread_config"; then
- ac_cv_prog_acx_pthread_config="$acx_pthread_config" # 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_acx_pthread_config="yes"
- $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_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
- fi
- fi
- acx_pthread_config=$ac_cv_prog_acx_pthread_config
- if test -n "$acx_pthread_config"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
- $as_echo "$acx_pthread_config" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test x"$acx_pthread_config" = xno; then continue; fi
- PTHREAD_CFLAGS="`pthread-config --cflags`"
- PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
- ;;
- *)
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
- $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
- PTHREAD_LIBS="-l$flag"
- ;;
- esac
- save_LIBS="$LIBS"
- save_CFLAGS="$CFLAGS"
- LIBS="$PTHREAD_LIBS $LIBS"
- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
- # Check for various functions. We must include pthread.h,
- # since some functions may be macros. (On the Sequent, we
- # need a special flag -Kthread to make this header compile.)
- # We check for pthread_join because it is in -lpthread on IRIX
- # while pthread_create is in libc. We check for pthread_attr_init
- # due to DEC craziness with -lpthreads. We check for
- # pthread_cleanup_push because it is one of the few pthread
- # functions on Solaris that doesn't have a non-functional libc stub.
- # We try pthread_create on general principles.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- int
- main ()
- {
- pthread_t th; pthread_join(th, 0);
- pthread_attr_init(0); pthread_cleanup_push(0, 0);
- pthread_create(0,0,0,0); pthread_cleanup_pop(0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- acx_pthread_ok=yes
- 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}: result: $acx_pthread_ok" >&5
- $as_echo "$acx_pthread_ok" >&6; }
- if test "x$acx_pthread_ok" = xyes; then
- break;
- fi
- PTHREAD_LIBS=""
- PTHREAD_CFLAGS=""
- done
- fi
- # Various other checks:
- if test "x$acx_pthread_ok" = xyes; then
- save_LIBS="$LIBS"
- LIBS="$PTHREAD_LIBS $LIBS"
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
- # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
- $as_echo_n "checking for joinable pthread attribute... " >&6; }
- attr_name=unknown
- for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- int
- main ()
- {
- int attr=$attr; return attr;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- attr_name=$attr; break
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
- $as_echo "$attr_name" >&6; }
- if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
- cat >>confdefs.h <<_ACEOF
- #define PTHREAD_CREATE_JOINABLE $attr_name
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
- $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
- flag=no
- case "${host_cpu}-${host_os}" in
- *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
- *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
- $as_echo "${flag}" >&6; }
- if test "x$flag" != xno; then
- PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
- fi
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
- # More AIX lossage: must compile with xlc_r or cc_r
- if test x"$GCC" != xyes; then
- for ac_prog in xlc_r cc_r
- 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_PTHREAD_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test -n "$PTHREAD_CC"; then
- ac_cv_prog_PTHREAD_CC="$PTHREAD_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_PTHREAD_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
- PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
- if test -n "$PTHREAD_CC"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
- $as_echo "$PTHREAD_CC" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- test -n "$PTHREAD_CC" && break
- done
- test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
- else
- PTHREAD_CC=$CC
- fi
- else
- PTHREAD_CC="$CC"
- fi
- # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
- if test x"$acx_pthread_ok" = xyes; then
- $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
- :
- else
- acx_pthread_ok=no
- 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
- # Check whether --enable-dev-mode was given.
- if test "${enable_dev_mode+set}" = set; then :
- enableval=$enable_dev_mode; case "${enableval}" in
- y|ye|yes) AST_DEVMODE=yes ;;
- n|no) AST_DEVMODE=no ;;
- noisy)
- AST_DEVMODE=yes
- NOISY_BUILD=yes
- ;;
- strict)
- AST_DEVMODE=yes
- AST_DEVMODE_STRICT=yes
- ;;
- *) as_fn_error $? "bad value ${enableval} for --enable-dev-mode" "$LINENO" 5 ;;
- esac
- fi
- AST_CODE_COVERAGE=no
- # Check whether --enable-coverage was given.
- if test "${enable_coverage+set}" = set; then :
- enableval=$enable_coverage; case "${enableval}" in
- y|ye|yes) AST_CODE_COVERAGE=yes ;;
- n|no) AST_CODE_COVERAGE=no ;;
- *) as_fn_error $? "bad value ${enableval} for --enable-coverage" "$LINENO" 5 ;;
- esac
- fi
- # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
- # various packages.
- # $1 is the prefix for the variables in makeopts and autoconfig.h
- # $2 is the short comment, $4 is the long comment
- # $3 is the name used in --with- or --without- flags for configure.
- #
- # Package option names should be in alphabetical order
- # by the --with option name (the third field),
- # to make things easier for the users.
- ALSA_DESCRIP="Advanced Linux Sound Architecture"
- ALSA_OPTION="asound"
- PBX_ALSA=0
- # Check whether --with-asound was given.
- if test "${with_asound+set}" = set; then :
- withval=$with_asound;
- case ${withval} in
- n|no)
- USE_ALSA=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_ALSA=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} ALSA"
- ;;
- *)
- ALSA_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} ALSA"
- ;;
- esac
- fi
- BFD_DESCRIP="Debug symbol decoding"
- BFD_OPTION="bfd"
- PBX_BFD=0
- # Check whether --with-bfd was given.
- if test "${with_bfd+set}" = set; then :
- withval=$with_bfd;
- case ${withval} in
- n|no)
- USE_BFD=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_BFD=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} BFD"
- ;;
- *)
- BFD_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} BFD"
- ;;
- esac
- fi
- # BKTR is used for backtrace support on platforms that do not
- # have it natively.
- BKTR_DESCRIP="Stack Backtrace"
- BKTR_OPTION="execinfo"
- PBX_BKTR=0
- # Check whether --with-execinfo was given.
- if test "${with_execinfo+set}" = set; then :
- withval=$with_execinfo;
- case ${withval} in
- n|no)
- USE_BKTR=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_BKTR=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} BKTR"
- ;;
- *)
- BKTR_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} BKTR"
- ;;
- esac
- fi
- BLUETOOTH_DESCRIP="Bluetooth"
- BLUETOOTH_OPTION="bluetooth"
- PBX_BLUETOOTH=0
- # Check whether --with-bluetooth was given.
- if test "${with_bluetooth+set}" = set; then :
- withval=$with_bluetooth;
- case ${withval} in
- n|no)
- USE_BLUETOOTH=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_BLUETOOTH=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
- ;;
- *)
- BLUETOOTH_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
- ;;
- esac
- fi
- CAP_DESCRIP="POSIX 1.e capabilities"
- CAP_OPTION="cap"
- PBX_CAP=0
- # Check whether --with-cap was given.
- if test "${with_cap+set}" = set; then :
- withval=$with_cap;
- case ${withval} in
- n|no)
- USE_CAP=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_CAP=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} CAP"
- ;;
- *)
- CAP_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} CAP"
- ;;
- esac
- fi
- COROSYNC_DESCRIP="Corosync"
- COROSYNC_OPTION="cpg"
- PBX_COROSYNC=0
- # Check whether --with-cpg was given.
- if test "${with_cpg+set}" = set; then :
- withval=$with_cpg;
- case ${withval} in
- n|no)
- USE_COROSYNC=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_COROSYNC=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} COROSYNC"
- ;;
- *)
- COROSYNC_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} COROSYNC"
- ;;
- esac
- fi
- COROSYNC_CFG_STATE_TRACK_DESCRIP="A callback only in corosync 1.x"
- COROSYNC_CFG_STATE_TRACK_OPTION=cfg
- COROSYNC_CFG_STATE_TRACK_DIR=${COROSYNC_DIR}
- PBX_COROSYNC_CFG_STATE_TRACK=0
- CURSES_DESCRIP="curses"
- CURSES_OPTION="curses"
- PBX_CURSES=0
- # Check whether --with-curses was given.
- if test "${with_curses+set}" = set; then :
- withval=$with_curses;
- case ${withval} in
- n|no)
- USE_CURSES=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_CURSES=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} CURSES"
- ;;
- *)
- CURSES_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} CURSES"
- ;;
- esac
- fi
- CRYPT_DESCRIP="password and data encryption"
- CRYPT_OPTION="crypt"
- PBX_CRYPT=0
- # Check whether --with-crypt was given.
- if test "${with_crypt+set}" = set; then :
- withval=$with_crypt;
- case ${withval} in
- n|no)
- USE_CRYPT=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_CRYPT=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} CRYPT"
- ;;
- *)
- CRYPT_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} CRYPT"
- ;;
- esac
- fi
- CRYPTO_DESCRIP="OpenSSL Cryptography"
- CRYPTO_OPTION="crypto"
- PBX_CRYPTO=0
- # Check whether --with-crypto was given.
- if test "${with_crypto+set}" = set; then :
- withval=$with_crypto;
- case ${withval} in
- n|no)
- USE_CRYPTO=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_CRYPTO=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} CRYPTO"
- ;;
- *)
- CRYPTO_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} CRYPTO"
- ;;
- esac
- fi
- OPENSSL_SRTP_DESCRIP="OpenSSL SRTP Extension Support"
- OPENSSL_SRTP_OPTION=crypto
- OPENSSL_SRTP_DIR=${CRYPTO_DIR}
- PBX_OPENSSL_SRTP=0
- OPENSSL_EC_DESCRIP="OpenSSL Elliptic Curve Support"
- OPENSSL_EC_OPTION=crypto
- OPENSSL_EC_DIR=${CRYPTO_DIR}
- PBX_OPENSSL_EC=0
- DAHDI_DESCRIP="DAHDI"
- DAHDI_OPTION="dahdi"
- PBX_DAHDI=0
- # Check whether --with-dahdi was given.
- if test "${with_dahdi+set}" = set; then :
- withval=$with_dahdi;
- case ${withval} in
- n|no)
- USE_DAHDI=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_DAHDI=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} DAHDI"
- ;;
- *)
- DAHDI_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} DAHDI"
- ;;
- esac
- fi
- FFMPEG_DESCRIP="Ffmpeg and avcodec"
- FFMPEG_OPTION="avcodec"
- PBX_FFMPEG=0
- # Check whether --with-avcodec was given.
- if test "${with_avcodec+set}" = set; then :
- withval=$with_avcodec;
- case ${withval} in
- n|no)
- USE_FFMPEG=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_FFMPEG=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} FFMPEG"
- ;;
- *)
- FFMPEG_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} FFMPEG"
- ;;
- esac
- fi
- GSM_DESCRIP="External GSM"
- GSM_OPTION="gsm"
- PBX_GSM=0
- # Check whether --with-gsm was given.
- if test "${with_gsm+set}" = set; then :
- withval=$with_gsm;
- case ${withval} in
- n|no)
- USE_GSM=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_GSM=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} GSM"
- ;;
- *)
- GSM_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} GSM"
- ;;
- esac
- fi
- ILBC_DESCRIP="System iLBC"
- ILBC_OPTION="ilbc"
- PBX_ILBC=0
- # Check whether --with-ilbc was given.
- if test "${with_ilbc+set}" = set; then :
- withval=$with_ilbc;
- case ${withval} in
- n|no)
- USE_ILBC=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_ILBC=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} ILBC"
- ;;
- *)
- ILBC_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} ILBC"
- ;;
- esac
- fi
- GTK2_DESCRIP="gtk2"
- GTK2_OPTION="gtk2"
- PBX_GTK2=0
- # Check whether --with-gtk2 was given.
- if test "${with_gtk2+set}" = set; then :
- withval=$with_gtk2;
- case ${withval} in
- n|no)
- USE_GTK2=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_GTK2=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} GTK2"
- ;;
- *)
- GTK2_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} GTK2"
- ;;
- esac
- fi
- GMIME_DESCRIP="GMime"
- GMIME_OPTION="gmime"
- PBX_GMIME=0
- # Check whether --with-gmime was given.
- if test "${with_gmime+set}" = set; then :
- withval=$with_gmime;
- case ${withval} in
- n|no)
- USE_GMIME=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_GMIME=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} GMIME"
- ;;
- *)
- GMIME_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} GMIME"
- ;;
- esac
- fi
- OPENH323_DESCRIP="OpenH323"
- OPENH323_OPTION="h323"
- PBX_OPENH323=0
- # Check whether --with-h323 was given.
- if test "${with_h323+set}" = set; then :
- withval=$with_h323;
- case ${withval} in
- n|no)
- USE_OPENH323=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_OPENH323=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} OPENH323"
- ;;
- *)
- OPENH323_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} OPENH323"
- ;;
- esac
- fi
- HOARD_DESCRIP="Hoard Memory Allocator"
- HOARD_OPTION="hoard"
- PBX_HOARD=0
- # Check whether --with-hoard was given.
- if test "${with_hoard+set}" = set; then :
- withval=$with_hoard;
- case ${withval} in
- n|no)
- USE_HOARD=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_HOARD=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} HOARD"
- ;;
- *)
- HOARD_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} HOARD"
- ;;
- esac
- fi
- ICAL_DESCRIP="iCal"
- ICAL_OPTION="ical"
- PBX_ICAL=0
- # Check whether --with-ical was given.
- if test "${with_ical+set}" = set; then :
- withval=$with_ical;
- case ${withval} in
- n|no)
- USE_ICAL=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_ICAL=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} ICAL"
- ;;
- *)
- ICAL_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} ICAL"
- ;;
- esac
- fi
- ICONV_DESCRIP="Iconv"
- ICONV_OPTION="iconv"
- PBX_ICONV=0
- # Check whether --with-iconv was given.
- if test "${with_iconv+set}" = set; then :
- withval=$with_iconv;
- case ${withval} in
- n|no)
- USE_ICONV=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_ICONV=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} ICONV"
- ;;
- *)
- ICONV_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} ICONV"
- ;;
- esac
- fi
- IKSEMEL_DESCRIP="Iksemel Jabber"
- IKSEMEL_OPTION="iksemel"
- PBX_IKSEMEL=0
- # Check whether --with-iksemel was given.
- if test "${with_iksemel+set}" = set; then :
- withval=$with_iksemel;
- case ${withval} in
- n|no)
- USE_IKSEMEL=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_IKSEMEL=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
- ;;
- *)
- IKSEMEL_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
- ;;
- esac
- fi
- IMAP_TK_DESCRIP="UW IMAP Toolkit"
- IMAP_TK_OPTION="imap"
- PBX_IMAP_TK=0
- # Check whether --with-imap was given.
- if test "${with_imap+set}" = set; then :
- withval=$with_imap;
- case ${withval} in
- n|no)
- USE_IMAP_TK=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_IMAP_TK=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
- ;;
- *)
- IMAP_TK_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
- ;;
- esac
- fi
- INOTIFY_DESCRIP="inotify support"
- INOTIFY_OPTION="inotify"
- PBX_INOTIFY=0
- # Check whether --with-inotify was given.
- if test "${with_inotify+set}" = set; then :
- withval=$with_inotify;
- case ${withval} in
- n|no)
- USE_INOTIFY=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_INOTIFY=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} INOTIFY"
- ;;
- *)
- INOTIFY_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} INOTIFY"
- ;;
- esac
- fi
- IODBC_DESCRIP="iODBC"
- IODBC_OPTION="iodbc"
- PBX_IODBC=0
- # Check whether --with-iodbc was given.
- if test "${with_iodbc+set}" = set; then :
- withval=$with_iodbc;
- case ${withval} in
- n|no)
- USE_IODBC=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_IODBC=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} IODBC"
- ;;
- *)
- IODBC_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} IODBC"
- ;;
- esac
- fi
- ISDNNET_DESCRIP="ISDN4Linux"
- ISDNNET_OPTION="isdnnet"
- PBX_ISDNNET=0
- # Check whether --with-isdnnet was given.
- if test "${with_isdnnet+set}" = set; then :
- withval=$with_isdnnet;
- case ${withval} in
- n|no)
- USE_ISDNNET=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_ISDNNET=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} ISDNNET"
- ;;
- *)
- ISDNNET_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} ISDNNET"
- ;;
- esac
- fi
- JACK_DESCRIP="Jack Audio Connection Kit"
- JACK_OPTION="jack"
- PBX_JACK=0
- # Check whether --with-jack was given.
- if test "${with_jack+set}" = set; then :
- withval=$with_jack;
- case ${withval} in
- n|no)
- USE_JACK=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_JACK=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} JACK"
- ;;
- *)
- JACK_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} JACK"
- ;;
- esac
- fi
- JANSSON_DESCRIP="Jansson JSON library"
- JANSSON_OPTION="jansson"
- PBX_JANSSON=0
- # Check whether --with-jansson was given.
- if test "${with_jansson+set}" = set; then :
- withval=$with_jansson;
- case ${withval} in
- n|no)
- USE_JANSSON=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_JANSSON=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} JANSSON"
- ;;
- *)
- JANSSON_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} JANSSON"
- ;;
- esac
- fi
- URIPARSER_DESCRIP="uriparser library"
- URIPARSER_OPTION="uriparser"
- PBX_URIPARSER=0
- # Check whether --with-uriparser was given.
- if test "${with_uriparser+set}" = set; then :
- withval=$with_uriparser;
- case ${withval} in
- n|no)
- USE_URIPARSER=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_URIPARSER=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} URIPARSER"
- ;;
- *)
- URIPARSER_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} URIPARSER"
- ;;
- esac
- fi
- KQUEUE_DESCRIP="kqueue support"
- KQUEUE_OPTION="kqueue"
- PBX_KQUEUE=0
- # Check whether --with-kqueue was given.
- if test "${with_kqueue+set}" = set; then :
- withval=$with_kqueue;
- case ${withval} in
- n|no)
- USE_KQUEUE=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_KQUEUE=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} KQUEUE"
- ;;
- *)
- KQUEUE_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} KQUEUE"
- ;;
- esac
- fi
- LDAP_DESCRIP="OpenLDAP"
- LDAP_OPTION="ldap"
- PBX_LDAP=0
- # Check whether --with-ldap was given.
- if test "${with_ldap+set}" = set; then :
- withval=$with_ldap;
- case ${withval} in
- n|no)
- USE_LDAP=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_LDAP=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} LDAP"
- ;;
- *)
- LDAP_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} LDAP"
- ;;
- esac
- fi
- # Check whether --with-libcurl was given.
- if test "${with_libcurl+set}" = set; then :
- withval=$with_libcurl; _libcurl_with=$withval
- else
- _libcurl_with=yes
- fi
- if test "$_libcurl_with" != "no" ; then
- for ac_prog in gawk mawk nawk awk
- 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
- 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_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
- _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
- _libcurl_try_link=yes
- if test -d "$_libcurl_with" ; then
- CURL_INCLUDE="-I$withval/include"
- _libcurl_ldflags="-L$withval/lib"
- # Extract the first word of "curl-config", so it can be a program name with args.
- set dummy curl-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__libcurl_config+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $_libcurl_config in
- [\\/]* | ?:[\\/]*)
- ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in "$withval/bin"
- 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__libcurl_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__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
- ;;
- esac
- fi
- _libcurl_config=$ac_cv_path__libcurl_config
- if test -n "$_libcurl_config"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
- $as_echo "$_libcurl_config" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- else
- # Extract the first word of "curl-config", so it can be a program name with args.
- set dummy curl-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__libcurl_config+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $_libcurl_config in
- [\\/]* | ?:[\\/]*)
- ac_cv_path__libcurl_config="$_libcurl_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__libcurl_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
- _libcurl_config=$ac_cv_path__libcurl_config
- if test -n "$_libcurl_config"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
- $as_echo "$_libcurl_config" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test x$_libcurl_config != "x" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
- $as_echo_n "checking for the version of libcurl... " >&6; }
- if ${libcurl_cv_lib_curl_version+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
- $as_echo "$libcurl_cv_lib_curl_version" >&6; }
- _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
- _libcurl_wanted=`echo 7.10.1 | $_libcurl_version_parse`
- if test $_libcurl_wanted -gt 0 ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.1" >&5
- $as_echo_n "checking for libcurl >= version 7.10.1... " >&6; }
- if ${libcurl_cv_lib_version_ok+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test $_libcurl_version -ge $_libcurl_wanted ; then
- libcurl_cv_lib_version_ok=yes
- else
- libcurl_cv_lib_version_ok=no
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
- $as_echo "$libcurl_cv_lib_version_ok" >&6; }
- fi
- if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
- if test x"$CURL_INCLUDE" = "x" ; then
- CURL_INCLUDE=`$_libcurl_config --cflags`
- fi
- if test x"$CURL_LIB" = "x" ; then
- CURL_LIB=`$_libcurl_config --libs`
- # This is so silly, but Apple actually has a bug in their
- # curl-config script. Fixed in Tiger, but there are still
- # lots of Panther installs around.
- case "${host}" in
- powerpc-apple-darwin7*)
- CURL_LIB=`echo $CURL_LIB | sed -e 's|-arch i386||g'`
- ;;
- esac
- fi
- # All curl-config scripts support --feature
- _libcurl_features=`$_libcurl_config --feature`
- # Is it modern enough to have --protocols? (7.12.4)
- if test $_libcurl_version -ge 461828 ; then
- _libcurl_protocols=`$_libcurl_config --protocols`
- fi
- else
- _libcurl_try_link=no
- fi
- unset _libcurl_wanted
- fi
- if test $_libcurl_try_link = yes ; then
- # we didn't find curl-config, so let's see if the user-supplied
- # link line (or failing that, "-lcurl") is enough.
- CURL_LIB=${CURL_LIB-"$_libcurl_ldflags -lcurl"}
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
- $as_echo_n "checking whether libcurl is usable... " >&6; }
- if ${libcurl_cv_lib_curl_usable+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- _libcurl_save_cppflags=$CPPFLAGS
- CPPFLAGS="$CURL_INCLUDE $CPPFLAGS"
- _libcurl_save_libs=$LIBS
- LIBS="$CURL_LIB $LIBS"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <curl/curl.h>
- int
- main ()
- {
- /* Try and use a few common options to force a failure if we are
- missing symbols or can't link. */
- int x;
- curl_easy_setopt(NULL,CURLOPT_URL,NULL);
- x=CURL_ERROR_SIZE;
- x=CURLOPT_WRITEFUNCTION;
- x=CURLOPT_FILE;
- x=CURLOPT_ERRORBUFFER;
- x=CURLOPT_STDERR;
- x=CURLOPT_VERBOSE;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- libcurl_cv_lib_curl_usable=yes
- else
- libcurl_cv_lib_curl_usable=no
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CPPFLAGS=$_libcurl_save_cppflags
- LIBS=$_libcurl_save_libs
- unset _libcurl_save_cppflags
- unset _libcurl_save_libs
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
- $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
- if test $libcurl_cv_lib_curl_usable = yes ; then
- # Does curl_free() exist in this version of libcurl?
- # If not, fake it with free()
- _libcurl_save_cppflags=$CPPFLAGS
- CPPFLAGS="$CPPFLAGS $CURL_INCLUDE"
- _libcurl_save_libs=$LIBS
- LIBS="$LIBS $CURL_LIB"
- ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
- if test "x$ac_cv_func_curl_free" = xyes; then :
- else
- $as_echo "#define curl_free free" >>confdefs.h
- fi
- CPPFLAGS=$_libcurl_save_cppflags
- LIBS=$_libcurl_save_libs
- unset _libcurl_save_cppflags
- unset _libcurl_save_libs
- $as_echo "#define HAVE_CURL 1" >>confdefs.h
- PBX_CURL=1
- for _libcurl_feature in $_libcurl_features ; do
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
- _ACEOF
- eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
- done
- if test "x$_libcurl_protocols" = "x" ; then
- # We don't have --protocols, so just assume that all
- # protocols are available
- _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
- if test x$libcurl_feature_SSL = xyes ; then
- _libcurl_protocols="$_libcurl_protocols HTTPS"
- # FTPS wasn't standards-compliant until version
- # 7.11.0
- if test $_libcurl_version -ge 461568; then
- _libcurl_protocols="$_libcurl_protocols FTPS"
- fi
- fi
- fi
- for _libcurl_protocol in $_libcurl_protocols ; do
- cat >>confdefs.h <<_ACEOF
- #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
- _ACEOF
- eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
- done
- else
- unset CURL_LIB
- unset CURL_INCLUDE
- PBX_CURL=0
- fi
- fi
- unset _libcurl_try_link
- unset _libcurl_version_parse
- unset _libcurl_config
- unset _libcurl_feature
- unset _libcurl_features
- unset _libcurl_protocol
- unset _libcurl_protocols
- unset _libcurl_version
- unset _libcurl_ldflags
- fi
- if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
- # This is the IF-NO path
- :
- else
- # This is the IF-YES path
- :
- fi
- unset _libcurl_with
- LIBEDIT_DESCRIP="NetBSD Editline library"
- LIBEDIT_OPTION="libedit"
- PBX_LIBEDIT=0
- # Check whether --with-libedit was given.
- if test "${with_libedit+set}" = set; then :
- withval=$with_libedit;
- case ${withval} in
- n|no)
- USE_LIBEDIT=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_LIBEDIT=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
- ;;
- *)
- LIBEDIT_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
- ;;
- esac
- fi
- LIBXML2_DESCRIP="LibXML2"
- LIBXML2_OPTION="libxml2"
- PBX_LIBXML2=0
- # Check whether --with-libxml2 was given.
- if test "${with_libxml2+set}" = set; then :
- withval=$with_libxml2;
- case ${withval} in
- n|no)
- USE_LIBXML2=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_LIBXML2=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} LIBXML2"
- ;;
- *)
- LIBXML2_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} LIBXML2"
- ;;
- esac
- fi
- LIBXSLT_DESCRIP="LibXSLT"
- LIBXSLT_OPTION="libxslt"
- PBX_LIBXSLT=0
- # Check whether --with-libxslt was given.
- if test "${with_libxslt+set}" = set; then :
- withval=$with_libxslt;
- case ${withval} in
- n|no)
- USE_LIBXSLT=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_LIBXSLT=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} LIBXSLT"
- ;;
- *)
- LIBXSLT_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} LIBXSLT"
- ;;
- esac
- fi
- LIBXSLT_CLEANUP_DESCRIP="LibXSLT Library Cleanup Function"
- LIBXSLT_CLEANUP_OPTION=libxslt
- LIBXSLT_CLEANUP_DIR=${LIBXSLT_DIR}
- PBX_LIBXSLT_CLEANUP=0
- LTDL_DESCRIP="libtool"
- LTDL_OPTION="ltdl"
- PBX_LTDL=0
- # Check whether --with-ltdl was given.
- if test "${with_ltdl+set}" = set; then :
- withval=$with_ltdl;
- case ${withval} in
- n|no)
- USE_LTDL=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_LTDL=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} LTDL"
- ;;
- *)
- LTDL_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} LTDL"
- ;;
- esac
- fi
- LUA_DESCRIP="Lua"
- LUA_OPTION="lua"
- PBX_LUA=0
- # Check whether --with-lua was given.
- if test "${with_lua+set}" = set; then :
- withval=$with_lua;
- case ${withval} in
- n|no)
- USE_LUA=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_LUA=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} LUA"
- ;;
- *)
- LUA_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} LUA"
- ;;
- esac
- fi
- MISDN_DESCRIP="mISDN user"
- MISDN_OPTION="misdn"
- PBX_MISDN=0
- # Check whether --with-misdn was given.
- if test "${with_misdn+set}" = set; then :
- withval=$with_misdn;
- case ${withval} in
- n|no)
- USE_MISDN=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_MISDN=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} MISDN"
- ;;
- *)
- MISDN_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} MISDN"
- ;;
- esac
- fi
- MYSQLCLIENT_DESCRIP="MySQL client"
- MYSQLCLIENT_OPTION="mysqlclient"
- PBX_MYSQLCLIENT=0
- # Check whether --with-mysqlclient was given.
- if test "${with_mysqlclient+set}" = set; then :
- withval=$with_mysqlclient;
- case ${withval} in
- n|no)
- USE_MYSQLCLIENT=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_MYSQLCLIENT=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
- ;;
- *)
- MYSQLCLIENT_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
- ;;
- esac
- fi
- NBS_DESCRIP="Network Broadcast Sound"
- NBS_OPTION="nbs"
- PBX_NBS=0
- # Check whether --with-nbs was given.
- if test "${with_nbs+set}" = set; then :
- withval=$with_nbs;
- case ${withval} in
- n|no)
- USE_NBS=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_NBS=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} NBS"
- ;;
- *)
- NBS_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} NBS"
- ;;
- esac
- fi
- NCURSES_DESCRIP="ncurses"
- NCURSES_OPTION="ncurses"
- PBX_NCURSES=0
- # Check whether --with-ncurses was given.
- if test "${with_ncurses+set}" = set; then :
- withval=$with_ncurses;
- case ${withval} in
- n|no)
- USE_NCURSES=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_NCURSES=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} NCURSES"
- ;;
- *)
- NCURSES_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} NCURSES"
- ;;
- esac
- fi
- NEON_DESCRIP="neon"
- NEON_OPTION="neon"
- PBX_NEON=0
- # Check whether --with-neon was given.
- if test "${with_neon+set}" = set; then :
- withval=$with_neon;
- case ${withval} in
- n|no)
- USE_NEON=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_NEON=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} NEON"
- ;;
- *)
- NEON_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} NEON"
- ;;
- esac
- fi
- NEON29_DESCRIP="neon29"
- NEON29_OPTION="neon29"
- PBX_NEON29=0
- # Check whether --with-neon29 was given.
- if test "${with_neon29+set}" = set; then :
- withval=$with_neon29;
- case ${withval} in
- n|no)
- USE_NEON29=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_NEON29=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} NEON29"
- ;;
- *)
- NEON29_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} NEON29"
- ;;
- esac
- fi
- NETSNMP_DESCRIP="Net-SNMP"
- NETSNMP_OPTION="netsnmp"
- PBX_NETSNMP=0
- # Check whether --with-netsnmp was given.
- if test "${with_netsnmp+set}" = set; then :
- withval=$with_netsnmp;
- case ${withval} in
- n|no)
- USE_NETSNMP=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_NETSNMP=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} NETSNMP"
- ;;
- *)
- NETSNMP_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} NETSNMP"
- ;;
- esac
- fi
- NEWT_DESCRIP="newt"
- NEWT_OPTION="newt"
- PBX_NEWT=0
- # Check whether --with-newt was given.
- if test "${with_newt+set}" = set; then :
- withval=$with_newt;
- case ${withval} in
- n|no)
- USE_NEWT=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_NEWT=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} NEWT"
- ;;
- *)
- NEWT_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} NEWT"
- ;;
- esac
- fi
- OGG_DESCRIP="OGG"
- OGG_OPTION="ogg"
- PBX_OGG=0
- # Check whether --with-ogg was given.
- if test "${with_ogg+set}" = set; then :
- withval=$with_ogg;
- case ${withval} in
- n|no)
- USE_OGG=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_OGG=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} OGG"
- ;;
- *)
- OGG_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} OGG"
- ;;
- esac
- fi
- OPENR2_DESCRIP="MFR2"
- OPENR2_OPTION="openr2"
- PBX_OPENR2=0
- # Check whether --with-openr2 was given.
- if test "${with_openr2+set}" = set; then :
- withval=$with_openr2;
- case ${withval} in
- n|no)
- USE_OPENR2=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_OPENR2=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} OPENR2"
- ;;
- *)
- OPENR2_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} OPENR2"
- ;;
- esac
- fi
- OPUS_DESCRIP="Opus"
- OPUS_OPTION="opus"
- PBX_OPUS=0
- # Check whether --with-opus was given.
- if test "${with_opus+set}" = set; then :
- withval=$with_opus;
- case ${withval} in
- n|no)
- USE_OPUS=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_OPUS=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} OPUS"
- ;;
- *)
- OPUS_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} OPUS"
- ;;
- esac
- fi
- OSPTK_DESCRIP="OSP Toolkit"
- OSPTK_OPTION="osptk"
- PBX_OSPTK=0
- # Check whether --with-osptk was given.
- if test "${with_osptk+set}" = set; then :
- withval=$with_osptk;
- case ${withval} in
- n|no)
- USE_OSPTK=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_OSPTK=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} OSPTK"
- ;;
- *)
- OSPTK_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} OSPTK"
- ;;
- esac
- fi
- OSS_DESCRIP="Open Sound System"
- OSS_OPTION="oss"
- PBX_OSS=0
- # Check whether --with-oss was given.
- if test "${with_oss+set}" = set; then :
- withval=$with_oss;
- case ${withval} in
- n|no)
- USE_OSS=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_OSS=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} OSS"
- ;;
- *)
- OSS_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} OSS"
- ;;
- esac
- fi
- PGSQL_DESCRIP="PostgreSQL"
- PGSQL_OPTION="postgres"
- PBX_PGSQL=0
- # Check whether --with-postgres was given.
- if test "${with_postgres+set}" = set; then :
- withval=$with_postgres;
- case ${withval} in
- n|no)
- USE_PGSQL=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_PGSQL=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} PGSQL"
- ;;
- *)
- PGSQL_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} PGSQL"
- ;;
- esac
- fi
- PJPROJECT_DESCRIP="PJPROJECT"
- PJPROJECT_OPTION="pjproject"
- PBX_PJPROJECT=0
- # Check whether --with-pjproject was given.
- if test "${with_pjproject+set}" = set; then :
- withval=$with_pjproject;
- case ${withval} in
- n|no)
- USE_PJPROJECT=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_PJPROJECT=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} PJPROJECT"
- ;;
- *)
- PJPROJECT_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} PJPROJECT"
- ;;
- esac
- fi
- POPT_DESCRIP="popt"
- POPT_OPTION="popt"
- PBX_POPT=0
- # Check whether --with-popt was given.
- if test "${with_popt+set}" = set; then :
- withval=$with_popt;
- case ${withval} in
- n|no)
- USE_POPT=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_POPT=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} POPT"
- ;;
- *)
- POPT_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} POPT"
- ;;
- esac
- fi
- PJ_TRANSACTION_GRP_LOCK_DESCRIP="PJSIP Transaction Group Lock Support"
- PJ_TRANSACTION_GRP_LOCK_OPTION=pjsip
- PJ_TRANSACTION_GRP_LOCK_DIR=${PJPROJECT_DIR}
- PBX_PJ_TRANSACTION_GRP_LOCK=0
- PJSIP_REPLACE_MEDIA_STREAM_DESCRIP="PJSIP Media Stream Replacement Support"
- PJSIP_REPLACE_MEDIA_STREAM_OPTION=pjsip
- PJSIP_REPLACE_MEDIA_STREAM_DIR=${PJPROJECT_DIR}
- PBX_PJSIP_REPLACE_MEDIA_STREAM=0
- PJSIP_GET_DEST_INFO_DESCRIP="pjsip_get_dest_info support"
- PJSIP_GET_DEST_INFO_OPTION=pjsip
- PJSIP_GET_DEST_INFO_DIR=${PJPROJECT_DIR}
- PBX_PJSIP_GET_DEST_INFO=0
- PJ_SSL_CERT_LOAD_FROM_FILES2_DESCRIP="pj_ssl_cert_load_from_files2 support"
- PJ_SSL_CERT_LOAD_FROM_FILES2_OPTION=pjsip
- PJ_SSL_CERT_LOAD_FROM_FILES2_DIR=${PJPROJECT_DIR}
- PBX_PJ_SSL_CERT_LOAD_FROM_FILES2=0
- PORTAUDIO_DESCRIP="PortAudio"
- PORTAUDIO_OPTION="portaudio"
- PBX_PORTAUDIO=0
- # Check whether --with-portaudio was given.
- if test "${with_portaudio+set}" = set; then :
- withval=$with_portaudio;
- case ${withval} in
- n|no)
- USE_PORTAUDIO=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_PORTAUDIO=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
- ;;
- *)
- PORTAUDIO_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
- ;;
- esac
- fi
- PRI_DESCRIP="ISDN PRI"
- PRI_OPTION="pri"
- PBX_PRI=0
- # Check whether --with-pri was given.
- if test "${with_pri+set}" = set; then :
- withval=$with_pri;
- case ${withval} in
- n|no)
- USE_PRI=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_PRI=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} PRI"
- ;;
- *)
- PRI_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} PRI"
- ;;
- esac
- fi
- PRI_SETUP_ACK_INBAND_DESCRIP="ISDN PRI progress inband ie in SETUP ACK"
- PRI_SETUP_ACK_INBAND_OPTION=pri
- PRI_SETUP_ACK_INBAND_DIR=${PRI_DIR}
- PBX_PRI_SETUP_ACK_INBAND=0
- PRI_L2_PERSISTENCE_DESCRIP="ISDN Layer 2 persistence option"
- PRI_L2_PERSISTENCE_OPTION=pri
- PRI_L2_PERSISTENCE_DIR=${PRI_DIR}
- PBX_PRI_L2_PERSISTENCE=0
- PRI_DATETIME_SEND_DESCRIP="ISDN PRI Date/time ie send policy"
- PRI_DATETIME_SEND_OPTION=pri
- PRI_DATETIME_SEND_DIR=${PRI_DIR}
- PBX_PRI_DATETIME_SEND=0
- PRI_MWI_V2_DESCRIP="ISDN PRI Message Waiting Indication (Fixed)"
- PRI_MWI_V2_OPTION=pri
- PRI_MWI_V2_DIR=${PRI_DIR}
- PBX_PRI_MWI_V2=0
- PRI_DISPLAY_TEXT_DESCRIP="ISDN PRI user display text IE contents during call"
- PRI_DISPLAY_TEXT_OPTION=pri
- PRI_DISPLAY_TEXT_DIR=${PRI_DIR}
- PBX_PRI_DISPLAY_TEXT=0
- PRI_MWI_DESCRIP="ISDN PRI Message Waiting Indication"
- PRI_MWI_OPTION=pri
- PRI_MWI_DIR=${PRI_DIR}
- PBX_PRI_MWI=0
- PRI_MCID_DESCRIP="ISDN PRI Malicious Call ID"
- PRI_MCID_OPTION=pri
- PRI_MCID_DIR=${PRI_DIR}
- PBX_PRI_MCID=0
- PRI_CALL_WAITING_DESCRIP="ISDN PRI call waiting supplementary service"
- PRI_CALL_WAITING_OPTION=pri
- PRI_CALL_WAITING_DIR=${PRI_DIR}
- PBX_PRI_CALL_WAITING=0
- PRI_AOC_EVENTS_DESCRIP="ISDN PRI advice of charge supplementary service events"
- PRI_AOC_EVENTS_OPTION=pri
- PRI_AOC_EVENTS_DIR=${PRI_DIR}
- PBX_PRI_AOC_EVENTS=0
- PRI_TRANSFER_DESCRIP="ISDN PRI call transfer supplementary service"
- PRI_TRANSFER_OPTION=pri
- PRI_TRANSFER_DIR=${PRI_DIR}
- PBX_PRI_TRANSFER=0
- PRI_CCSS_DESCRIP="ISDN PRI call completion supplementary service"
- PRI_CCSS_OPTION=pri
- PRI_CCSS_DIR=${PRI_DIR}
- PBX_PRI_CCSS=0
- PRI_HANGUP_FIX_DESCRIP="ISDN PRI hangup fix"
- PRI_HANGUP_FIX_OPTION=pri
- PRI_HANGUP_FIX_DIR=${PRI_DIR}
- PBX_PRI_HANGUP_FIX=0
- PRI_SUBADDR_DESCRIP="ISDN PRI subaddressing"
- PRI_SUBADDR_OPTION=pri
- PRI_SUBADDR_DIR=${PRI_DIR}
- PBX_PRI_SUBADDR=0
- PRI_CALL_HOLD_DESCRIP="ISDN PRI call hold"
- PRI_CALL_HOLD_OPTION=pri
- PRI_CALL_HOLD_DIR=${PRI_DIR}
- PBX_PRI_CALL_HOLD=0
- PRI_CALL_REROUTING_DESCRIP="ISDN PRI call rerouting and call deflection"
- PRI_CALL_REROUTING_OPTION=pri
- PRI_CALL_REROUTING_DIR=${PRI_DIR}
- PBX_PRI_CALL_REROUTING=0
- PRI_SETUP_KEYPAD_DESCRIP="ISDN PRI keypad facility in SETUP"
- PRI_SETUP_KEYPAD_OPTION=pri
- PRI_SETUP_KEYPAD_DIR=${PRI_DIR}
- PBX_PRI_SETUP_KEYPAD=0
- # ------------------------------------v
- # TODO: The code can be changed to always include these features now.
- # These features will always be present if pri_connected_line_update is available.
- PRI_INBANDDISCONNECT_DESCRIP="ISDN PRI set_inbanddisconnect"
- PRI_INBANDDISCONNECT_OPTION=pri
- PRI_INBANDDISCONNECT_DIR=${PRI_DIR}
- PBX_PRI_INBANDDISCONNECT=0
- PRI_PROG_W_CAUSE_DESCRIP="ISDN progress with cause"
- PRI_PROG_W_CAUSE_OPTION=pri
- PRI_PROG_W_CAUSE_DIR=${PRI_DIR}
- PBX_PRI_PROG_W_CAUSE=0
- PRI_SERVICE_MESSAGES_DESCRIP="ISDN service messages"
- PRI_SERVICE_MESSAGES_OPTION=pri
- PRI_SERVICE_MESSAGES_DIR=${PRI_DIR}
- PBX_PRI_SERVICE_MESSAGES=0
- PRI_REVERSE_CHARGE_DESCRIP="ISDN reverse charge"
- PRI_REVERSE_CHARGE_OPTION=pri
- PRI_REVERSE_CHARGE_DIR=${PRI_DIR}
- PBX_PRI_REVERSE_CHARGE=0
- # ------------------------------------^
- PWLIB_DESCRIP="PWlib"
- PWLIB_OPTION="pwlib"
- PBX_PWLIB=0
- # Check whether --with-pwlib was given.
- if test "${with_pwlib+set}" = set; then :
- withval=$with_pwlib;
- case ${withval} in
- n|no)
- USE_PWLIB=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_PWLIB=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} PWLIB"
- ;;
- *)
- PWLIB_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} PWLIB"
- ;;
- esac
- fi
- RADIUS_DESCRIP="Radius Client"
- RADIUS_OPTION="radius"
- PBX_RADIUS=0
- # Check whether --with-radius was given.
- if test "${with_radius+set}" = set; then :
- withval=$with_radius;
- case ${withval} in
- n|no)
- USE_RADIUS=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_RADIUS=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} RADIUS"
- ;;
- *)
- RADIUS_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} RADIUS"
- ;;
- esac
- fi
- RESAMPLE_DESCRIP="LIBRESAMPLE"
- RESAMPLE_OPTION="resample"
- PBX_RESAMPLE=0
- # Check whether --with-resample was given.
- if test "${with_resample+set}" = set; then :
- withval=$with_resample;
- case ${withval} in
- n|no)
- USE_RESAMPLE=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_RESAMPLE=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
- ;;
- *)
- RESAMPLE_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
- ;;
- esac
- fi
- SDL_DESCRIP="Sdl"
- SDL_OPTION="sdl"
- PBX_SDL=0
- # Check whether --with-sdl was given.
- if test "${with_sdl+set}" = set; then :
- withval=$with_sdl;
- case ${withval} in
- n|no)
- USE_SDL=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_SDL=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} SDL"
- ;;
- *)
- SDL_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} SDL"
- ;;
- esac
- fi
- SDL_IMAGE_DESCRIP="Sdl Image"
- SDL_IMAGE_OPTION="SDL_image"
- PBX_SDL_IMAGE=0
- # Check whether --with-SDL_image was given.
- if test "${with_SDL_image+set}" = set; then :
- withval=$with_SDL_image;
- case ${withval} in
- n|no)
- USE_SDL_IMAGE=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_SDL_IMAGE=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
- ;;
- *)
- SDL_IMAGE_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
- ;;
- esac
- fi
- # Check whether --with-sounds-cache was given.
- if test "${with_sounds_cache+set}" = set; then :
- withval=$with_sounds_cache;
- case ${withval} in
- n|no)
- unset SOUNDS_CACHE_DIR
- ;;
- *)
- if test "x${withval}" = "x"; then
- :
- else
- SOUNDS_CACHE_DIR="${withval}"
- fi
- ;;
- esac
- else
- :
- fi
- SPANDSP_DESCRIP="SPANDSP"
- SPANDSP_OPTION="spandsp"
- PBX_SPANDSP=0
- # Check whether --with-spandsp was given.
- if test "${with_spandsp+set}" = set; then :
- withval=$with_spandsp;
- case ${withval} in
- n|no)
- USE_SPANDSP=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_SPANDSP=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} SPANDSP"
- ;;
- *)
- SPANDSP_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} SPANDSP"
- ;;
- esac
- fi
- SS7_DESCRIP="ISDN SS7"
- SS7_OPTION="ss7"
- PBX_SS7=0
- # Check whether --with-ss7 was given.
- if test "${with_ss7+set}" = set; then :
- withval=$with_ss7;
- case ${withval} in
- n|no)
- USE_SS7=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_SS7=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} SS7"
- ;;
- *)
- SS7_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} SS7"
- ;;
- esac
- fi
- SPEEX_DESCRIP="Speex"
- SPEEX_OPTION="speex"
- PBX_SPEEX=0
- # Check whether --with-speex was given.
- if test "${with_speex+set}" = set; then :
- withval=$with_speex;
- case ${withval} in
- n|no)
- USE_SPEEX=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_SPEEX=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} SPEEX"
- ;;
- *)
- SPEEX_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} SPEEX"
- ;;
- esac
- fi
- SPEEX_PREPROCESS_DESCRIP="Speex preprocess routines"
- SPEEX_PREPROCESS_OPTION="speex"
- PBX_SPEEX_PREPROCESS=0
- # Check whether --with-speex was given.
- if test "${with_speex+set}" = set; then :
- withval=$with_speex;
- case ${withval} in
- n|no)
- USE_SPEEX_PREPROCESS=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_SPEEX_PREPROCESS=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
- ;;
- *)
- SPEEX_PREPROCESS_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
- ;;
- esac
- fi
- SPEEXDSP_DESCRIP="SpeexDSP"
- SPEEXDSP_OPTION="speexdsp"
- PBX_SPEEXDSP=0
- # Check whether --with-speexdsp was given.
- if test "${with_speexdsp+set}" = set; then :
- withval=$with_speexdsp;
- case ${withval} in
- n|no)
- USE_SPEEXDSP=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_SPEEXDSP=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
- ;;
- *)
- SPEEXDSP_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
- ;;
- esac
- fi
- SPEEX_PREPROCESS_DESCRIP="speex_preprocess_ctl"
- SPEEX_PREPROCESS_OPTION=speex
- PBX_SPEEX_PREPROCESS=0
- SQLITE_DESCRIP="SQLite"
- SQLITE_OPTION="sqlite"
- PBX_SQLITE=0
- # Check whether --with-sqlite was given.
- if test "${with_sqlite+set}" = set; then :
- withval=$with_sqlite;
- case ${withval} in
- n|no)
- USE_SQLITE=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_SQLITE=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} SQLITE"
- ;;
- *)
- SQLITE_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} SQLITE"
- ;;
- esac
- fi
- SQLITE3_DESCRIP="SQLite"
- SQLITE3_OPTION="sqlite3"
- PBX_SQLITE3=0
- # Check whether --with-sqlite3 was given.
- if test "${with_sqlite3+set}" = set; then :
- withval=$with_sqlite3;
- case ${withval} in
- n|no)
- USE_SQLITE3=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_SQLITE3=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} SQLITE3"
- ;;
- *)
- SQLITE3_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} SQLITE3"
- ;;
- esac
- fi
- SRTP_DESCRIP="Secure RTP"
- SRTP_OPTION="srtp"
- PBX_SRTP=0
- # Check whether --with-srtp was given.
- if test "${with_srtp+set}" = set; then :
- withval=$with_srtp;
- case ${withval} in
- n|no)
- USE_SRTP=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_SRTP=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} SRTP"
- ;;
- *)
- SRTP_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} SRTP"
- ;;
- esac
- fi
- SRTP_SHUTDOWN_DESCRIP="SRTP Library Shutdown Function"
- SRTP_SHUTDOWN_OPTION=srtp
- SRTP_SHUTDOWN_DIR=${SRTP_DIR}
- PBX_SRTP_SHUTDOWN=0
- OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer"
- OPENSSL_OPTION="ssl"
- PBX_OPENSSL=0
- # Check whether --with-ssl was given.
- if test "${with_ssl+set}" = set; then :
- withval=$with_ssl;
- case ${withval} in
- n|no)
- USE_OPENSSL=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_OPENSSL=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} OPENSSL"
- ;;
- *)
- OPENSSL_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} OPENSSL"
- ;;
- esac
- fi
- SUPPSERV_DESCRIP="mISDN Supplemental Services"
- SUPPSERV_OPTION="suppserv"
- PBX_SUPPSERV=0
- # Check whether --with-suppserv was given.
- if test "${with_suppserv+set}" = set; then :
- withval=$with_suppserv;
- case ${withval} in
- n|no)
- USE_SUPPSERV=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_SUPPSERV=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
- ;;
- *)
- SUPPSERV_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
- ;;
- esac
- fi
- FREETDS_DESCRIP="FreeTDS"
- FREETDS_OPTION="tds"
- PBX_FREETDS=0
- # Check whether --with-tds was given.
- if test "${with_tds+set}" = set; then :
- withval=$with_tds;
- case ${withval} in
- n|no)
- USE_FREETDS=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_FREETDS=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} FREETDS"
- ;;
- *)
- FREETDS_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} FREETDS"
- ;;
- esac
- fi
- TERMCAP_DESCRIP="Termcap"
- TERMCAP_OPTION="termcap"
- PBX_TERMCAP=0
- # Check whether --with-termcap was given.
- if test "${with_termcap+set}" = set; then :
- withval=$with_termcap;
- case ${withval} in
- n|no)
- USE_TERMCAP=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_TERMCAP=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} TERMCAP"
- ;;
- *)
- TERMCAP_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} TERMCAP"
- ;;
- esac
- fi
- TIMERFD_DESCRIP="timerfd"
- TIMERFD_OPTION="timerfd"
- PBX_TIMERFD=0
- # Check whether --with-timerfd was given.
- if test "${with_timerfd+set}" = set; then :
- withval=$with_timerfd;
- case ${withval} in
- n|no)
- USE_TIMERFD=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_TIMERFD=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} TIMERFD"
- ;;
- *)
- TIMERFD_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} TIMERFD"
- ;;
- esac
- fi
- TINFO_DESCRIP="Term Info"
- TINFO_OPTION="tinfo"
- PBX_TINFO=0
- # Check whether --with-tinfo was given.
- if test "${with_tinfo+set}" = set; then :
- withval=$with_tinfo;
- case ${withval} in
- n|no)
- USE_TINFO=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_TINFO=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} TINFO"
- ;;
- *)
- TINFO_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} TINFO"
- ;;
- esac
- fi
- TONEZONE_DESCRIP="tonezone"
- TONEZONE_OPTION="tonezone"
- PBX_TONEZONE=0
- # Check whether --with-tonezone was given.
- if test "${with_tonezone+set}" = set; then :
- withval=$with_tonezone;
- case ${withval} in
- n|no)
- USE_TONEZONE=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_TONEZONE=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} TONEZONE"
- ;;
- *)
- TONEZONE_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} TONEZONE"
- ;;
- esac
- fi
- UNBOUND_DESCRIP="unbound"
- UNBOUND_OPTION="unbound"
- PBX_UNBOUND=0
- # Check whether --with-unbound was given.
- if test "${with_unbound+set}" = set; then :
- withval=$with_unbound;
- case ${withval} in
- n|no)
- USE_UNBOUND=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_UNBOUND=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} UNBOUND"
- ;;
- *)
- UNBOUND_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} UNBOUND"
- ;;
- esac
- fi
- UNIXODBC_DESCRIP="unixODBC"
- UNIXODBC_OPTION="unixodbc"
- PBX_UNIXODBC=0
- # Check whether --with-unixodbc was given.
- if test "${with_unixodbc+set}" = set; then :
- withval=$with_unixodbc;
- case ${withval} in
- n|no)
- USE_UNIXODBC=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_UNIXODBC=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
- ;;
- *)
- UNIXODBC_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
- ;;
- esac
- fi
- VORBIS_DESCRIP="Vorbis"
- VORBIS_OPTION="vorbis"
- PBX_VORBIS=0
- # Check whether --with-vorbis was given.
- if test "${with_vorbis+set}" = set; then :
- withval=$with_vorbis;
- case ${withval} in
- n|no)
- USE_VORBIS=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_VORBIS=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} VORBIS"
- ;;
- *)
- VORBIS_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} VORBIS"
- ;;
- esac
- fi
- VPB_DESCRIP="Voicetronix API"
- VPB_OPTION="vpb"
- PBX_VPB=0
- # Check whether --with-vpb was given.
- if test "${with_vpb+set}" = set; then :
- withval=$with_vpb;
- case ${withval} in
- n|no)
- USE_VPB=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_VPB=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} VPB"
- ;;
- *)
- VPB_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} VPB"
- ;;
- esac
- fi
- X11_DESCRIP="X11"
- X11_OPTION="x11"
- PBX_X11=0
- # Check whether --with-x11 was given.
- if test "${with_x11+set}" = set; then :
- withval=$with_x11;
- case ${withval} in
- n|no)
- USE_X11=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_X11=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} X11"
- ;;
- *)
- X11_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} X11"
- ;;
- esac
- fi
- ZLIB_DESCRIP="zlib compression"
- ZLIB_OPTION="z"
- PBX_ZLIB=0
- # Check whether --with-z was given.
- if test "${with_z+set}" = set; then :
- withval=$with_z;
- case ${withval} in
- n|no)
- USE_ZLIB=no
- # -1 is a magic value used by menuselect to know that the package
- # was disabled, other than 'not found'
- PBX_ZLIB=-1
- ;;
- y|ye|yes)
- ac_mandatory_list="${ac_mandatory_list} ZLIB"
- ;;
- *)
- ZLIB_DIR="${withval}"
- ac_mandatory_list="${ac_mandatory_list} ZLIB"
- ;;
- esac
- fi
- # check for basic system features and functionality before
- # checking for package libraries
- 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
- # 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
- 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
- { $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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
- $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
- if ${ac_cv_header_sys_wait_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/wait.h>
- #ifndef WEXITSTATUS
- # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
- #endif
- #ifndef WIFEXITED
- # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
- #endif
- int
- main ()
- {
- int s;
- wait (&s);
- s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_header_sys_wait_h=yes
- else
- ac_cv_header_sys_wait_h=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_sys_wait_h" >&5
- $as_echo "$ac_cv_header_sys_wait_h" >&6; }
- if test $ac_cv_header_sys_wait_h = yes; then
- $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
- fi
- for ac_header in arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/event.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h arpa/nameser.h sys/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
- # Any one of these packages support a mandatory requirement, so we want to check on them as early as possible.
- if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
- pbxlibdir=""
- # if --with-TERMCAP=DIR has been specified, use it.
- if test "x${TERMCAP_DIR}" != "x"; then
- if test -d ${TERMCAP_DIR}/lib; then
- pbxlibdir="-L${TERMCAP_DIR}/lib"
- else
- pbxlibdir="-L${TERMCAP_DIR}"
- fi
- fi
- pbxfuncname="tgetent"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_TERMCAP_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltermcap" >&5
- $as_echo_n "checking for ${pbxfuncname} in -ltermcap... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltermcap ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_TERMCAP_FOUND=yes
- else
- AST_TERMCAP_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_TERMCAP_FOUND}" = "yes"; then
- TERMCAP_LIB="${pbxlibdir} -ltermcap "
- # if --with-TERMCAP=DIR has been specified, use it.
- if test "x${TERMCAP_DIR}" != "x"; then
- TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
- fi
- TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
- if test "x" = "x" ; then # no header, assume found
- TERMCAP_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
- if test "x$ac_cv_header_" = xyes; then :
- TERMCAP_HEADER_FOUND=1
- else
- TERMCAP_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
- TERMCAP_LIB=""
- TERMCAP_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- TERMCAP_LIB=""
- fi
- PBX_TERMCAP=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_TERMCAP 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
- pbxlibdir=""
- # if --with-TINFO=DIR has been specified, use it.
- if test "x${TINFO_DIR}" != "x"; then
- if test -d ${TINFO_DIR}/lib; then
- pbxlibdir="-L${TINFO_DIR}/lib"
- else
- pbxlibdir="-L${TINFO_DIR}"
- fi
- fi
- pbxfuncname="tgetent"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_TINFO_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltinfo" >&5
- $as_echo_n "checking for ${pbxfuncname} in -ltinfo... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltinfo ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_TINFO_FOUND=yes
- else
- AST_TINFO_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_TINFO_FOUND}" = "yes"; then
- TINFO_LIB="${pbxlibdir} -ltinfo "
- # if --with-TINFO=DIR has been specified, use it.
- if test "x${TINFO_DIR}" != "x"; then
- TINFO_INCLUDE="-I${TINFO_DIR}/include"
- fi
- TINFO_INCLUDE="${TINFO_INCLUDE} "
- if test "x" = "x" ; then # no header, assume found
- TINFO_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
- if test "x$ac_cv_header_" = xyes; then :
- TINFO_HEADER_FOUND=1
- else
- TINFO_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
- TINFO_LIB=""
- TINFO_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- TINFO_LIB=""
- fi
- PBX_TINFO=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_TINFO 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
- pbxlibdir=""
- # if --with-CURSES=DIR has been specified, use it.
- if test "x${CURSES_DIR}" != "x"; then
- if test -d ${CURSES_DIR}/lib; then
- pbxlibdir="-L${CURSES_DIR}/lib"
- else
- pbxlibdir="-L${CURSES_DIR}"
- fi
- fi
- pbxfuncname="initscr"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_CURSES_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcurses" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lcurses... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcurses ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_CURSES_FOUND=yes
- else
- AST_CURSES_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_CURSES_FOUND}" = "yes"; then
- CURSES_LIB="${pbxlibdir} -lcurses "
- # if --with-CURSES=DIR has been specified, use it.
- if test "x${CURSES_DIR}" != "x"; then
- CURSES_INCLUDE="-I${CURSES_DIR}/include"
- fi
- CURSES_INCLUDE="${CURSES_INCLUDE} "
- if test "xcurses.h" = "x" ; then # no header, assume found
- CURSES_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
- if test "x$ac_cv_header_curses_h" = xyes; then :
- CURSES_HEADER_FOUND=1
- else
- CURSES_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
- CURSES_LIB=""
- CURSES_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- CURSES_LIB=""
- fi
- PBX_CURSES=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_CURSES 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
- pbxlibdir=""
- # if --with-NCURSES=DIR has been specified, use it.
- if test "x${NCURSES_DIR}" != "x"; then
- if test -d ${NCURSES_DIR}/lib; then
- pbxlibdir="-L${NCURSES_DIR}/lib"
- else
- pbxlibdir="-L${NCURSES_DIR}"
- fi
- fi
- pbxfuncname="initscr"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_NCURSES_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lncurses" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lncurses... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lncurses ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_NCURSES_FOUND=yes
- else
- AST_NCURSES_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_NCURSES_FOUND}" = "yes"; then
- NCURSES_LIB="${pbxlibdir} -lncurses "
- # if --with-NCURSES=DIR has been specified, use it.
- if test "x${NCURSES_DIR}" != "x"; then
- NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
- fi
- NCURSES_INCLUDE="${NCURSES_INCLUDE} "
- if test "xcurses.h" = "x" ; then # no header, assume found
- NCURSES_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
- if test "x$ac_cv_header_curses_h" = xyes; then :
- NCURSES_HEADER_FOUND=1
- else
- NCURSES_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
- NCURSES_LIB=""
- NCURSES_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- NCURSES_LIB=""
- fi
- PBX_NCURSES=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_NCURSES 1
- _ACEOF
- fi
- fi
- fi
- EDITLINE_LIB=""
- if test "x$TERMCAP_LIB" != "x" ; then
- EDITLINE_LIB="$TERMCAP_LIB"
- elif test "x$TINFO_LIB" != "x" ; then
- EDITLINE_LIB="$TINFO_LIB"
- elif test "x$CURSES_LIB" != "x" ; then
- EDITLINE_LIB="$CURSES_LIB"
- elif test "x$NCURSES_LIB" != "x" ; then
- EDITLINE_LIB="$NCURSES_LIB"
- else
- as_fn_error $? "*** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" "$LINENO" 5
- fi
- # Find required UUID support.
- # * -luuid on Linux
- # * -le2fs-uuid on OpenBSD
- # * in libsystem on OS X
- if test "x${PBX_LIBUUID}" != "x1" -a "${USE_LIBUUID}" != "no"; then
- pbxlibdir=""
- # if --with-LIBUUID=DIR has been specified, use it.
- if test "x${LIBUUID_DIR}" != "x"; then
- if test -d ${LIBUUID_DIR}/lib; then
- pbxlibdir="-L${LIBUUID_DIR}/lib"
- else
- pbxlibdir="-L${LIBUUID_DIR}"
- fi
- fi
- pbxfuncname="uuid_generate_random"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_LIBUUID_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_uuid_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -luuid" >&5
- $as_echo_n "checking for ${pbxfuncname} in -luuid... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-luuid ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_LIBUUID_FOUND=yes
- else
- AST_LIBUUID_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_LIBUUID_FOUND}" = "yes"; then
- LIBUUID_LIB="${pbxlibdir} -luuid "
- # if --with-LIBUUID=DIR has been specified, use it.
- if test "x${LIBUUID_DIR}" != "x"; then
- LIBUUID_INCLUDE="-I${LIBUUID_DIR}/include"
- fi
- LIBUUID_INCLUDE="${LIBUUID_INCLUDE} "
- if test "xuuid/uuid.h" = "x" ; then # no header, assume found
- LIBUUID_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${LIBUUID_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
- if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
- LIBUUID_HEADER_FOUND=1
- else
- LIBUUID_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${LIBUUID_HEADER_FOUND}" = "x0" ; then
- LIBUUID_LIB=""
- LIBUUID_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- LIBUUID_LIB=""
- fi
- PBX_LIBUUID=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBUUID 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_E2FSUUID}" != "x1" -a "${USE_E2FSUUID}" != "no"; then
- pbxlibdir=""
- # if --with-E2FSUUID=DIR has been specified, use it.
- if test "x${E2FSUUID_DIR}" != "x"; then
- if test -d ${E2FSUUID_DIR}/lib; then
- pbxlibdir="-L${E2FSUUID_DIR}/lib"
- else
- pbxlibdir="-L${E2FSUUID_DIR}"
- fi
- fi
- pbxfuncname="uuid_generate_random"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_E2FSUUID_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_e2fs-uuid_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -le2fs-uuid" >&5
- $as_echo_n "checking for ${pbxfuncname} in -le2fs-uuid... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-le2fs-uuid ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_E2FSUUID_FOUND=yes
- else
- AST_E2FSUUID_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_E2FSUUID_FOUND}" = "yes"; then
- E2FSUUID_LIB="${pbxlibdir} -le2fs-uuid "
- # if --with-E2FSUUID=DIR has been specified, use it.
- if test "x${E2FSUUID_DIR}" != "x"; then
- E2FSUUID_INCLUDE="-I${E2FSUUID_DIR}/include"
- fi
- E2FSUUID_INCLUDE="${E2FSUUID_INCLUDE} "
- if test "xuuid/uuid.h" = "x" ; then # no header, assume found
- E2FSUUID_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${E2FSUUID_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
- if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
- E2FSUUID_HEADER_FOUND=1
- else
- E2FSUUID_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${E2FSUUID_HEADER_FOUND}" = "x0" ; then
- E2FSUUID_LIB=""
- E2FSUUID_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- E2FSUUID_LIB=""
- fi
- PBX_E2FSUUID=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_E2FSUUID 1
- _ACEOF
- fi
- fi
- fi
- for ac_func in uuid_generate_random
- do :
- ac_fn_c_check_func "$LINENO" "uuid_generate_random" "ac_cv_func_uuid_generate_random"
- if test "x$ac_cv_func_uuid_generate_random" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UUID_GENERATE_RANDOM 1
- _ACEOF
- SYSUUID=true
- else
- SYSUUID=""
- fi
- done
- if test "x$LIBUUID_LIB" != "x" ; then
- UUID_INCLUDE="$LIBUUID_INCLUDE"
- UUID_LIB="$LIBUUID_LIB"
- elif test "x$E2FSUUID_LIB" != "x" ; then
- UUID_INCLUDE="$E2FSUUID_INCLUDE"
- UUID_LIB="$E2FSUUID_LIB"
- elif test "x$SYSUUID" != "x" ; then
- UUID_INCLUDE=""
- UUID_LIB=""
- else
- as_fn_error $? "*** uuid support not found (this typically means the uuid development package is missing)" "$LINENO" 5
- fi
- # Find required JSON support.
- if test "x${PBX_JANSSON}" != "x1" -a "${USE_JANSSON}" != "no"; then
- pbxlibdir=""
- # if --with-JANSSON=DIR has been specified, use it.
- if test "x${JANSSON_DIR}" != "x"; then
- if test -d ${JANSSON_DIR}/lib; then
- pbxlibdir="-L${JANSSON_DIR}/lib"
- else
- pbxlibdir="-L${JANSSON_DIR}"
- fi
- fi
- pbxfuncname="json_dumps"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_JANSSON_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_jansson_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ljansson" >&5
- $as_echo_n "checking for ${pbxfuncname} in -ljansson... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ljansson ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_JANSSON_FOUND=yes
- else
- AST_JANSSON_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_JANSSON_FOUND}" = "yes"; then
- JANSSON_LIB="${pbxlibdir} -ljansson "
- # if --with-JANSSON=DIR has been specified, use it.
- if test "x${JANSSON_DIR}" != "x"; then
- JANSSON_INCLUDE="-I${JANSSON_DIR}/include"
- fi
- JANSSON_INCLUDE="${JANSSON_INCLUDE} "
- if test "xjansson.h" = "x" ; then # no header, assume found
- JANSSON_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${JANSSON_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "jansson.h" "ac_cv_header_jansson_h" "$ac_includes_default"
- if test "x$ac_cv_header_jansson_h" = xyes; then :
- JANSSON_HEADER_FOUND=1
- else
- JANSSON_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${JANSSON_HEADER_FOUND}" = "x0" ; then
- JANSSON_LIB=""
- JANSSON_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- JANSSON_LIB=""
- fi
- PBX_JANSSON=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_JANSSON 1
- _ACEOF
- fi
- fi
- fi
- if test "x$JANSSON_LIB" == "x"; then
- as_fn_error $? "*** JSON support not found (this typically means the libjansson development package is missing)" "$LINENO" 5
- fi
- if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then
- PBX_LIBXML2=0
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
- set dummy ${ac_tool_prefix}xml2-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_CONFIG_LIBXML2+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $CONFIG_LIBXML2 in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CONFIG_LIBXML2="$CONFIG_LIBXML2" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="${LIBXML2_DIR}/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_CONFIG_LIBXML2="$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
- CONFIG_LIBXML2=$ac_cv_path_CONFIG_LIBXML2
- if test -n "$CONFIG_LIBXML2"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_LIBXML2" >&5
- $as_echo "$CONFIG_LIBXML2" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_CONFIG_LIBXML2"; then
- ac_pt_CONFIG_LIBXML2=$CONFIG_LIBXML2
- # Extract the first word of "xml2-config", so it can be a program name with args.
- set dummy xml2-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_ac_pt_CONFIG_LIBXML2+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ac_pt_CONFIG_LIBXML2 in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_pt_CONFIG_LIBXML2="$ac_pt_CONFIG_LIBXML2" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="${LIBXML2_DIR}/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_ac_pt_CONFIG_LIBXML2="$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
- ac_pt_CONFIG_LIBXML2=$ac_cv_path_ac_pt_CONFIG_LIBXML2
- if test -n "$ac_pt_CONFIG_LIBXML2"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_LIBXML2" >&5
- $as_echo "$ac_pt_CONFIG_LIBXML2" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_CONFIG_LIBXML2" = x; then
- CONFIG_LIBXML2="No"
- 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
- CONFIG_LIBXML2=$ac_pt_CONFIG_LIBXML2
- fi
- else
- CONFIG_LIBXML2="$ac_cv_path_CONFIG_LIBXML2"
- fi
- if test ! "x${CONFIG_LIBXML2}" = xNo; then
- if test x"" = x ; then A=--cflags ; else A="" ; fi
- LIBXML2_INCLUDE=$(${CONFIG_LIBXML2} $A)
- LIBXML2_INCLUDE=$(echo ${LIBXML2_INCLUDE} | $SED -e "s|-I|-I${LIBXML2_DIR}|g")
- if test x"" = x ; then A=--libs ; else A="" ; fi
- LIBXML2_LIB=$(${CONFIG_LIBXML2} $A)
- LIBXML2_LIB=$(echo ${LIBXML2_LIB} | $SED -e "s|-L|-L${LIBXML2_DIR}|g")
- if test x"#include <libxml/tree.h>
- #include <libxml/parser.h>" != x ; then
- saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${LIBXML2_INCLUDE}"
- saved_libs="${LIBS}"
- LIBS=${LIBXML2_LIB}
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <libxml/tree.h>
- #include <libxml/parser.h>
- int
- main ()
- {
- LIBXML_TEST_VERSION;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- PBX_LIBXML2=1
- $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CPPFLAGS="${saved_cppflags}"
- LIBS="${saved_libs}"
- else
- PBX_LIBXML2=1
- $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
- fi
- fi
- fi
- if test "${PBX_LIBXML2}" != 1; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** The Asterisk menuselect tool requires the 'libxml2' development package." >&5
- $as_echo "$as_me: *** The Asterisk menuselect tool requires the 'libxml2' development package." >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install the 'libxml2' development package." >&5
- $as_echo "$as_me: *** Please install the 'libxml2' development package." >&6;}
- exit 1
- fi
- if test "x${PBX_URIPARSER}" != "x1" -a "${USE_URIPARSER}" != "no"; then
- pbxlibdir=""
- # if --with-URIPARSER=DIR has been specified, use it.
- if test "x${URIPARSER_DIR}" != "x"; then
- if test -d ${URIPARSER_DIR}/lib; then
- pbxlibdir="-L${URIPARSER_DIR}/lib"
- else
- pbxlibdir="-L${URIPARSER_DIR}"
- fi
- fi
- pbxfuncname="uriParseUriA"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_URIPARSER_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_uriparser_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -luriparser" >&5
- $as_echo_n "checking for ${pbxfuncname} in -luriparser... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-luriparser ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_URIPARSER_FOUND=yes
- else
- AST_URIPARSER_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_URIPARSER_FOUND}" = "yes"; then
- URIPARSER_LIB="${pbxlibdir} -luriparser "
- # if --with-URIPARSER=DIR has been specified, use it.
- if test "x${URIPARSER_DIR}" != "x"; then
- URIPARSER_INCLUDE="-I${URIPARSER_DIR}/include"
- fi
- URIPARSER_INCLUDE="${URIPARSER_INCLUDE} "
- if test "xuriparser/Uri.h" = "x" ; then # no header, assume found
- URIPARSER_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${URIPARSER_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "uriparser/Uri.h" "ac_cv_header_uriparser_Uri_h" "$ac_includes_default"
- if test "x$ac_cv_header_uriparser_Uri_h" = xyes; then :
- URIPARSER_HEADER_FOUND=1
- else
- URIPARSER_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${URIPARSER_HEADER_FOUND}" = "x0" ; then
- URIPARSER_LIB=""
- URIPARSER_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- URIPARSER_LIB=""
- fi
- PBX_URIPARSER=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_URIPARSER 1
- _ACEOF
- fi
- fi
- fi
- # Another mandatory item (unless it's explicitly disabled)
- # Check whether --enable-xmldoc was given.
- if test "${enable_xmldoc+set}" = set; then :
- enableval=$enable_xmldoc; case "${enableval}" in
- y|ye|yes) disable_xmldoc=no ;;
- n|no) disable_xmldoc=yes ;;
- *) as_fn_error $? "bad value ${enableval} for --disable-xmldoc" "$LINENO" 5 ;;
- esac
- else
- disable_xmldoc=no
- fi
- if test "${disable_xmldoc}" != "yes"; then
- if test "x${PBX_LIBXSLT}" != "x1" -a "${USE_LIBXSLT}" != "no"; then
- pbxlibdir=""
- # if --with-LIBXSLT=DIR has been specified, use it.
- if test "x${LIBXSLT_DIR}" != "x"; then
- if test -d ${LIBXSLT_DIR}/lib; then
- pbxlibdir="-L${LIBXSLT_DIR}/lib"
- else
- pbxlibdir="-L${LIBXSLT_DIR}"
- fi
- fi
- pbxfuncname="xsltLoadStylesheetPI"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_LIBXSLT_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} ${LIBXML2_INCLUDE}"
- as_ac_Lib=`$as_echo "ac_cv_lib_xslt_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lxslt" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lxslt... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lxslt ${pbxlibdir} ${LIBXML2_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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_LIBXSLT_FOUND=yes
- else
- AST_LIBXSLT_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_LIBXSLT_FOUND}" = "yes"; then
- LIBXSLT_LIB="${pbxlibdir} -lxslt ${LIBXML2_LIB}"
- # if --with-LIBXSLT=DIR has been specified, use it.
- if test "x${LIBXSLT_DIR}" != "x"; then
- LIBXSLT_INCLUDE="-I${LIBXSLT_DIR}/include"
- fi
- LIBXSLT_INCLUDE="${LIBXSLT_INCLUDE} ${LIBXML2_INCLUDE}"
- if test "xlibxslt/xsltInternals.h" = "x" ; then # no header, assume found
- LIBXSLT_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${LIBXSLT_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xsltInternals.h" "ac_cv_header_libxslt_xsltInternals_h" "$ac_includes_default"
- if test "x$ac_cv_header_libxslt_xsltInternals_h" = xyes; then :
- LIBXSLT_HEADER_FOUND=1
- else
- LIBXSLT_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${LIBXSLT_HEADER_FOUND}" = "x0" ; then
- LIBXSLT_LIB=""
- LIBXSLT_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- LIBXSLT_LIB=""
- fi
- PBX_LIBXSLT=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBXSLT 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_LIBXSLT_CLEANUP}" != "x1" -a "${USE_LIBXSLT_CLEANUP}" != "no"; then
- pbxlibdir=""
- # if --with-LIBXSLT_CLEANUP=DIR has been specified, use it.
- if test "x${LIBXSLT_CLEANUP_DIR}" != "x"; then
- if test -d ${LIBXSLT_CLEANUP_DIR}/lib; then
- pbxlibdir="-L${LIBXSLT_CLEANUP_DIR}/lib"
- else
- pbxlibdir="-L${LIBXSLT_CLEANUP_DIR}"
- fi
- fi
- pbxfuncname="xsltCleanupGlobals"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_LIBXSLT_CLEANUP_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} ${LIBXML2_INCLUDE}"
- as_ac_Lib=`$as_echo "ac_cv_lib_xslt_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lxslt" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lxslt... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lxslt ${pbxlibdir} ${LIBXML2_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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_LIBXSLT_CLEANUP_FOUND=yes
- else
- AST_LIBXSLT_CLEANUP_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_LIBXSLT_CLEANUP_FOUND}" = "yes"; then
- LIBXSLT_CLEANUP_LIB="${pbxlibdir} -lxslt ${LIBXML2_LIB}"
- # if --with-LIBXSLT_CLEANUP=DIR has been specified, use it.
- if test "x${LIBXSLT_CLEANUP_DIR}" != "x"; then
- LIBXSLT_CLEANUP_INCLUDE="-I${LIBXSLT_CLEANUP_DIR}/include"
- fi
- LIBXSLT_CLEANUP_INCLUDE="${LIBXSLT_CLEANUP_INCLUDE} ${LIBXML2_INCLUDE}"
- if test "xlibxslt/xsltInternals.h" = "x" ; then # no header, assume found
- LIBXSLT_CLEANUP_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${LIBXSLT_CLEANUP_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xsltInternals.h" "ac_cv_header_libxslt_xsltInternals_h" "$ac_includes_default"
- if test "x$ac_cv_header_libxslt_xsltInternals_h" = xyes; then :
- LIBXSLT_CLEANUP_HEADER_FOUND=1
- else
- LIBXSLT_CLEANUP_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${LIBXSLT_CLEANUP_HEADER_FOUND}" = "x0" ; then
- LIBXSLT_CLEANUP_LIB=""
- LIBXSLT_CLEANUP_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- LIBXSLT_CLEANUP_LIB=""
- fi
- PBX_LIBXSLT_CLEANUP=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBXSLT_CLEANUP 1
- _ACEOF
- fi
- fi
- fi
- fi
- # some embedded systems omit internationalization (locale) support
- for ac_header in xlocale.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
- if test "x$ac_cv_header_xlocale_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_XLOCALE_H 1
- _ACEOF
- fi
- done
- for ac_header in winsock.h winsock2.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_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
- if test "x$ac_cv_header_sys_poll_h" = xyes; then :
- else
- $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
- fi
- # Check whether --enable-largefile was given.
- if test "${enable_largefile+set}" = set; then :
- enableval=$enable_largefile;
- fi
- if test "$enable_largefile" != no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
- $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
- if ${ac_cv_sys_largefile_CC+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_sys_largefile_CC=no
- if test "$GCC" != yes; then
- ac_save_CC=$CC
- while :; do
- # IRIX 6.2 and later do not support large files by default,
- # so use the C compiler's -n32 option if that helps.
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- break
- fi
- rm -f core conftest.err conftest.$ac_objext
- CC="$CC -n32"
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_largefile_CC=' -n32'; break
- fi
- rm -f core conftest.err conftest.$ac_objext
- break
- done
- CC=$ac_save_CC
- rm -f conftest.$ac_ext
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
- $as_echo "$ac_cv_sys_largefile_CC" >&6; }
- if test "$ac_cv_sys_largefile_CC" != no; then
- CC=$CC$ac_cv_sys_largefile_CC
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
- $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
- if ${ac_cv_sys_file_offset_bits+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_file_offset_bits=no; break
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _FILE_OFFSET_BITS 64
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_file_offset_bits=64; break
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_sys_file_offset_bits=unknown
- break
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
- $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
- case $ac_cv_sys_file_offset_bits in #(
- no | unknown) ;;
- *)
- cat >>confdefs.h <<_ACEOF
- #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
- _ACEOF
- ;;
- esac
- rm -rf conftest*
- if test $ac_cv_sys_file_offset_bits = unknown; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
- $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
- if ${ac_cv_sys_large_files+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_large_files=no; break
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _LARGE_FILES 1
- #include <sys/types.h>
- /* Check that off_t can represent 2**63 - 1 correctly.
- We can't simply define LARGE_OFF_T to be 9223372036854775807,
- since some C++ compilers masquerading as C compilers
- incorrectly reject 9223372036854775807. */
- #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
- int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
- && LARGE_OFF_T % 2147483647 == 1)
- ? 1 : -1];
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_sys_large_files=1; break
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ac_cv_sys_large_files=unknown
- break
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
- $as_echo "$ac_cv_sys_large_files" >&6; }
- case $ac_cv_sys_large_files in #(
- no | unknown) ;;
- *)
- cat >>confdefs.h <<_ACEOF
- #define _LARGE_FILES $ac_cv_sys_large_files
- _ACEOF
- ;;
- esac
- rm -rf conftest*
- fi
- fi
- # Checks for typedefs, structures, and compiler characteristics.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
- $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
- if ${ac_cv_header_stdbool_h+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdbool.h>
- #ifndef bool
- "error: bool is not defined"
- #endif
- #ifndef false
- "error: false is not defined"
- #endif
- #if false
- "error: false is not 0"
- #endif
- #ifndef true
- "error: true is not defined"
- #endif
- #if true != 1
- "error: true is not 1"
- #endif
- #ifndef __bool_true_false_are_defined
- "error: __bool_true_false_are_defined is not defined"
- #endif
- struct s { _Bool s: 1; _Bool t; } s;
- char a[true == 1 ? 1 : -1];
- char b[false == 0 ? 1 : -1];
- char c[__bool_true_false_are_defined == 1 ? 1 : -1];
- char d[(bool) 0.5 == true ? 1 : -1];
- /* See body of main program for 'e'. */
- char f[(_Bool) 0.0 == false ? 1 : -1];
- char g[true];
- char h[sizeof (_Bool)];
- char i[sizeof s.t];
- enum { j = false, k = true, l = false * true, m = true * 256 };
- /* The following fails for
- HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
- _Bool n[m];
- char o[sizeof n == m * sizeof n[0] ? 1 : -1];
- char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
- /* Catch a bug in an HP-UX C compiler. See
- http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
- http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
- */
- _Bool q = true;
- _Bool *pq = &q;
- int
- main ()
- {
- bool e = &s;
- *pq |= q;
- *pq |= ! q;
- /* Refer to every declared value, to avoid compiler optimizations. */
- return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
- + !m + !n + !o + !p + !q + !pq);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_header_stdbool_h=yes
- else
- ac_cv_header_stdbool_h=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_stdbool_h" >&5
- $as_echo "$ac_cv_header_stdbool_h" >&6; }
- ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
- if test "x$ac_cv_type__Bool" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE__BOOL 1
- _ACEOF
- fi
- if test $ac_cv_header_stdbool_h = yes; then
- $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
- fi
- { $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 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 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 for long double with more range or precision than double" >&5
- $as_echo_n "checking for long double with more range or precision than double... " >&6; }
- if ${ac_cv_type_long_double_wider+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <float.h>
- long double const a[] =
- {
- 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
- LDBL_MIN, LDBL_MAX, LDBL_EPSILON
- };
- long double
- f (long double x)
- {
- return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
- + (x ? f (x) : 'c'));
- }
- int
- main ()
- {
- static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
- + (DBL_MANT_DIG < LDBL_MANT_DIG)
- - (LDBL_MAX_EXP < DBL_MAX_EXP)
- - (LDBL_MANT_DIG < DBL_MANT_DIG)))
- && (int) LDBL_EPSILON == 0
- )];
- test_array [0] = 0;
- return test_array [0];
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_type_long_double_wider=yes
- else
- ac_cv_type_long_double_wider=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_long_double_wider" >&5
- $as_echo "$ac_cv_type_long_double_wider" >&6; }
- if test $ac_cv_type_long_double_wider = yes; then
- $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
- fi
- ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
- if test "x$ac_cv_type_mode_t" = xyes; then :
- else
- cat >>confdefs.h <<_ACEOF
- #define mode_t int
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
- if test "x$ac_cv_type_off_t" = xyes; then :
- else
- cat >>confdefs.h <<_ACEOF
- #define off_t long int
- _ACEOF
- fi
- ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
- if test "x$ac_cv_type_pid_t" = xyes; then :
- else
- cat >>confdefs.h <<_ACEOF
- #define pid_t int
- _ACEOF
- 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
- 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 ucred" "uid" "ac_cv_member_struct_ucred_uid" "#include <sys/types.h>
- #include <sys/socket.h>
- "
- if test "x$ac_cv_member_struct_ucred_uid" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_UCRED_UID 1
- _ACEOF
- fi
- ac_fn_c_check_member "$LINENO" "struct ucred" "cr_uid" "ac_cv_member_struct_ucred_cr_uid" "#include <sys/types.h>
- #include <sys/socket.h>
- "
- if test "x$ac_cv_member_struct_ucred_cr_uid" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_UCRED_CR_UID 1
- _ACEOF
- fi
- ac_fn_c_check_member "$LINENO" "struct sockpeercred" "uid" "ac_cv_member_struct_sockpeercred_uid" "#include <sys/types.h>
- #include <sys/socket.h>
- "
- if test "x$ac_cv_member_struct_sockpeercred_uid" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_SOCKPEERCRED_UID 1
- _ACEOF
- fi
- ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_ifru.ifru_hwaddr" "ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" "#include <net/if.h>
- "
- if test "x$ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR 1
- _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 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
- $as_echo_n "checking for working volatile... " >&6; }
- if ${ac_cv_c_volatile+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- volatile int x;
- int * volatile y = (int *) 0;
- return !x && !y;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_c_volatile=yes
- else
- ac_cv_c_volatile=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_volatile" >&5
- $as_echo "$ac_cv_c_volatile" >&6; }
- if test $ac_cv_c_volatile = no; then
- $as_echo "#define volatile /**/" >>confdefs.h
- fi
- ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
- if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PTRDIFF_T 1
- _ACEOF
- fi
- stat_nsec_found=no
- ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
- "
- if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_STAT_ST_MTIM 1
- _ACEOF
- stat_nsec_found=yes
- fi
- ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
- "
- if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
- _ACEOF
- stat_nsec_found=yes
- fi
- ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "#include <sys/stat.h>
- "
- if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
- _ACEOF
- stat_nsec_found=yes
- fi
- if test "${stat_nsec_found}" != yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine nanosecond field of struct stat" >&5
- $as_echo "$as_me: WARNING: Cannot determine nanosecond field of struct stat" >&2;}
- fi
- # Checks for library functions.
- for ac_header in unistd.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
- if test "x$ac_cv_header_unistd_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UNISTD_H 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
- $as_echo_n "checking for working chown... " >&6; }
- if ${ac_cv_func_chown_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_func_chown_works=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- #include <fcntl.h>
- int
- main ()
- {
- char *f = "conftest.chown";
- struct stat before, after;
- if (creat (f, 0600) < 0)
- return 1;
- if (stat (f, &before) < 0)
- return 1;
- if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
- return 1;
- if (stat (f, &after) < 0)
- return 1;
- return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_chown_works=yes
- else
- ac_cv_func_chown_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
- rm -f conftest.chown
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
- $as_echo "$ac_cv_func_chown_works" >&6; }
- if test $ac_cv_func_chown_works = yes; then
- $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
- $as_echo_n "checking whether closedir returns void... " >&6; }
- if ${ac_cv_func_closedir_void+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_func_closedir_void=yes
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- #include <$ac_header_dirent>
- #ifndef __cplusplus
- int closedir ();
- #endif
- int
- main ()
- {
- return closedir (opendir (".")) != 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_closedir_void=no
- else
- ac_cv_func_closedir_void=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_func_closedir_void" >&5
- $as_echo "$ac_cv_func_closedir_void" >&6; }
- if test $ac_cv_func_closedir_void = yes; then
- $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
- $as_echo_n "checking for error_at_line... " >&6; }
- if ${ac_cv_lib_error_at_line+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <error.h>
- int
- main ()
- {
- error_at_line (0, 0, "", 0, "an error occurred");
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_error_at_line=yes
- else
- ac_cv_lib_error_at_line=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_lib_error_at_line" >&5
- $as_echo "$ac_cv_lib_error_at_line" >&6; }
- if test $ac_cv_lib_error_at_line = no; then
- case " $LIBOBJS " in
- *" error.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS error.$ac_objext"
- ;;
- esac
- fi
- for ac_header in vfork.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
- if test "x$ac_cv_header_vfork_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_VFORK_H 1
- _ACEOF
- fi
- done
- for ac_func in fork vfork
- 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 "x$ac_cv_func_fork" = xyes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
- $as_echo_n "checking for working fork... " >&6; }
- if ${ac_cv_func_fork_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_func_fork_works=cross
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- int
- main ()
- {
- /* By Ruediger Kuhlmann. */
- return fork () < 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_fork_works=yes
- else
- ac_cv_func_fork_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_fork_works" >&5
- $as_echo "$ac_cv_func_fork_works" >&6; }
- else
- ac_cv_func_fork_works=$ac_cv_func_fork
- fi
- if test "x$ac_cv_func_fork_works" = xcross; then
- case $host in
- *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
- # Override, as these systems have only a dummy fork() stub
- ac_cv_func_fork_works=no
- ;;
- *)
- ac_cv_func_fork_works=yes
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
- $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
- fi
- ac_cv_func_vfork_works=$ac_cv_func_vfork
- if test "x$ac_cv_func_vfork" = xyes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
- $as_echo_n "checking for working vfork... " >&6; }
- if ${ac_cv_func_vfork_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_func_vfork_works=cross
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- /* Thanks to Paul Eggert for this test. */
- $ac_includes_default
- #include <sys/wait.h>
- #ifdef HAVE_VFORK_H
- # include <vfork.h>
- #endif
- /* On some sparc systems, changes by the child to local and incoming
- argument registers are propagated back to the parent. The compiler
- is told about this with #include <vfork.h>, but some compilers
- (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
- static variable whose address is put into a register that is
- clobbered by the vfork. */
- static void
- #ifdef __cplusplus
- sparc_address_test (int arg)
- # else
- sparc_address_test (arg) int arg;
- #endif
- {
- static pid_t child;
- if (!child) {
- child = vfork ();
- if (child < 0) {
- perror ("vfork");
- _exit(2);
- }
- if (!child) {
- arg = getpid();
- write(-1, "", 0);
- _exit (arg);
- }
- }
- }
- int
- main ()
- {
- pid_t parent = getpid ();
- pid_t child;
- sparc_address_test (0);
- child = vfork ();
- if (child == 0) {
- /* Here is another test for sparc vfork register problems. This
- test uses lots of local variables, at least as many local
- variables as main has allocated so far including compiler
- temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
- 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
- reuse the register of parent for one of the local variables,
- since it will think that parent can't possibly be used any more
- in this routine. Assigning to the local variable will thus
- munge parent in the parent process. */
- pid_t
- p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
- p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
- /* Convince the compiler that p..p7 are live; otherwise, it might
- use the same hardware register for all 8 local variables. */
- if (p != p1 || p != p2 || p != p3 || p != p4
- || p != p5 || p != p6 || p != p7)
- _exit(1);
- /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
- from child file descriptors. If the child closes a descriptor
- before it execs or exits, this munges the parent's descriptor
- as well. Test for this by closing stdout in the child. */
- _exit(close(fileno(stdout)) != 0);
- } else {
- int status;
- struct stat st;
- while (wait(&status) != child)
- ;
- return (
- /* Was there some problem with vforking? */
- child < 0
- /* Did the child fail? (This shouldn't happen.) */
- || status
- /* Did the vfork/compiler bug occur? */
- || parent != getpid()
- /* Did the file descriptor bug occur? */
- || fstat(fileno(stdout), &st) != 0
- );
- }
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_vfork_works=yes
- else
- ac_cv_func_vfork_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_vfork_works" >&5
- $as_echo "$ac_cv_func_vfork_works" >&6; }
- fi;
- if test "x$ac_cv_func_fork_works" = xcross; then
- ac_cv_func_vfork_works=$ac_cv_func_vfork
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
- $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
- fi
- if test "x$ac_cv_func_vfork_works" = xyes; then
- $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
- else
- $as_echo "#define vfork fork" >>confdefs.h
- fi
- if test "x$ac_cv_func_fork_works" = xyes; then
- $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
- PBX_WORKING_FORK=1
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
- $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
- if ${ac_cv_sys_largefile_source+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- while :; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h> /* for off_t */
- #include <stdio.h>
- int
- main ()
- {
- int (*fp) (FILE *, off_t, int) = fseeko;
- return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_sys_largefile_source=no; break
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _LARGEFILE_SOURCE 1
- #include <sys/types.h> /* for off_t */
- #include <stdio.h>
- int
- main ()
- {
- int (*fp) (FILE *, off_t, int) = fseeko;
- return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_sys_largefile_source=1; break
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- ac_cv_sys_largefile_source=unknown
- break
- done
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
- $as_echo "$ac_cv_sys_largefile_source" >&6; }
- case $ac_cv_sys_largefile_source in #(
- no | unknown) ;;
- *)
- cat >>confdefs.h <<_ACEOF
- #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
- _ACEOF
- ;;
- esac
- rm -rf conftest*
- # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
- # in glibc 2.1.3, but that breaks too many other things.
- # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
- if test $ac_cv_sys_largefile_source != unknown; then
- $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
- fi
- if test $ac_cv_c_compiler_gnu = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
- $as_echo_n "checking whether $CC needs -traditional... " >&6; }
- if ${ac_cv_prog_gcc_traditional+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_pattern="Autoconf.*'x'"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sgtty.h>
- Autoconf TIOCGETP
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "$ac_pattern" >/dev/null 2>&1; then :
- ac_cv_prog_gcc_traditional=yes
- else
- ac_cv_prog_gcc_traditional=no
- fi
- rm -f conftest*
- if test $ac_cv_prog_gcc_traditional = no; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <termio.h>
- Autoconf TCGETA
- _ACEOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "$ac_pattern" >/dev/null 2>&1; then :
- ac_cv_prog_gcc_traditional=yes
- fi
- rm -f conftest*
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
- $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
- if test $ac_cv_prog_gcc_traditional = yes; then
- CC="$CC -traditional"
- fi
- fi
- # XXX: these are commented out until we determine whether it matters if our malloc()
- # acts exactly like glibc's or not
- # AC_FUNC_MALLOC
- # AC_FUNC_REALLOC
- { $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
- 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
- for ac_func in getpagesize
- do :
- ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
- if test "x$ac_cv_func_getpagesize" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GETPAGESIZE 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
- $as_echo_n "checking for working mmap... " >&6; }
- if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_func_mmap_fixed_mapped=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- /* malloc might have been renamed as rpl_malloc. */
- #undef malloc
- /* Thanks to Mike Haertel and Jim Avera for this test.
- Here is a matrix of mmap possibilities:
- mmap private not fixed
- mmap private fixed at somewhere currently unmapped
- mmap private fixed at somewhere already mapped
- mmap shared not fixed
- mmap shared fixed at somewhere currently unmapped
- mmap shared fixed at somewhere already mapped
- For private mappings, we should verify that changes cannot be read()
- back from the file, nor mmap's back from the file at a different
- address. (There have been systems where private was not correctly
- implemented like the infamous i386 svr4.0, and systems where the
- VM page cache was not coherent with the file system buffer cache
- like early versions of FreeBSD and possibly contemporary NetBSD.)
- For shared mappings, we should conversely verify that changes get
- propagated back to all the places they're supposed to be.
- Grep wants private fixed already mapped.
- The main things grep needs to know about mmap are:
- * does it exist and is it safe to write into the mmap'd area
- * how to use it (BSD variants) */
- #include <fcntl.h>
- #include <sys/mman.h>
- #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
- char *malloc ();
- #endif
- /* This mess was copied from the GNU getpagesize.h. */
- #ifndef HAVE_GETPAGESIZE
- # ifdef _SC_PAGESIZE
- # define getpagesize() sysconf(_SC_PAGESIZE)
- # else /* no _SC_PAGESIZE */
- # ifdef HAVE_SYS_PARAM_H
- # include <sys/param.h>
- # ifdef EXEC_PAGESIZE
- # define getpagesize() EXEC_PAGESIZE
- # else /* no EXEC_PAGESIZE */
- # ifdef NBPG
- # define getpagesize() NBPG * CLSIZE
- # ifndef CLSIZE
- # define CLSIZE 1
- # endif /* no CLSIZE */
- # else /* no NBPG */
- # ifdef NBPC
- # define getpagesize() NBPC
- # else /* no NBPC */
- # ifdef PAGESIZE
- # define getpagesize() PAGESIZE
- # endif /* PAGESIZE */
- # endif /* no NBPC */
- # endif /* no NBPG */
- # endif /* no EXEC_PAGESIZE */
- # else /* no HAVE_SYS_PARAM_H */
- # define getpagesize() 8192 /* punt totally */
- # endif /* no HAVE_SYS_PARAM_H */
- # endif /* no _SC_PAGESIZE */
- #endif /* no HAVE_GETPAGESIZE */
- int
- main ()
- {
- char *data, *data2, *data3;
- const char *cdata2;
- int i, pagesize;
- int fd, fd2;
- pagesize = getpagesize ();
- /* First, make a file with some known garbage in it. */
- data = (char *) malloc (pagesize);
- if (!data)
- return 1;
- for (i = 0; i < pagesize; ++i)
- *(data + i) = rand ();
- umask (0);
- fd = creat ("conftest.mmap", 0600);
- if (fd < 0)
- return 2;
- if (write (fd, data, pagesize) != pagesize)
- return 3;
- close (fd);
- /* Next, check that the tail of a page is zero-filled. File must have
- non-zero length, otherwise we risk SIGBUS for entire page. */
- fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
- if (fd2 < 0)
- return 4;
- cdata2 = "";
- if (write (fd2, cdata2, 1) != 1)
- return 5;
- data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
- if (data2 == MAP_FAILED)
- return 6;
- for (i = 0; i < pagesize; ++i)
- if (*(data2 + i))
- return 7;
- close (fd2);
- if (munmap (data2, pagesize))
- return 8;
- /* Next, try to mmap the file at a fixed address which already has
- something else allocated at it. If we can, also make sure that
- we see the same garbage. */
- fd = open ("conftest.mmap", O_RDWR);
- if (fd < 0)
- return 9;
- if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
- MAP_PRIVATE | MAP_FIXED, fd, 0L))
- return 10;
- for (i = 0; i < pagesize; ++i)
- if (*(data + i) != *(data2 + i))
- return 11;
- /* Finally, make sure that changes to the mapped area do not
- percolate back to the file as seen by read(). (This is a bug on
- some variants of i386 svr4.0.) */
- for (i = 0; i < pagesize; ++i)
- *(data2 + i) = *(data2 + i) + 1;
- data3 = (char *) malloc (pagesize);
- if (!data3)
- return 12;
- if (read (fd, data3, pagesize) != pagesize)
- return 13;
- for (i = 0; i < pagesize; ++i)
- if (*(data + i) != *(data3 + i))
- return 14;
- close (fd);
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_mmap_fixed_mapped=yes
- else
- ac_cv_func_mmap_fixed_mapped=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_mmap_fixed_mapped" >&5
- $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
- if test $ac_cv_func_mmap_fixed_mapped = yes; then
- $as_echo "#define HAVE_MMAP 1" >>confdefs.h
- fi
- rm -f conftest.mmap conftest.txt
- for ac_header in sys/select.h sys/socket.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 types of arguments for select" >&5
- $as_echo_n "checking types of arguments for select... " >&6; }
- if ${ac_cv_func_select_args+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
- for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
- for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- #ifdef HAVE_SYS_SELECT_H
- # include <sys/select.h>
- #endif
- #ifdef HAVE_SYS_SOCKET_H
- # include <sys/socket.h>
- #endif
- int
- main ()
- {
- extern int select ($ac_arg1,
- $ac_arg234, $ac_arg234, $ac_arg234,
- $ac_arg5);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- done
- done
- done
- # Provide a safe default value.
- : "${ac_cv_func_select_args=int,int *,struct timeval *}"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
- $as_echo "$ac_cv_func_select_args" >&6; }
- ac_save_IFS=$IFS; IFS=','
- set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
- IFS=$ac_save_IFS
- shift
- cat >>confdefs.h <<_ACEOF
- #define SELECT_TYPE_ARG1 $1
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define SELECT_TYPE_ARG234 ($2)
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define SELECT_TYPE_ARG5 ($3)
- _ACEOF
- rm -f conftest*
- if ${ac_cv_func_setvbuf_reversed+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_cv_func_setvbuf_reversed=no
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
- $as_echo_n "checking return type of signal handlers... " >&6; }
- if ${ac_cv_type_signal+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/types.h>
- #include <signal.h>
- int
- main ()
- {
- return *(signal (0, 0)) (0) == 1;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- ac_cv_type_signal=int
- else
- ac_cv_type_signal=void
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
- $as_echo "$ac_cv_type_signal" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define RETSIGTYPE $ac_cv_type_signal
- _ACEOF
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
- $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
- if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- rm -f conftest.sym conftest.file
- echo >conftest.file
- if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
- if test "$cross_compiling" = yes; then :
- ac_cv_func_lstat_dereferences_slashed_symlink=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- int
- main ()
- {
- struct stat sbuf;
- /* Linux will dereference the symlink and fail, as required by POSIX.
- That is better in the sense that it means we will not
- have to compile and use the lstat wrapper. */
- return lstat ("conftest.sym/", &sbuf) == 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_lstat_dereferences_slashed_symlink=yes
- else
- ac_cv_func_lstat_dereferences_slashed_symlink=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
- # If the `ln -s' command failed, then we probably don't even
- # have an lstat function.
- ac_cv_func_lstat_dereferences_slashed_symlink=no
- fi
- rm -f conftest.sym conftest.file
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
- $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
- test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
- cat >>confdefs.h <<_ACEOF
- #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
- _ACEOF
- if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
- case " $LIBOBJS " in
- *" lstat.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
- ;;
- esac
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
- $as_echo_n "checking whether stat accepts an empty string... " >&6; }
- if ${ac_cv_func_stat_empty_string_bug+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_func_stat_empty_string_bug=yes
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- int
- main ()
- {
- struct stat sbuf;
- return stat ("", &sbuf) == 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_stat_empty_string_bug=no
- else
- ac_cv_func_stat_empty_string_bug=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_func_stat_empty_string_bug" >&5
- $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
- if test $ac_cv_func_stat_empty_string_bug = yes; then
- case " $LIBOBJS " in
- *" stat.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS stat.$ac_objext"
- ;;
- esac
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STAT_EMPTY_STRING_BUG 1
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
- $as_echo_n "checking for working strcoll... " >&6; }
- if ${ac_cv_func_strcoll_works+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_func_strcoll_works=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- int
- main ()
- {
- return (strcoll ("abc", "def") >= 0 ||
- strcoll ("ABC", "DEF") >= 0 ||
- strcoll ("123", "456") >= 0)
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_strcoll_works=yes
- else
- ac_cv_func_strcoll_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_strcoll_works" >&5
- $as_echo "$ac_cv_func_strcoll_works" >&6; }
- if test $ac_cv_func_strcoll_works = yes; then
- $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
- fi
- for ac_func in strftime
- do :
- ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
- if test "x$ac_cv_func_strftime" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_STRFTIME 1
- _ACEOF
- else
- # strftime is in -lintl on SCO UNIX.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
- $as_echo_n "checking for strftime in -lintl... " >&6; }
- if ${ac_cv_lib_intl_strftime+:} 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 strftime ();
- int
- main ()
- {
- return strftime ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_intl_strftime=yes
- else
- ac_cv_lib_intl_strftime=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_strftime" >&5
- $as_echo "$ac_cv_lib_intl_strftime" >&6; }
- if test "x$ac_cv_lib_intl_strftime" = xyes; then :
- $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
- LIBS="-lintl $LIBS"
- fi
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
- $as_echo_n "checking for working strnlen... " >&6; }
- if ${ac_cv_func_strnlen_working+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- # Guess no on AIX systems, yes otherwise.
- case "$host_os" in
- aix*) ac_cv_func_strnlen_working=no;;
- *) ac_cv_func_strnlen_working=yes;;
- esac
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- int
- main ()
- {
- #define S "foobar"
- #define S_LEN (sizeof S - 1)
- /* At least one implementation is buggy: that of AIX 4.3 would
- give strnlen (S, 1) == 3. */
- int i;
- for (i = 0; i < S_LEN + 1; ++i)
- {
- int expected = i <= S_LEN ? i : S_LEN;
- if (strnlen (S, i) != expected)
- return 1;
- }
- return 0;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_strnlen_working=yes
- else
- ac_cv_func_strnlen_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_strnlen_working" >&5
- $as_echo "$ac_cv_func_strnlen_working" >&6; }
- test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
- *" strnlen.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
- $as_echo_n "checking for working strtod... " >&6; }
- if ${ac_cv_func_strtod+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if test "$cross_compiling" = yes; then :
- ac_cv_func_strtod=no
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- $ac_includes_default
- #ifndef strtod
- double strtod ();
- #endif
- int
- main()
- {
- {
- /* Some versions of Linux strtod mis-parse strings with leading '+'. */
- char *string = " +69";
- char *term;
- double value;
- value = strtod (string, &term);
- if (value != 69 || term != (string + 4))
- return 1;
- }
- {
- /* Under Solaris 2.4, strtod returns the wrong value for the
- terminating character under some conditions. */
- char *string = "NaN";
- char *term;
- strtod (string, &term);
- if (term != string && *(term - 1) == 0)
- return 1;
- }
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- ac_cv_func_strtod=yes
- else
- ac_cv_func_strtod=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_strtod" >&5
- $as_echo "$ac_cv_func_strtod" >&6; }
- if test $ac_cv_func_strtod = no; then
- case " $LIBOBJS " in
- *" strtod.$ac_objext "* ) ;;
- *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
- ;;
- esac
- ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
- if test "x$ac_cv_func_pow" = xyes; then :
- fi
- if test $ac_cv_func_pow = no; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
- $as_echo_n "checking for pow in -lm... " >&6; }
- if ${ac_cv_lib_m_pow+:} 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 pow ();
- int
- main ()
- {
- return pow ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_m_pow=yes
- else
- ac_cv_lib_m_pow=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_pow" >&5
- $as_echo "$ac_cv_lib_m_pow" >&6; }
- if test "x$ac_cv_lib_m_pow" = xyes; then :
- POW_LIB=-lm
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
- $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
- fi
- fi
- fi
- { $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
- 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 asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap newlocale ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv utime vasprintf getpeereid sysctl swapctl
- 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 htonll" >&5
- $as_echo_n "checking for htonll... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <arpa/inet.h>
- int
- main ()
- {
- return htonll(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_HTONLL 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ntohll" >&5
- $as_echo_n "checking for ntohll... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <arpa/inet.h>
- int
- main ()
- {
- return ntohll(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_NTOHLL 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
- # NOTE: we use AC_CHECK_LIB to get -lm into the arguments for later checks,
- # so that AC_CHECK_FUNCS can detect functions in that library.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
- $as_echo_n "checking for sqrt in -lm... " >&6; }
- if ${ac_cv_lib_m_sqrt+:} 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 sqrt ();
- int
- main ()
- {
- return sqrt ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_m_sqrt=yes
- else
- ac_cv_lib_m_sqrt=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_sqrt" >&5
- $as_echo "$ac_cv_lib_m_sqrt" >&6; }
- if test "x$ac_cv_lib_m_sqrt" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBM 1
- _ACEOF
- LIBS="-lm $LIBS"
- fi
- # BSD might not have exp2, and/or log2
- for ac_func in exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round roundf trunc floor ceil
- 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
- # Certain architectures don't really have long double, even though
- # AC_CHECK_FUNCS would otherwise find the following functions.
- if test "x${ac_cv_type_long_double_wider}" = "xyes" ; then
- for ac_func in exp2l log2l exp10l log10l sinl cosl tanl asinl acosl atanl atan2l powl sqrtl rintl expl logl remainderl fmodl roundl truncl floorl ceill
- 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
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLONG_MAX in limits.h" >&5
- $as_echo_n "checking for LLONG_MAX in limits.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <limits.h>
- int
- main ()
- {
- long long foo = LLONG_MAX
- ;
- 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_LLONG_MAX 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timersub in time.h" >&5
- $as_echo_n "checking for timersub in time.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/time.h>
- int
- main ()
- {
- struct timeval *a; timersub(a, a, a);
- ;
- 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_TIMERSUB 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of GNU ld that supports the --dynamic-list flag" >&5
- $as_echo_n "checking for a version of GNU ld that supports the --dynamic-list flag... " >&6; }
- old_LDFLAGS=${LDFLAGS}
- cat >conftest.dynamics <<_ACEOF
- {
- *ast_*;
- };
- _ACEOF
- LDFLAGS="${LDFLAGS} -Wl,--dynamic-list,conftest.dynamics"
- PBX_DYNAMIC_LIST=0
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- PBX_DYNAMIC_LIST=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 conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LDFLAGS=${old_LDFLAGS}
- rm -f conftest.dynamics
- ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
- if test "x$ac_cv_header_sys_poll_h" = xyes; then :
- HAS_POLL=1
- $as_echo "#define HAVE_SYS_POLL_H 1" >>confdefs.h
- fi
- # Check whether --enable-internal-poll was given.
- if test "${enable_internal_poll+set}" = set; then :
- enableval=$enable_internal_poll; case "${enableval}" in
- y|ye|yes) HAS_POLL="";;
- n|no) HAS_POLL="${HAS_POLL}" ;;
- *) as_fn_error $? "bad value ${enableval} for --enable-internal-poll" "$LINENO" 5 ;;
- esac
- fi
- # Check whether --enable-asteriskssl was given.
- if test "${enable_asteriskssl+set}" = set; then :
- enableval=$enable_asteriskssl; case "${enableval}" in
- y|ye|yes) AST_ASTERISKSSL=yes ;;
- n|no) AST_ASTERISKSSL=no ;;
- *) as_fn_error $? "bad value ${enableval} for --disable-asteriskssl" "$LINENO" 5 ;;
- esac
- else
- AST_ASTERISKSSL=yes
- fi
- # https support (in main/http.c) uses funopen on BSD systems,
- # fopencookie on linux
- for ac_func in funopen fopencookie
- 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_func in inet_aton
- do :
- ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
- if test "x$ac_cv_func_inet_aton" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INET_ATON 1
- _ACEOF
- fi
- done
- # check if we have IP_PKTINFO constant defined
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_PKTINFO" >&5
- $as_echo_n "checking for IP_PKTINFO... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <netinet/in.h>
- int
- main ()
- {
- int pi = IP_PKTINFO;
- ;
- 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_PKTINFO 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
- # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
- $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
- if ${ac_cv_search_gethostbyname_r+:} 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 gethostbyname_r ();
- int
- main ()
- {
- return gethostbyname_r ();
- ;
- return 0;
- }
- _ACEOF
- for ac_lib in '' socket 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_gethostbyname_r=$ac_res
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_gethostbyname_r+:} false; then :
- break
- fi
- done
- if ${ac_cv_search_gethostbyname_r+:} false; then :
- else
- ac_cv_search_gethostbyname_r=no
- fi
- rm conftest.$ac_ext
- LIBS=$ac_func_search_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
- $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
- ac_res=$ac_cv_search_gethostbyname_r
- 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 gethostbyname_r with 6 arguments" >&5
- $as_echo_n "checking for gethostbyname_r with 6 arguments... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- #include <netdb.h>
- int
- main ()
- {
- struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)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; }
- $as_echo "#define HAVE_GETHOSTBYNAME_R_6 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 5 arguments" >&5
- $as_echo_n "checking for gethostbyname_r with 5 arguments... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdlib.h>
- #include <netdb.h>
- int
- main ()
- {
- struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)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; }
- $as_echo "#define HAVE_GETHOSTBYNAME_R_5 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
- ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
- if test "x$ac_cv_header_byteswap_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_BYTESWAP_H 1
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
- $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/endian.h>
- int
- main ()
- {
- int a = 1; int b = __swap16(a);
- ;
- 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_SYS_ENDIAN_SWAP16 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
- $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/endian.h>
- int
- main ()
- {
- int a = 1; int b = bswap16(a);
- ;
- 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_SYS_ENDIAN_BSWAP16 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t in locale.h" >&5
- $as_echo_n "checking for locale_t in locale.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <locale.h>
- int
- main ()
- {
- locale_t lt = 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; }
- $as_echo "#define HAVE_LOCALE_T_IN_LOCALE_H 1" >>confdefs.h
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t in xlocale.h" >&5
- $as_echo_n "checking for locale_t in xlocale.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <xlocale.h>
- int
- main ()
- {
- locale_t lt = 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; }
- $as_echo "#define HAVE_LOCALE_T_IN_XLOCALE_H 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
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_EVTONLY in fcntl.h" >&5
- $as_echo_n "checking for O_EVTONLY in fcntl.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <fcntl.h>
- int
- main ()
- {
- int a = O_EVTONLY;
- ;
- 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_O_EVTONLY 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_SYMLINK in fcntl.h" >&5
- $as_echo_n "checking for O_SYMLINK in fcntl.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <fcntl.h>
- int
- main ()
- {
- int a = O_SYMLINK;
- ;
- 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_O_SYMLINK 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
- if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
- $as_echo_n "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
- PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- int
- main ()
- {
- #if defined(PTHREAD_RWLOCK_INITIALIZER)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_PTHREAD_RWLOCK_INITIALIZER=1
- $as_echo "#define HAVE_PTHREAD_RWLOCK_INITIALIZER 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
- $as_echo_n "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- int
- main ()
- {
- int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
- ;
- 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_PTHREAD_RWLOCK_PREFER_WRITER_NP 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
- $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- int
- main ()
- {
- int a = PTHREAD_MUTEX_RECURSIVE_NP;
- ;
- 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_PTHREAD_MUTEX_RECURSIVE_NP 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP in pthread.h" >&5
- $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP in pthread.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- int
- main ()
- {
- int a = PTHREAD_MUTEX_ADAPTIVE_NP;
- ;
- 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_PTHREAD_MUTEX_ADAPTIVE_NP 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spinlock_t in pthread.h" >&5
- $as_echo_n "checking for pthread_spinlock_t in pthread.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- int
- main ()
- {
- pthread_spinlock_t spin;
- ;
- 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_PTHREAD_SPINLOCK 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
- save_LIBS="$LIBS"
- save_CFLAGS="$CFLAGS"
- LIBS="$PTHREAD_LIBS $LIBS"
- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_timedwrlock() in pthread.h" >&5
- $as_echo_n "checking for pthread_rwlock_timedwrlock() in pthread.h... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- #include <time.h>
- int
- main ()
- {
- pthread_rwlock_t foo; struct timespec bar; pthread_rwlock_timedwrlock(&foo, &bar)
- ;
- 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; }
- ac_cv_pthread_rwlock_timedwrlock="yes"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- ac_cv_pthread_rwlock_timedwrlock="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- # Some platforms define sem_init(), but only support sem_open(). joyous.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working unnamed semaphores" >&5
- $as_echo_n "checking for working unnamed semaphores... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
- $as_echo "cross-compile" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result yes guessed because of cross compilation" >&5
- $as_echo "$as_me: WARNING: result yes guessed because of cross compilation" >&6;}
- $as_echo "#define HAS_WORKING_SEMAPHORE 1" >>confdefs.h
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <semaphore.h>
- int
- main ()
- {
- sem_t sem; return sem_init(&sem, 0, 0);
- ;
- 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; }
- $as_echo "#define HAS_WORKING_SEMAPHORE 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
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
- if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then
- $as_echo "#define HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 1" >>confdefs.h
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_ONCE_INIT needs braces" >&5
- $as_echo_n "checking if PTHREAD_ONCE_INIT needs braces... " >&6; }
- saved_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} -Werror -Wmissing-braces"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- void empty(){}
- int
- main ()
- {
- pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- ac_cv_pthread_once_needsbraces="no"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- ac_cv_pthread_once_needsbraces="yes"
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- CFLAGS="${saved_CFLAGS}"
- if test "${ac_cv_pthread_once_needsbraces}" = "yes"; then
- $as_echo "#define PTHREAD_ONCE_INIT_NEEDS_BRACES 1" >>confdefs.h
- fi
- if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
- $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
- PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- int
- main ()
- {
- #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
- $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- # Can we compare a mutex to its initial value?
- # Generally yes on OpenBSD/FreeBSD and no on Mac OS X.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compare a mutex to its initial value" >&5
- $as_echo_n "checking whether we can compare a mutex to its initial value... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pthread.h>
- int
- main ()
- {
- pthread_mutex_t lock;
- if ((lock) != ((pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER)) {
- return 0;
- }
- return 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 CAN_COMPARE_MUTEX_TO_INIT_VALUE 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
- #if test "${cross_compiling}" = "no";
- #then
- #AC_MSG_CHECKING(for working epoll support)
- #AC_LINK_IFELSE(
- #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
- # if (res < 0)
- # return 1;
- # close (res);
- # return 0;]),
- #AC_MSG_RESULT(yes)
- #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
- #AC_MSG_RESULT(no)
- #)
- #fi
- # for FreeBSD thr_self
- for ac_header in sys/thr.h
- do :
- ac_fn_c_check_header_mongrel "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "$ac_includes_default"
- if test "x$ac_cv_header_sys_thr_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SYS_THR_H 1
- _ACEOF
- fi
- done
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler atomic operations" >&5
- $as_echo_n "checking for compiler atomic operations... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
- ;
- 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_GCC_ATOMICS 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
- # glibc, AFAIK, is the only C library that makes printing a NULL to a string safe.
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system printf is NULL-safe." >&5
- $as_echo_n "checking if your system printf is NULL-safe.... " >&6; }
- if test "$cross_compiling" = yes; then :
- # It's unlikely an embedded system will have this.
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
- $as_echo "unknown" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- int
- main ()
- {
- printf("%s", NULL)
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- $as_echo "#define HAVE_NULLSAFE_PRINTF 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 if we can increase the maximum select-able file descriptor" >&5
- $as_echo_n "checking if we can increase the maximum select-able file descriptor... " >&6; }
- if test "$cross_compiling" = yes; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
- $as_echo "cross-compile" >&6; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- #include <sys/select.h>
- #include <sys/time.h>
- #include <sys/resource.h>
- #include <string.h>
- #include <errno.h>
- #include <stdlib.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <unistd.h>
- int
- main ()
- {
- struct rlimit rlim = { FD_SETSIZE * 2, FD_SETSIZE * 2 };
- int fd0, fd1;
- struct timeval tv = { 0, };
- struct ast_fdset { long fds_bits[[1024]]; } fds = { { 0, } };
- if (setrlimit(RLIMIT_NOFILE, &rlim)) { exit(1); }
- if ((fd0 = open("/dev/null", O_RDONLY)) < 0) { exit(1); }
- if (dup2(fd0, (fd1 = FD_SETSIZE + 1)) < 0) { exit(1); }
- FD_SET(fd0, (fd_set *) &fds);
- FD_SET(fd1, (fd_set *) &fds);
- if (select(FD_SETSIZE + 2, (fd_set *) &fds, NULL, NULL, &tv) < 0) { exit(1); }
- exit(0)
- ;
- 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; }
- $as_echo "#define HAVE_VARIABLE_FDSET 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
- if test "${ac_cv_have_variable_fdset}x" = "0x"; then
- if test "$cross_compiling" = 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 $? "cannot run test program while cross compiling
- See \`config.log' for more details" "$LINENO" 5; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <unistd.h>
- #include <sys/types.h>
- #include <stdlib.h>
- int
- main ()
- {
- if (getuid() != 0) { exit(1); }
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- $as_echo "#define CONFIGURE_RAN_AS_ROOT 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
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute pure' support" >&5
- $as_echo_n "checking for compiler 'attribute pure' support... " >&6; }
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
- if test "x" = "x"
- then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__((pure)) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_pure 1
- _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
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_pure 1
- _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
- fi
- CFLAGS="$saved_CFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute malloc' support" >&5
- $as_echo_n "checking for compiler 'attribute malloc' support... " >&6; }
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
- if test "x" = "x"
- then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__((malloc)) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_malloc 1
- _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
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_malloc 1
- _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
- fi
- CFLAGS="$saved_CFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute const' support" >&5
- $as_echo_n "checking for compiler 'attribute const' support... " >&6; }
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
- if test "x" = "x"
- then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__((const)) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_const 1
- _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
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_const 1
- _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
- fi
- CFLAGS="$saved_CFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute unused' support" >&5
- $as_echo_n "checking for compiler 'attribute unused' support... " >&6; }
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
- if test "x" = "x"
- then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__((unused)) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_unused 1
- _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
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_unused 1
- _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
- fi
- CFLAGS="$saved_CFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute always_inline' support" >&5
- $as_echo_n "checking for compiler 'attribute always_inline' support... " >&6; }
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
- if test "x" = "x"
- then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__((always_inline)) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_always_inline 1
- _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
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_always_inline 1
- _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
- fi
- CFLAGS="$saved_CFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute deprecated' support" >&5
- $as_echo_n "checking for compiler 'attribute deprecated' support... " >&6; }
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
- if test "x" = "x"
- then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__((deprecated)) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_deprecated 1
- _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
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_deprecated 1
- _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
- fi
- CFLAGS="$saved_CFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute sentinel' support" >&5
- $as_echo_n "checking for compiler 'attribute sentinel' support... " >&6; }
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
- if test "x" = "x"
- then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__((sentinel)) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_sentinel 1
- _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
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_sentinel 1
- _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
- fi
- CFLAGS="$saved_CFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute warn_unused_result' support" >&5
- $as_echo_n "checking for compiler 'attribute warn_unused_result' support... " >&6; }
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
- if test "x" = "x"
- then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__((warn_unused_result)) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_warn_unused_result 1
- _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
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_warn_unused_result 1
- _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
- fi
- CFLAGS="$saved_CFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute may_alias' support" >&5
- $as_echo_n "checking for compiler 'attribute may_alias' support... " >&6; }
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
- if test "x" = "x"
- then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__((may_alias)) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_may_alias 1
- _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
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_may_alias 1
- _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
- fi
- CFLAGS="$saved_CFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute constructor' support" >&5
- $as_echo_n "checking for compiler 'attribute constructor' support... " >&6; }
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
- if test "x" = "x"
- then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__((constructor)) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_constructor 1
- _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
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_constructor 1
- _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
- fi
- CFLAGS="$saved_CFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute destructor' support" >&5
- $as_echo_n "checking for compiler 'attribute destructor' support... " >&6; }
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
- if test "x" = "x"
- then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__((destructor)) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_destructor 1
- _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
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ATTRIBUTE_destructor 1
- _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
- fi
- CFLAGS="$saved_CFLAGS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ffunction-sections support" >&5
- $as_echo_n "checking for -ffunction-sections support... " >&6; }
- saved_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} -ffunction-sections"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- int x = 1;
- ;
- 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; }
- saved_LDFLAGS="${LDFLAGS}"
- LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --gc-sections support" >&5
- $as_echo_n "checking for --gc-sections support... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- int x = 1;
- ;
- 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; }
- GC_CFLAGS="-ffunction-sections"
- GC_LDFLAGS="-Wl,--gc-sections"
- 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
- LDFLAGS="${saved_LDFLAGS}"
- 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
- CFLAGS="${saved_CFLAGS}"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wdeclaration-after-statement support" >&5
- $as_echo_n "checking for -Wdeclaration-after-statement support... " >&6; }
- if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- AST_DECLARATION_AFTER_STATEMENT=
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wtrampolines support" >&5
- $as_echo_n "checking for -Wtrampolines support... " >&6; }
- if $(${CC} -Wtrampolines -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- AST_TRAMPOLINES=-Wtrampolines
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- AST_TRAMPOLINES=
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE support" >&5
- $as_echo_n "checking for _FORTIFY_SOURCE support... " >&6; }
- if $(${CC} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- AST_FORTIFY_SOURCE="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- AST_FORTIFY_SOURCE=
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-strict-overflow" >&5
- $as_echo_n "checking for -fno-strict-overflow... " >&6; }
- if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- AST_NO_STRICT_OVERFLOW=
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wshadow" >&5
- $as_echo_n "checking for -Wshadow... " >&6; }
- if $(${CC} -Wshadow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- AST_SHADOW_WARNINGS=-Wshadow
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- AST_SHADOW_WARNINGS=
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -march=native support" >&5
- $as_echo_n "checking for -march=native support... " >&6; }
- if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
- if test "${CONFIG_CFLAGS}" = ""; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- AST_NATIVE_ARCH=1
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: user CFLAGS present" >&5
- $as_echo "user CFLAGS present" >&6; }
- AST_NATIVE_ARCH=
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- AST_NATIVE_ARCH=
- fi
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- #if defined(__clang__)
- choke
- #endif
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fnested-functions" >&5
- $as_echo_n "checking for gcc -fnested-functions... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- auto void foo(void); void foo(void) {}
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_compile "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- AST_NESTED_FUNCTIONS=
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- AST_NESTED_FUNCTIONS=-fnested-functions
- fi
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang -fblocks" >&5
- $as_echo_n "checking for clang -fblocks... " >&6; }
- if test "`echo "int main(){return ^{return 42;}();}" | ${CC} -o /dev/null -fblocks -x c - 2>&1`" = ""; then
- AST_CLANG_BLOCKS_LIBS=""
- AST_CLANG_BLOCKS="-Wno-unknown-warning-option -fblocks"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- elif test "`echo "int main(){return ^{return 42;}();}" | ${CC} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then
- AST_CLANG_BLOCKS_LIBS="-lBlocksRuntime"
- AST_CLANG_BLOCKS="-fblocks"
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- else
- as_fn_error $? "\"BlocksRuntime is required for clang\"" "$LINENO" 5
- fi
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- # Check whether --enable-rpath was given.
- if test "${enable_rpath+set}" = set; then :
- enableval=$enable_rpath; case "${enableval}" in
- y|ye|yes) check_rpath=yes ;;
- n|no) check_rpath=no ;;
- *) as_fn_error $? "bad value ${enableval} for --disable-rpath" "$LINENO" 5 ;;
- esac
- else
- check_rpath=yes
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
- $as_echo_n "checking whether to use rpath... " >&6; }
- AST_RPATH=
- if test "${check_rpath}" != yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
- $as_echo "skipped" >&6; }
- elif test "${prefix}" = /usr || test "${prefix}" = NONE; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
- $as_echo "not needed" >&6; }
- else
- AST_RPATH="-Wl,-rpath,${libdir}"
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
- $as_echo_n "checking for sysinfo... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/sysinfo.h>
- int
- main ()
- {
- struct sysinfo sys_info; int uptime = sys_info.uptime
- ;
- 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_SYSINFO 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ninit" >&5
- $as_echo_n "checking for library containing res_9_ninit... " >&6; }
- if ${ac_cv_search_res_9_ninit+:} 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 res_9_ninit ();
- int
- main ()
- {
- return res_9_ninit ();
- ;
- return 0;
- }
- _ACEOF
- for ac_lib in '' resolv; 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_res_9_ninit=$ac_res
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_res_9_ninit+:} false; then :
- break
- fi
- done
- if ${ac_cv_search_res_9_ninit+:} false; then :
- else
- ac_cv_search_res_9_ninit=no
- fi
- rm conftest.$ac_ext
- LIBS=$ac_func_search_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ninit" >&5
- $as_echo "$ac_cv_search_res_9_ninit" >&6; }
- ac_res=$ac_cv_search_res_9_ninit
- 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 res_ninit" >&5
- $as_echo_n "checking for res_ninit... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef HAVE_SYS_SOCKET_H
- #include <sys/socket.h>
- #endif
- #ifdef HAVE_NETINET_IN_H
- #include <netinet/in.h>
- #endif
- #ifdef HAVE_ARPA_NAMESER_H
- #include <arpa/nameser.h>
- #endif
- #include <resolv.h>
- int
- main ()
- {
- int foo = res_ninit(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; }
- $as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5
- $as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
- if ${ac_cv_search_res_9_ndestroy+:} 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 res_9_ndestroy ();
- int
- main ()
- {
- return res_9_ndestroy ();
- ;
- return 0;
- }
- _ACEOF
- for ac_lib in '' resolv; 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_res_9_ndestroy=$ac_res
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_res_9_ndestroy+:} false; then :
- break
- fi
- done
- if ${ac_cv_search_res_9_ndestroy+:} false; then :
- else
- ac_cv_search_res_9_ndestroy=no
- fi
- rm conftest.$ac_ext
- LIBS=$ac_func_search_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ndestroy" >&5
- $as_echo "$ac_cv_search_res_9_ndestroy" >&6; }
- ac_res=$ac_cv_search_res_9_ndestroy
- 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 res_ndestroy" >&5
- $as_echo_n "checking for res_ndestroy... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef HAVE_SYS_SOCKET_H
- #include <sys/socket.h>
- #endif
- #ifdef HAVE_NETINET_IN_H
- #include <netinet/in.h>
- #endif
- #ifdef HAVE_ARPA_NAMESER_H
- #include <arpa/nameser.h>
- #endif
- #include <resolv.h>
- int
- main ()
- {
- res_ndestroy(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; }
- $as_echo "#define HAVE_RES_NDESTROY 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
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_close" >&5
- $as_echo_n "checking for library containing res_9_close... " >&6; }
- if ${ac_cv_search_res_9_close+:} 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 res_9_close ();
- int
- main ()
- {
- return res_9_close ();
- ;
- return 0;
- }
- _ACEOF
- for ac_lib in '' resolv; 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_res_9_close=$ac_res
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext
- if ${ac_cv_search_res_9_close+:} false; then :
- break
- fi
- done
- if ${ac_cv_search_res_9_close+:} false; then :
- else
- ac_cv_search_res_9_close=no
- fi
- rm conftest.$ac_ext
- LIBS=$ac_func_search_save_LIBS
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_close" >&5
- $as_echo "$ac_cv_search_res_9_close" >&6; }
- ac_res=$ac_cv_search_res_9_close
- 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 res_close" >&5
- $as_echo_n "checking for res_close... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #ifdef HAVE_SYS_SOCKET_H
- #include <sys/socket.h>
- #endif
- #ifdef HAVE_NETINET_IN_H
- #include <netinet/in.h>
- #endif
- #ifdef HAVE_ARPA_NAMESER_H
- #include <arpa/nameser.h>
- #endif
- #include <resolv.h>
- int
- main ()
- {
- res_close();
- ;
- 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_RES_CLOSE 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
- 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 "x${PBX_GLOB_NOMAGIC}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_NOMAGIC in glob.h" >&5
- $as_echo_n "checking for GLOB_NOMAGIC in glob.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${GLOB_NOMAGIC_DIR}" != "x"; then
- GLOB_NOMAGIC_INCLUDE="-I${GLOB_NOMAGIC_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${GLOB_NOMAGIC_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <glob.h>
- int
- main ()
- {
- #if defined(GLOB_NOMAGIC)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_GLOB_NOMAGIC=1
- $as_echo "#define HAVE_GLOB_NOMAGIC 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_GLOB_BRACE}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE in glob.h" >&5
- $as_echo_n "checking for GLOB_BRACE in glob.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${GLOB_BRACE_DIR}" != "x"; then
- GLOB_BRACE_INCLUDE="-I${GLOB_BRACE_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${GLOB_BRACE_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <glob.h>
- int
- main ()
- {
- #if defined(GLOB_BRACE)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_GLOB_BRACE=1
- $as_echo "#define HAVE_GLOB_BRACE 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTLD_NOLOAD in dlfcn.h" >&5
- $as_echo_n "checking for RTLD_NOLOAD in dlfcn.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${RTLD_NOLOAD_DIR}" != "x"; then
- RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <dlfcn.h>
- int
- main ()
- {
- #if defined(RTLD_NOLOAD)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_RTLD_NOLOAD=1
- $as_echo "#define HAVE_RTLD_NOLOAD 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
- $as_echo_n "checking for IP_MTU_DISCOVER in netinet/in.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
- IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <netinet/in.h>
- int
- main ()
- {
- #if defined(IP_MTU_DISCOVER)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_IP_MTU_DISCOVER=1
- $as_echo "#define HAVE_IP_MTU_DISCOVER 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- ac_fn_c_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
- if test "x$ac_cv_header_libkern_OSAtomic_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OSX_ATOMICS 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 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 char *" >&5
- $as_echo_n "checking size of char *... " >&6; }
- if ${ac_cv_sizeof_char_p+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_char_p" = 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_p=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
- $as_echo "$ac_cv_sizeof_char_p" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
- _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 ac_fn_c_compute_int "$LINENO" "sizeof(foo.fds_bits[0])" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default
- fd_set foo;"; then :
- fi
- # This doesn't actually work; what it does is to use the variable set in the
- # previous test as a cached value to set the right output variables.
- # 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 fd_set.fds_bits" >&5
- $as_echo_n "checking size of fd_set.fds_bits... " >&6; }
- if ${ac_cv_sizeof_fd_set_fds_bits+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fd_set.fds_bits))" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default"; then :
- else
- if test "$ac_cv_type_fd_set_fds_bits" = 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 (fd_set.fds_bits)
- See \`config.log' for more details" "$LINENO" 5; }
- else
- ac_cv_sizeof_fd_set_fds_bits=0
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fd_set_fds_bits" >&5
- $as_echo "$ac_cv_sizeof_fd_set_fds_bits" >&6; }
- cat >>confdefs.h <<_ACEOF
- #define SIZEOF_FD_SET_FDS_BITS $ac_cv_sizeof_fd_set_fds_bits
- _ACEOF
- # Set a type compatible with the previous. We cannot just use a generic type
- # for these bits, because on big-endian systems, the bits won't match up
- # correctly if the size is wrong.
- if test $ac_cv_sizeof_int = $ac_cv_sizeof_fd_set_fds_bits; then
- $as_echo "#define TYPEOF_FD_SET_FDS_BITS int" >>confdefs.h
- else if test $ac_cv_sizeof_long = $ac_cv_sizeof_fd_set_fds_bits; then
- $as_echo "#define TYPEOF_FD_SET_FDS_BITS long" >>confdefs.h
- else if test $ac_cv_sizeof_long_long = $ac_cv_sizeof_fd_set_fds_bits; then
- $as_echo "#define TYPEOF_FD_SET_FDS_BITS long long" >>confdefs.h
- fi ; fi ; fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in dlfcn.h" >&5
- $as_echo_n "checking for dladdr in dlfcn.h... " >&6; }
- PBX_DLADDR=0
- old_LIBS=${LIBS}
- LIBS="${LIBS} -ldl"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #define _GNU_SOURCE 1
- #include <dlfcn.h>
- int
- main ()
- {
- dladdr((void *)0, (void *)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; }
- PBX_DLADDR=1
- $as_echo "#define HAVE_DLADDR 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
- LIBS=${old_LIBS}
- # PKGCONFIG is used in later tests
- if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
- set dummy ${ac_tool_prefix}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
- ;;
- 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 -z "$ac_cv_path_PKG_CONFIG"; then
- ac_pt_PKG_CONFIG=$PKG_CONFIG
- # 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_ac_pt_PKG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ac_pt_PKG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_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
- ;;
- esac
- fi
- ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
- if test -n "$ac_pt_PKG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
- $as_echo "$ac_pt_PKG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_PKG_CONFIG" = x; then
- PKG_CONFIG=""
- 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
- PKG_CONFIG=$ac_pt_PKG_CONFIG
- fi
- else
- PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
- fi
- fi
- if test -n "$PKG_CONFIG"; then
- _pkg_min_version=0.9.0
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
- $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; 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; }
- PKG_CONFIG=""
- fi
- fi
- # do the package library checks now
- if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
- pbxlibdir=""
- # if --with-ALSA=DIR has been specified, use it.
- if test "x${ALSA_DIR}" != "x"; then
- if test -d ${ALSA_DIR}/lib; then
- pbxlibdir="-L${ALSA_DIR}/lib"
- else
- pbxlibdir="-L${ALSA_DIR}"
- fi
- fi
- pbxfuncname="snd_spcm_init"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_ALSA_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lasound" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lasound... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lasound ${pbxlibdir} -lm -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_ALSA_FOUND=yes
- else
- AST_ALSA_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_ALSA_FOUND}" = "yes"; then
- ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
- # if --with-ALSA=DIR has been specified, use it.
- if test "x${ALSA_DIR}" != "x"; then
- ALSA_INCLUDE="-I${ALSA_DIR}/include"
- fi
- ALSA_INCLUDE="${ALSA_INCLUDE} "
- if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
- ALSA_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
- if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
- ALSA_HEADER_FOUND=1
- else
- ALSA_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
- ALSA_LIB=""
- ALSA_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- ALSA_LIB=""
- fi
- PBX_ALSA=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ALSA 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
- pbxlibdir=""
- # if --with-BFD=DIR has been specified, use it.
- if test "x${BFD_DIR}" != "x"; then
- if test -d ${BFD_DIR}/lib; then
- pbxlibdir="-L${BFD_DIR}/lib"
- else
- pbxlibdir="-L${BFD_DIR}"
- fi
- fi
- pbxfuncname="bfd_openr"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_BFD_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbfd ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_BFD_FOUND=yes
- else
- AST_BFD_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_BFD_FOUND}" = "yes"; then
- BFD_LIB="${pbxlibdir} -lbfd "
- # if --with-BFD=DIR has been specified, use it.
- if test "x${BFD_DIR}" != "x"; then
- BFD_INCLUDE="-I${BFD_DIR}/include"
- fi
- BFD_INCLUDE="${BFD_INCLUDE} "
- if test "xbfd.h" = "x" ; then # no header, assume found
- BFD_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
- if test "x$ac_cv_header_bfd_h" = xyes; then :
- BFD_HEADER_FOUND=1
- else
- BFD_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${BFD_HEADER_FOUND}" = "x0" ; then
- BFD_LIB=""
- BFD_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- BFD_LIB=""
- fi
- PBX_BFD=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_BFD 1
- _ACEOF
- fi
- fi
- fi
- if test "${PBX_BFD}" = "0"; then
- # Fedora/RedHat/CentOS require extra libraries
- if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
- pbxlibdir=""
- # if --with-BFD=DIR has been specified, use it.
- if test "x${BFD_DIR}" != "x"; then
- if test -d ${BFD_DIR}/lib; then
- pbxlibdir="-L${BFD_DIR}/lib"
- else
- pbxlibdir="-L${BFD_DIR}"
- fi
- fi
- pbxfuncname="bfd_check_format"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_BFD_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbfd ${pbxlibdir} -ldl -liberty $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_BFD_FOUND=yes
- else
- AST_BFD_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_BFD_FOUND}" = "yes"; then
- BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty"
- # if --with-BFD=DIR has been specified, use it.
- if test "x${BFD_DIR}" != "x"; then
- BFD_INCLUDE="-I${BFD_DIR}/include"
- fi
- BFD_INCLUDE="${BFD_INCLUDE} "
- if test "xbfd.h" = "x" ; then # no header, assume found
- BFD_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
- if test "x$ac_cv_header_bfd_h" = xyes; then :
- BFD_HEADER_FOUND=1
- else
- BFD_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${BFD_HEADER_FOUND}" = "x0" ; then
- BFD_LIB=""
- BFD_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- BFD_LIB=""
- fi
- PBX_BFD=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_BFD 1
- _ACEOF
- fi
- fi
- fi
- fi
- if test "${PBX_BFD}" = "0"; then
- # openSUSE requires -lz
- if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
- pbxlibdir=""
- # if --with-BFD=DIR has been specified, use it.
- if test "x${BFD_DIR}" != "x"; then
- if test -d ${BFD_DIR}/lib; then
- pbxlibdir="-L${BFD_DIR}/lib"
- else
- pbxlibdir="-L${BFD_DIR}"
- fi
- fi
- pbxfuncname="bfd_check_format"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_BFD_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbfd ${pbxlibdir} -ldl -liberty -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_BFD_FOUND=yes
- else
- AST_BFD_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_BFD_FOUND}" = "yes"; then
- BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty -lz"
- # if --with-BFD=DIR has been specified, use it.
- if test "x${BFD_DIR}" != "x"; then
- BFD_INCLUDE="-I${BFD_DIR}/include"
- fi
- BFD_INCLUDE="${BFD_INCLUDE} "
- if test "xbfd.h" = "x" ; then # no header, assume found
- BFD_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
- if test "x$ac_cv_header_bfd_h" = xyes; then :
- BFD_HEADER_FOUND=1
- else
- BFD_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${BFD_HEADER_FOUND}" = "x0" ; then
- BFD_LIB=""
- BFD_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- BFD_LIB=""
- fi
- PBX_BFD=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_BFD 1
- _ACEOF
- fi
- fi
- fi
- fi
- if test "x${OSARCH}" = "xlinux-gnu" ; then
- if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
- pbxlibdir=""
- # if --with-CAP=DIR has been specified, use it.
- if test "x${CAP_DIR}" != "x"; then
- if test -d ${CAP_DIR}/lib; then
- pbxlibdir="-L${CAP_DIR}/lib"
- else
- pbxlibdir="-L${CAP_DIR}"
- fi
- fi
- pbxfuncname="cap_from_text"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_CAP_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcap" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lcap... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcap ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_CAP_FOUND=yes
- else
- AST_CAP_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_CAP_FOUND}" = "yes"; then
- CAP_LIB="${pbxlibdir} -lcap "
- # if --with-CAP=DIR has been specified, use it.
- if test "x${CAP_DIR}" != "x"; then
- CAP_INCLUDE="-I${CAP_DIR}/include"
- fi
- CAP_INCLUDE="${CAP_INCLUDE} "
- if test "xsys/capability.h" = "x" ; then # no header, assume found
- CAP_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
- if test "x$ac_cv_header_sys_capability_h" = xyes; then :
- CAP_HEADER_FOUND=1
- else
- CAP_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${CAP_HEADER_FOUND}" = "x0" ; then
- CAP_LIB=""
- CAP_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- CAP_LIB=""
- fi
- PBX_CAP=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_CAP 1
- _ACEOF
- fi
- fi
- fi
- fi
- if test "x${PBX_DAHDI}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_RESET_COUNTERS in dahdi/user.h" >&5
- $as_echo_n "checking for DAHDI_RESET_COUNTERS in dahdi/user.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${DAHDI_DIR}" != "x"; then
- DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <dahdi/user.h>
- int
- main ()
- {
- #if defined(DAHDI_RESET_COUNTERS)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_DAHDI=1
- $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
- $as_echo "#define HAVE_DAHDI_VERSION 230" >>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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_DAHDI}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h" >&5
- $as_echo_n "checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${DAHDI_DIR}" != "x"; then
- DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <dahdi/user.h>
- int
- main ()
- {
- #if defined(DAHDI_DEFAULT_MTU_MRU)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_DAHDI=1
- $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
- $as_echo "#define HAVE_DAHDI_VERSION 220" >>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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_DAHDI}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_CODE in dahdi/user.h" >&5
- $as_echo_n "checking for DAHDI_CODE in dahdi/user.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${DAHDI_DIR}" != "x"; then
- DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <dahdi/user.h>
- int
- main ()
- {
- #if defined(DAHDI_CODE)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_DAHDI=1
- $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
- $as_echo "#define HAVE_DAHDI_VERSION 200" >>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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_DAHDI_HALF_FULL}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h" >&5
- $as_echo_n "checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${DAHDI_HALF_FULL_DIR}" != "x"; then
- DAHDI_HALF_FULL_INCLUDE="-I${DAHDI_HALF_FULL_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${DAHDI_HALF_FULL_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <dahdi/user.h>
- int
- main ()
- {
- #if defined(DAHDI_POLICY_HALF_FULL)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_DAHDI_HALF_FULL=1
- $as_echo "#define HAVE_DAHDI_HALF_FULL 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_DAHDI_LINEREVERSE_VMWI}" != "x1" -a "${USE_DAHDI_LINEREVERSE_VMWI}" != "no"; then
- if test "xenhanced dahdi vmwi support" != "x"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enhanced dahdi vmwi support" >&5
- $as_echo_n "checking for enhanced dahdi vmwi support... " >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h" >&5
- $as_echo_n "checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h... " >&6; }
- fi
- saved_cppflags="${CPPFLAGS}"
- if test "x${DAHDI_LINEREVERSE_VMWI_DIR}" != "x"; then
- DAHDI_LINEREVERSE_VMWI_INCLUDE="-I${DAHDI_LINEREVERSE_VMWI_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${DAHDI_LINEREVERSE_VMWI_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <dahdi/user.h>
- int
- main ()
- {
- struct dahdi_vmwi_info booger;
- ;
- 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; }
- PBX_DAHDI_LINEREVERSE_VMWI=1
- $as_echo "#define HAVE_DAHDI_LINEREVERSE_VMWI 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_DAHDI_ECHOCANCEL_FAX_MODE}" != "x1" -a "${USE_DAHDI_ECHOCANCEL_FAX_MODE}" != "no"; then
- if test "x" != "x"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for " >&5
- $as_echo_n "checking for ... " >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h" >&5
- $as_echo_n "checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h... " >&6; }
- fi
- saved_cppflags="${CPPFLAGS}"
- if test "x${DAHDI_ECHOCANCEL_FAX_MODE_DIR}" != "x"; then
- DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE="-I${DAHDI_ECHOCANCEL_FAX_MODE_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <dahdi/user.h>
- int
- main ()
- {
- int foo = DAHDI_ECHOCANCEL_FAX_MODE;
- ;
- 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; }
- PBX_DAHDI_ECHOCANCEL_FAX_MODE=1
- $as_echo "#define HAVE_DAHDI_ECHOCANCEL_FAX_MODE 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
- if test "xgetifaddrs() support" != "x"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs() support" >&5
- $as_echo_n "checking for getifaddrs() support... " >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
- $as_echo_n "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... " >&6; }
- fi
- saved_cppflags="${CPPFLAGS}"
- if test "x${GETIFADDRS_DIR}" != "x"; then
- GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ifaddrs.h>
- int
- main ()
- {
- struct ifaddrs *p; getifaddrs(&p);
- ;
- 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; }
- PBX_GETIFADDRS=1
- $as_echo "#define HAVE_GETIFADDRS 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_TIMERFD}" != "x1" -a "${USE_TIMERFD}" != "no"; then
- if test "xtimerfd support" != "x"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd support" >&5
- $as_echo_n "checking for timerfd support... " >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h" >&5
- $as_echo_n "checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h... " >&6; }
- fi
- saved_cppflags="${CPPFLAGS}"
- if test "x${TIMERFD_DIR}" != "x"; then
- TIMERFD_INCLUDE="-I${TIMERFD_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${TIMERFD_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/timerfd.h>
- int
- main ()
- {
- timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);;
- ;
- 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; }
- PBX_TIMERFD=1
- $as_echo "#define HAVE_TIMERFD 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- GSM_INTERNAL="yes"
- GSM_SYSTEM="yes"
- if test "${USE_GSM}" != "no"; then
- if test "${GSM_DIR}" = "internal"; then
- GSM_SYSTEM="no"
- elif test "${GSM_DIR}" != ""; then
- GSM_INTERNAL="no"
- fi
- if test "${GSM_SYSTEM}" = "yes"; then
- gsmlibdir=""
- if test "x${GSM_DIR}" != "x"; then
- if test -d ${GSM_DIR}/lib; then
- gsmlibdir="-L${GSM_DIR}/lib"
- else
- gsmlibdir="-L${GSM_DIR}"
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5
- $as_echo_n "checking for gsm_create in -lgsm... " >&6; }
- if ${ac_cv_lib_gsm_gsm_create+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lgsm ${gsmlibdir} $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 gsm_create ();
- int
- main ()
- {
- return gsm_create ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_gsm_gsm_create=yes
- else
- ac_cv_lib_gsm_gsm_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_gsm_gsm_create" >&5
- $as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
- if test "x$ac_cv_lib_gsm_gsm_create" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GSM 1
- _ACEOF
- fi
- if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
- if test "x${GSM_DIR}" != "x" ; then
- as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm.h" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- GSM_HEADER_FOUND=1
- else
- GSM_HEADER_FOUND=0
- fi
- as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
- ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm/gsm.h" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- GSM_GSM_HEADER_FOUND=1
- else
- GSM_GSM_HEADER_FOUND=0
- fi
- else
- ac_fn_c_check_header_mongrel "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default"
- if test "x$ac_cv_header_gsm_h" = xyes; then :
- GSM_HEADER_FOUND=1
- else
- GSM_HEADER_FOUND=0
- fi
- ac_fn_c_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
- if test "x$ac_cv_header_gsm_gsm_h" = xyes; then :
- GSM_GSM_HEADER_FOUND=1
- else
- GSM_GSM_HEADER_FOUND=0
- fi
- fi
- if test "${GSM_HEADER_FOUND}" = "0" ; then
- if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
- if test "x${GSM_MANDATORY}" = "xyes" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
- $as_echo "$as_me: ***" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the gsm development package installed." >&5
- $as_echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
- $as_echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${GSM_OPTION}" >&5
- $as_echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
- exit 1
- fi
- fi
- fi
- GSM_OK=0
- if test "${GSM_HEADER_FOUND}" = "1" ; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GSM_HEADER 1
- _ACEOF
- GSM_OK=1
- else
- if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GSM_GSM_HEADER 1
- _ACEOF
- GSM_OK=1
- fi
- fi
- if test "${GSM_OK}" = "1" ; then
- GSM_LIB="-lgsm"
- if test "x${GSM_DIR}" != "x"; then
- GSM_LIB="${gsmlibdir} ${GSM_LIB}"
- GSM_INCLUDE="-I${GSM_DIR}/include"
- fi
- PBX_GSM=1
- GSM_INTERNAL="no"
- fi
- fi
- fi
- if test "${GSM_INTERNAL}" = "yes"; then
- PBX_GSM=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_GSM_HEADER 1
- _ACEOF
- fi
- fi
- ILBC_INTERNAL="yes"
- ILBC_SYSTEM="yes"
- if test "${USE_ILBC}" != "no"; then
- if test "${ILBC_DIR}" = "internal"; then
- ILBC_SYSTEM="no"
- elif test "${ILBC_DIR}" != ""; then
- ILBC_INTERNAL="no"
- fi
- if test "${ILBC_SYSTEM}" = "yes"; then
- if test "x${PBX_ILBC}" != "x1" -a "${USE_ILBC}" != "no"; then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ILBC" >&5
- $as_echo_n "checking for ILBC... " >&6; }
- if test -n "$ILBC_CFLAGS"; then
- pkg_cv_ILBC_CFLAGS="$ILBC_CFLAGS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc\""; } >&5
- ($PKG_CONFIG --exists --print-errors "libilbc") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_ILBC_CFLAGS=`$PKG_CONFIG --cflags "libilbc" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$ILBC_LIBS"; then
- pkg_cv_ILBC_LIBS="$ILBC_LIBS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc\""; } >&5
- ($PKG_CONFIG --exists --print-errors "libilbc") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_ILBC_LIBS=`$PKG_CONFIG --libs "libilbc" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- ILBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libilbc" 2>&1`
- else
- ILBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libilbc" 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$ILBC_PKG_ERRORS" >&5
- PBX_ILBC=0
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- PBX_ILBC=0
- else
- ILBC_CFLAGS=$pkg_cv_ILBC_CFLAGS
- ILBC_LIBS=$pkg_cv_ILBC_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PBX_ILBC=1
- ILBC_INCLUDE="$ILBC_CFLAGS"
- ILBC_LIB="$ILBC_LIBS"
- $as_echo "#define HAVE_ILBC 1" >>confdefs.h
- fi
- fi
- if test "$PBX_ILBC" = "1"; then
- ILBC_INTERNAL="no"
- fi
- fi
- if test "${ILBC_INTERNAL}" = "yes"; then
- PBX_ILBC=1
- fi
- fi
- LIBEDIT_INTERNAL="yes"
- LIBEDIT_SYSTEM="yes"
- if test "${USE_LIBEDIT}" != "no"; then
- if test "${LIBEDIT_DIR}" = "internal"; then
- LIBEDIT_SYSTEM="no"
- elif test "${LIBEDIT_DIR}" != ""; then
- LIBEDIT_INTERNAL="no"
- fi
- if test "${LIBEDIT_SYSTEM}" = "yes"; then
- if test "x${PBX_LIBEDIT}" != "x1" -a "${USE_LIBEDIT}" != "no"; then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEDIT" >&5
- $as_echo_n "checking for LIBEDIT... " >&6; }
- if test -n "$LIBEDIT_CFLAGS"; then
- pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
- ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$LIBEDIT_LIBS"; then
- pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
- ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
- else
- LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$LIBEDIT_PKG_ERRORS" >&5
- PBX_LIBEDIT=0
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- PBX_LIBEDIT=0
- else
- LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
- LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PBX_LIBEDIT=1
- LIBEDIT_INCLUDE="$LIBEDIT_CFLAGS"
- LIBEDIT_LIB="$LIBEDIT_LIBS"
- $as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
- fi
- fi
- if test "$PBX_LIBEDIT" = "1"; then
- LIBEDIT_INTERNAL="no"
- fi
- fi
- if test "${LIBEDIT_INTERNAL}" = "yes"; then
- PBX_LIBEDIT=1
- fi
- fi
- if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
- pbxlibdir=""
- # if --with-ICONV=DIR has been specified, use it.
- if test "x${ICONV_DIR}" != "x"; then
- if test -d ${ICONV_DIR}/lib; then
- pbxlibdir="-L${ICONV_DIR}/lib"
- else
- pbxlibdir="-L${ICONV_DIR}"
- fi
- fi
- pbxfuncname="iconv_open"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_ICONV_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liconv" >&5
- $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-liconv ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_ICONV_FOUND=yes
- else
- AST_ICONV_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_ICONV_FOUND}" = "yes"; then
- ICONV_LIB="${pbxlibdir} -liconv "
- # if --with-ICONV=DIR has been specified, use it.
- if test "x${ICONV_DIR}" != "x"; then
- ICONV_INCLUDE="-I${ICONV_DIR}/include"
- fi
- ICONV_INCLUDE="${ICONV_INCLUDE} "
- if test "xiconv.h" = "x" ; then # no header, assume found
- ICONV_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
- if test "x$ac_cv_header_iconv_h" = xyes; then :
- ICONV_HEADER_FOUND=1
- else
- ICONV_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
- ICONV_LIB=""
- ICONV_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- ICONV_LIB=""
- fi
- PBX_ICONV=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ICONV 1
- _ACEOF
- fi
- fi
- fi
- # GNU libiconv #define's iconv_open to libiconv_open, so we need to search for that symbol
- if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
- pbxlibdir=""
- # if --with-ICONV=DIR has been specified, use it.
- if test "x${ICONV_DIR}" != "x"; then
- if test -d ${ICONV_DIR}/lib; then
- pbxlibdir="-L${ICONV_DIR}/lib"
- else
- pbxlibdir="-L${ICONV_DIR}"
- fi
- fi
- pbxfuncname="libiconv_open"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_ICONV_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liconv" >&5
- $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-liconv ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_ICONV_FOUND=yes
- else
- AST_ICONV_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_ICONV_FOUND}" = "yes"; then
- ICONV_LIB="${pbxlibdir} -liconv "
- # if --with-ICONV=DIR has been specified, use it.
- if test "x${ICONV_DIR}" != "x"; then
- ICONV_INCLUDE="-I${ICONV_DIR}/include"
- fi
- ICONV_INCLUDE="${ICONV_INCLUDE} "
- if test "xiconv.h" = "x" ; then # no header, assume found
- ICONV_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
- if test "x$ac_cv_header_iconv_h" = xyes; then :
- ICONV_HEADER_FOUND=1
- else
- ICONV_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
- ICONV_LIB=""
- ICONV_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- ICONV_LIB=""
- fi
- PBX_ICONV=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ICONV 1
- _ACEOF
- fi
- fi
- fi
- # Some versions of Linux package iconv in glibc
- if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
- pbxlibdir=""
- # if --with-ICONV=DIR has been specified, use it.
- if test "x${ICONV_DIR}" != "x"; then
- if test -d ${ICONV_DIR}/lib; then
- pbxlibdir="-L${ICONV_DIR}/lib"
- else
- pbxlibdir="-L${ICONV_DIR}"
- fi
- fi
- pbxfuncname="iconv_close"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_ICONV_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lc ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_ICONV_FOUND=yes
- else
- AST_ICONV_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_ICONV_FOUND}" = "yes"; then
- ICONV_LIB="${pbxlibdir} -lc "
- # if --with-ICONV=DIR has been specified, use it.
- if test "x${ICONV_DIR}" != "x"; then
- ICONV_INCLUDE="-I${ICONV_DIR}/include"
- fi
- ICONV_INCLUDE="${ICONV_INCLUDE} "
- if test "xiconv.h" = "x" ; then # no header, assume found
- ICONV_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
- if test "x$ac_cv_header_iconv_h" = xyes; then :
- ICONV_HEADER_FOUND=1
- else
- ICONV_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
- ICONV_LIB=""
- ICONV_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- ICONV_LIB=""
- fi
- PBX_ICONV=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ICONV 1
- _ACEOF
- fi
- fi
- fi
- # If ical.h is NOT in the libical directory, then it is of a version insufficient for us.
- if test "x${PBX_ICAL}" != "x1" -a "${USE_ICAL}" != "no"; then
- pbxlibdir=""
- # if --with-ICAL=DIR has been specified, use it.
- if test "x${ICAL_DIR}" != "x"; then
- if test -d ${ICAL_DIR}/lib; then
- pbxlibdir="-L${ICAL_DIR}/lib"
- else
- pbxlibdir="-L${ICAL_DIR}"
- fi
- fi
- pbxfuncname="icaltimezone_get_utc_timezone"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_ICAL_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
- as_ac_Lib=`$as_echo "ac_cv_lib_ical_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lical" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lical... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lical ${pbxlibdir} ${PTHREAD_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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_ICAL_FOUND=yes
- else
- AST_ICAL_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_ICAL_FOUND}" = "yes"; then
- ICAL_LIB="${pbxlibdir} -lical ${PTHREAD_LIBS}"
- # if --with-ICAL=DIR has been specified, use it.
- if test "x${ICAL_DIR}" != "x"; then
- ICAL_INCLUDE="-I${ICAL_DIR}/include"
- fi
- ICAL_INCLUDE="${ICAL_INCLUDE} ${PTHREAD_CFLAGS}"
- if test "xlibical/ical.h" = "x" ; then # no header, assume found
- ICAL_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${ICAL_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libical/ical.h" "ac_cv_header_libical_ical_h" "$ac_includes_default"
- if test "x$ac_cv_header_libical_ical_h" = xyes; then :
- ICAL_HEADER_FOUND=1
- else
- ICAL_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${ICAL_HEADER_FOUND}" = "x0" ; then
- ICAL_LIB=""
- ICAL_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- ICAL_LIB=""
- fi
- PBX_ICAL=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ICAL 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
- pbxlibdir=""
- # if --with-IKSEMEL=DIR has been specified, use it.
- if test "x${IKSEMEL_DIR}" != "x"; then
- if test -d ${IKSEMEL_DIR}/lib; then
- pbxlibdir="-L${IKSEMEL_DIR}/lib"
- else
- pbxlibdir="-L${IKSEMEL_DIR}"
- fi
- fi
- pbxfuncname="iks_start_sasl"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_IKSEMEL_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liksemel" >&5
- $as_echo_n "checking for ${pbxfuncname} in -liksemel... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-liksemel ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_IKSEMEL_FOUND=yes
- else
- AST_IKSEMEL_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_IKSEMEL_FOUND}" = "yes"; then
- IKSEMEL_LIB="${pbxlibdir} -liksemel "
- # if --with-IKSEMEL=DIR has been specified, use it.
- if test "x${IKSEMEL_DIR}" != "x"; then
- IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
- fi
- IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
- if test "xiksemel.h" = "x" ; then # no header, assume found
- IKSEMEL_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "iksemel.h" "ac_cv_header_iksemel_h" "$ac_includes_default"
- if test "x$ac_cv_header_iksemel_h" = xyes; then :
- IKSEMEL_HEADER_FOUND=1
- else
- IKSEMEL_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
- IKSEMEL_LIB=""
- IKSEMEL_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- IKSEMEL_LIB=""
- fi
- PBX_IKSEMEL=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_IKSEMEL 1
- _ACEOF
- fi
- fi
- fi
- if test "${USE_IMAP_TK}" != "no"; then
- saved_cppflags="${CPPFLAGS}"
- saved_libs="${LIBS}"
- switch_to_system_on_failure="no"
- if test "${IMAP_TK_DIR}" = ""; then
- IMAP_TK_DIR=`pwd`"/../imap-2004g"
- switch_to_system_on_failure="yes"
- fi
- if test "${IMAP_TK_DIR}" != "system"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UW IMAP Toolkit c-client library" >&5
- $as_echo_n "checking for UW IMAP Toolkit c-client library... " >&6; }
- if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
- imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
- fi
- imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
- imap_include="-I${IMAP_TK_DIR}/c-client"
- CPPFLAGS="${CPPFLAGS} ${imap_include}"
- LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "c-client.h"
- void mm_searched (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_exists (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_expunged (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_flags (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_notify (MAILSTREAM *stream,char *string,long errflg)
- {
- }
- void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
- {
- }
- void mm_log (char *string,long errflg)
- {
- }
- void mm_dlog (char *string)
- {
- }
- void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
- {
- }
- void mm_critical (MAILSTREAM *stream)
- {
- }
- void mm_nocritical (MAILSTREAM *stream)
- {
- }
- long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
- {
- }
- void mm_fatal (char *string)
- {
- }
- int
- main ()
- {
- MAILSTREAM *foo = mail_open(NULL, "", 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_imap_tk="yes"
- else
- ac_cv_imap_tk="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test "${ac_cv_imap_tk}" = "yes"; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "c-client.h"
- void mm_searched (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_exists (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_expunged (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_flags (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_notify (MAILSTREAM *stream,char *string,long errflg)
- {
- }
- void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
- {
- }
- void mm_log (char *string,long errflg)
- {
- }
- void mm_dlog (char *string)
- {
- }
- void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
- {
- }
- void mm_critical (MAILSTREAM *stream)
- {
- }
- void mm_nocritical (MAILSTREAM *stream)
- {
- }
- long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
- {
- }
- void mm_fatal (char *string)
- {
- }
- int
- main ()
- {
- long check = mail_expunge_full(NULL, "", 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_imap_tk2006="yes"
- else
- ac_cv_imap_tk2006="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- CPPFLAGS="${saved_cppflags}"
- LIBS="${saved_libs}"
- if test "${ac_cv_imap_tk}" = "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if test "${switch_to_system_on_failure}" = "yes"; then
- IMAP_TK_DIR="system"
- else #This means they specified a directory. Search for a package installation there too
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
- $as_echo_n "checking for system c-client library...... " >&6; }
- CPPFLAGS="${saved_cppflags}"
- LIBS="${saved_libs}"
- imap_include="-I${IMAP_TK_DIR}/include"
- imap_ldflags="-L${IMAP_TK_DIR}/lib"
- imap_libs="-lc-client"
- CPPFLAGS="${CPPFLAGS} ${imap_include}"
- LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "c-client.h"
- void mm_searched (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_exists (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_expunged (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_flags (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_notify (MAILSTREAM *stream,char *string,long errflg)
- {
- }
- void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
- {
- }
- void mm_log (char *string,long errflg)
- {
- }
- void mm_dlog (char *string)
- {
- }
- void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
- {
- }
- void mm_critical (MAILSTREAM *stream)
- {
- }
- void mm_nocritical (MAILSTREAM *stream)
- {
- }
- long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
- {
- }
- void mm_fatal (char *string)
- {
- }
- int
- main ()
- {
- MAILSTREAM *foo = mail_open(NULL, "", 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_imap_tk="yes"
- else
- ac_cv_imap_tk="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test "${ac_cv_imap_tk}" = "yes"; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "c-client.h"
- void mm_searched (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_exists (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_expunged (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_flags (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_notify (MAILSTREAM *stream,char *string,long errflg)
- {
- }
- void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
- {
- }
- void mm_log (char *string,long errflg)
- {
- }
- void mm_dlog (char *string)
- {
- }
- void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
- {
- }
- void mm_critical (MAILSTREAM *stream)
- {
- }
- void mm_nocritical (MAILSTREAM *stream)
- {
- }
- long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
- {
- }
- void mm_fatal (char *string)
- {
- }
- int
- main ()
- {
- long check = mail_expunge_full(NULL, "", 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_imap_tk2006="yes"
- else
- ac_cv_imap_tk2006="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- fi
- fi
- fi
- if test "${IMAP_TK_DIR}" = "system"; then
- #We will enter here if user specified "system" or if any of above checks failed
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
- $as_echo_n "checking for system c-client library...... " >&6; }
- CPPFLAGS="${saved_cppflags}"
- LIBS="${saved_libs}"
- imap_ldflags=""
- imap_libs="-lc-client"
- imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
- CPPFLAGS="${CPPFLAGS} ${imap_include}"
- LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- #include <imap/c-client.h>
- void mm_searched (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_exists (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_expunged (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_flags (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_notify (MAILSTREAM *stream,char *string,long errflg)
- {
- }
- void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
- {
- }
- void mm_log (char *string,long errflg)
- {
- }
- void mm_dlog (char *string)
- {
- }
- void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
- {
- }
- void mm_critical (MAILSTREAM *stream)
- {
- }
- void mm_nocritical (MAILSTREAM *stream)
- {
- }
- long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
- {
- }
- void mm_fatal (char *string)
- {
- }
- int
- main ()
- {
- MAILSTREAM *foo = mail_open(NULL, "", 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_imap_tk="yes"
- else
- ac_cv_imap_tk="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test "${ac_cv_imap_tk}" = "yes"; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- #include <imap/c-client.h>
- void mm_searched (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_exists (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_expunged (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_flags (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_notify (MAILSTREAM *stream,char *string,long errflg)
- {
- }
- void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
- {
- }
- void mm_log (char *string,long errflg)
- {
- }
- void mm_dlog (char *string)
- {
- }
- void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
- {
- }
- void mm_critical (MAILSTREAM *stream)
- {
- }
- void mm_nocritical (MAILSTREAM *stream)
- {
- }
- long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
- {
- }
- void mm_fatal (char *string)
- {
- }
- int
- main ()
- {
- long check = mail_expunge_full(NULL, "", 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_imap_tk2006="yes"
- else
- ac_cv_imap_tk2006="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- else #looking in imap directory didn't work, try c-client
- imap_ldflags=""
- imap_libs="-lc-client"
- imap_include="-DUSE_SYSTEM_CCLIENT"
- CPPFLAGS="${saved_cppflags}"
- LIBS="${saved_libs}"
- CPPFLAGS="${CPPFLAGS} ${imap_include}"
- LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- #include <c-client/c-client.h>
- void mm_searched (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_exists (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_expunged (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_flags (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_notify (MAILSTREAM *stream,char *string,long errflg)
- {
- }
- void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
- {
- }
- void mm_log (char *string,long errflg)
- {
- }
- void mm_dlog (char *string)
- {
- }
- void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
- {
- }
- void mm_critical (MAILSTREAM *stream)
- {
- }
- void mm_nocritical (MAILSTREAM *stream)
- {
- }
- long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
- {
- }
- void mm_fatal (char *string)
- {
- }
- int
- main ()
- {
- MAILSTREAM *foo = mail_open(NULL, "", 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_imap_tk="yes"
- else
- ac_cv_imap_tk="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- if test "${ac_cv_imap_tk}" = "yes"; then
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <stdio.h>
- #include <c-client/c-client.h>
- void mm_searched (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_exists (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_expunged (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_flags (MAILSTREAM *stream,unsigned long number)
- {
- }
- void mm_notify (MAILSTREAM *stream,char *string,long errflg)
- {
- }
- void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
- {
- }
- void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
- {
- }
- void mm_log (char *string,long errflg)
- {
- }
- void mm_dlog (char *string)
- {
- }
- void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
- {
- }
- void mm_critical (MAILSTREAM *stream)
- {
- }
- void mm_nocritical (MAILSTREAM *stream)
- {
- }
- long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
- {
- }
- void mm_fatal (char *string)
- {
- }
- int
- main ()
- {
- long check = mail_expunge_full(NULL, "", 0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_imap_tk2006="yes"
- else
- ac_cv_imap_tk2006="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- fi
- fi
- fi
- if test "${ac_cv_imap_tk}" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
- IMAP_TK_INCLUDE="${imap_include}"
- PBX_IMAP_TK=1
- $as_echo "#define HAVE_IMAP_TK 1" >>confdefs.h
- if test "${ac_cv_imap_tk2006}" = "yes"; then
- $as_echo "#define HAVE_IMAP_TK2006 1" >>confdefs.h
- fi
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- CPPFLAGS="${saved_cppflags}"
- LIBS="${saved_libs}"
- fi
- if test "x${PBX_IODBC}" != "x1" -a "${USE_IODBC}" != "no"; then
- pbxlibdir=""
- # if --with-IODBC=DIR has been specified, use it.
- if test "x${IODBC_DIR}" != "x"; then
- if test -d ${IODBC_DIR}/lib; then
- pbxlibdir="-L${IODBC_DIR}/lib"
- else
- pbxlibdir="-L${IODBC_DIR}"
- fi
- fi
- pbxfuncname="SQLConnect"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_IODBC_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
- as_ac_Lib=`$as_echo "ac_cv_lib_iodbc_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liodbc" >&5
- $as_echo_n "checking for ${pbxfuncname} in -liodbc... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-liodbc ${pbxlibdir} ${PTHREAD_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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_IODBC_FOUND=yes
- else
- AST_IODBC_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_IODBC_FOUND}" = "yes"; then
- IODBC_LIB="${pbxlibdir} -liodbc ${PTHREAD_LIBS}"
- # if --with-IODBC=DIR has been specified, use it.
- if test "x${IODBC_DIR}" != "x"; then
- IODBC_INCLUDE="-I${IODBC_DIR}/include"
- fi
- IODBC_INCLUDE="${IODBC_INCLUDE} ${PTHREAD_CFLAGS}"
- if test "xsql.h" = "x" ; then # no header, assume found
- IODBC_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${IODBC_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
- if test "x$ac_cv_header_sql_h" = xyes; then :
- IODBC_HEADER_FOUND=1
- else
- IODBC_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${IODBC_HEADER_FOUND}" = "x0" ; then
- IODBC_LIB=""
- IODBC_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- IODBC_LIB=""
- fi
- PBX_IODBC=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_IODBC 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_INOTIFY}" != "x1" -a "${USE_INOTIFY}" != "no"; then
- pbxlibdir=""
- # if --with-INOTIFY=DIR has been specified, use it.
- if test "x${INOTIFY_DIR}" != "x"; then
- if test -d ${INOTIFY_DIR}/lib; then
- pbxlibdir="-L${INOTIFY_DIR}/lib"
- else
- pbxlibdir="-L${INOTIFY_DIR}"
- fi
- fi
- pbxfuncname="inotify_init"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_INOTIFY_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lc ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_INOTIFY_FOUND=yes
- else
- AST_INOTIFY_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_INOTIFY_FOUND}" = "yes"; then
- INOTIFY_LIB="${pbxlibdir} -lc "
- # if --with-INOTIFY=DIR has been specified, use it.
- if test "x${INOTIFY_DIR}" != "x"; then
- INOTIFY_INCLUDE="-I${INOTIFY_DIR}/include"
- fi
- INOTIFY_INCLUDE="${INOTIFY_INCLUDE} "
- if test "xsys/inotify.h" = "x" ; then # no header, assume found
- INOTIFY_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${INOTIFY_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
- if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
- INOTIFY_HEADER_FOUND=1
- else
- INOTIFY_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${INOTIFY_HEADER_FOUND}" = "x0" ; then
- INOTIFY_LIB=""
- INOTIFY_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- INOTIFY_LIB=""
- fi
- PBX_INOTIFY=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_INOTIFY 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
- pbxlibdir=""
- # if --with-JACK=DIR has been specified, use it.
- if test "x${JACK_DIR}" != "x"; then
- if test -d ${JACK_DIR}/lib; then
- pbxlibdir="-L${JACK_DIR}/lib"
- else
- pbxlibdir="-L${JACK_DIR}"
- fi
- fi
- pbxfuncname="jack_activate"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_JACK_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ljack" >&5
- $as_echo_n "checking for ${pbxfuncname} in -ljack... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ljack ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_JACK_FOUND=yes
- else
- AST_JACK_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_JACK_FOUND}" = "yes"; then
- JACK_LIB="${pbxlibdir} -ljack "
- # if --with-JACK=DIR has been specified, use it.
- if test "x${JACK_DIR}" != "x"; then
- JACK_INCLUDE="-I${JACK_DIR}/include"
- fi
- JACK_INCLUDE="${JACK_INCLUDE} "
- if test "xjack/jack.h" = "x" ; then # no header, assume found
- JACK_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
- if test "x$ac_cv_header_jack_jack_h" = xyes; then :
- JACK_HEADER_FOUND=1
- else
- JACK_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${JACK_HEADER_FOUND}" = "x0" ; then
- JACK_LIB=""
- JACK_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- JACK_LIB=""
- fi
- PBX_JACK=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_JACK 1
- _ACEOF
- fi
- fi
- fi
- # BSD (and OS X) equivalent of inotify
- if test "x${PBX_KQUEUE}" != "x1" -a "${USE_KQUEUE}" != "no"; then
- pbxlibdir=""
- # if --with-KQUEUE=DIR has been specified, use it.
- if test "x${KQUEUE_DIR}" != "x"; then
- if test -d ${KQUEUE_DIR}/lib; then
- pbxlibdir="-L${KQUEUE_DIR}/lib"
- else
- pbxlibdir="-L${KQUEUE_DIR}"
- fi
- fi
- pbxfuncname="kqueue"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_KQUEUE_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lc ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_KQUEUE_FOUND=yes
- else
- AST_KQUEUE_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_KQUEUE_FOUND}" = "yes"; then
- KQUEUE_LIB="${pbxlibdir} -lc "
- # if --with-KQUEUE=DIR has been specified, use it.
- if test "x${KQUEUE_DIR}" != "x"; then
- KQUEUE_INCLUDE="-I${KQUEUE_DIR}/include"
- fi
- KQUEUE_INCLUDE="${KQUEUE_INCLUDE} "
- if test "xsys/event.h" = "x" ; then # no header, assume found
- KQUEUE_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${KQUEUE_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
- if test "x$ac_cv_header_sys_event_h" = xyes; then :
- KQUEUE_HEADER_FOUND=1
- else
- KQUEUE_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${KQUEUE_HEADER_FOUND}" = "x0" ; then
- KQUEUE_LIB=""
- KQUEUE_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- KQUEUE_LIB=""
- fi
- PBX_KQUEUE=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_KQUEUE 1
- _ACEOF
- fi
- fi
- fi
- # 64-bit version of kevent (from kqueue) on OS X
- for ac_func in kevent64
- do :
- ac_fn_c_check_func "$LINENO" "kevent64" "ac_cv_func_kevent64"
- if test "x$ac_cv_func_kevent64" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_KEVENT64 1
- _ACEOF
- fi
- done
- # Needed by unixodbc
- if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
- pbxlibdir=""
- # if --with-LTDL=DIR has been specified, use it.
- if test "x${LTDL_DIR}" != "x"; then
- if test -d ${LTDL_DIR}/lib; then
- pbxlibdir="-L${LTDL_DIR}/lib"
- else
- pbxlibdir="-L${LTDL_DIR}"
- fi
- fi
- pbxfuncname="lt_dlinit"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_LTDL_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lltdl" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lltdl... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lltdl ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_LTDL_FOUND=yes
- else
- AST_LTDL_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_LTDL_FOUND}" = "yes"; then
- LTDL_LIB="${pbxlibdir} -lltdl "
- # if --with-LTDL=DIR has been specified, use it.
- if test "x${LTDL_DIR}" != "x"; then
- LTDL_INCLUDE="-I${LTDL_DIR}/include"
- fi
- LTDL_INCLUDE="${LTDL_INCLUDE} "
- if test "xltdl.h" = "x" ; then # no header, assume found
- LTDL_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
- if test "x$ac_cv_header_ltdl_h" = xyes; then :
- LTDL_HEADER_FOUND=1
- else
- LTDL_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
- LTDL_LIB=""
- LTDL_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- LTDL_LIB=""
- fi
- PBX_LTDL=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LTDL 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
- pbxlibdir=""
- # if --with-LDAP=DIR has been specified, use it.
- if test "x${LDAP_DIR}" != "x"; then
- if test -d ${LDAP_DIR}/lib; then
- pbxlibdir="-L${LDAP_DIR}/lib"
- else
- pbxlibdir="-L${LDAP_DIR}"
- fi
- fi
- pbxfuncname="ldap_initialize"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_LDAP_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lldap" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lldap... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lldap ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_LDAP_FOUND=yes
- else
- AST_LDAP_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_LDAP_FOUND}" = "yes"; then
- LDAP_LIB="${pbxlibdir} -lldap "
- # if --with-LDAP=DIR has been specified, use it.
- if test "x${LDAP_DIR}" != "x"; then
- LDAP_INCLUDE="-I${LDAP_DIR}/include"
- fi
- LDAP_INCLUDE="${LDAP_INCLUDE} "
- if test "xldap.h" = "x" ; then # no header, assume found
- LDAP_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
- if test "x$ac_cv_header_ldap_h" = xyes; then :
- LDAP_HEADER_FOUND=1
- else
- LDAP_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
- LDAP_LIB=""
- LDAP_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- LDAP_LIB=""
- fi
- PBX_LDAP=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LDAP 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
- pbxlibdir=""
- # if --with-MISDN=DIR has been specified, use it.
- if test "x${MISDN_DIR}" != "x"; then
- if test -d ${MISDN_DIR}/lib; then
- pbxlibdir="-L${MISDN_DIR}/lib"
- else
- pbxlibdir="-L${MISDN_DIR}"
- fi
- fi
- pbxfuncname="mISDN_open"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_MISDN_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lmISDN" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lmISDN... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lmISDN ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_MISDN_FOUND=yes
- else
- AST_MISDN_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_MISDN_FOUND}" = "yes"; then
- MISDN_LIB="${pbxlibdir} -lmISDN "
- # if --with-MISDN=DIR has been specified, use it.
- if test "x${MISDN_DIR}" != "x"; then
- MISDN_INCLUDE="-I${MISDN_DIR}/include"
- fi
- MISDN_INCLUDE="${MISDN_INCLUDE} "
- if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
- MISDN_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/mISDNlib.h" "ac_cv_header_mISDNuser_mISDNlib_h" "$ac_includes_default"
- if test "x$ac_cv_header_mISDNuser_mISDNlib_h" = xyes; then :
- MISDN_HEADER_FOUND=1
- else
- MISDN_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
- MISDN_LIB=""
- MISDN_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- MISDN_LIB=""
- fi
- PBX_MISDN=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_MISDN 1
- _ACEOF
- fi
- fi
- fi
- if test "${PBX_MISDN}" = 1; then
- if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
- pbxlibdir=""
- # if --with-ISDNNET=DIR has been specified, use it.
- if test "x${ISDNNET_DIR}" != "x"; then
- if test -d ${ISDNNET_DIR}/lib; then
- pbxlibdir="-L${ISDNNET_DIR}/lib"
- else
- pbxlibdir="-L${ISDNNET_DIR}"
- fi
- fi
- pbxfuncname="init_manager"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_ISDNNET_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lisdnnet" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lisdnnet... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_ISDNNET_FOUND=yes
- else
- AST_ISDNNET_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_ISDNNET_FOUND}" = "yes"; then
- ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
- # if --with-ISDNNET=DIR has been specified, use it.
- if test "x${ISDNNET_DIR}" != "x"; then
- ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
- fi
- ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
- if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
- ISDNNET_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/isdn_net.h" "ac_cv_header_mISDNuser_isdn_net_h" "$ac_includes_default"
- if test "x$ac_cv_header_mISDNuser_isdn_net_h" = xyes; then :
- ISDNNET_HEADER_FOUND=1
- else
- ISDNNET_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
- ISDNNET_LIB=""
- ISDNNET_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- ISDNNET_LIB=""
- fi
- PBX_ISDNNET=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ISDNNET 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
- pbxlibdir=""
- # if --with-SUPPSERV=DIR has been specified, use it.
- if test "x${SUPPSERV_DIR}" != "x"; then
- if test -d ${SUPPSERV_DIR}/lib; then
- pbxlibdir="-L${SUPPSERV_DIR}/lib"
- else
- pbxlibdir="-L${SUPPSERV_DIR}"
- fi
- fi
- pbxfuncname="encodeFac"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SUPPSERV_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsuppserv" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lsuppserv... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsuppserv ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_SUPPSERV_FOUND=yes
- else
- AST_SUPPSERV_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_SUPPSERV_FOUND}" = "yes"; then
- SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
- # if --with-SUPPSERV=DIR has been specified, use it.
- if test "x${SUPPSERV_DIR}" != "x"; then
- SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
- fi
- SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
- if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
- SUPPSERV_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/suppserv.h" "ac_cv_header_mISDNuser_suppserv_h" "$ac_includes_default"
- if test "x$ac_cv_header_mISDNuser_suppserv_h" = xyes; then :
- SUPPSERV_HEADER_FOUND=1
- else
- SUPPSERV_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
- SUPPSERV_LIB=""
- SUPPSERV_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- SUPPSERV_LIB=""
- fi
- PBX_SUPPSERV=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SUPPSERV 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
- $as_echo_n "checking for Fac_RESULT in mISDNuser/suppserv.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
- MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <mISDNuser/suppserv.h>
- int
- main ()
- {
- #if defined(Fac_RESULT)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_MISDN_FAC_RESULT=1
- $as_echo "#define HAVE_MISDN_FAC_RESULT 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
- $as_echo_n "checking for Fac_ERROR in mISDNuser/suppserv.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
- MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <mISDNuser/suppserv.h>
- int
- main ()
- {
- #if defined(Fac_ERROR)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_MISDN_FAC_ERROR=1
- $as_echo "#define HAVE_MISDN_FAC_ERROR 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- ac_fn_c_check_header_mongrel "$LINENO" "linux/mISDNdsp.h" "ac_cv_header_linux_mISDNdsp_h" "$ac_includes_default"
- if test "x$ac_cv_header_linux_mISDNdsp_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define MISDN_1_2 1
- _ACEOF
- fi
- ac_fn_c_check_member "$LINENO" "Q931_info_t" "redirect_dn" "ac_cv_member_Q931_info_t_redirect_dn" "#include <mISDNuser/mISDNlib.h>
- "
- if test "x$ac_cv_member_Q931_info_t_redirect_dn" = xyes; then :
- else
- PBX_MISDN=0
- fi
- fi
- if test "x${PBX_MYSQLCLIENT}" != "x1" -a "${USE_MYSQLCLIENT}" != "no"; then
- PBX_MYSQLCLIENT=0
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}mysql_config", so it can be a program name with args.
- set dummy ${ac_tool_prefix}mysql_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_CONFIG_MYSQLCLIENT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $CONFIG_MYSQLCLIENT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CONFIG_MYSQLCLIENT="$CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="${MYSQLCLIENT_DIR}/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_CONFIG_MYSQLCLIENT="$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
- CONFIG_MYSQLCLIENT=$ac_cv_path_CONFIG_MYSQLCLIENT
- if test -n "$CONFIG_MYSQLCLIENT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_MYSQLCLIENT" >&5
- $as_echo "$CONFIG_MYSQLCLIENT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_CONFIG_MYSQLCLIENT"; then
- ac_pt_CONFIG_MYSQLCLIENT=$CONFIG_MYSQLCLIENT
- # Extract the first word of "mysql_config", so it can be a program name with args.
- set dummy mysql_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_ac_pt_CONFIG_MYSQLCLIENT+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ac_pt_CONFIG_MYSQLCLIENT in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$ac_pt_CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="${MYSQLCLIENT_DIR}/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_ac_pt_CONFIG_MYSQLCLIENT="$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
- ac_pt_CONFIG_MYSQLCLIENT=$ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT
- if test -n "$ac_pt_CONFIG_MYSQLCLIENT"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_MYSQLCLIENT" >&5
- $as_echo "$ac_pt_CONFIG_MYSQLCLIENT" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_CONFIG_MYSQLCLIENT" = x; then
- CONFIG_MYSQLCLIENT="No"
- 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
- CONFIG_MYSQLCLIENT=$ac_pt_CONFIG_MYSQLCLIENT
- fi
- else
- CONFIG_MYSQLCLIENT="$ac_cv_path_CONFIG_MYSQLCLIENT"
- fi
- if test ! "x${CONFIG_MYSQLCLIENT}" = xNo; then
- if test x"" = x ; then A=--cflags ; else A="" ; fi
- MYSQLCLIENT_INCLUDE=$(${CONFIG_MYSQLCLIENT} $A)
- MYSQLCLIENT_INCLUDE=$(echo ${MYSQLCLIENT_INCLUDE} | $SED -e "s|-I|-I${MYSQLCLIENT_DIR}|g")
- if test x"" = x ; then A=--libs ; else A="" ; fi
- MYSQLCLIENT_LIB=$(${CONFIG_MYSQLCLIENT} $A)
- MYSQLCLIENT_LIB=$(echo ${MYSQLCLIENT_LIB} | $SED -e "s|-L|-L${MYSQLCLIENT_DIR}|g")
- if test x"" != x ; then
- saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${MYSQLCLIENT_INCLUDE}"
- saved_libs="${LIBS}"
- LIBS=${MYSQLCLIENT_LIB}
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- PBX_MYSQLCLIENT=1
- $as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CPPFLAGS="${saved_cppflags}"
- LIBS="${saved_libs}"
- else
- PBX_MYSQLCLIENT=1
- $as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
- fi
- fi
- fi
- if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
- pbxlibdir=""
- # if --with-NBS=DIR has been specified, use it.
- if test "x${NBS_DIR}" != "x"; then
- if test -d ${NBS_DIR}/lib; then
- pbxlibdir="-L${NBS_DIR}/lib"
- else
- pbxlibdir="-L${NBS_DIR}"
- fi
- fi
- pbxfuncname="nbs_connect"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_NBS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnbs" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lnbs... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lnbs ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_NBS_FOUND=yes
- else
- AST_NBS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_NBS_FOUND}" = "yes"; then
- NBS_LIB="${pbxlibdir} -lnbs "
- # if --with-NBS=DIR has been specified, use it.
- if test "x${NBS_DIR}" != "x"; then
- NBS_INCLUDE="-I${NBS_DIR}/include"
- fi
- NBS_INCLUDE="${NBS_INCLUDE} "
- if test "xnbs.h" = "x" ; then # no header, assume found
- NBS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "nbs.h" "ac_cv_header_nbs_h" "$ac_includes_default"
- if test "x$ac_cv_header_nbs_h" = xyes; then :
- NBS_HEADER_FOUND=1
- else
- NBS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${NBS_HEADER_FOUND}" = "x0" ; then
- NBS_LIB=""
- NBS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- NBS_LIB=""
- fi
- PBX_NBS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_NBS 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_NEON}" != "x1" -a "${USE_NEON}" != "no"; then
- PBX_NEON=0
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
- set dummy ${ac_tool_prefix}neon-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_CONFIG_NEON+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $CONFIG_NEON in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CONFIG_NEON="$CONFIG_NEON" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="${NEON_DIR}/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_CONFIG_NEON="$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
- CONFIG_NEON=$ac_cv_path_CONFIG_NEON
- if test -n "$CONFIG_NEON"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON" >&5
- $as_echo "$CONFIG_NEON" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_CONFIG_NEON"; then
- ac_pt_CONFIG_NEON=$CONFIG_NEON
- # Extract the first word of "neon-config", so it can be a program name with args.
- set dummy neon-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_ac_pt_CONFIG_NEON+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ac_pt_CONFIG_NEON in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_pt_CONFIG_NEON="$ac_pt_CONFIG_NEON" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="${NEON_DIR}/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_ac_pt_CONFIG_NEON="$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
- ac_pt_CONFIG_NEON=$ac_cv_path_ac_pt_CONFIG_NEON
- if test -n "$ac_pt_CONFIG_NEON"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON" >&5
- $as_echo "$ac_pt_CONFIG_NEON" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_CONFIG_NEON" = x; then
- CONFIG_NEON="No"
- 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
- CONFIG_NEON=$ac_pt_CONFIG_NEON
- fi
- else
- CONFIG_NEON="$ac_cv_path_CONFIG_NEON"
- fi
- if test ! "x${CONFIG_NEON}" = xNo; then
- if test x"" = x ; then A=--cflags ; else A="" ; fi
- NEON_INCLUDE=$(${CONFIG_NEON} $A)
- NEON_INCLUDE=$(echo ${NEON_INCLUDE} | $SED -e "s|-I|-I${NEON_DIR}|g")
- if test x"" = x ; then A=--libs ; else A="" ; fi
- NEON_LIB=$(${CONFIG_NEON} $A)
- NEON_LIB=$(echo ${NEON_LIB} | $SED -e "s|-L|-L${NEON_DIR}|g")
- if test x"" != x ; then
- saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${NEON_INCLUDE}"
- saved_libs="${LIBS}"
- LIBS=${NEON_LIB}
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- PBX_NEON=1
- $as_echo "#define HAVE_NEON 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CPPFLAGS="${saved_cppflags}"
- LIBS="${saved_libs}"
- else
- PBX_NEON=1
- $as_echo "#define HAVE_NEON 1" >>confdefs.h
- fi
- fi
- fi
- if test "x${PBX_NEON29}" != "x1" -a "${USE_NEON29}" != "no"; then
- PBX_NEON29=0
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
- set dummy ${ac_tool_prefix}neon-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_CONFIG_NEON29+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $CONFIG_NEON29 in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CONFIG_NEON29="$CONFIG_NEON29" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="${NEON29_DIR}/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_CONFIG_NEON29="$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
- CONFIG_NEON29=$ac_cv_path_CONFIG_NEON29
- if test -n "$CONFIG_NEON29"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON29" >&5
- $as_echo "$CONFIG_NEON29" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_CONFIG_NEON29"; then
- ac_pt_CONFIG_NEON29=$CONFIG_NEON29
- # Extract the first word of "neon-config", so it can be a program name with args.
- set dummy neon-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_ac_pt_CONFIG_NEON29+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ac_pt_CONFIG_NEON29 in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_pt_CONFIG_NEON29="$ac_pt_CONFIG_NEON29" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="${NEON29_DIR}/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_ac_pt_CONFIG_NEON29="$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
- ac_pt_CONFIG_NEON29=$ac_cv_path_ac_pt_CONFIG_NEON29
- if test -n "$ac_pt_CONFIG_NEON29"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON29" >&5
- $as_echo "$ac_pt_CONFIG_NEON29" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_CONFIG_NEON29" = x; then
- CONFIG_NEON29="No"
- 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
- CONFIG_NEON29=$ac_pt_CONFIG_NEON29
- fi
- else
- CONFIG_NEON29="$ac_cv_path_CONFIG_NEON29"
- fi
- if test ! "x${CONFIG_NEON29}" = xNo; then
- if test x"" = x ; then A=--cflags ; else A="" ; fi
- NEON29_INCLUDE=$(${CONFIG_NEON29} $A)
- NEON29_INCLUDE=$(echo ${NEON29_INCLUDE} | $SED -e "s|-I|-I${NEON29_DIR}|g")
- if test x"--libs" = x ; then A=--libs ; else A="--libs" ; fi
- NEON29_LIB=$(${CONFIG_NEON29} $A)
- NEON29_LIB=$(echo ${NEON29_LIB} | $SED -e "s|-L|-L${NEON29_DIR}|g")
- if test x"#include <ne_auth.h>" != x ; then
- saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${NEON29_INCLUDE}"
- saved_libs="${LIBS}"
- LIBS=${NEON29_LIB}
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <ne_auth.h>
- int
- main ()
- {
- #ifndef NE_AUTH_NTLM
- #error Need libneon >= 0.29.0
- #endif;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- PBX_NEON29=1
- $as_echo "#define HAVE_NEON29 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CPPFLAGS="${saved_cppflags}"
- LIBS="${saved_libs}"
- else
- PBX_NEON29=1
- $as_echo "#define HAVE_NEON29 1" >>confdefs.h
- fi
- fi
- fi
- if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
- PBX_NETSNMP=0
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
- set dummy ${ac_tool_prefix}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_CONFIG_NETSNMP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $CONFIG_NETSNMP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="${NETSNMP_DIR}/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_CONFIG_NETSNMP="$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
- CONFIG_NETSNMP=$ac_cv_path_CONFIG_NETSNMP
- if test -n "$CONFIG_NETSNMP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NETSNMP" >&5
- $as_echo "$CONFIG_NETSNMP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_CONFIG_NETSNMP"; then
- ac_pt_CONFIG_NETSNMP=$CONFIG_NETSNMP
- # 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_ac_pt_CONFIG_NETSNMP+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ac_pt_CONFIG_NETSNMP in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_pt_CONFIG_NETSNMP="$ac_pt_CONFIG_NETSNMP" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="${NETSNMP_DIR}/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_ac_pt_CONFIG_NETSNMP="$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
- ac_pt_CONFIG_NETSNMP=$ac_cv_path_ac_pt_CONFIG_NETSNMP
- if test -n "$ac_pt_CONFIG_NETSNMP"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NETSNMP" >&5
- $as_echo "$ac_pt_CONFIG_NETSNMP" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_CONFIG_NETSNMP" = x; then
- CONFIG_NETSNMP="No"
- 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
- CONFIG_NETSNMP=$ac_pt_CONFIG_NETSNMP
- fi
- else
- CONFIG_NETSNMP="$ac_cv_path_CONFIG_NETSNMP"
- fi
- if test ! "x${CONFIG_NETSNMP}" = xNo; then
- if test x"" = x ; then A=--cflags ; else A="" ; fi
- NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
- NETSNMP_INCLUDE=$(echo ${NETSNMP_INCLUDE} | $SED -e "s|-I|-I${NETSNMP_DIR}|g")
- if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
- NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
- NETSNMP_LIB=$(echo ${NETSNMP_LIB} | $SED -e "s|-L|-L${NETSNMP_DIR}|g")
- if test x"#include <net-snmp/net-snmp-config.h>
- #include <net-snmp/net-snmp-includes.h>
- #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
- saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
- saved_libs="${LIBS}"
- LIBS=${NETSNMP_LIB}
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <net-snmp/net-snmp-config.h>
- #include <net-snmp/net-snmp-includes.h>
- #include <net-snmp/agent/net-snmp-agent-includes.h>
- int
- main ()
- {
- int callback = snmp_register_callback(0, 0, NULL, NULL);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- PBX_NETSNMP=1
- $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CPPFLAGS="${saved_cppflags}"
- LIBS="${saved_libs}"
- else
- PBX_NETSNMP=1
- $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
- fi
- fi
- fi
- if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
- pbxlibdir=""
- # if --with-NEWT=DIR has been specified, use it.
- if test "x${NEWT_DIR}" != "x"; then
- if test -d ${NEWT_DIR}/lib; then
- pbxlibdir="-L${NEWT_DIR}/lib"
- else
- pbxlibdir="-L${NEWT_DIR}"
- fi
- fi
- pbxfuncname="newtBell"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_NEWT_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnewt" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lnewt ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_NEWT_FOUND=yes
- else
- AST_NEWT_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_NEWT_FOUND}" = "yes"; then
- NEWT_LIB="${pbxlibdir} -lnewt "
- # if --with-NEWT=DIR has been specified, use it.
- if test "x${NEWT_DIR}" != "x"; then
- NEWT_INCLUDE="-I${NEWT_DIR}/include"
- fi
- NEWT_INCLUDE="${NEWT_INCLUDE} "
- if test "xnewt.h" = "x" ; then # no header, assume found
- NEWT_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
- if test "x$ac_cv_header_newt_h" = xyes; then :
- NEWT_HEADER_FOUND=1
- else
- NEWT_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
- NEWT_LIB=""
- NEWT_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- NEWT_LIB=""
- fi
- PBX_NEWT=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_NEWT 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_UNBOUND}" != "x1" -a "${USE_UNBOUND}" != "no"; then
- pbxlibdir=""
- # if --with-UNBOUND=DIR has been specified, use it.
- if test "x${UNBOUND_DIR}" != "x"; then
- if test -d ${UNBOUND_DIR}/lib; then
- pbxlibdir="-L${UNBOUND_DIR}/lib"
- else
- pbxlibdir="-L${UNBOUND_DIR}"
- fi
- fi
- pbxfuncname="ub_ctx_create"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_UNBOUND_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_unbound_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lunbound" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lunbound... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lunbound ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_UNBOUND_FOUND=yes
- else
- AST_UNBOUND_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_UNBOUND_FOUND}" = "yes"; then
- UNBOUND_LIB="${pbxlibdir} -lunbound "
- # if --with-UNBOUND=DIR has been specified, use it.
- if test "x${UNBOUND_DIR}" != "x"; then
- UNBOUND_INCLUDE="-I${UNBOUND_DIR}/include"
- fi
- UNBOUND_INCLUDE="${UNBOUND_INCLUDE} "
- if test "xunbound.h" = "x" ; then # no header, assume found
- UNBOUND_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${UNBOUND_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "unbound.h" "ac_cv_header_unbound_h" "$ac_includes_default"
- if test "x$ac_cv_header_unbound_h" = xyes; then :
- UNBOUND_HEADER_FOUND=1
- else
- UNBOUND_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${UNBOUND_HEADER_FOUND}" = "x0" ; then
- UNBOUND_LIB=""
- UNBOUND_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- UNBOUND_LIB=""
- fi
- PBX_UNBOUND=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UNBOUND 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
- pbxlibdir=""
- # if --with-UNIXODBC=DIR has been specified, use it.
- if test "x${UNIXODBC_DIR}" != "x"; then
- if test -d ${UNIXODBC_DIR}/lib; then
- pbxlibdir="-L${UNIXODBC_DIR}/lib"
- else
- pbxlibdir="-L${UNIXODBC_DIR}"
- fi
- fi
- pbxfuncname="SQLConnect"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_UNIXODBC_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lodbc" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lodbc... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lodbc ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_UNIXODBC_FOUND=yes
- else
- AST_UNIXODBC_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_UNIXODBC_FOUND}" = "yes"; then
- UNIXODBC_LIB="${pbxlibdir} -lodbc "
- # if --with-UNIXODBC=DIR has been specified, use it.
- if test "x${UNIXODBC_DIR}" != "x"; then
- UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
- fi
- UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
- if test "xsql.h" = "x" ; then # no header, assume found
- UNIXODBC_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
- if test "x$ac_cv_header_sql_h" = xyes; then :
- UNIXODBC_HEADER_FOUND=1
- else
- UNIXODBC_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
- UNIXODBC_LIB=""
- UNIXODBC_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- UNIXODBC_LIB=""
- fi
- PBX_UNIXODBC=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_UNIXODBC 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
- pbxlibdir=""
- # if --with-OGG=DIR has been specified, use it.
- if test "x${OGG_DIR}" != "x"; then
- if test -d ${OGG_DIR}/lib; then
- pbxlibdir="-L${OGG_DIR}/lib"
- else
- pbxlibdir="-L${OGG_DIR}"
- fi
- fi
- pbxfuncname="ogg_sync_init"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_OGG_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -logg" >&5
- $as_echo_n "checking for ${pbxfuncname} in -logg... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-logg ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_OGG_FOUND=yes
- else
- AST_OGG_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_OGG_FOUND}" = "yes"; then
- OGG_LIB="${pbxlibdir} -logg "
- # if --with-OGG=DIR has been specified, use it.
- if test "x${OGG_DIR}" != "x"; then
- OGG_INCLUDE="-I${OGG_DIR}/include"
- fi
- OGG_INCLUDE="${OGG_INCLUDE} "
- if test "x" = "x" ; then # no header, assume found
- OGG_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
- if test "x$ac_cv_header_" = xyes; then :
- OGG_HEADER_FOUND=1
- else
- OGG_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${OGG_HEADER_FOUND}" = "x0" ; then
- OGG_LIB=""
- OGG_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- OGG_LIB=""
- fi
- PBX_OGG=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OGG 1
- _ACEOF
- fi
- fi
- fi
- # Non-glibc platforms require libexecinfo for backtrace support
- if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
- pbxlibdir=""
- # if --with-BKTR=DIR has been specified, use it.
- if test "x${BKTR_DIR}" != "x"; then
- if test -d ${BKTR_DIR}/lib; then
- pbxlibdir="-L${BKTR_DIR}/lib"
- else
- pbxlibdir="-L${BKTR_DIR}"
- fi
- fi
- pbxfuncname="backtrace"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_BKTR_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lexecinfo" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lexecinfo... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lexecinfo ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_BKTR_FOUND=yes
- else
- AST_BKTR_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_BKTR_FOUND}" = "yes"; then
- BKTR_LIB="${pbxlibdir} -lexecinfo "
- # if --with-BKTR=DIR has been specified, use it.
- if test "x${BKTR_DIR}" != "x"; then
- BKTR_INCLUDE="-I${BKTR_DIR}/include"
- fi
- BKTR_INCLUDE="${BKTR_INCLUDE} "
- if test "xexecinfo.h" = "x" ; then # no header, assume found
- BKTR_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
- if test "x$ac_cv_header_execinfo_h" = xyes; then :
- BKTR_HEADER_FOUND=1
- else
- BKTR_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
- BKTR_LIB=""
- BKTR_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- BKTR_LIB=""
- fi
- PBX_BKTR=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_BKTR 1
- _ACEOF
- fi
- fi
- fi
- # Linux, however, has backtrace directly in glibc
- if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
- pbxlibdir=""
- # if --with-BKTR=DIR has been specified, use it.
- if test "x${BKTR_DIR}" != "x"; then
- if test -d ${BKTR_DIR}/lib; then
- pbxlibdir="-L${BKTR_DIR}/lib"
- else
- pbxlibdir="-L${BKTR_DIR}"
- fi
- fi
- pbxfuncname="backtrace"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_BKTR_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lc ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_BKTR_FOUND=yes
- else
- AST_BKTR_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_BKTR_FOUND}" = "yes"; then
- BKTR_LIB="${pbxlibdir} -lc "
- # if --with-BKTR=DIR has been specified, use it.
- if test "x${BKTR_DIR}" != "x"; then
- BKTR_INCLUDE="-I${BKTR_DIR}/include"
- fi
- BKTR_INCLUDE="${BKTR_INCLUDE} "
- if test "xexecinfo.h" = "x" ; then # no header, assume found
- BKTR_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
- if test "x$ac_cv_header_execinfo_h" = xyes; then :
- BKTR_HEADER_FOUND=1
- else
- BKTR_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
- BKTR_LIB=""
- BKTR_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- BKTR_LIB=""
- fi
- PBX_BKTR=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_BKTR 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_BLUETOOTH}" != "x1" -a "${USE_BLUETOOTH}" != "no"; then
- pbxlibdir=""
- # if --with-BLUETOOTH=DIR has been specified, use it.
- if test "x${BLUETOOTH_DIR}" != "x"; then
- if test -d ${BLUETOOTH_DIR}/lib; then
- pbxlibdir="-L${BLUETOOTH_DIR}/lib"
- else
- pbxlibdir="-L${BLUETOOTH_DIR}"
- fi
- fi
- pbxfuncname="ba2str"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_BLUETOOTH_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_bluetooth_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbluetooth" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lbluetooth... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lbluetooth ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_BLUETOOTH_FOUND=yes
- else
- AST_BLUETOOTH_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_BLUETOOTH_FOUND}" = "yes"; then
- BLUETOOTH_LIB="${pbxlibdir} -lbluetooth "
- # if --with-BLUETOOTH=DIR has been specified, use it.
- if test "x${BLUETOOTH_DIR}" != "x"; then
- BLUETOOTH_INCLUDE="-I${BLUETOOTH_DIR}/include"
- fi
- BLUETOOTH_INCLUDE="${BLUETOOTH_INCLUDE} "
- if test "xbluetooth/bluetooth.h" = "x" ; then # no header, assume found
- BLUETOOTH_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${BLUETOOTH_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
- if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
- BLUETOOTH_HEADER_FOUND=1
- else
- BLUETOOTH_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${BLUETOOTH_HEADER_FOUND}" = "x0" ; then
- BLUETOOTH_LIB=""
- BLUETOOTH_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- BLUETOOTH_LIB=""
- fi
- PBX_BLUETOOTH=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_BLUETOOTH 1
- _ACEOF
- fi
- fi
- fi
- # possible places for oss definitions
- if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
- pbxlibdir=""
- # if --with-OSS=DIR has been specified, use it.
- if test "x${OSS_DIR}" != "x"; then
- if test -d ${OSS_DIR}/lib; then
- pbxlibdir="-L${OSS_DIR}/lib"
- else
- pbxlibdir="-L${OSS_DIR}"
- fi
- fi
- pbxfuncname=""
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_OSS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lossaudio ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_OSS_FOUND=yes
- else
- AST_OSS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_OSS_FOUND}" = "yes"; then
- OSS_LIB="${pbxlibdir} -lossaudio "
- # if --with-OSS=DIR has been specified, use it.
- if test "x${OSS_DIR}" != "x"; then
- OSS_INCLUDE="-I${OSS_DIR}/include"
- fi
- OSS_INCLUDE="${OSS_INCLUDE} "
- if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
- OSS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
- if test "x$ac_cv_header_linux_soundcard_h" = xyes; then :
- OSS_HEADER_FOUND=1
- else
- OSS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${OSS_HEADER_FOUND}" = "x0" ; then
- OSS_LIB=""
- OSS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- OSS_LIB=""
- fi
- PBX_OSS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OSS 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
- pbxlibdir=""
- # if --with-OSS=DIR has been specified, use it.
- if test "x${OSS_DIR}" != "x"; then
- if test -d ${OSS_DIR}/lib; then
- pbxlibdir="-L${OSS_DIR}/lib"
- else
- pbxlibdir="-L${OSS_DIR}"
- fi
- fi
- pbxfuncname=""
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_OSS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lossaudio ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_OSS_FOUND=yes
- else
- AST_OSS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_OSS_FOUND}" = "yes"; then
- OSS_LIB="${pbxlibdir} -lossaudio "
- # if --with-OSS=DIR has been specified, use it.
- if test "x${OSS_DIR}" != "x"; then
- OSS_INCLUDE="-I${OSS_DIR}/include"
- fi
- OSS_INCLUDE="${OSS_INCLUDE} "
- if test "xsys/soundcard.h" = "x" ; then # no header, assume found
- OSS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
- if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
- OSS_HEADER_FOUND=1
- else
- OSS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${OSS_HEADER_FOUND}" = "x0" ; then
- OSS_LIB=""
- OSS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- OSS_LIB=""
- fi
- PBX_OSS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OSS 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
- pbxlibdir=""
- # if --with-OSS=DIR has been specified, use it.
- if test "x${OSS_DIR}" != "x"; then
- if test -d ${OSS_DIR}/lib; then
- pbxlibdir="-L${OSS_DIR}/lib"
- else
- pbxlibdir="-L${OSS_DIR}"
- fi
- fi
- pbxfuncname="oss_ioctl_mixer"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_OSS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lossaudio ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_OSS_FOUND=yes
- else
- AST_OSS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_OSS_FOUND}" = "yes"; then
- OSS_LIB="${pbxlibdir} -lossaudio "
- # if --with-OSS=DIR has been specified, use it.
- if test "x${OSS_DIR}" != "x"; then
- OSS_INCLUDE="-I${OSS_DIR}/include"
- fi
- OSS_INCLUDE="${OSS_INCLUDE} "
- if test "xsoundcard.h" = "x" ; then # no header, assume found
- OSS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "soundcard.h" "ac_cv_header_soundcard_h" "$ac_includes_default"
- if test "x$ac_cv_header_soundcard_h" = xyes; then :
- OSS_HEADER_FOUND=1
- else
- OSS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${OSS_HEADER_FOUND}" = "x0" ; then
- OSS_LIB=""
- OSS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- OSS_LIB=""
- fi
- PBX_OSS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OSS 1
- _ACEOF
- fi
- fi
- fi
- PG_CONFIG=No
- if test "${USE_PGSQL}" != "no"; then
- if test "x${PGSQL_DIR}" != "x"; then
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
- set dummy ${ac_tool_prefix}pg_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_PG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in ${PGSQL_DIR}/bin
- 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_PG_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
- PG_CONFIG=$ac_cv_path_PG_CONFIG
- if test -n "$PG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
- $as_echo "$PG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_PG_CONFIG"; then
- ac_pt_PG_CONFIG=$PG_CONFIG
- # Extract the first word of "pg_config", so it can be a program name with args.
- set dummy pg_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_ac_pt_PG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ac_pt_PG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in ${PGSQL_DIR}/bin
- 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_ac_pt_PG_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
- ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
- if test -n "$ac_pt_PG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
- $as_echo "$ac_pt_PG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_PG_CONFIG" = x; then
- PG_CONFIG="No"
- 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
- PG_CONFIG=$ac_pt_PG_CONFIG
- fi
- else
- PG_CONFIG="$ac_cv_path_PG_CONFIG"
- fi
- if test x"${PG_CONFIG}" = xNo; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
- $as_echo "$as_me: ***" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** pg_config was not found in the path you specified:" >&5
- $as_echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** ${PGSQL_DIR}/bin" >&5
- $as_echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
- $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
- $as_echo "$as_me: *** including --without-postgres" >&6;}
- exit 1
- fi
- else
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
- set dummy ${ac_tool_prefix}pg_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_PG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PG_CONFIG="$PG_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_PG_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
- PG_CONFIG=$ac_cv_path_PG_CONFIG
- if test -n "$PG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
- $as_echo "$PG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_PG_CONFIG"; then
- ac_pt_PG_CONFIG=$PG_CONFIG
- # Extract the first word of "pg_config", so it can be a program name with args.
- set dummy pg_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_ac_pt_PG_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ac_pt_PG_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_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_ac_pt_PG_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
- ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
- if test -n "$ac_pt_PG_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
- $as_echo "$ac_pt_PG_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_PG_CONFIG" = x; then
- PG_CONFIG="No"
- 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
- PG_CONFIG=$ac_pt_PG_CONFIG
- fi
- else
- PG_CONFIG="$ac_cv_path_PG_CONFIG"
- fi
- fi
- fi
- if test "${PG_CONFIG}" != No; then
- PGSQL_libdir=`${PG_CONFIG} --libdir`
- PGSQL_includedir=`${PG_CONFIG} --includedir`
- if test "x$?" != "x0" ; then
- if test -n "${PGSQL_MANDATORY}" ; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
- $as_echo "$as_me: ***" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
- $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
- $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
- $as_echo "$as_me: *** including --without-postgres" >&6;}
- exit 1
- fi
- else
- { $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 -L${PGSQL_libdir} -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 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_PGSQL 1
- _ACEOF
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char within Postgres headers" >&5
- $as_echo_n "checking for pg_encoding_to_char within Postgres headers... " >&6; }
- old_CFLAGS=${CFLAGS}
- CFLAGS="${CFLAGS} -I${PGSQL_includedir} -Werror"
- old_LDFLAGS=${LDFLAGS}
- LDFLAGS="${LDFLAGS} -L${PGSQL_libdir} -lpq -lz"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <libpq-fe.h>
- int
- main ()
- {
- const char *foo = pg_encoding_to_char(1)
- ;
- 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; }
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PGSQL_pg_encoding_to_char 1
- _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_exeext conftest.$ac_ext
- CFLAGS=${old_CFLAGS}
- LDFLAGS=${old_LDFLAGS}
- if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
- PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
- PGSQL_INCLUDE="-I${PGSQL_includedir}"
- PBX_PGSQL=1
- elif test -n "${PGSQL_MANDATORY}";
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
- $as_echo "$as_me: ***" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
- $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
- $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
- $as_echo "$as_me: *** including --without-postgres" >&6;}
- exit 1
- fi
- fi
- fi
- if test "x${PBX_PJPROJECT}" != "x1" -a "${USE_PJPROJECT}" != "no"; then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PJPROJECT" >&5
- $as_echo_n "checking for PJPROJECT... " >&6; }
- if test -n "$PJPROJECT_CFLAGS"; then
- pkg_cv_PJPROJECT_CFLAGS="$PJPROJECT_CFLAGS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpjproject\""; } >&5
- ($PKG_CONFIG --exists --print-errors "libpjproject") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_PJPROJECT_CFLAGS=`$PKG_CONFIG --cflags "libpjproject" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$PJPROJECT_LIBS"; then
- pkg_cv_PJPROJECT_LIBS="$PJPROJECT_LIBS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpjproject\""; } >&5
- ($PKG_CONFIG --exists --print-errors "libpjproject") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_PJPROJECT_LIBS=`$PKG_CONFIG --libs "libpjproject" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- PJPROJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpjproject" 2>&1`
- else
- PJPROJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpjproject" 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$PJPROJECT_PKG_ERRORS" >&5
- PBX_PJPROJECT=0
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- PBX_PJPROJECT=0
- else
- PJPROJECT_CFLAGS=$pkg_cv_PJPROJECT_CFLAGS
- PJPROJECT_LIBS=$pkg_cv_PJPROJECT_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PBX_PJPROJECT=1
- PJPROJECT_INCLUDE="$PJPROJECT_CFLAGS"
- PJPROJECT_LIB="$PJPROJECT_LIBS"
- $as_echo "#define HAVE_PJPROJECT 1" >>confdefs.h
- fi
- fi
- if test "x${PBX_PJ_TRANSACTION_GRP_LOCK}" != "x1" -a "${USE_PJ_TRANSACTION_GRP_LOCK}" != "no"; then
- pbxlibdir=""
- # if --with-PJ_TRANSACTION_GRP_LOCK=DIR has been specified, use it.
- if test "x${PJ_TRANSACTION_GRP_LOCK_DIR}" != "x"; then
- if test -d ${PJ_TRANSACTION_GRP_LOCK_DIR}/lib; then
- pbxlibdir="-L${PJ_TRANSACTION_GRP_LOCK_DIR}/lib"
- else
- pbxlibdir="-L${PJ_TRANSACTION_GRP_LOCK_DIR}"
- fi
- fi
- pbxfuncname="pjsip_tsx_create_uac2"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PJ_TRANSACTION_GRP_LOCK_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
- as_ac_Lib=`$as_echo "ac_cv_lib_pjsip_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpjsip" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpjsip... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PJ_TRANSACTION_GRP_LOCK_FOUND=yes
- else
- AST_PJ_TRANSACTION_GRP_LOCK_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PJ_TRANSACTION_GRP_LOCK_FOUND}" = "yes"; then
- PJ_TRANSACTION_GRP_LOCK_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIBS"
- # if --with-PJ_TRANSACTION_GRP_LOCK=DIR has been specified, use it.
- if test "x${PJ_TRANSACTION_GRP_LOCK_DIR}" != "x"; then
- PJ_TRANSACTION_GRP_LOCK_INCLUDE="-I${PJ_TRANSACTION_GRP_LOCK_DIR}/include"
- fi
- PJ_TRANSACTION_GRP_LOCK_INCLUDE="${PJ_TRANSACTION_GRP_LOCK_INCLUDE} $PJPROJECT_CFLAGS"
- if test "xpjsip.h" = "x" ; then # no header, assume found
- PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PJ_TRANSACTION_GRP_LOCK_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
- if test "x$ac_cv_header_pjsip_h" = xyes; then :
- PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND=1
- else
- PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND}" = "x0" ; then
- PJ_TRANSACTION_GRP_LOCK_LIB=""
- PJ_TRANSACTION_GRP_LOCK_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PJ_TRANSACTION_GRP_LOCK_LIB=""
- fi
- PBX_PJ_TRANSACTION_GRP_LOCK=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PJ_TRANSACTION_GRP_LOCK 1
- _ACEOF
- fi
- fi
- fi
- saved_cppflags="${CPPFLAGS}"
- saved_libs="${LIBS}"
- CPPFLAGS="${CPPFLAGS} ${PJPROJECT_CFLAGS}"
- LIBS="${LIBS} ${PJPROJECT_LIBS}"
- if test "x${PBX_PJSIP_REPLACE_MEDIA_STREAM}" != "x1" -a "${USE_PJSIP_REPLACE_MEDIA_STREAM}" != "no"; then
- if test "x" != "x"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for " >&5
- $as_echo_n "checking for ... " >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE\" compiles using pjmedia.h" >&5
- $as_echo_n "checking if \"pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE\" compiles using pjmedia.h... " >&6; }
- fi
- saved_cppflags="${CPPFLAGS}"
- if test "x${PJSIP_REPLACE_MEDIA_STREAM_DIR}" != "x"; then
- PJSIP_REPLACE_MEDIA_STREAM_INCLUDE="-I${PJSIP_REPLACE_MEDIA_STREAM_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${PJSIP_REPLACE_MEDIA_STREAM_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <pjmedia.h>
- int
- main ()
- {
- pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE;
- ;
- 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; }
- PBX_PJSIP_REPLACE_MEDIA_STREAM=1
- $as_echo "#define HAVE_PJSIP_REPLACE_MEDIA_STREAM 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- LIBS="${saved_libs}"
- CPPFLAGS="${saved_cppflags}"
- if test "x${PBX_PJSIP_GET_DEST_INFO}" != "x1" -a "${USE_PJSIP_GET_DEST_INFO}" != "no"; then
- pbxlibdir=""
- # if --with-PJSIP_GET_DEST_INFO=DIR has been specified, use it.
- if test "x${PJSIP_GET_DEST_INFO_DIR}" != "x"; then
- if test -d ${PJSIP_GET_DEST_INFO_DIR}/lib; then
- pbxlibdir="-L${PJSIP_GET_DEST_INFO_DIR}/lib"
- else
- pbxlibdir="-L${PJSIP_GET_DEST_INFO_DIR}"
- fi
- fi
- pbxfuncname="pjsip_get_dest_info"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PJSIP_GET_DEST_INFO_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
- as_ac_Lib=`$as_echo "ac_cv_lib_pjsip_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpjsip" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpjsip... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PJSIP_GET_DEST_INFO_FOUND=yes
- else
- AST_PJSIP_GET_DEST_INFO_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PJSIP_GET_DEST_INFO_FOUND}" = "yes"; then
- PJSIP_GET_DEST_INFO_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIBS"
- # if --with-PJSIP_GET_DEST_INFO=DIR has been specified, use it.
- if test "x${PJSIP_GET_DEST_INFO_DIR}" != "x"; then
- PJSIP_GET_DEST_INFO_INCLUDE="-I${PJSIP_GET_DEST_INFO_DIR}/include"
- fi
- PJSIP_GET_DEST_INFO_INCLUDE="${PJSIP_GET_DEST_INFO_INCLUDE} $PJPROJECT_CFLAGS"
- if test "xpjsip.h" = "x" ; then # no header, assume found
- PJSIP_GET_DEST_INFO_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PJSIP_GET_DEST_INFO_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
- if test "x$ac_cv_header_pjsip_h" = xyes; then :
- PJSIP_GET_DEST_INFO_HEADER_FOUND=1
- else
- PJSIP_GET_DEST_INFO_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PJSIP_GET_DEST_INFO_HEADER_FOUND}" = "x0" ; then
- PJSIP_GET_DEST_INFO_LIB=""
- PJSIP_GET_DEST_INFO_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PJSIP_GET_DEST_INFO_LIB=""
- fi
- PBX_PJSIP_GET_DEST_INFO=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PJSIP_GET_DEST_INFO 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PJ_SSL_CERT_LOAD_FROM_FILES2}" != "x1" -a "${USE_PJ_SSL_CERT_LOAD_FROM_FILES2}" != "no"; then
- pbxlibdir=""
- # if --with-PJ_SSL_CERT_LOAD_FROM_FILES2=DIR has been specified, use it.
- if test "x${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}" != "x"; then
- if test -d ${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}/lib; then
- pbxlibdir="-L${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}/lib"
- else
- pbxlibdir="-L${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}"
- fi
- fi
- pbxfuncname="pj_ssl_cert_load_from_files2"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PJ_SSL_CERT_LOAD_FROM_FILES2_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
- as_ac_Lib=`$as_echo "ac_cv_lib_pj_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpj" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpj... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpj ${pbxlibdir} $PJPROJECT_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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PJ_SSL_CERT_LOAD_FROM_FILES2_FOUND=yes
- else
- AST_PJ_SSL_CERT_LOAD_FROM_FILES2_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PJ_SSL_CERT_LOAD_FROM_FILES2_FOUND}" = "yes"; then
- PJ_SSL_CERT_LOAD_FROM_FILES2_LIB="${pbxlibdir} -lpj $PJPROJECT_LIBS"
- # if --with-PJ_SSL_CERT_LOAD_FROM_FILES2=DIR has been specified, use it.
- if test "x${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}" != "x"; then
- PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE="-I${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}/include"
- fi
- PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE="${PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE} $PJPROJECT_CFLAGS"
- if test "xpjlib.h" = "x" ; then # no header, assume found
- PJ_SSL_CERT_LOAD_FROM_FILES2_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "pjlib.h" "ac_cv_header_pjlib_h" "$ac_includes_default"
- if test "x$ac_cv_header_pjlib_h" = xyes; then :
- PJ_SSL_CERT_LOAD_FROM_FILES2_HEADER_FOUND=1
- else
- PJ_SSL_CERT_LOAD_FROM_FILES2_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PJ_SSL_CERT_LOAD_FROM_FILES2_HEADER_FOUND}" = "x0" ; then
- PJ_SSL_CERT_LOAD_FROM_FILES2_LIB=""
- PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PJ_SSL_CERT_LOAD_FROM_FILES2_LIB=""
- fi
- PBX_PJ_SSL_CERT_LOAD_FROM_FILES2=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PJ_SSL_CERT_LOAD_FROM_FILES2 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
- pbxlibdir=""
- # if --with-POPT=DIR has been specified, use it.
- if test "x${POPT_DIR}" != "x"; then
- if test -d ${POPT_DIR}/lib; then
- pbxlibdir="-L${POPT_DIR}/lib"
- else
- pbxlibdir="-L${POPT_DIR}"
- fi
- fi
- pbxfuncname="poptStrerror"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_POPT_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpopt" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpopt... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpopt ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_POPT_FOUND=yes
- else
- AST_POPT_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_POPT_FOUND}" = "yes"; then
- POPT_LIB="${pbxlibdir} -lpopt "
- # if --with-POPT=DIR has been specified, use it.
- if test "x${POPT_DIR}" != "x"; then
- POPT_INCLUDE="-I${POPT_DIR}/include"
- fi
- POPT_INCLUDE="${POPT_INCLUDE} "
- if test "xpopt.h" = "x" ; then # no header, assume found
- POPT_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "popt.h" "ac_cv_header_popt_h" "$ac_includes_default"
- if test "x$ac_cv_header_popt_h" = xyes; then :
- POPT_HEADER_FOUND=1
- else
- POPT_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${POPT_HEADER_FOUND}" = "x0" ; then
- POPT_LIB=""
- POPT_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- POPT_LIB=""
- fi
- PBX_POPT=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_POPT 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
- pbxlibdir=""
- # if --with-PORTAUDIO=DIR has been specified, use it.
- if test "x${PORTAUDIO_DIR}" != "x"; then
- if test -d ${PORTAUDIO_DIR}/lib; then
- pbxlibdir="-L${PORTAUDIO_DIR}/lib"
- else
- pbxlibdir="-L${PORTAUDIO_DIR}"
- fi
- fi
- pbxfuncname="Pa_GetDeviceCount"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PORTAUDIO_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lportaudio" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lportaudio... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lportaudio ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PORTAUDIO_FOUND=yes
- else
- AST_PORTAUDIO_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
- PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
- # if --with-PORTAUDIO=DIR has been specified, use it.
- if test "x${PORTAUDIO_DIR}" != "x"; then
- PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
- fi
- PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
- if test "xportaudio.h" = "x" ; then # no header, assume found
- PORTAUDIO_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
- if test "x$ac_cv_header_portaudio_h" = xyes; then :
- PORTAUDIO_HEADER_FOUND=1
- else
- PORTAUDIO_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
- PORTAUDIO_LIB=""
- PORTAUDIO_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PORTAUDIO_LIB=""
- fi
- PBX_PORTAUDIO=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PORTAUDIO 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
- pbxlibdir=""
- # if --with-PRI=DIR has been specified, use it.
- if test "x${PRI_DIR}" != "x"; then
- if test -d ${PRI_DIR}/lib; then
- pbxlibdir="-L${PRI_DIR}/lib"
- else
- pbxlibdir="-L${PRI_DIR}"
- fi
- fi
- pbxfuncname="pri_connected_line_update"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_FOUND=yes
- else
- AST_PRI_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_FOUND}" = "yes"; then
- PRI_LIB="${pbxlibdir} -lpri "
- # if --with-PRI=DIR has been specified, use it.
- if test "x${PRI_DIR}" != "x"; then
- PRI_INCLUDE="-I${PRI_DIR}/include"
- fi
- PRI_INCLUDE="${PRI_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_HEADER_FOUND=1
- else
- PRI_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_HEADER_FOUND}" = "x0" ; then
- PRI_LIB=""
- PRI_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_LIB=""
- fi
- PBX_PRI=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_SETUP_ACK_INBAND}" != "x1" -a "${USE_PRI_SETUP_ACK_INBAND}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_SETUP_ACK_INBAND=DIR has been specified, use it.
- if test "x${PRI_SETUP_ACK_INBAND_DIR}" != "x"; then
- if test -d ${PRI_SETUP_ACK_INBAND_DIR}/lib; then
- pbxlibdir="-L${PRI_SETUP_ACK_INBAND_DIR}/lib"
- else
- pbxlibdir="-L${PRI_SETUP_ACK_INBAND_DIR}"
- fi
- fi
- pbxfuncname="pri_setup_ack"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_SETUP_ACK_INBAND_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_SETUP_ACK_INBAND_FOUND=yes
- else
- AST_PRI_SETUP_ACK_INBAND_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_SETUP_ACK_INBAND_FOUND}" = "yes"; then
- PRI_SETUP_ACK_INBAND_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_SETUP_ACK_INBAND=DIR has been specified, use it.
- if test "x${PRI_SETUP_ACK_INBAND_DIR}" != "x"; then
- PRI_SETUP_ACK_INBAND_INCLUDE="-I${PRI_SETUP_ACK_INBAND_DIR}/include"
- fi
- PRI_SETUP_ACK_INBAND_INCLUDE="${PRI_SETUP_ACK_INBAND_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_SETUP_ACK_INBAND_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_ACK_INBAND_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_SETUP_ACK_INBAND_HEADER_FOUND=1
- else
- PRI_SETUP_ACK_INBAND_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_SETUP_ACK_INBAND_HEADER_FOUND}" = "x0" ; then
- PRI_SETUP_ACK_INBAND_LIB=""
- PRI_SETUP_ACK_INBAND_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_SETUP_ACK_INBAND_LIB=""
- fi
- PBX_PRI_SETUP_ACK_INBAND=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_SETUP_ACK_INBAND 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_L2_PERSISTENCE}" != "x1" -a "${USE_PRI_L2_PERSISTENCE}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
- if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
- if test -d ${PRI_L2_PERSISTENCE_DIR}/lib; then
- pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}/lib"
- else
- pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}"
- fi
- fi
- pbxfuncname="pri_persistent_layer2_option"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_L2_PERSISTENCE_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_L2_PERSISTENCE_FOUND=yes
- else
- AST_PRI_L2_PERSISTENCE_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_L2_PERSISTENCE_FOUND}" = "yes"; then
- PRI_L2_PERSISTENCE_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
- if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
- PRI_L2_PERSISTENCE_INCLUDE="-I${PRI_L2_PERSISTENCE_DIR}/include"
- fi
- PRI_L2_PERSISTENCE_INCLUDE="${PRI_L2_PERSISTENCE_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_L2_PERSISTENCE_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_L2_PERSISTENCE_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_L2_PERSISTENCE_HEADER_FOUND=1
- else
- PRI_L2_PERSISTENCE_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_L2_PERSISTENCE_HEADER_FOUND}" = "x0" ; then
- PRI_L2_PERSISTENCE_LIB=""
- PRI_L2_PERSISTENCE_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_L2_PERSISTENCE_LIB=""
- fi
- PBX_PRI_L2_PERSISTENCE=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_L2_PERSISTENCE 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_DATETIME_SEND}" != "x1" -a "${USE_PRI_DATETIME_SEND}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
- if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
- if test -d ${PRI_DATETIME_SEND_DIR}/lib; then
- pbxlibdir="-L${PRI_DATETIME_SEND_DIR}/lib"
- else
- pbxlibdir="-L${PRI_DATETIME_SEND_DIR}"
- fi
- fi
- pbxfuncname="pri_date_time_send_option"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_DATETIME_SEND_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_DATETIME_SEND_FOUND=yes
- else
- AST_PRI_DATETIME_SEND_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_DATETIME_SEND_FOUND}" = "yes"; then
- PRI_DATETIME_SEND_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
- if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
- PRI_DATETIME_SEND_INCLUDE="-I${PRI_DATETIME_SEND_DIR}/include"
- fi
- PRI_DATETIME_SEND_INCLUDE="${PRI_DATETIME_SEND_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_DATETIME_SEND_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_DATETIME_SEND_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_DATETIME_SEND_HEADER_FOUND=1
- else
- PRI_DATETIME_SEND_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_DATETIME_SEND_HEADER_FOUND}" = "x0" ; then
- PRI_DATETIME_SEND_LIB=""
- PRI_DATETIME_SEND_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_DATETIME_SEND_LIB=""
- fi
- PBX_PRI_DATETIME_SEND=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_DATETIME_SEND 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_MWI_V2}" != "x1" -a "${USE_PRI_MWI_V2}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_MWI_V2=DIR has been specified, use it.
- if test "x${PRI_MWI_V2_DIR}" != "x"; then
- if test -d ${PRI_MWI_V2_DIR}/lib; then
- pbxlibdir="-L${PRI_MWI_V2_DIR}/lib"
- else
- pbxlibdir="-L${PRI_MWI_V2_DIR}"
- fi
- fi
- pbxfuncname="pri_mwi_indicate_v2"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_MWI_V2_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_MWI_V2_FOUND=yes
- else
- AST_PRI_MWI_V2_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_MWI_V2_FOUND}" = "yes"; then
- PRI_MWI_V2_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_MWI_V2=DIR has been specified, use it.
- if test "x${PRI_MWI_V2_DIR}" != "x"; then
- PRI_MWI_V2_INCLUDE="-I${PRI_MWI_V2_DIR}/include"
- fi
- PRI_MWI_V2_INCLUDE="${PRI_MWI_V2_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_MWI_V2_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_MWI_V2_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_MWI_V2_HEADER_FOUND=1
- else
- PRI_MWI_V2_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_MWI_V2_HEADER_FOUND}" = "x0" ; then
- PRI_MWI_V2_LIB=""
- PRI_MWI_V2_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_MWI_V2_LIB=""
- fi
- PBX_PRI_MWI_V2=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_MWI_V2 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_DISPLAY_TEXT}" != "x1" -a "${USE_PRI_DISPLAY_TEXT}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
- if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
- if test -d ${PRI_DISPLAY_TEXT_DIR}/lib; then
- pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}/lib"
- else
- pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}"
- fi
- fi
- pbxfuncname="pri_display_text"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_DISPLAY_TEXT_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_DISPLAY_TEXT_FOUND=yes
- else
- AST_PRI_DISPLAY_TEXT_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_DISPLAY_TEXT_FOUND}" = "yes"; then
- PRI_DISPLAY_TEXT_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
- if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
- PRI_DISPLAY_TEXT_INCLUDE="-I${PRI_DISPLAY_TEXT_DIR}/include"
- fi
- PRI_DISPLAY_TEXT_INCLUDE="${PRI_DISPLAY_TEXT_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_DISPLAY_TEXT_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_DISPLAY_TEXT_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_DISPLAY_TEXT_HEADER_FOUND=1
- else
- PRI_DISPLAY_TEXT_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_DISPLAY_TEXT_HEADER_FOUND}" = "x0" ; then
- PRI_DISPLAY_TEXT_LIB=""
- PRI_DISPLAY_TEXT_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_DISPLAY_TEXT_LIB=""
- fi
- PBX_PRI_DISPLAY_TEXT=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_DISPLAY_TEXT 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_MWI}" != "x1" -a "${USE_PRI_MWI}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_MWI=DIR has been specified, use it.
- if test "x${PRI_MWI_DIR}" != "x"; then
- if test -d ${PRI_MWI_DIR}/lib; then
- pbxlibdir="-L${PRI_MWI_DIR}/lib"
- else
- pbxlibdir="-L${PRI_MWI_DIR}"
- fi
- fi
- pbxfuncname="pri_mwi_indicate"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_MWI_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_MWI_FOUND=yes
- else
- AST_PRI_MWI_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_MWI_FOUND}" = "yes"; then
- PRI_MWI_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_MWI=DIR has been specified, use it.
- if test "x${PRI_MWI_DIR}" != "x"; then
- PRI_MWI_INCLUDE="-I${PRI_MWI_DIR}/include"
- fi
- PRI_MWI_INCLUDE="${PRI_MWI_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_MWI_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_MWI_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_MWI_HEADER_FOUND=1
- else
- PRI_MWI_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_MWI_HEADER_FOUND}" = "x0" ; then
- PRI_MWI_LIB=""
- PRI_MWI_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_MWI_LIB=""
- fi
- PBX_PRI_MWI=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_MWI 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_MCID}" != "x1" -a "${USE_PRI_MCID}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_MCID=DIR has been specified, use it.
- if test "x${PRI_MCID_DIR}" != "x"; then
- if test -d ${PRI_MCID_DIR}/lib; then
- pbxlibdir="-L${PRI_MCID_DIR}/lib"
- else
- pbxlibdir="-L${PRI_MCID_DIR}"
- fi
- fi
- pbxfuncname="pri_mcid_enable"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_MCID_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_MCID_FOUND=yes
- else
- AST_PRI_MCID_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_MCID_FOUND}" = "yes"; then
- PRI_MCID_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_MCID=DIR has been specified, use it.
- if test "x${PRI_MCID_DIR}" != "x"; then
- PRI_MCID_INCLUDE="-I${PRI_MCID_DIR}/include"
- fi
- PRI_MCID_INCLUDE="${PRI_MCID_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_MCID_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_MCID_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_MCID_HEADER_FOUND=1
- else
- PRI_MCID_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_MCID_HEADER_FOUND}" = "x0" ; then
- PRI_MCID_LIB=""
- PRI_MCID_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_MCID_LIB=""
- fi
- PBX_PRI_MCID=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_MCID 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_CALL_WAITING}" != "x1" -a "${USE_PRI_CALL_WAITING}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
- if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
- if test -d ${PRI_CALL_WAITING_DIR}/lib; then
- pbxlibdir="-L${PRI_CALL_WAITING_DIR}/lib"
- else
- pbxlibdir="-L${PRI_CALL_WAITING_DIR}"
- fi
- fi
- pbxfuncname="pri_connect_ack_enable"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_CALL_WAITING_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_CALL_WAITING_FOUND=yes
- else
- AST_PRI_CALL_WAITING_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_CALL_WAITING_FOUND}" = "yes"; then
- PRI_CALL_WAITING_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
- if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
- PRI_CALL_WAITING_INCLUDE="-I${PRI_CALL_WAITING_DIR}/include"
- fi
- PRI_CALL_WAITING_INCLUDE="${PRI_CALL_WAITING_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_CALL_WAITING_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_CALL_WAITING_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_CALL_WAITING_HEADER_FOUND=1
- else
- PRI_CALL_WAITING_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_CALL_WAITING_HEADER_FOUND}" = "x0" ; then
- PRI_CALL_WAITING_LIB=""
- PRI_CALL_WAITING_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_CALL_WAITING_LIB=""
- fi
- PBX_PRI_CALL_WAITING=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_CALL_WAITING 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_AOC_EVENTS}" != "x1" -a "${USE_PRI_AOC_EVENTS}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
- if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
- if test -d ${PRI_AOC_EVENTS_DIR}/lib; then
- pbxlibdir="-L${PRI_AOC_EVENTS_DIR}/lib"
- else
- pbxlibdir="-L${PRI_AOC_EVENTS_DIR}"
- fi
- fi
- pbxfuncname="pri_aoc_events_enable"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_AOC_EVENTS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_AOC_EVENTS_FOUND=yes
- else
- AST_PRI_AOC_EVENTS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_AOC_EVENTS_FOUND}" = "yes"; then
- PRI_AOC_EVENTS_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
- if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
- PRI_AOC_EVENTS_INCLUDE="-I${PRI_AOC_EVENTS_DIR}/include"
- fi
- PRI_AOC_EVENTS_INCLUDE="${PRI_AOC_EVENTS_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_AOC_EVENTS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_AOC_EVENTS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_AOC_EVENTS_HEADER_FOUND=1
- else
- PRI_AOC_EVENTS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_AOC_EVENTS_HEADER_FOUND}" = "x0" ; then
- PRI_AOC_EVENTS_LIB=""
- PRI_AOC_EVENTS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_AOC_EVENTS_LIB=""
- fi
- PBX_PRI_AOC_EVENTS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_AOC_EVENTS 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_TRANSFER}" != "x1" -a "${USE_PRI_TRANSFER}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_TRANSFER=DIR has been specified, use it.
- if test "x${PRI_TRANSFER_DIR}" != "x"; then
- if test -d ${PRI_TRANSFER_DIR}/lib; then
- pbxlibdir="-L${PRI_TRANSFER_DIR}/lib"
- else
- pbxlibdir="-L${PRI_TRANSFER_DIR}"
- fi
- fi
- pbxfuncname="pri_transfer_enable"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_TRANSFER_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_TRANSFER_FOUND=yes
- else
- AST_PRI_TRANSFER_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_TRANSFER_FOUND}" = "yes"; then
- PRI_TRANSFER_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_TRANSFER=DIR has been specified, use it.
- if test "x${PRI_TRANSFER_DIR}" != "x"; then
- PRI_TRANSFER_INCLUDE="-I${PRI_TRANSFER_DIR}/include"
- fi
- PRI_TRANSFER_INCLUDE="${PRI_TRANSFER_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_TRANSFER_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_TRANSFER_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_TRANSFER_HEADER_FOUND=1
- else
- PRI_TRANSFER_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_TRANSFER_HEADER_FOUND}" = "x0" ; then
- PRI_TRANSFER_LIB=""
- PRI_TRANSFER_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_TRANSFER_LIB=""
- fi
- PBX_PRI_TRANSFER=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_TRANSFER 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_CCSS}" != "x1" -a "${USE_PRI_CCSS}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_CCSS=DIR has been specified, use it.
- if test "x${PRI_CCSS_DIR}" != "x"; then
- if test -d ${PRI_CCSS_DIR}/lib; then
- pbxlibdir="-L${PRI_CCSS_DIR}/lib"
- else
- pbxlibdir="-L${PRI_CCSS_DIR}"
- fi
- fi
- pbxfuncname="pri_cc_enable"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_CCSS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_CCSS_FOUND=yes
- else
- AST_PRI_CCSS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_CCSS_FOUND}" = "yes"; then
- PRI_CCSS_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_CCSS=DIR has been specified, use it.
- if test "x${PRI_CCSS_DIR}" != "x"; then
- PRI_CCSS_INCLUDE="-I${PRI_CCSS_DIR}/include"
- fi
- PRI_CCSS_INCLUDE="${PRI_CCSS_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_CCSS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_CCSS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_CCSS_HEADER_FOUND=1
- else
- PRI_CCSS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_CCSS_HEADER_FOUND}" = "x0" ; then
- PRI_CCSS_LIB=""
- PRI_CCSS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_CCSS_LIB=""
- fi
- PBX_PRI_CCSS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_CCSS 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_HANGUP_FIX}" != "x1" -a "${USE_PRI_HANGUP_FIX}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
- if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
- if test -d ${PRI_HANGUP_FIX_DIR}/lib; then
- pbxlibdir="-L${PRI_HANGUP_FIX_DIR}/lib"
- else
- pbxlibdir="-L${PRI_HANGUP_FIX_DIR}"
- fi
- fi
- pbxfuncname="pri_hangup_fix_enable"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_HANGUP_FIX_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_HANGUP_FIX_FOUND=yes
- else
- AST_PRI_HANGUP_FIX_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_HANGUP_FIX_FOUND}" = "yes"; then
- PRI_HANGUP_FIX_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
- if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
- PRI_HANGUP_FIX_INCLUDE="-I${PRI_HANGUP_FIX_DIR}/include"
- fi
- PRI_HANGUP_FIX_INCLUDE="${PRI_HANGUP_FIX_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_HANGUP_FIX_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_HANGUP_FIX_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_HANGUP_FIX_HEADER_FOUND=1
- else
- PRI_HANGUP_FIX_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_HANGUP_FIX_HEADER_FOUND}" = "x0" ; then
- PRI_HANGUP_FIX_LIB=""
- PRI_HANGUP_FIX_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_HANGUP_FIX_LIB=""
- fi
- PBX_PRI_HANGUP_FIX=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_HANGUP_FIX 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_SUBADDR}" != "x1" -a "${USE_PRI_SUBADDR}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_SUBADDR=DIR has been specified, use it.
- if test "x${PRI_SUBADDR_DIR}" != "x"; then
- if test -d ${PRI_SUBADDR_DIR}/lib; then
- pbxlibdir="-L${PRI_SUBADDR_DIR}/lib"
- else
- pbxlibdir="-L${PRI_SUBADDR_DIR}"
- fi
- fi
- pbxfuncname="pri_sr_set_called_subaddress"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_SUBADDR_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_SUBADDR_FOUND=yes
- else
- AST_PRI_SUBADDR_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_SUBADDR_FOUND}" = "yes"; then
- PRI_SUBADDR_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_SUBADDR=DIR has been specified, use it.
- if test "x${PRI_SUBADDR_DIR}" != "x"; then
- PRI_SUBADDR_INCLUDE="-I${PRI_SUBADDR_DIR}/include"
- fi
- PRI_SUBADDR_INCLUDE="${PRI_SUBADDR_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_SUBADDR_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_SUBADDR_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_SUBADDR_HEADER_FOUND=1
- else
- PRI_SUBADDR_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_SUBADDR_HEADER_FOUND}" = "x0" ; then
- PRI_SUBADDR_LIB=""
- PRI_SUBADDR_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_SUBADDR_LIB=""
- fi
- PBX_PRI_SUBADDR=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_SUBADDR 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_CALL_HOLD}" != "x1" -a "${USE_PRI_CALL_HOLD}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
- if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
- if test -d ${PRI_CALL_HOLD_DIR}/lib; then
- pbxlibdir="-L${PRI_CALL_HOLD_DIR}/lib"
- else
- pbxlibdir="-L${PRI_CALL_HOLD_DIR}"
- fi
- fi
- pbxfuncname="pri_hold_enable"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_CALL_HOLD_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_CALL_HOLD_FOUND=yes
- else
- AST_PRI_CALL_HOLD_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_CALL_HOLD_FOUND}" = "yes"; then
- PRI_CALL_HOLD_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
- if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
- PRI_CALL_HOLD_INCLUDE="-I${PRI_CALL_HOLD_DIR}/include"
- fi
- PRI_CALL_HOLD_INCLUDE="${PRI_CALL_HOLD_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_CALL_HOLD_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_CALL_HOLD_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_CALL_HOLD_HEADER_FOUND=1
- else
- PRI_CALL_HOLD_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_CALL_HOLD_HEADER_FOUND}" = "x0" ; then
- PRI_CALL_HOLD_LIB=""
- PRI_CALL_HOLD_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_CALL_HOLD_LIB=""
- fi
- PBX_PRI_CALL_HOLD=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_CALL_HOLD 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_CALL_REROUTING}" != "x1" -a "${USE_PRI_CALL_REROUTING}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
- if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
- if test -d ${PRI_CALL_REROUTING_DIR}/lib; then
- pbxlibdir="-L${PRI_CALL_REROUTING_DIR}/lib"
- else
- pbxlibdir="-L${PRI_CALL_REROUTING_DIR}"
- fi
- fi
- pbxfuncname="pri_reroute_enable"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_CALL_REROUTING_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_CALL_REROUTING_FOUND=yes
- else
- AST_PRI_CALL_REROUTING_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_CALL_REROUTING_FOUND}" = "yes"; then
- PRI_CALL_REROUTING_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
- if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
- PRI_CALL_REROUTING_INCLUDE="-I${PRI_CALL_REROUTING_DIR}/include"
- fi
- PRI_CALL_REROUTING_INCLUDE="${PRI_CALL_REROUTING_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_CALL_REROUTING_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_CALL_REROUTING_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_CALL_REROUTING_HEADER_FOUND=1
- else
- PRI_CALL_REROUTING_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_CALL_REROUTING_HEADER_FOUND}" = "x0" ; then
- PRI_CALL_REROUTING_LIB=""
- PRI_CALL_REROUTING_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_CALL_REROUTING_LIB=""
- fi
- PBX_PRI_CALL_REROUTING=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_CALL_REROUTING 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_SETUP_KEYPAD}" != "x1" -a "${USE_PRI_SETUP_KEYPAD}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
- if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
- if test -d ${PRI_SETUP_KEYPAD_DIR}/lib; then
- pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}/lib"
- else
- pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}"
- fi
- fi
- pbxfuncname="pri_sr_set_keypad_digits"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_SETUP_KEYPAD_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_SETUP_KEYPAD_FOUND=yes
- else
- AST_PRI_SETUP_KEYPAD_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_SETUP_KEYPAD_FOUND}" = "yes"; then
- PRI_SETUP_KEYPAD_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
- if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
- PRI_SETUP_KEYPAD_INCLUDE="-I${PRI_SETUP_KEYPAD_DIR}/include"
- fi
- PRI_SETUP_KEYPAD_INCLUDE="${PRI_SETUP_KEYPAD_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_SETUP_KEYPAD_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_KEYPAD_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_SETUP_KEYPAD_HEADER_FOUND=1
- else
- PRI_SETUP_KEYPAD_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_SETUP_KEYPAD_HEADER_FOUND}" = "x0" ; then
- PRI_SETUP_KEYPAD_LIB=""
- PRI_SETUP_KEYPAD_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_SETUP_KEYPAD_LIB=""
- fi
- PBX_PRI_SETUP_KEYPAD=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_SETUP_KEYPAD 1
- _ACEOF
- fi
- fi
- fi
- # ------------------------------------v
- # TODO: The code can be changed to always include these features now.
- # These features will always be present if pri_connected_line_update is available.
- if test "x${PBX_PRI_PROG_W_CAUSE}" != "x1" -a "${USE_PRI_PROG_W_CAUSE}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
- if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
- if test -d ${PRI_PROG_W_CAUSE_DIR}/lib; then
- pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}/lib"
- else
- pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}"
- fi
- fi
- pbxfuncname="pri_progress_with_cause"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_PROG_W_CAUSE_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_PROG_W_CAUSE_FOUND=yes
- else
- AST_PRI_PROG_W_CAUSE_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_PROG_W_CAUSE_FOUND}" = "yes"; then
- PRI_PROG_W_CAUSE_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
- if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
- PRI_PROG_W_CAUSE_INCLUDE="-I${PRI_PROG_W_CAUSE_DIR}/include"
- fi
- PRI_PROG_W_CAUSE_INCLUDE="${PRI_PROG_W_CAUSE_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_PROG_W_CAUSE_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_PROG_W_CAUSE_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_PROG_W_CAUSE_HEADER_FOUND=1
- else
- PRI_PROG_W_CAUSE_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_PROG_W_CAUSE_HEADER_FOUND}" = "x0" ; then
- PRI_PROG_W_CAUSE_LIB=""
- PRI_PROG_W_CAUSE_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_PROG_W_CAUSE_LIB=""
- fi
- PBX_PRI_PROG_W_CAUSE=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_PROG_W_CAUSE 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
- if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
- if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
- pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
- else
- pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
- fi
- fi
- pbxfuncname="pri_set_inbanddisconnect"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_INBANDDISCONNECT_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_INBANDDISCONNECT_FOUND=yes
- else
- AST_PRI_INBANDDISCONNECT_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
- PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
- if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
- PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
- fi
- PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_INBANDDISCONNECT_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_INBANDDISCONNECT_HEADER_FOUND=1
- else
- PRI_INBANDDISCONNECT_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
- PRI_INBANDDISCONNECT_LIB=""
- PRI_INBANDDISCONNECT_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_INBANDDISCONNECT_LIB=""
- fi
- PBX_PRI_INBANDDISCONNECT=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_INBANDDISCONNECT 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_SERVICE_MESSAGES}" != "x1" -a "${USE_PRI_SERVICE_MESSAGES}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
- if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
- if test -d ${PRI_SERVICE_MESSAGES_DIR}/lib; then
- pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}/lib"
- else
- pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}"
- fi
- fi
- pbxfuncname="pri_maintenance_service"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_SERVICE_MESSAGES_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_SERVICE_MESSAGES_FOUND=yes
- else
- AST_PRI_SERVICE_MESSAGES_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_SERVICE_MESSAGES_FOUND}" = "yes"; then
- PRI_SERVICE_MESSAGES_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
- if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
- PRI_SERVICE_MESSAGES_INCLUDE="-I${PRI_SERVICE_MESSAGES_DIR}/include"
- fi
- PRI_SERVICE_MESSAGES_INCLUDE="${PRI_SERVICE_MESSAGES_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_SERVICE_MESSAGES_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_SERVICE_MESSAGES_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_SERVICE_MESSAGES_HEADER_FOUND=1
- else
- PRI_SERVICE_MESSAGES_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_SERVICE_MESSAGES_HEADER_FOUND}" = "x0" ; then
- PRI_SERVICE_MESSAGES_LIB=""
- PRI_SERVICE_MESSAGES_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_SERVICE_MESSAGES_LIB=""
- fi
- PBX_PRI_SERVICE_MESSAGES=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_SERVICE_MESSAGES 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_PRI_REVERSE_CHARGE}" != "x1" -a "${USE_PRI_REVERSE_CHARGE}" != "no"; then
- pbxlibdir=""
- # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
- if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
- if test -d ${PRI_REVERSE_CHARGE_DIR}/lib; then
- pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}/lib"
- else
- pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}"
- fi
- fi
- pbxfuncname="pri_sr_set_reversecharge"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_PRI_REVERSE_CHARGE_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lpri ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_PRI_REVERSE_CHARGE_FOUND=yes
- else
- AST_PRI_REVERSE_CHARGE_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_PRI_REVERSE_CHARGE_FOUND}" = "yes"; then
- PRI_REVERSE_CHARGE_LIB="${pbxlibdir} -lpri "
- # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
- if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
- PRI_REVERSE_CHARGE_INCLUDE="-I${PRI_REVERSE_CHARGE_DIR}/include"
- fi
- PRI_REVERSE_CHARGE_INCLUDE="${PRI_REVERSE_CHARGE_INCLUDE} "
- if test "xlibpri.h" = "x" ; then # no header, assume found
- PRI_REVERSE_CHARGE_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${PRI_REVERSE_CHARGE_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
- if test "x$ac_cv_header_libpri_h" = xyes; then :
- PRI_REVERSE_CHARGE_HEADER_FOUND=1
- else
- PRI_REVERSE_CHARGE_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${PRI_REVERSE_CHARGE_HEADER_FOUND}" = "x0" ; then
- PRI_REVERSE_CHARGE_LIB=""
- PRI_REVERSE_CHARGE_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- PRI_REVERSE_CHARGE_LIB=""
- fi
- PBX_PRI_REVERSE_CHARGE=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_PRI_REVERSE_CHARGE 1
- _ACEOF
- fi
- fi
- fi
- # ------------------------------------^
- if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
- pbxlibdir=""
- # if --with-RESAMPLE=DIR has been specified, use it.
- if test "x${RESAMPLE_DIR}" != "x"; then
- if test -d ${RESAMPLE_DIR}/lib; then
- pbxlibdir="-L${RESAMPLE_DIR}/lib"
- else
- pbxlibdir="-L${RESAMPLE_DIR}"
- fi
- fi
- pbxfuncname="resample_open"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_RESAMPLE_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_resample_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lresample" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lresample... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lresample ${pbxlibdir} -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_RESAMPLE_FOUND=yes
- else
- AST_RESAMPLE_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_RESAMPLE_FOUND}" = "yes"; then
- RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
- # if --with-RESAMPLE=DIR has been specified, use it.
- if test "x${RESAMPLE_DIR}" != "x"; then
- RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
- fi
- RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
- if test "xlibresample.h" = "x" ; then # no header, assume found
- RESAMPLE_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libresample.h" "ac_cv_header_libresample_h" "$ac_includes_default"
- if test "x$ac_cv_header_libresample_h" = xyes; then :
- RESAMPLE_HEADER_FOUND=1
- else
- RESAMPLE_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
- RESAMPLE_LIB=""
- RESAMPLE_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- RESAMPLE_LIB=""
- fi
- PBX_RESAMPLE=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_RESAMPLE 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
- if test "xminimum version of SpanDSP" != "x"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum version of SpanDSP" >&5
- $as_echo_n "checking for minimum version of SpanDSP... " >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"
- #if SPANDSP_RELEASE_DATE < 20080516
- #error \"spandsp 0.0.5 or greater is required\"
- #endif
- \" compiles using spandsp/version.h" >&5
- $as_echo_n "checking if \"
- #if SPANDSP_RELEASE_DATE < 20080516
- #error \"spandsp 0.0.5 or greater is required\"
- #endif
- \" compiles using spandsp/version.h... " >&6; }
- fi
- saved_cppflags="${CPPFLAGS}"
- if test "x${SPANDSP_DIR}" != "x"; then
- SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <spandsp/version.h>
- int
- main ()
- {
- #if SPANDSP_RELEASE_DATE < 20080516
- #error "spandsp 0.0.5 or greater is required"
- #endif
- ;
- ;
- 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; }
- PBX_SPANDSP=1
- $as_echo "#define HAVE_SPANDSP 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SPANDSP}" = "x1" ; then
- # We found the correct version in the header, now let's make sure it links
- # properly, and that libtiff is available
- PBX_SPANDSP=0
- if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
- pbxlibdir=""
- # if --with-SPANDSP=DIR has been specified, use it.
- if test "x${SPANDSP_DIR}" != "x"; then
- if test -d ${SPANDSP_DIR}/lib; then
- pbxlibdir="-L${SPANDSP_DIR}/lib"
- else
- pbxlibdir="-L${SPANDSP_DIR}"
- fi
- fi
- pbxfuncname="span_set_message_handler"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SPANDSP_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspandsp" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lspandsp ${pbxlibdir} -ltiff $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_SPANDSP_FOUND=yes
- else
- AST_SPANDSP_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_SPANDSP_FOUND}" = "yes"; then
- SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
- # if --with-SPANDSP=DIR has been specified, use it.
- if test "x${SPANDSP_DIR}" != "x"; then
- SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
- fi
- SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
- if test "xspandsp.h" = "x" ; then # no header, assume found
- SPANDSP_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
- if test "x$ac_cv_header_spandsp_h" = xyes; then :
- SPANDSP_HEADER_FOUND=1
- else
- SPANDSP_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
- SPANDSP_LIB=""
- SPANDSP_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- SPANDSP_LIB=""
- fi
- PBX_SPANDSP=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SPANDSP 1
- _ACEOF
- fi
- fi
- fi
- fi
- if test "x${PBX_SPANDSP}" = "x1" ; then
- # We also need t38_terminal_init()
- PBX_SPANDSP=0
- if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
- pbxlibdir=""
- # if --with-SPANDSP=DIR has been specified, use it.
- if test "x${SPANDSP_DIR}" != "x"; then
- if test -d ${SPANDSP_DIR}/lib; then
- pbxlibdir="-L${SPANDSP_DIR}/lib"
- else
- pbxlibdir="-L${SPANDSP_DIR}"
- fi
- fi
- pbxfuncname="t38_terminal_init"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SPANDSP_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspandsp" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lspandsp ${pbxlibdir} -ltiff $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_SPANDSP_FOUND=yes
- else
- AST_SPANDSP_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_SPANDSP_FOUND}" = "yes"; then
- SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
- # if --with-SPANDSP=DIR has been specified, use it.
- if test "x${SPANDSP_DIR}" != "x"; then
- SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
- fi
- SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
- if test "xspandsp.h" = "x" ; then # no header, assume found
- SPANDSP_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
- if test "x$ac_cv_header_spandsp_h" = xyes; then :
- SPANDSP_HEADER_FOUND=1
- else
- SPANDSP_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
- SPANDSP_LIB=""
- SPANDSP_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- SPANDSP_LIB=""
- fi
- PBX_SPANDSP=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SPANDSP 1
- _ACEOF
- fi
- fi
- fi
- fi
- # Check for libss7 v2.0 branch compatible version.
- if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
- pbxlibdir=""
- # if --with-SS7=DIR has been specified, use it.
- if test "x${SS7_DIR}" != "x"; then
- if test -d ${SS7_DIR}/lib; then
- pbxlibdir="-L${SS7_DIR}/lib"
- else
- pbxlibdir="-L${SS7_DIR}"
- fi
- fi
- pbxfuncname="ss7_set_isup_timer"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SS7_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lss7" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lss7... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lss7 ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_SS7_FOUND=yes
- else
- AST_SS7_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_SS7_FOUND}" = "yes"; then
- SS7_LIB="${pbxlibdir} -lss7 "
- # if --with-SS7=DIR has been specified, use it.
- if test "x${SS7_DIR}" != "x"; then
- SS7_INCLUDE="-I${SS7_DIR}/include"
- fi
- SS7_INCLUDE="${SS7_INCLUDE} "
- if test "xlibss7.h" = "x" ; then # no header, assume found
- SS7_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "libss7.h" "ac_cv_header_libss7_h" "$ac_includes_default"
- if test "x$ac_cv_header_libss7_h" = xyes; then :
- SS7_HEADER_FOUND=1
- else
- SS7_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${SS7_HEADER_FOUND}" = "x0" ; then
- SS7_LIB=""
- SS7_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- SS7_LIB=""
- fi
- PBX_SS7=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SS7 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_OPENR2}" != "x1" -a "${USE_OPENR2}" != "no"; then
- pbxlibdir=""
- # if --with-OPENR2=DIR has been specified, use it.
- if test "x${OPENR2_DIR}" != "x"; then
- if test -d ${OPENR2_DIR}/lib; then
- pbxlibdir="-L${OPENR2_DIR}/lib"
- else
- pbxlibdir="-L${OPENR2_DIR}"
- fi
- fi
- pbxfuncname="openr2_chan_new"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_OPENR2_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_openr2_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lopenr2" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lopenr2... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lopenr2 ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_OPENR2_FOUND=yes
- else
- AST_OPENR2_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_OPENR2_FOUND}" = "yes"; then
- OPENR2_LIB="${pbxlibdir} -lopenr2 "
- # if --with-OPENR2=DIR has been specified, use it.
- if test "x${OPENR2_DIR}" != "x"; then
- OPENR2_INCLUDE="-I${OPENR2_DIR}/include"
- fi
- OPENR2_INCLUDE="${OPENR2_INCLUDE} "
- if test "xopenr2.h" = "x" ; then # no header, assume found
- OPENR2_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${OPENR2_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "openr2.h" "ac_cv_header_openr2_h" "$ac_includes_default"
- if test "x$ac_cv_header_openr2_h" = xyes; then :
- OPENR2_HEADER_FOUND=1
- else
- OPENR2_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${OPENR2_HEADER_FOUND}" = "x0" ; then
- OPENR2_LIB=""
- OPENR2_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- OPENR2_LIB=""
- fi
- PBX_OPENR2=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OPENR2 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_OPUS}" != "x1" -a "${USE_OPUS}" != "no"; then
- pbxlibdir=""
- # if --with-OPUS=DIR has been specified, use it.
- if test "x${OPUS_DIR}" != "x"; then
- if test -d ${OPUS_DIR}/lib; then
- pbxlibdir="-L${OPUS_DIR}/lib"
- else
- pbxlibdir="-L${OPUS_DIR}"
- fi
- fi
- pbxfuncname="opus_encoder_create"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_OPUS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_opus_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lopus" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lopus... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lopus ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_OPUS_FOUND=yes
- else
- AST_OPUS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_OPUS_FOUND}" = "yes"; then
- OPUS_LIB="${pbxlibdir} -lopus "
- # if --with-OPUS=DIR has been specified, use it.
- if test "x${OPUS_DIR}" != "x"; then
- OPUS_INCLUDE="-I${OPUS_DIR}/include"
- fi
- OPUS_INCLUDE="${OPUS_INCLUDE} "
- if test "xopus/opus.h" = "x" ; then # no header, assume found
- OPUS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${OPUS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "opus/opus.h" "ac_cv_header_opus_opus_h" "$ac_includes_default"
- if test "x$ac_cv_header_opus_opus_h" = xyes; then :
- OPUS_HEADER_FOUND=1
- else
- OPUS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${OPUS_HEADER_FOUND}" = "x0" ; then
- OPUS_LIB=""
- OPUS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- OPUS_LIB=""
- fi
- PBX_OPUS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OPUS 1
- _ACEOF
- fi
- fi
- fi
- if test "${USE_PWLIB}" != "no"; then
- if test -n "${PWLIB_DIR}"; then
- PWLIBDIR="${PWLIB_DIR}"
- fi
- PWLIB_INCDIR=
- PWLIB_LIBDIR=
- 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 "${PWLIBDIR:-unset}" != "unset" ; then
- as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
- ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/version.h" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- HAS_PWLIB=1
- fi
- fi
- if test "${HAS_PWLIB:-unset}" = "unset" ; then
- if test "${OPENH323DIR:-unset}" != "unset"; then
- as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
- ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/../pwlib/version.h" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- HAS_PWLIB=1
- fi
- fi
- if test "${HAS_PWLIB:-unset}" != "unset" ; then
- PWLIBDIR="${OPENH323DIR}/../pwlib"
- else
- as_ac_Header=`$as_echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
- ac_fn_cxx_check_header_mongrel "$LINENO" "${HOME}/pwlib/include/ptlib.h" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- HAS_PWLIB=1
- fi
- if test "${HAS_PWLIB:-unset}" != "unset" ; then
- PWLIBDIR="${HOME}/pwlib"
- else
- ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/local/include/ptlib.h" "ac_cv_header__usr_local_include_ptlib_h" "$ac_includes_default"
- if test "x$ac_cv_header__usr_local_include_ptlib_h" = xyes; then :
- HAS_PWLIB=1
- fi
- if test "${HAS_PWLIB:-unset}" != "unset" ; then
- # Extract the first word of "ptlib-config", so it can be a program name with args.
- set dummy ptlib-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_PTLIB_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PTLIB_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in /usr/local/bin$PATH_SEPARATOR/usr/local/share/pwlib/make
- 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_PTLIB_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
- PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
- if test -n "$PTLIB_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
- $as_echo "$PTLIB_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- PWLIB_INCDIR="/usr/local/include"
- PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
- if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
- PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
- fi
- if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
- if test "x$LIB64" != "x"; then
- PWLIB_LIBDIR="/usr/local/lib64"
- else
- PWLIB_LIBDIR="/usr/local/lib"
- fi
- fi
- PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
- PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
- else
- ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/include/ptlib.h" "ac_cv_header__usr_include_ptlib_h" "$ac_includes_default"
- if test "x$ac_cv_header__usr_include_ptlib_h" = xyes; then :
- HAS_PWLIB=1
- fi
- if test "${HAS_PWLIB:-unset}" != "unset" ; then
- # Extract the first word of "ptlib-config", so it can be a program name with args.
- set dummy ptlib-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_PTLIB_CONFIG+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $PTLIB_CONFIG in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- for as_dir in /usr/bin$PATH_SEPARATOR/usr/share/pwlib/make
- 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_PTLIB_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
- PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
- if test -n "$PTLIB_CONFIG"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
- $as_echo "$PTLIB_CONFIG" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- PWLIB_INCDIR="/usr/include"
- PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
- if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
- PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
- fi
- if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
- if test "x$LIB64" != "x"; then
- PWLIB_LIBDIR="/usr/lib64"
- else
- PWLIB_LIBDIR="/usr/lib"
- fi
- fi
- PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
- PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
- fi
- fi
- fi
- fi
- fi
- #if test "${HAS_PWLIB:-unset}" = "unset" ; then
- # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
- # exit
- #fi
- if test "${HAS_PWLIB:-unset}" != "unset" ; then
- if test "${PWLIBDIR:-unset}" = "unset" ; then
- if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
- PWLIBDIR=`$PTLIB_CONFIG --prefix`
- else
- echo "Cannot find ptlib-config - please install and try again"
- exit
- fi
- fi
- if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
- PWLIBDIR="/usr/share/pwlib"
- PWLIB_INCDIR="/usr/include"
- if test "x$LIB64" != "x"; then
- PWLIB_LIBDIR="/usr/lib64"
- else
- PWLIB_LIBDIR="/usr/lib"
- fi
- fi
- if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
- PWLIBDIR="/usr/local/share/pwlib"
- PWLIB_INCDIR="/usr/local/include"
- if test "x$LIB64" != "x"; then
- PWLIB_LIBDIR="/usr/local/lib64"
- else
- PWLIB_LIBDIR="/usr/local/lib"
- fi
- fi
- if test "${PWLIB_INCDIR:-unset}" = "unset"; then
- PWLIB_INCDIR="${PWLIBDIR}/include"
- fi
- if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
- PWLIB_LIBDIR="${PWLIBDIR}/lib"
- 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
- if test "xP[WT]LIB_VERSION" != "x"; then
- VNAME="P[WT]LIB_VERSION"
- else
- VNAME="PWLIB_VERSION"
- fi
- if test "${HAS_PWLIB:-unset}" != "unset"; then
- PWLIB_VERSION=`grep "$VNAME \"" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
- PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
- PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
- PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
- PWLIB_VER=$((${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}))
- PWLIB_REQ=$((1*10000+9*100+2))
- if test "x" = "x"; then
- PWLIB_MAX=9999999
- else
- PWLIB_MAX=$((*10000+*100+))
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
- $as_echo_n "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... " >&6; }
- if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- unset HAS_PWLIB
- else
- if test ${PWLIB_VER} -gt ${PWLIB_MAX}; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- unset HAS_PWLIB
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- fi
- fi
- if test "${HAS_PWLIB:-unset}" != "unset"; then
- PWLIB_OSTYPE=
- case "$host_os" in
- linux*) PWLIB_OSTYPE=linux ;
- ;;
- freebsd* ) PWLIB_OSTYPE=FreeBSD ;
- ;;
- openbsd* ) PWLIB_OSTYPE=OpenBSD ;
- ENDLDLIBS="-lossaudio" ;
- ;;
- netbsd* ) PWLIB_OSTYPE=NetBSD ;
- ENDLDLIBS="-lossaudio" ;
- ;;
- solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
- ;;
- darwin* ) PWLIB_OSTYPE=Darwin ;
- ;;
- beos*) PWLIB_OSTYPE=beos ;
- STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
- ;;
- cygwin*) PWLIB_OSTYPE=cygwin ;
- ;;
- mingw*) PWLIB_OSTYPE=mingw ;
- STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
- ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
- ;;
- * ) PWLIB_OSTYPE="$host_os" ;
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
- $as_echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
- ;;
- esac
- PWLIB_MACHTYPE=
- case "$host_cpu" in
- x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
- ;;
- x86_64) PWLIB_MACHTYPE=x86_64 ;
- P_64BIT=1 ;
- LIB64=1 ;
- ;;
- alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
- P_64BIT=1 ;
- ;;
- sparc ) PWLIB_MACHTYPE=sparc ;
- ;;
- powerpc ) PWLIB_MACHTYPE=ppc ;
- ;;
- ppc ) PWLIB_MACHTYPE=ppc ;
- ;;
- powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
- P_64BIT=1 ;
- LIB64=1 ;
- ;;
- ppc64 ) PWLIB_MACHTYPE=ppc64 ;
- P_64BIT=1 ;
- LIB64=1 ;
- ;;
- ia64) PWLIB_MACHTYPE=ia64 ;
- P_64BIT=1 ;
- ;;
- s390x) PWLIB_MACHTYPE=s390x ;
- P_64BIT=1 ;
- LIB64=1 ;
- ;;
- s390) PWLIB_MACHTYPE=s390 ;
- ;;
- * ) PWLIB_MACHTYPE="$host_cpu";
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
- $as_echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
- esac
- PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
- PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
- if test "${HAS_PWLIB:-unset}" != "unset"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking PWLib installation validity" >&5
- $as_echo_n "checking PWLib installation validity... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- saved_libs="${LIBS}"
- if test "${PWLIB_LIB:-unset}" != "unset"; then
- LIBS="${LIBS} ${PWLIB_LIB} "
- else
- LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
- fi
- CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
- 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
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "ptlib.h"
- int
- main ()
- {
- int q = (int) PTime::IsDaylightSavings();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- ac_cv_lib_PWLIB="yes"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- ac_cv_lib_PWLIB="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
- LIBS="${saved_libs}"
- CPPFLAGS="${saved_cppflags}"
- if test "${ac_cv_lib_PWLIB}" = "yes"; then
- if test "${PWLIB_LIB:-undef}" = "undef"; then
- if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
- PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
- else
- PWLIB_LIB="-l${PLATFORM_PWLIB}"
- fi
- fi
- if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
- PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
- fi
- PBX_PWLIB=1
- $as_echo "#define HAVE_PWLIB 1" >>confdefs.h
- fi
- fi
- fi
- fi
- if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
- if test -n "${OPENH323_DIR}"; then
- OPENH323DIR="${OPENH323_DIR}"
- fi
- OPENH323_INCDIR=
- OPENH323_LIBDIR=
- 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 "${OPENH323DIR:-unset}" != "unset" ; then
- as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
- ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/version.h" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- HAS_OPENH323=1
- fi
- fi
- if test "${HAS_OPENH323:-unset}" = "unset" ; then
- as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
- ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/../openh323/version.h" "$as_ac_Header" "$ac_includes_default"
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
- fi
- if test "${HAS_OPENH323:-unset}" != "unset" ; then
- OPENH323DIR="${PWLIBDIR}/../openh323"
- saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
- as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
- ac_fn_cxx_check_header_compile "$LINENO" "${OPENH323DIR}/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
- "
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- else
- OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
- fi
- CPPFLAGS="${saved_cppflags}"
- else
- saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
- as_ac_Header=`$as_echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
- ac_fn_cxx_check_header_compile "$LINENO" "${HOME}/openh323/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
- "
- if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
- HAS_OPENH323=1
- fi
- CPPFLAGS="${saved_cppflags}"
- if test "${HAS_OPENH323:-unset}" != "unset" ; then
- OPENH323DIR="${HOME}/openh323"
- else
- saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
- ac_fn_cxx_check_header_compile "$LINENO" "/usr/local/include/openh323/h323.h" "ac_cv_header__usr_local_include_openh323_h323_h" "#include <ptlib.h>
- "
- if test "x$ac_cv_header__usr_local_include_openh323_h323_h" = xyes; then :
- HAS_OPENH323=1
- fi
- CPPFLAGS="${saved_cppflags}"
- if test "${HAS_OPENH323:-unset}" != "unset" ; then
- OPENH323DIR="/usr/local/share/openh323"
- OPENH323_INCDIR="/usr/local/include/openh323"
- if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
- OPENH323_LIBDIR="/usr/local/lib64"
- else
- OPENH323_LIBDIR="/usr/local/lib"
- fi
- else
- saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
- ac_fn_cxx_check_header_compile "$LINENO" "/usr/include/openh323/h323.h" "ac_cv_header__usr_include_openh323_h323_h" "#include <ptlib.h>
- "
- if test "x$ac_cv_header__usr_include_openh323_h323_h" = xyes; then :
- HAS_OPENH323=1
- fi
- CPPFLAGS="${saved_cppflags}"
- if test "${HAS_OPENH323:-unset}" != "unset" ; then
- OPENH323DIR="/usr/share/openh323"
- OPENH323_INCDIR="/usr/include/openh323"
- if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
- OPENH323_LIBDIR="/usr/lib64"
- else
- OPENH323_LIBDIR="/usr/lib"
- fi
- fi
- fi
- fi
- fi
- fi
- if test "${HAS_OPENH323:-unset}" != "unset" ; then
- if test "${OPENH323_INCDIR:-unset}" = "unset"; then
- OPENH323_INCDIR="${OPENH323DIR}/include"
- fi
- if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
- OPENH323_LIBDIR="${OPENH323DIR}/lib"
- fi
- OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
- OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
- OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
- 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
- if test "x" != "x"; then
- VNAME=""
- else
- VNAME="OPENH323_VERSION"
- fi
- if test "${HAS_OPENH323:-unset}" != "unset"; then
- OPENH323_VERSION=`grep "$VNAME \"" ${OPENH323_INCDIR}/openh323buildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
- OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
- OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
- OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
- OPENH323_VER=$((${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}))
- OPENH323_REQ=$((1*10000+17*100+3))
- if test "x0" = "x"; then
- OPENH323_MAX=9999999
- else
- OPENH323_MAX=$((1*10000+19*100+0))
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
- $as_echo_n "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... " >&6; }
- if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- unset HAS_OPENH323
- else
- if test ${OPENH323_VER} -gt ${OPENH323_MAX}; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- unset HAS_OPENH323
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- fi
- fi
- fi
- if test "${HAS_OPENH323:-unset}" != "unset"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 build option" >&5
- $as_echo_n "checking OpenH323 build option... " >&6; }
- OPENH323_SUFFIX=
- prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
- for pfx in $prefixes; do
- #files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
- files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
- if test -z "$files"; then
- # check the default location
- files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
- fi
- libfile=
- if test -n "$files"; then
- for f in $files; do
- if test -f $f -a ! -L $f; then
- libfile=`basename $f`
- break;
- fi
- done
- fi
- if test -n "$libfile"; then
- OPENH323_PREFIX=$pfx
- break;
- fi
- done
- if test "${libfile:-unset}" != "unset"; then
- OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
- fi
- case "${OPENH323_SUFFIX}" in
- n)
- OPENH323_BUILD="notrace";;
- r)
- OPENH323_BUILD="opt";;
- d)
- OPENH323_BUILD="debug";;
- *)
- if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
- notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
- if test "x$notrace" = "x"; then
- notrace="0"
- fi
- if test "$notrace" -ne 0; then
- OPENH323_BUILD="notrace"
- else
- OPENH323_BUILD="opt"
- fi
- OPENH323_LIB="-l${OPENH323_PREFIX}"
- else
- OPENH323_BUILD="notrace"
- fi
- ;;
- esac
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OPENH323_BUILD}" >&5
- $as_echo "${OPENH323_BUILD}" >&6; }
- fi
- PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
- if test "${HAS_OPENH323:-unset}" != "unset"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 installation validity" >&5
- $as_echo_n "checking OpenH323 installation validity... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- saved_libs="${LIBS}"
- if test "${OPENH323_LIB:-unset}" != "unset"; then
- LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
- else
- LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
- fi
- CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
- 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
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include "ptlib.h"
- #include "h323.h"
- #include "h323ep.h"
- int
- main ()
- {
- H323EndPoint ep = H323EndPoint();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- ac_cv_lib_OPENH323="yes"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- ac_cv_lib_OPENH323="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
- LIBS="${saved_libs}"
- CPPFLAGS="${saved_cppflags}"
- if test "${ac_cv_lib_OPENH323}" = "yes"; then
- if test "${OPENH323_LIB:-undef}" = "undef"; then
- if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
- OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
- else
- OPENH323_LIB="-l${PLATFORM_OPENH323}"
- fi
- fi
- if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
- OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
- fi
- PBX_OPENH323=1
- $as_echo "#define HAVE_OPENH323 1" >>confdefs.h
- fi
- fi
- fi
- if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
- pbxlibdir=""
- # if --with-LUA=DIR has been specified, use it.
- if test "x${LUA_DIR}" != "x"; then
- if test -d ${LUA_DIR}/lib; then
- pbxlibdir="-L${LUA_DIR}/lib"
- else
- pbxlibdir="-L${LUA_DIR}"
- fi
- fi
- pbxfuncname="luaL_newstate"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_LUA_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_lua5.2_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua5.2" >&5
- $as_echo_n "checking for ${pbxfuncname} in -llua5.2... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua5.2 ${pbxlibdir} -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_LUA_FOUND=yes
- else
- AST_LUA_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_LUA_FOUND}" = "yes"; then
- LUA_LIB="${pbxlibdir} -llua5.2 -lm"
- # if --with-LUA=DIR has been specified, use it.
- if test "x${LUA_DIR}" != "x"; then
- LUA_INCLUDE="-I${LUA_DIR}/include"
- fi
- LUA_INCLUDE="${LUA_INCLUDE} "
- if test "xlua5.2/lua.h" = "x" ; then # no header, assume found
- LUA_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "lua5.2/lua.h" "ac_cv_header_lua5_2_lua_h" "$ac_includes_default"
- if test "x$ac_cv_header_lua5_2_lua_h" = xyes; then :
- LUA_HEADER_FOUND=1
- else
- LUA_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${LUA_HEADER_FOUND}" = "x0" ; then
- LUA_LIB=""
- LUA_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- LUA_LIB=""
- fi
- PBX_LUA=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LUA 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_LUA}" = "x1" ; then
- if test x"${LUA_DIR}" = x; then
- LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.2"
- else
- LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.2"
- fi
- fi
- if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
- pbxlibdir=""
- # if --with-LUA=DIR has been specified, use it.
- if test "x${LUA_DIR}" != "x"; then
- if test -d ${LUA_DIR}/lib; then
- pbxlibdir="-L${LUA_DIR}/lib"
- else
- pbxlibdir="-L${LUA_DIR}"
- fi
- fi
- pbxfuncname="luaL_newstate"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_LUA_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua5.1" >&5
- $as_echo_n "checking for ${pbxfuncname} in -llua5.1... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua5.1 ${pbxlibdir} -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_LUA_FOUND=yes
- else
- AST_LUA_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_LUA_FOUND}" = "yes"; then
- LUA_LIB="${pbxlibdir} -llua5.1 -lm"
- # if --with-LUA=DIR has been specified, use it.
- if test "x${LUA_DIR}" != "x"; then
- LUA_INCLUDE="-I${LUA_DIR}/include"
- fi
- LUA_INCLUDE="${LUA_INCLUDE} "
- if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
- LUA_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "lua5.1/lua.h" "ac_cv_header_lua5_1_lua_h" "$ac_includes_default"
- if test "x$ac_cv_header_lua5_1_lua_h" = xyes; then :
- LUA_HEADER_FOUND=1
- else
- LUA_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${LUA_HEADER_FOUND}" = "x0" ; then
- LUA_LIB=""
- LUA_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- LUA_LIB=""
- fi
- PBX_LUA=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LUA 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_LUA}" = "x1" ; then
- if test x"${LUA_DIR}" = x; then
- LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.1"
- else
- LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.1"
- fi
- fi
- # Some distributions (like SuSE) remove the 5.1 suffix.
- if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
- pbxlibdir=""
- # if --with-LUA=DIR has been specified, use it.
- if test "x${LUA_DIR}" != "x"; then
- if test -d ${LUA_DIR}/lib; then
- pbxlibdir="-L${LUA_DIR}/lib"
- else
- pbxlibdir="-L${LUA_DIR}"
- fi
- fi
- pbxfuncname="luaL_openlib"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_LUA_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_lua_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua" >&5
- $as_echo_n "checking for ${pbxfuncname} in -llua... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-llua ${pbxlibdir} -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_LUA_FOUND=yes
- else
- AST_LUA_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_LUA_FOUND}" = "yes"; then
- LUA_LIB="${pbxlibdir} -llua -lm"
- # if --with-LUA=DIR has been specified, use it.
- if test "x${LUA_DIR}" != "x"; then
- LUA_INCLUDE="-I${LUA_DIR}/include"
- fi
- LUA_INCLUDE="${LUA_INCLUDE} "
- if test "xlua.h" = "x" ; then # no header, assume found
- LUA_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
- if test "x$ac_cv_header_lua_h" = xyes; then :
- LUA_HEADER_FOUND=1
- else
- LUA_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${LUA_HEADER_FOUND}" = "x0" ; then
- LUA_LIB=""
- LUA_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- LUA_LIB=""
- fi
- PBX_LUA=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LUA 1
- _ACEOF
- fi
- fi
- fi
- # Accept either RADIUS client library, their APIs are fully compatible,
- # just different header filenames and different SONAMEs
- if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
- pbxlibdir=""
- # if --with-RADIUS=DIR has been specified, use it.
- if test "x${RADIUS_DIR}" != "x"; then
- if test -d ${RADIUS_DIR}/lib; then
- pbxlibdir="-L${RADIUS_DIR}/lib"
- else
- pbxlibdir="-L${RADIUS_DIR}"
- fi
- fi
- pbxfuncname="rc_read_config"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_RADIUS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_freeradius-client_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lfreeradius-client" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lfreeradius-client... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lfreeradius-client ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_RADIUS_FOUND=yes
- else
- AST_RADIUS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_RADIUS_FOUND}" = "yes"; then
- RADIUS_LIB="${pbxlibdir} -lfreeradius-client "
- # if --with-RADIUS=DIR has been specified, use it.
- if test "x${RADIUS_DIR}" != "x"; then
- RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
- fi
- RADIUS_INCLUDE="${RADIUS_INCLUDE} "
- if test "xfreeradius-client.h" = "x" ; then # no header, assume found
- RADIUS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "freeradius-client.h" "ac_cv_header_freeradius_client_h" "$ac_includes_default"
- if test "x$ac_cv_header_freeradius_client_h" = xyes; then :
- RADIUS_HEADER_FOUND=1
- else
- RADIUS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
- RADIUS_LIB=""
- RADIUS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- RADIUS_LIB=""
- fi
- PBX_RADIUS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_RADIUS 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_RADIUS}" = "x1"; then
- $as_echo "#define FREERADIUS_CLIENT /**/" >>confdefs.h
- else
- if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
- pbxlibdir=""
- # if --with-RADIUS=DIR has been specified, use it.
- if test "x${RADIUS_DIR}" != "x"; then
- if test -d ${RADIUS_DIR}/lib; then
- pbxlibdir="-L${RADIUS_DIR}/lib"
- else
- pbxlibdir="-L${RADIUS_DIR}"
- fi
- fi
- pbxfuncname="rc_read_config"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_RADIUS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lradiusclient-ng... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lradiusclient-ng ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_RADIUS_FOUND=yes
- else
- AST_RADIUS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_RADIUS_FOUND}" = "yes"; then
- RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
- # if --with-RADIUS=DIR has been specified, use it.
- if test "x${RADIUS_DIR}" != "x"; then
- RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
- fi
- RADIUS_INCLUDE="${RADIUS_INCLUDE} "
- if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
- RADIUS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "radiusclient-ng.h" "ac_cv_header_radiusclient_ng_h" "$ac_includes_default"
- if test "x$ac_cv_header_radiusclient_ng_h" = xyes; then :
- RADIUS_HEADER_FOUND=1
- else
- RADIUS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
- RADIUS_LIB=""
- RADIUS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- RADIUS_LIB=""
- fi
- PBX_RADIUS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_RADIUS 1
- _ACEOF
- fi
- fi
- fi
- fi
- if test "x${PBX_COROSYNC}" != "x1" -a "${USE_COROSYNC}" != "no"; then
- pbxlibdir=""
- # if --with-COROSYNC=DIR has been specified, use it.
- if test "x${COROSYNC_DIR}" != "x"; then
- if test -d ${COROSYNC_DIR}/lib; then
- pbxlibdir="-L${COROSYNC_DIR}/lib"
- else
- pbxlibdir="-L${COROSYNC_DIR}"
- fi
- fi
- pbxfuncname="cpg_join"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_COROSYNC_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_cpg_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcpg" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lcpg... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcpg ${pbxlibdir} -lcfg $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_COROSYNC_FOUND=yes
- else
- AST_COROSYNC_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_COROSYNC_FOUND}" = "yes"; then
- COROSYNC_LIB="${pbxlibdir} -lcpg -lcfg"
- # if --with-COROSYNC=DIR has been specified, use it.
- if test "x${COROSYNC_DIR}" != "x"; then
- COROSYNC_INCLUDE="-I${COROSYNC_DIR}/include"
- fi
- COROSYNC_INCLUDE="${COROSYNC_INCLUDE} "
- if test "xcorosync/cpg.h" = "x" ; then # no header, assume found
- COROSYNC_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${COROSYNC_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "corosync/cpg.h" "ac_cv_header_corosync_cpg_h" "$ac_includes_default"
- if test "x$ac_cv_header_corosync_cpg_h" = xyes; then :
- COROSYNC_HEADER_FOUND=1
- else
- COROSYNC_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${COROSYNC_HEADER_FOUND}" = "x0" ; then
- COROSYNC_LIB=""
- COROSYNC_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- COROSYNC_LIB=""
- fi
- PBX_COROSYNC=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_COROSYNC 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_COROSYNC_CFG_STATE_TRACK}" != "x1" -a "${USE_COROSYNC_CFG_STATE_TRACK}" != "no"; then
- pbxlibdir=""
- # if --with-COROSYNC_CFG_STATE_TRACK=DIR has been specified, use it.
- if test "x${COROSYNC_CFG_STATE_TRACK_DIR}" != "x"; then
- if test -d ${COROSYNC_CFG_STATE_TRACK_DIR}/lib; then
- pbxlibdir="-L${COROSYNC_CFG_STATE_TRACK_DIR}/lib"
- else
- pbxlibdir="-L${COROSYNC_CFG_STATE_TRACK_DIR}"
- fi
- fi
- pbxfuncname="corosync_cfg_state_track"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_COROSYNC_CFG_STATE_TRACK_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_cfg_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcfg" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lcfg... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcfg ${pbxlibdir} -lcfg $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_COROSYNC_CFG_STATE_TRACK_FOUND=yes
- else
- AST_COROSYNC_CFG_STATE_TRACK_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_COROSYNC_CFG_STATE_TRACK_FOUND}" = "yes"; then
- COROSYNC_CFG_STATE_TRACK_LIB="${pbxlibdir} -lcfg -lcfg"
- # if --with-COROSYNC_CFG_STATE_TRACK=DIR has been specified, use it.
- if test "x${COROSYNC_CFG_STATE_TRACK_DIR}" != "x"; then
- COROSYNC_CFG_STATE_TRACK_INCLUDE="-I${COROSYNC_CFG_STATE_TRACK_DIR}/include"
- fi
- COROSYNC_CFG_STATE_TRACK_INCLUDE="${COROSYNC_CFG_STATE_TRACK_INCLUDE} "
- if test "xcorosync/cfg.h" = "x" ; then # no header, assume found
- COROSYNC_CFG_STATE_TRACK_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${COROSYNC_CFG_STATE_TRACK_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "corosync/cfg.h" "ac_cv_header_corosync_cfg_h" "$ac_includes_default"
- if test "x$ac_cv_header_corosync_cfg_h" = xyes; then :
- COROSYNC_CFG_STATE_TRACK_HEADER_FOUND=1
- else
- COROSYNC_CFG_STATE_TRACK_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${COROSYNC_CFG_STATE_TRACK_HEADER_FOUND}" = "x0" ; then
- COROSYNC_CFG_STATE_TRACK_LIB=""
- COROSYNC_CFG_STATE_TRACK_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- COROSYNC_CFG_STATE_TRACK_LIB=""
- fi
- PBX_COROSYNC_CFG_STATE_TRACK=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_COROSYNC_CFG_STATE_TRACK 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
- pbxlibdir=""
- # if --with-SPEEX=DIR has been specified, use it.
- if test "x${SPEEX_DIR}" != "x"; then
- if test -d ${SPEEX_DIR}/lib; then
- pbxlibdir="-L${SPEEX_DIR}/lib"
- else
- pbxlibdir="-L${SPEEX_DIR}"
- fi
- fi
- pbxfuncname="speex_encode"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SPEEX_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeex" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lspeex ${pbxlibdir} -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_SPEEX_FOUND=yes
- else
- AST_SPEEX_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_SPEEX_FOUND}" = "yes"; then
- SPEEX_LIB="${pbxlibdir} -lspeex -lm"
- # if --with-SPEEX=DIR has been specified, use it.
- if test "x${SPEEX_DIR}" != "x"; then
- SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
- fi
- SPEEX_INCLUDE="${SPEEX_INCLUDE} "
- if test "xspeex/speex.h" = "x" ; then # no header, assume found
- SPEEX_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
- if test "x$ac_cv_header_speex_speex_h" = xyes; then :
- SPEEX_HEADER_FOUND=1
- else
- SPEEX_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
- SPEEX_LIB=""
- SPEEX_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- SPEEX_LIB=""
- fi
- PBX_SPEEX=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SPEEX 1
- _ACEOF
- fi
- fi
- fi
- # See if the main speex library contains the preprocess functions
- if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
- pbxlibdir=""
- # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
- if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
- if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
- pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
- else
- pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
- fi
- fi
- pbxfuncname="speex_preprocess_ctl"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SPEEX_PREPROCESS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeex" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lspeex ${pbxlibdir} -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_SPEEX_PREPROCESS_FOUND=yes
- else
- AST_SPEEX_PREPROCESS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
- SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
- # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
- if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
- SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
- fi
- SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
- if test "xspeex/speex.h" = "x" ; then # no header, assume found
- SPEEX_PREPROCESS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
- if test "x$ac_cv_header_speex_speex_h" = xyes; then :
- SPEEX_PREPROCESS_HEADER_FOUND=1
- else
- SPEEX_PREPROCESS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
- SPEEX_PREPROCESS_LIB=""
- SPEEX_PREPROCESS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- SPEEX_PREPROCESS_LIB=""
- fi
- PBX_SPEEX_PREPROCESS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SPEEX_PREPROCESS 1
- _ACEOF
- fi
- fi
- fi
- if test "${PBX_SPEEX_PREPROCESS}" = 1; then
- PBX_SPEEX_PREPROCESS=1
- fi
- if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
- pbxlibdir=""
- # if --with-SPEEXDSP=DIR has been specified, use it.
- if test "x${SPEEXDSP_DIR}" != "x"; then
- if test -d ${SPEEXDSP_DIR}/lib; then
- pbxlibdir="-L${SPEEXDSP_DIR}/lib"
- else
- pbxlibdir="-L${SPEEXDSP_DIR}"
- fi
- fi
- pbxfuncname="speex_preprocess_ctl"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SPEEXDSP_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeexdsp" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lspeexdsp... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lspeexdsp ${pbxlibdir} -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_SPEEXDSP_FOUND=yes
- else
- AST_SPEEXDSP_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
- SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
- # if --with-SPEEXDSP=DIR has been specified, use it.
- if test "x${SPEEXDSP_DIR}" != "x"; then
- SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
- fi
- SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
- if test "xspeex/speex.h" = "x" ; then # no header, assume found
- SPEEXDSP_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
- if test "x$ac_cv_header_speex_speex_h" = xyes; then :
- SPEEXDSP_HEADER_FOUND=1
- else
- SPEEXDSP_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
- SPEEXDSP_LIB=""
- SPEEXDSP_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- SPEEXDSP_LIB=""
- fi
- PBX_SPEEXDSP=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SPEEXDSP 1
- _ACEOF
- fi
- fi
- fi
- if test "${PBX_SPEEXDSP}" = 1; then
- PBX_SPEEX_PREPROCESS=1
- fi
- if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
- pbxlibdir=""
- # if --with-SQLITE=DIR has been specified, use it.
- if test "x${SQLITE_DIR}" != "x"; then
- if test -d ${SQLITE_DIR}/lib; then
- pbxlibdir="-L${SQLITE_DIR}/lib"
- else
- pbxlibdir="-L${SQLITE_DIR}"
- fi
- fi
- pbxfuncname="sqlite_exec"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SQLITE_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lsqlite... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsqlite ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_SQLITE_FOUND=yes
- else
- AST_SQLITE_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_SQLITE_FOUND}" = "yes"; then
- SQLITE_LIB="${pbxlibdir} -lsqlite "
- # if --with-SQLITE=DIR has been specified, use it.
- if test "x${SQLITE_DIR}" != "x"; then
- SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
- fi
- SQLITE_INCLUDE="${SQLITE_INCLUDE} "
- if test "xsqlite.h" = "x" ; then # no header, assume found
- SQLITE_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
- if test "x$ac_cv_header_sqlite_h" = xyes; then :
- SQLITE_HEADER_FOUND=1
- else
- SQLITE_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
- SQLITE_LIB=""
- SQLITE_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- SQLITE_LIB=""
- fi
- PBX_SQLITE=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SQLITE 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
- pbxlibdir=""
- # if --with-SQLITE3=DIR has been specified, use it.
- if test "x${SQLITE3_DIR}" != "x"; then
- if test -d ${SQLITE3_DIR}/lib; then
- pbxlibdir="-L${SQLITE3_DIR}/lib"
- else
- pbxlibdir="-L${SQLITE3_DIR}"
- fi
- fi
- pbxfuncname="sqlite3_open"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SQLITE3_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
- as_ac_Lib=`$as_echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite3" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lsqlite3... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsqlite3 ${pbxlibdir} ${PTHREAD_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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_SQLITE3_FOUND=yes
- else
- AST_SQLITE3_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_SQLITE3_FOUND}" = "yes"; then
- SQLITE3_LIB="${pbxlibdir} -lsqlite3 ${PTHREAD_LIBS}"
- # if --with-SQLITE3=DIR has been specified, use it.
- if test "x${SQLITE3_DIR}" != "x"; then
- SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
- fi
- SQLITE3_INCLUDE="${SQLITE3_INCLUDE} ${PTHREAD_CFLAGS}"
- if test "xsqlite3.h" = "x" ; then # no header, assume found
- SQLITE3_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
- if test "x$ac_cv_header_sqlite3_h" = xyes; then :
- SQLITE3_HEADER_FOUND=1
- else
- SQLITE3_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
- SQLITE3_LIB=""
- SQLITE3_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- SQLITE3_LIB=""
- fi
- PBX_SQLITE3=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SQLITE3 1
- _ACEOF
- fi
- fi
- fi
- if test "${PBX_SQLITE3}" != 1; then
- as_fn_error $? "*** Asterisk now uses SQLite3 for the internal Asterisk database." "$LINENO" 5
- as_fn_error $? "*** Please install the SQLite3 development package." "$LINENO" 5
- exit 1
- fi
- # Find crypt support
- # * -lcrypt on *NIX
- # * in libsystem on OS X
- if test "x${PBX_LIBCRYPT}" != "x1" -a "${USE_LIBCRYPT}" != "no"; then
- pbxlibdir=""
- # if --with-LIBCRYPT=DIR has been specified, use it.
- if test "x${LIBCRYPT_DIR}" != "x"; then
- if test -d ${LIBCRYPT_DIR}/lib; then
- pbxlibdir="-L${LIBCRYPT_DIR}/lib"
- else
- pbxlibdir="-L${LIBCRYPT_DIR}"
- fi
- fi
- pbxfuncname="crypt"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_LIBCRYPT_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_crypt_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcrypt" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lcrypt... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcrypt ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_LIBCRYPT_FOUND=yes
- else
- AST_LIBCRYPT_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_LIBCRYPT_FOUND}" = "yes"; then
- LIBCRYPT_LIB="${pbxlibdir} -lcrypt "
- # if --with-LIBCRYPT=DIR has been specified, use it.
- if test "x${LIBCRYPT_DIR}" != "x"; then
- LIBCRYPT_INCLUDE="-I${LIBCRYPT_DIR}/include"
- fi
- LIBCRYPT_INCLUDE="${LIBCRYPT_INCLUDE} "
- if test "xcrypt.h" = "x" ; then # no header, assume found
- LIBCRYPT_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${LIBCRYPT_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
- if test "x$ac_cv_header_crypt_h" = xyes; then :
- LIBCRYPT_HEADER_FOUND=1
- else
- LIBCRYPT_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${LIBCRYPT_HEADER_FOUND}" = "x0" ; then
- LIBCRYPT_LIB=""
- LIBCRYPT_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- LIBCRYPT_LIB=""
- fi
- PBX_LIBCRYPT=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LIBCRYPT 1
- _ACEOF
- fi
- fi
- fi
- ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
- if test "x$ac_cv_func_crypt" = xyes; then :
- SYSCRYPT=true
- else
- SYSCRYPT=""
- fi
- if test "x$LIBCRYPT_LIB" != "x" ; then
- CRYPT_LIB="$LIBCRYPT_LIB"
- CRYPT_INCLUDE="$LIBCRYPT_INCLUDE"
- $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
- elif test "x$SYSCRYPT" != "x" ; then
- CRYPT_LIB=""
- CRYPT_INCLUDE=""
- $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
- fi
- # Find crypt_r support
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt_r in -lcrypt" >&5
- $as_echo_n "checking for crypt_r in -lcrypt... " >&6; }
- if ${ac_cv_lib_crypt_crypt_r+:} 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_r ();
- int
- main ()
- {
- return crypt_r ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_crypt_crypt_r=yes
- else
- ac_cv_lib_crypt_crypt_r=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_r" >&5
- $as_echo "$ac_cv_lib_crypt_crypt_r" >&6; }
- if test "x$ac_cv_lib_crypt_crypt_r" = xyes; then :
- $as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
- fi
- if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
- pbxlibdir=""
- # if --with-CRYPTO=DIR has been specified, use it.
- if test "x${CRYPTO_DIR}" != "x"; then
- if test -d ${CRYPTO_DIR}/lib; then
- pbxlibdir="-L${CRYPTO_DIR}/lib"
- else
- pbxlibdir="-L${CRYPTO_DIR}"
- fi
- fi
- pbxfuncname="AES_encrypt"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_CRYPTO_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcrypto" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lcrypto... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lcrypto ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_CRYPTO_FOUND=yes
- else
- AST_CRYPTO_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_CRYPTO_FOUND}" = "yes"; then
- CRYPTO_LIB="${pbxlibdir} -lcrypto "
- # if --with-CRYPTO=DIR has been specified, use it.
- if test "x${CRYPTO_DIR}" != "x"; then
- CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
- fi
- CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
- if test "xopenssl/aes.h" = "x" ; then # no header, assume found
- CRYPTO_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default"
- if test "x$ac_cv_header_openssl_aes_h" = xyes; then :
- CRYPTO_HEADER_FOUND=1
- else
- CRYPTO_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
- CRYPTO_LIB=""
- CRYPTO_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- CRYPTO_LIB=""
- fi
- PBX_CRYPTO=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_CRYPTO 1
- _ACEOF
- fi
- fi
- fi
- if test "$PBX_CRYPTO" = "1";
- then
- if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
- pbxlibdir=""
- # if --with-OPENSSL=DIR has been specified, use it.
- if test "x${OPENSSL_DIR}" != "x"; then
- if test -d ${OPENSSL_DIR}/lib; then
- pbxlibdir="-L${OPENSSL_DIR}/lib"
- else
- pbxlibdir="-L${OPENSSL_DIR}"
- fi
- fi
- pbxfuncname="SSL_connect"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_OPENSSL_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lssl ${pbxlibdir} -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_OPENSSL_FOUND=yes
- else
- AST_OPENSSL_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_OPENSSL_FOUND}" = "yes"; then
- OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
- # if --with-OPENSSL=DIR has been specified, use it.
- if test "x${OPENSSL_DIR}" != "x"; then
- OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
- fi
- OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
- if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
- OPENSSL_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
- if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
- OPENSSL_HEADER_FOUND=1
- else
- OPENSSL_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
- OPENSSL_LIB=""
- OPENSSL_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- OPENSSL_LIB=""
- fi
- PBX_OPENSSL=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OPENSSL 1
- _ACEOF
- fi
- fi
- fi
- fi
- if test "$PBX_OPENSSL" = "1";
- then
- # if OSPTK has not been checked and is not excluded
- if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
- # if --with-osptk=DIR has been specified, use it.
- if test "x${OSPTK_DIR}" != "x"; then
- osptk_cflags="-I${OSPTK_DIR}/include"
- osptk_ldflags="-L${OSPTK_DIR}/lib"
- else
- osptk_cflags=""
- osptk_ldflags=""
- fi
- # check for the header
- osptk_saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
- ac_fn_c_check_header_mongrel "$LINENO" "osp/osp.h" "ac_cv_header_osp_osp_h" "$ac_includes_default"
- if test "x$ac_cv_header_osp_osp_h" = xyes; then :
- osptk_header_found=yes
- else
- osptk_header_found=no
- fi
- CPPFLAGS="${osptk_saved_cppflags}"
- # check for the library
- if test "${osptk_header_found}" = "yes"; then
- osptk_extralibs="-lssl -lcrypto"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSPPInit in -losptk" >&5
- $as_echo_n "checking for OSPPInit in -losptk... " >&6; }
- if ${ac_cv_lib_osptk_OSPPInit+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-losptk ${osptk_ldflags} ${osptk_extralibs} $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 OSPPInit ();
- int
- main ()
- {
- return OSPPInit ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_osptk_OSPPInit=yes
- else
- ac_cv_lib_osptk_OSPPInit=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_osptk_OSPPInit" >&5
- $as_echo "$ac_cv_lib_osptk_OSPPInit" >&6; }
- if test "x$ac_cv_lib_osptk_OSPPInit" = xyes; then :
- osptk_library_found=yes
- else
- osptk_library_found=no
- fi
- # check OSP Toolkit version
- if test "${osptk_library_found}" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OSP Toolkit version is compatible with app_osplookup" >&5
- $as_echo_n "checking if OSP Toolkit version is compatible with app_osplookup... " >&6; }
- osptk_saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
- if test "$cross_compiling" = 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 $? "cannot run test program while cross compiling
- See \`config.log' for more details" "$LINENO" 5; }
- else
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <osp/osp.h>
- int main(void) {
- int ver = OSP_CLIENT_TOOLKIT_VERSION_MAJOR * 10000 + OSP_CLIENT_TOOLKIT_VERSION_MINOR * 100 + OSP_CLIENT_TOOLKIT_VERSION_BUGFIX;
- int req = 4 * 10000 + 0 * 100 + 0;
- return (ver < req) ? 1 : 0;
- }
- _ACEOF
- if ac_fn_c_try_run "$LINENO"; then :
- osptk_compatible=yes
- else
- osptk_compatible=no
- fi
- rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
- conftest.$ac_objext conftest.beam conftest.$ac_ext
- fi
- CPPFLAGS="${osptk_saved_cppflags}"
- if test "${osptk_compatible}" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PBX_OSPTK=1
- OSPTK_INCLUDE="${osptk_cflags}"
- OSPTK_LIB="${osptk_ldflags} -losptk ${osptk_extralibs}"
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OSPTK 1
- _ACEOF
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- fi
- fi
- if test "x${PBX_OPENSSL_SRTP}" != "x1" -a "${USE_OPENSSL_SRTP}" != "no"; then
- pbxlibdir=""
- # if --with-OPENSSL_SRTP=DIR has been specified, use it.
- if test "x${OPENSSL_SRTP_DIR}" != "x"; then
- if test -d ${OPENSSL_SRTP_DIR}/lib; then
- pbxlibdir="-L${OPENSSL_SRTP_DIR}/lib"
- else
- pbxlibdir="-L${OPENSSL_SRTP_DIR}"
- fi
- fi
- pbxfuncname="SSL_CTX_set_tlsext_use_srtp"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_OPENSSL_SRTP_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lssl ${pbxlibdir} -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_OPENSSL_SRTP_FOUND=yes
- else
- AST_OPENSSL_SRTP_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_OPENSSL_SRTP_FOUND}" = "yes"; then
- OPENSSL_SRTP_LIB="${pbxlibdir} -lssl -lcrypto"
- # if --with-OPENSSL_SRTP=DIR has been specified, use it.
- if test "x${OPENSSL_SRTP_DIR}" != "x"; then
- OPENSSL_SRTP_INCLUDE="-I${OPENSSL_SRTP_DIR}/include"
- fi
- OPENSSL_SRTP_INCLUDE="${OPENSSL_SRTP_INCLUDE} "
- if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
- OPENSSL_SRTP_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${OPENSSL_SRTP_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
- if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
- OPENSSL_SRTP_HEADER_FOUND=1
- else
- OPENSSL_SRTP_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${OPENSSL_SRTP_HEADER_FOUND}" = "x0" ; then
- OPENSSL_SRTP_LIB=""
- OPENSSL_SRTP_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- OPENSSL_SRTP_LIB=""
- fi
- PBX_OPENSSL_SRTP=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OPENSSL_SRTP 1
- _ACEOF
- fi
- fi
- fi
- fi
- if test "$PBX_OPENSSL" = "1";
- then
- if test "x${PBX_OPENSSL_EC}" != "x1" -a "${USE_OPENSSL_EC}" != "no"; then
- pbxlibdir=""
- # if --with-OPENSSL_EC=DIR has been specified, use it.
- if test "x${OPENSSL_EC_DIR}" != "x"; then
- if test -d ${OPENSSL_EC_DIR}/lib; then
- pbxlibdir="-L${OPENSSL_EC_DIR}/lib"
- else
- pbxlibdir="-L${OPENSSL_EC_DIR}"
- fi
- fi
- pbxfuncname="EC_KEY_new_by_curve_name"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_OPENSSL_EC_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lssl ${pbxlibdir} -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_OPENSSL_EC_FOUND=yes
- else
- AST_OPENSSL_EC_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_OPENSSL_EC_FOUND}" = "yes"; then
- OPENSSL_EC_LIB="${pbxlibdir} -lssl -lcrypto"
- # if --with-OPENSSL_EC=DIR has been specified, use it.
- if test "x${OPENSSL_EC_DIR}" != "x"; then
- OPENSSL_EC_INCLUDE="-I${OPENSSL_EC_DIR}/include"
- fi
- OPENSSL_EC_INCLUDE="${OPENSSL_EC_INCLUDE} "
- if test "xopenssl/ec.h" = "x" ; then # no header, assume found
- OPENSSL_EC_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${OPENSSL_EC_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "openssl/ec.h" "ac_cv_header_openssl_ec_h" "$ac_includes_default"
- if test "x$ac_cv_header_openssl_ec_h" = xyes; then :
- OPENSSL_EC_HEADER_FOUND=1
- else
- OPENSSL_EC_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${OPENSSL_EC_HEADER_FOUND}" = "x0" ; then
- OPENSSL_EC_LIB=""
- OPENSSL_EC_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- OPENSSL_EC_LIB=""
- fi
- PBX_OPENSSL_EC=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_OPENSSL_EC 1
- _ACEOF
- fi
- fi
- fi
- fi
- if test "x${PBX_SRTP}" != "x1" -a "${USE_SRTP}" != "no"; then
- pbxlibdir=""
- # if --with-SRTP=DIR has been specified, use it.
- if test "x${SRTP_DIR}" != "x"; then
- if test -d ${SRTP_DIR}/lib; then
- pbxlibdir="-L${SRTP_DIR}/lib"
- else
- pbxlibdir="-L${SRTP_DIR}"
- fi
- fi
- pbxfuncname="srtp_init"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SRTP_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsrtp" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsrtp ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_SRTP_FOUND=yes
- else
- AST_SRTP_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_SRTP_FOUND}" = "yes"; then
- SRTP_LIB="${pbxlibdir} -lsrtp "
- # if --with-SRTP=DIR has been specified, use it.
- if test "x${SRTP_DIR}" != "x"; then
- SRTP_INCLUDE="-I${SRTP_DIR}/include"
- fi
- SRTP_INCLUDE="${SRTP_INCLUDE} "
- if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
- SRTP_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SRTP_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
- if test "x$ac_cv_header_srtp_srtp_h" = xyes; then :
- SRTP_HEADER_FOUND=1
- else
- SRTP_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${SRTP_HEADER_FOUND}" = "x0" ; then
- SRTP_LIB=""
- SRTP_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- SRTP_LIB=""
- fi
- PBX_SRTP=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SRTP 1
- _ACEOF
- fi
- fi
- fi
- if test "$PBX_SRTP" = "1";
- then
- saved_libs="${LIBS}"
- saved_ldflags="${LDFLAGS}"
- saved_cflags="${CFLAGS}"
- LIBS="${LIBS} ${SRTP_LIB}"
- LDFLAGS="${LDFLAGS} -shared -fPIC"
- CFLAGS="${CFLAGS} ${SRTP_INCLUDE}"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ability of -lsrtp to be linked in a shared object" >&5
- $as_echo_n "checking for the ability of -lsrtp to be linked in a shared object... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <srtp/srtp.h>
- int
- main ()
- {
- srtp_init();
- ;
- 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; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
- $as_echo "$as_me: WARNING: ***" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libsrtp could not be linked as a shared object." >&5
- $as_echo "$as_me: WARNING: *** libsrtp could not be linked as a shared object." >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&5
- $as_echo "$as_me: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&5
- $as_echo "$as_me: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** replacing /usr with the prefix of your choice." >&5
- $as_echo "$as_me: WARNING: *** replacing /usr with the prefix of your choice." >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** After re-installing libsrtp" >&5
- $as_echo "$as_me: WARNING: *** After re-installing libsrtp" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** configure script." >&5
- $as_echo "$as_me: WARNING: *** configure script." >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
- $as_echo "$as_me: WARNING: ***" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** If you do not need SRTP support re-run configure" >&5
- $as_echo "$as_me: WARNING: *** If you do not need SRTP support re-run configure" >&2;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** with the --without-srtp option." >&5
- $as_echo "$as_me: WARNING: *** with the --without-srtp option." >&2;}
- exit 1
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS="${saved_libs}"
- LDFLAGS="${saved_ldflags}"
- CFLAGS="${saved_cflags}"
- fi
- if test "x${PBX_SRTP_SHUTDOWN}" != "x1" -a "${USE_SRTP_SHUTDOWN}" != "no"; then
- pbxlibdir=""
- # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
- if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
- if test -d ${SRTP_SHUTDOWN_DIR}/lib; then
- pbxlibdir="-L${SRTP_SHUTDOWN_DIR}/lib"
- else
- pbxlibdir="-L${SRTP_SHUTDOWN_DIR}"
- fi
- fi
- pbxfuncname="srtp_shutdown"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SRTP_SHUTDOWN_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsrtp" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsrtp ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_SRTP_SHUTDOWN_FOUND=yes
- else
- AST_SRTP_SHUTDOWN_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_SRTP_SHUTDOWN_FOUND}" = "yes"; then
- SRTP_SHUTDOWN_LIB="${pbxlibdir} -lsrtp "
- # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
- if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
- SRTP_SHUTDOWN_INCLUDE="-I${SRTP_SHUTDOWN_DIR}/include"
- fi
- SRTP_SHUTDOWN_INCLUDE="${SRTP_SHUTDOWN_INCLUDE} "
- if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
- SRTP_SHUTDOWN_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SRTP_SHUTDOWN_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
- if test "x$ac_cv_header_srtp_srtp_h" = xyes; then :
- SRTP_SHUTDOWN_HEADER_FOUND=1
- else
- SRTP_SHUTDOWN_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${SRTP_SHUTDOWN_HEADER_FOUND}" = "x0" ; then
- SRTP_SHUTDOWN_LIB=""
- SRTP_SHUTDOWN_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- SRTP_SHUTDOWN_LIB=""
- fi
- PBX_SRTP_SHUTDOWN=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SRTP_SHUTDOWN 1
- _ACEOF
- fi
- fi
- fi
- for ver in 2.0 2.2 2.4 2.6; do
- if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMIME" >&5
- $as_echo_n "checking for GMIME... " >&6; }
- if test -n "$GMIME_CFLAGS"; then
- pkg_cv_GMIME_CFLAGS="$GMIME_CFLAGS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmime-\$ver\""; } >&5
- ($PKG_CONFIG --exists --print-errors "gmime-$ver") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_GMIME_CFLAGS=`$PKG_CONFIG --cflags "gmime-$ver" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$GMIME_LIBS"; then
- pkg_cv_GMIME_LIBS="$GMIME_LIBS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmime-\$ver\""; } >&5
- ($PKG_CONFIG --exists --print-errors "gmime-$ver") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_GMIME_LIBS=`$PKG_CONFIG --libs "gmime-$ver" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- GMIME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmime-$ver" 2>&1`
- else
- GMIME_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmime-$ver" 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$GMIME_PKG_ERRORS" >&5
- PBX_GMIME=0
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- PBX_GMIME=0
- else
- GMIME_CFLAGS=$pkg_cv_GMIME_CFLAGS
- GMIME_LIBS=$pkg_cv_GMIME_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PBX_GMIME=1
- GMIME_INCLUDE="$GMIME_CFLAGS"
- GMIME_LIB="$GMIME_LIBS"
- $as_echo "#define HAVE_GMIME 1" >>confdefs.h
- fi
- fi
- if test "$PBX_GMIME" = 1; then
- break;
- fi
- done
- if test "x${PBX_HOARD}" != "x1" -a "${USE_HOARD}" != "no"; then
- pbxlibdir=""
- # if --with-HOARD=DIR has been specified, use it.
- if test "x${HOARD_DIR}" != "x"; then
- if test -d ${HOARD_DIR}/lib; then
- pbxlibdir="-L${HOARD_DIR}/lib"
- else
- pbxlibdir="-L${HOARD_DIR}"
- fi
- fi
- pbxfuncname="malloc"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_HOARD_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_hoard_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lhoard" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lhoard... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lhoard ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_HOARD_FOUND=yes
- else
- AST_HOARD_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_HOARD_FOUND}" = "yes"; then
- HOARD_LIB="${pbxlibdir} -lhoard "
- # if --with-HOARD=DIR has been specified, use it.
- if test "x${HOARD_DIR}" != "x"; then
- HOARD_INCLUDE="-I${HOARD_DIR}/include"
- fi
- HOARD_INCLUDE="${HOARD_INCLUDE} "
- if test "x" = "x" ; then # no header, assume found
- HOARD_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${HOARD_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
- if test "x$ac_cv_header_" = xyes; then :
- HOARD_HEADER_FOUND=1
- else
- HOARD_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${HOARD_HEADER_FOUND}" = "x0" ; then
- HOARD_LIB=""
- HOARD_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- HOARD_LIB=""
- fi
- PBX_HOARD=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_HOARD 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
- pbxlibdir=""
- # if --with-FREETDS=DIR has been specified, use it.
- if test "x${FREETDS_DIR}" != "x"; then
- if test -d ${FREETDS_DIR}/lib; then
- pbxlibdir="-L${FREETDS_DIR}/lib"
- else
- pbxlibdir="-L${FREETDS_DIR}"
- fi
- fi
- pbxfuncname="dbinit"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_FREETDS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_sybdb_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsybdb" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lsybdb... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lsybdb ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_FREETDS_FOUND=yes
- else
- AST_FREETDS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_FREETDS_FOUND}" = "yes"; then
- FREETDS_LIB="${pbxlibdir} -lsybdb "
- # if --with-FREETDS=DIR has been specified, use it.
- if test "x${FREETDS_DIR}" != "x"; then
- FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
- fi
- FREETDS_INCLUDE="${FREETDS_INCLUDE} "
- if test "xsybdb.h" = "x" ; then # no header, assume found
- FREETDS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default"
- if test "x$ac_cv_header_sybdb_h" = xyes; then :
- FREETDS_HEADER_FOUND=1
- else
- FREETDS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
- FREETDS_LIB=""
- FREETDS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- FREETDS_LIB=""
- fi
- PBX_FREETDS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_FREETDS 1
- _ACEOF
- fi
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tone_zone_find_by_num in -ltonezone" >&5
- $as_echo_n "checking for tone_zone_find_by_num in -ltonezone... " >&6; }
- if ${ac_cv_lib_tonezone_tone_zone_find_by_num+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltonezone $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 tone_zone_find_by_num ();
- int
- main ()
- {
- return tone_zone_find_by_num ();
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- ac_cv_lib_tonezone_tone_zone_find_by_num=yes
- else
- ac_cv_lib_tonezone_tone_zone_find_by_num=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_tonezone_tone_zone_find_by_num" >&5
- $as_echo "$ac_cv_lib_tonezone_tone_zone_find_by_num" >&6; }
- if test "x$ac_cv_lib_tonezone_tone_zone_find_by_num" = xyes; then :
- tonezone_does_not_need_lm=yes
- else
- tonezone_does_not_need_lm=no
- fi
- if test "${tonezone_does_not_need_lm}" = "no" ; then
- tonezone_extra="-lm"
- fi
- if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
- pbxlibdir=""
- # if --with-TONEZONE=DIR has been specified, use it.
- if test "x${TONEZONE_DIR}" != "x"; then
- if test -d ${TONEZONE_DIR}/lib; then
- pbxlibdir="-L${TONEZONE_DIR}/lib"
- else
- pbxlibdir="-L${TONEZONE_DIR}"
- fi
- fi
- pbxfuncname="tone_zone_find"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_TONEZONE_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltonezone" >&5
- $as_echo_n "checking for ${pbxfuncname} in -ltonezone... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} ${DAHDI_INCLUDE} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_TONEZONE_FOUND=yes
- else
- AST_TONEZONE_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_TONEZONE_FOUND}" = "yes"; then
- TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra} ${DAHDI_INCLUDE}"
- # if --with-TONEZONE=DIR has been specified, use it.
- if test "x${TONEZONE_DIR}" != "x"; then
- TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
- fi
- TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
- if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
- TONEZONE_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "dahdi/tonezone.h" "ac_cv_header_dahdi_tonezone_h" "$ac_includes_default"
- if test "x$ac_cv_header_dahdi_tonezone_h" = xyes; then :
- TONEZONE_HEADER_FOUND=1
- else
- TONEZONE_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
- TONEZONE_LIB=""
- TONEZONE_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- TONEZONE_LIB=""
- fi
- PBX_TONEZONE=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_TONEZONE 1
- _ACEOF
- fi
- fi
- fi
- if test "${OSARCH}" = "OpenBSD";
- then
- if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
- pbxlibdir=""
- # if --with-VORBIS=DIR has been specified, use it.
- if test "x${VORBIS_DIR}" != "x"; then
- if test -d ${VORBIS_DIR}/lib; then
- pbxlibdir="-L${VORBIS_DIR}/lib"
- else
- pbxlibdir="-L${VORBIS_DIR}"
- fi
- fi
- pbxfuncname="vorbis_info_init"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_VORBIS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lvorbis" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile -logg $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_VORBIS_FOUND=yes
- else
- AST_VORBIS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_VORBIS_FOUND}" = "yes"; then
- VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile -logg"
- # if --with-VORBIS=DIR has been specified, use it.
- if test "x${VORBIS_DIR}" != "x"; then
- VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
- fi
- VORBIS_INCLUDE="${VORBIS_INCLUDE} "
- if test "xvorbis/codec.h" = "x" ; then # no header, assume found
- VORBIS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
- if test "x$ac_cv_header_vorbis_codec_h" = xyes; then :
- VORBIS_HEADER_FOUND=1
- else
- VORBIS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
- VORBIS_LIB=""
- VORBIS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- VORBIS_LIB=""
- fi
- PBX_VORBIS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_VORBIS 1
- _ACEOF
- fi
- fi
- fi
- else
- if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
- pbxlibdir=""
- # if --with-VORBIS=DIR has been specified, use it.
- if test "x${VORBIS_DIR}" != "x"; then
- if test -d ${VORBIS_DIR}/lib; then
- pbxlibdir="-L${VORBIS_DIR}/lib"
- else
- pbxlibdir="-L${VORBIS_DIR}"
- fi
- fi
- pbxfuncname="vorbis_info_init"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_VORBIS_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lvorbis" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_VORBIS_FOUND=yes
- else
- AST_VORBIS_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_VORBIS_FOUND}" = "yes"; then
- VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile"
- # if --with-VORBIS=DIR has been specified, use it.
- if test "x${VORBIS_DIR}" != "x"; then
- VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
- fi
- VORBIS_INCLUDE="${VORBIS_INCLUDE} "
- if test "xvorbis/codec.h" = "x" ; then # no header, assume found
- VORBIS_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
- if test "x$ac_cv_header_vorbis_codec_h" = xyes; then :
- VORBIS_HEADER_FOUND=1
- else
- VORBIS_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
- VORBIS_LIB=""
- VORBIS_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- VORBIS_LIB=""
- fi
- PBX_VORBIS=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_VORBIS 1
- _ACEOF
- fi
- fi
- fi
- fi
- if test "x${PBX_VORBIS_OPEN_CALLBACKS}" != "x1" -a "${USE_VORBIS_OPEN_CALLBACKS}" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h" >&5
- $as_echo_n "checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${VORBIS_OPEN_CALLBACKS_DIR}" != "x"; then
- VORBIS_OPEN_CALLBACKS_INCLUDE="-I${VORBIS_OPEN_CALLBACKS_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${VORBIS_OPEN_CALLBACKS_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <vorbis/vorbisfile.h>
- int
- main ()
- {
- #if !defined(OV_CALLBACKS_NOCLOSE)
- (void) OV_CALLBACKS_NOCLOSE;
- #endif
- ;
- 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; }
- PBX_VORBIS_OPEN_CALLBACKS=1
- $as_echo "#define HAVE_VORBIS_OPEN_CALLBACKS 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_ext
- CPPFLAGS="${saved_cppflags}"
- 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
- if test "${USE_VPB}" != "no"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpb_open in -lvpb" >&5
- $as_echo_n "checking for vpb_open in -lvpb... " >&6; }
- saved_libs="${LIBS}"
- saved_cppflags="${CPPFLAGS}"
- if test "x${VPB_DIR}" != "x"; then
- if test -d ${VPB_DIR}/lib; then
- vpblibdir=${VPB_DIR}/lib
- else
- vpblibdir=${VPB_DIR}
- fi
- LIBS="${LIBS} -L${vpblibdir}"
- CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
- fi
- LIBS="${PTHREAD_LIBS} ${LIBS} -lvpb"
- CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <vpbapi.h>
- int
- main ()
- {
- int q = vpb_open(0,0);
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_cxx_try_link "$LINENO"; then :
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- ac_cv_lib_vpb_vpb_open="yes"
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- ac_cv_lib_vpb_vpb_open="no"
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- LIBS="${saved_libs}"
- CPPFLAGS="${saved_cppflags}"
- if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
- VPB_LIB="-lvpb"
- if test "${VPB_DIR}" != ""; then
- VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
- VPB_INCLUDE="-I${VPB_DIR}/include"
- fi
- PBX_VPB=1
- $as_echo "#define HAVE_VPB 1" >>confdefs.h
- 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
- if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
- pbxlibdir=""
- # if --with-ZLIB=DIR has been specified, use it.
- if test "x${ZLIB_DIR}" != "x"; then
- if test -d ${ZLIB_DIR}/lib; then
- pbxlibdir="-L${ZLIB_DIR}/lib"
- else
- pbxlibdir="-L${ZLIB_DIR}"
- fi
- fi
- pbxfuncname="compress"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_ZLIB_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lz" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lz... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lz ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_ZLIB_FOUND=yes
- else
- AST_ZLIB_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_ZLIB_FOUND}" = "yes"; then
- ZLIB_LIB="${pbxlibdir} -lz "
- # if --with-ZLIB=DIR has been specified, use it.
- if test "x${ZLIB_DIR}" != "x"; then
- ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
- fi
- ZLIB_INCLUDE="${ZLIB_INCLUDE} "
- if test "xzlib.h" = "x" ; then # no header, assume found
- ZLIB_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
- if test "x$ac_cv_header_zlib_h" = xyes; then :
- ZLIB_HEADER_FOUND=1
- else
- ZLIB_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
- ZLIB_LIB=""
- ZLIB_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- ZLIB_LIB=""
- fi
- PBX_ZLIB=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_ZLIB 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_UNIXODBC}" = "x1" -o "x${PBX_IODBC}" = "x1"; then
- # Does ODBC support wide characters?
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ODBC has support for Unicode types" >&5
- $as_echo_n "checking whether ODBC has support for Unicode types... " >&6; }
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sql.h>
- #include <sqlext.h>
- int
- main ()
- {
- int foo = SQL_WCHAR
- ;
- 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_ODBC_WCHAR 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
- fi
- ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
- if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_LINUX_COMPILER_H 1
- _ACEOF
- fi
- ac_fn_c_check_header_compile "$LINENO" "linux/ixjuser.h" "ac_cv_header_linux_ixjuser_h" "
- #include <linux/version.h>
- #ifdef HAVE_LINUX_COMPILER_H
- #include <linux/compiler.h>
- #endif
- "
- if test "x$ac_cv_header_linux_ixjuser_h" = xyes; then :
- PBX_IXJUSER=1
- else
- PBX_IXJUSER=0
- fi
- # Used in res/res_pktccops
- if test "x${PBX_MSG_NOSIGNAL}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL in sys/socket.h" >&5
- $as_echo_n "checking for MSG_NOSIGNAL in sys/socket.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${MSG_NOSIGNAL_DIR}" != "x"; then
- MSG_NOSIGNAL_INCLUDE="-I${MSG_NOSIGNAL_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${MSG_NOSIGNAL_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/socket.h>
- int
- main ()
- {
- #if defined(MSG_NOSIGNAL)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_MSG_NOSIGNAL=1
- $as_echo "#define HAVE_MSG_NOSIGNAL 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SO_NOSIGPIPE}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE in sys/socket.h" >&5
- $as_echo_n "checking for SO_NOSIGPIPE in sys/socket.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${SO_NOSIGPIPE_DIR}" != "x"; then
- SO_NOSIGPIPE_INCLUDE="-I${SO_NOSIGPIPE_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SO_NOSIGPIPE_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <sys/socket.h>
- int
- main ()
- {
- #if defined(SO_NOSIGPIPE)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_SO_NOSIGPIPE=1
- $as_echo "#define HAVE_SO_NOSIGPIPE 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
- PBX_SDL=0
- if test -n "$ac_tool_prefix"; then
- # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
- set dummy ${ac_tool_prefix}sdl-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_CONFIG_SDL+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $CONFIG_SDL in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="${SDL_DIR}/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_CONFIG_SDL="$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
- CONFIG_SDL=$ac_cv_path_CONFIG_SDL
- if test -n "$CONFIG_SDL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_SDL" >&5
- $as_echo "$CONFIG_SDL" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- fi
- if test -z "$ac_cv_path_CONFIG_SDL"; then
- ac_pt_CONFIG_SDL=$CONFIG_SDL
- # Extract the first word of "sdl-config", so it can be a program name with args.
- set dummy sdl-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_ac_pt_CONFIG_SDL+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- case $ac_pt_CONFIG_SDL in
- [\\/]* | ?:[\\/]*)
- ac_cv_path_ac_pt_CONFIG_SDL="$ac_pt_CONFIG_SDL" # Let the user override the test with a path.
- ;;
- *)
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
- as_dummy="${SDL_DIR}/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_ac_pt_CONFIG_SDL="$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
- ac_pt_CONFIG_SDL=$ac_cv_path_ac_pt_CONFIG_SDL
- if test -n "$ac_pt_CONFIG_SDL"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_SDL" >&5
- $as_echo "$ac_pt_CONFIG_SDL" >&6; }
- else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- fi
- if test "x$ac_pt_CONFIG_SDL" = x; then
- CONFIG_SDL="No"
- 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
- CONFIG_SDL=$ac_pt_CONFIG_SDL
- fi
- else
- CONFIG_SDL="$ac_cv_path_CONFIG_SDL"
- fi
- if test ! "x${CONFIG_SDL}" = xNo; then
- if test x"" = x ; then A=--cflags ; else A="" ; fi
- SDL_INCLUDE=$(${CONFIG_SDL} $A)
- SDL_INCLUDE=$(echo ${SDL_INCLUDE} | $SED -e "s|-I|-I${SDL_DIR}|g")
- if test x"" = x ; then A=--libs ; else A="" ; fi
- SDL_LIB=$(${CONFIG_SDL} $A)
- SDL_LIB=$(echo ${SDL_LIB} | $SED -e "s|-L|-L${SDL_DIR}|g")
- if test x"" != x ; then
- saved_cppflags="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
- saved_libs="${LIBS}"
- LIBS=${SDL_LIB}
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- int
- main ()
- {
- ;
- ;
- return 0;
- }
- _ACEOF
- if ac_fn_c_try_link "$LINENO"; then :
- PBX_SDL=1
- $as_echo "#define HAVE_SDL 1" >>confdefs.h
- fi
- rm -f core conftest.err conftest.$ac_objext \
- conftest$ac_exeext conftest.$ac_ext
- CPPFLAGS="${saved_cppflags}"
- LIBS="${saved_libs}"
- else
- PBX_SDL=1
- $as_echo "#define HAVE_SDL 1" >>confdefs.h
- fi
- fi
- fi
- if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
- pbxlibdir=""
- # if --with-SDL_IMAGE=DIR has been specified, use it.
- if test "x${SDL_IMAGE_DIR}" != "x"; then
- if test -d ${SDL_IMAGE_DIR}/lib; then
- pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
- else
- pbxlibdir="-L${SDL_IMAGE_DIR}"
- fi
- fi
- pbxfuncname="IMG_Load"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_SDL_IMAGE_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} ${SDL_INCLUDE}"
- as_ac_Lib=`$as_echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lSDL_image" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lSDL_image... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lSDL_image ${pbxlibdir} ${SDL_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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_SDL_IMAGE_FOUND=yes
- else
- AST_SDL_IMAGE_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
- SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
- # if --with-SDL_IMAGE=DIR has been specified, use it.
- if test "x${SDL_IMAGE_DIR}" != "x"; then
- SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
- fi
- SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
- if test "xSDL_image.h" = "x" ; then # no header, assume found
- SDL_IMAGE_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "SDL_image.h" "ac_cv_header_SDL_image_h" "$ac_includes_default"
- if test "x$ac_cv_header_SDL_image_h" = xyes; then :
- SDL_IMAGE_HEADER_FOUND=1
- else
- SDL_IMAGE_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
- SDL_IMAGE_LIB=""
- SDL_IMAGE_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- SDL_IMAGE_LIB=""
- fi
- PBX_SDL_IMAGE=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_SDL_IMAGE 1
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
- pbxlibdir=""
- # if --with-FFMPEG=DIR has been specified, use it.
- if test "x${FFMPEG_DIR}" != "x"; then
- if test -d ${FFMPEG_DIR}/lib; then
- pbxlibdir="-L${FFMPEG_DIR}/lib"
- else
- pbxlibdir="-L${FFMPEG_DIR}"
- fi
- fi
- pbxfuncname="sws_getContext"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_FFMPEG_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
- as_ac_Lib=`$as_echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lavcodec" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lavcodec... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lavcodec ${pbxlibdir} ${PTHREAD_LIBS} -lz -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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_FFMPEG_FOUND=yes
- else
- AST_FFMPEG_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_FFMPEG_FOUND}" = "yes"; then
- FFMPEG_LIB="${pbxlibdir} -lavcodec ${PTHREAD_LIBS} -lz -lm"
- # if --with-FFMPEG=DIR has been specified, use it.
- if test "x${FFMPEG_DIR}" != "x"; then
- FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
- fi
- FFMPEG_INCLUDE="${FFMPEG_INCLUDE} ${PTHREAD_CFLAGS}"
- if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
- FFMPEG_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "ffmpeg/avcodec.h" "ac_cv_header_ffmpeg_avcodec_h" "$ac_includes_default"
- if test "x$ac_cv_header_ffmpeg_avcodec_h" = xyes; then :
- FFMPEG_HEADER_FOUND=1
- else
- FFMPEG_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
- FFMPEG_LIB=""
- FFMPEG_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- FFMPEG_LIB=""
- fi
- PBX_FFMPEG=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_FFMPEG 1
- _ACEOF
- fi
- fi
- fi
- # possible places for video4linux version 1
- ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
- if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
- cat >>confdefs.h <<_ACEOF
- #define HAVE_VIDEODEV_H 1
- _ACEOF
- fi
- # possible places for X11
- if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
- pbxlibdir=""
- # if --with-X11=DIR has been specified, use it.
- if test "x${X11_DIR}" != "x"; then
- if test -d ${X11_DIR}/lib; then
- pbxlibdir="-L${X11_DIR}/lib"
- else
- pbxlibdir="-L${X11_DIR}"
- fi
- fi
- pbxfuncname="XOpenDisplay"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_X11_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} "
- as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lX11" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lX11 ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_X11_FOUND=yes
- else
- AST_X11_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_X11_FOUND}" = "yes"; then
- X11_LIB="${pbxlibdir} -lX11 "
- # if --with-X11=DIR has been specified, use it.
- if test "x${X11_DIR}" != "x"; then
- X11_INCLUDE="-I${X11_DIR}/include"
- fi
- X11_INCLUDE="${X11_INCLUDE} "
- if test "xX11/Xlib.h" = "x" ; then # no header, assume found
- X11_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
- if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
- X11_HEADER_FOUND=1
- else
- X11_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${X11_HEADER_FOUND}" = "x0" ; then
- X11_LIB=""
- X11_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- X11_LIB=""
- fi
- PBX_X11=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_X11 1
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define HAVE_X11_VERSION standard_path
- _ACEOF
- fi
- fi
- fi
- if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
- pbxlibdir=""
- # if --with-X11=DIR has been specified, use it.
- if test "x${X11_DIR}" != "x"; then
- if test -d ${X11_DIR}/lib; then
- pbxlibdir="-L${X11_DIR}/lib"
- else
- pbxlibdir="-L${X11_DIR}"
- fi
- fi
- pbxfuncname="XOpenDisplay"
- if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
- AST_X11_FOUND=yes
- else
- ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
- CFLAGS="${CFLAGS} -I/usr/X11R6/include"
- as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lX11" >&5
- $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
- if eval \${$as_ac_Lib+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- ac_check_lib_save_LIBS=$LIBS
- LIBS="-lX11 ${pbxlibdir} $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 ${pbxfuncname} ();
- int
- main ()
- {
- return ${pbxfuncname} ();
- ;
- 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 :
- AST_X11_FOUND=yes
- else
- AST_X11_FOUND=no
- fi
- CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
- fi
- # now check for the header.
- if test "${AST_X11_FOUND}" = "yes"; then
- X11_LIB="${pbxlibdir} -lX11 "
- # if --with-X11=DIR has been specified, use it.
- if test "x${X11_DIR}" != "x"; then
- X11_INCLUDE="-I${X11_DIR}/include"
- fi
- X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
- if test "xX11/Xlib.h" = "x" ; then # no header, assume found
- X11_HEADER_FOUND="1"
- else # check for the header
- ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
- CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
- ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
- if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
- X11_HEADER_FOUND=1
- else
- X11_HEADER_FOUND=0
- fi
- CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
- fi
- if test "x${X11_HEADER_FOUND}" = "x0" ; then
- X11_LIB=""
- X11_INCLUDE=""
- else
- if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
- X11_LIB=""
- fi
- PBX_X11=1
- cat >>confdefs.h <<_ACEOF
- #define HAVE_X11 1
- _ACEOF
- cat >>confdefs.h <<_ACEOF
- #define HAVE_X11_VERSION X11R6
- _ACEOF
- fi
- fi
- fi
- PBX_LAUNCHD=0
- if test "${cross_compiling}" = "no";
- then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /sbin/launchd" >&5
- $as_echo_n "checking for /sbin/launchd... " >&6; }
- if ${ac_cv_file__sbin_launchd+:} false; then :
- $as_echo_n "(cached) " >&6
- else
- test "$cross_compiling" = yes &&
- as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
- if test -r "/sbin/launchd"; then
- ac_cv_file__sbin_launchd=yes
- else
- ac_cv_file__sbin_launchd=no
- fi
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__sbin_launchd" >&5
- $as_echo "$ac_cv_file__sbin_launchd" >&6; }
- if test "x$ac_cv_file__sbin_launchd" = xyes; then :
- PBX_LAUNCHD=1
- $as_echo "#define HAVE_SBIN_LAUNCHD 1" >>confdefs.h
- fi
- fi
- if test "x${PBX_GTK2}" != "x1" -a "${USE_GTK2}" != "no"; then
- pkg_failed=no
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
- $as_echo_n "checking for GTK2... " >&6; }
- if test -n "$GTK2_CFLAGS"; then
- pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
- ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
- if test -n "$GTK2_LIBS"; then
- pkg_cv_GTK2_LIBS="$GTK2_LIBS"
- elif test -n "$PKG_CONFIG"; then
- if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
- ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; then
- pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
- else
- pkg_failed=yes
- fi
- else
- pkg_failed=untried
- fi
- if test $pkg_failed = yes; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
- _pkg_short_errors_supported=yes
- else
- _pkg_short_errors_supported=no
- fi
- if test $_pkg_short_errors_supported = yes; then
- GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
- else
- GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
- fi
- # Put the nasty error message in config.log where it belongs
- echo "$GTK2_PKG_ERRORS" >&5
- PBX_GTK2=0
- elif test $pkg_failed = untried; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
- $as_echo "no" >&6; }
- PBX_GTK2=0
- else
- GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
- GTK2_LIBS=$pkg_cv_GTK2_LIBS
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
- $as_echo "yes" >&6; }
- PBX_GTK2=1
- GTK2_INCLUDE="$GTK2_CFLAGS"
- GTK2_LIB="$GTK2_LIBS"
- $as_echo "#define HAVE_GTK2 1" >>confdefs.h
- fi
- fi
- # build a GENERIC_ODBC result based on the presence of either UnixODBC (preferred)
- # or iODBC
- PBX_GENERIC_ODBC=0
- if test "${PBX_UNIXODBC}" = 1; then
- PBX_GENERIC_ODBC=1
- GENERIC_ODBC_LIB="${UNIXODBC_LIB}"
- GENERIC_ODBC_INCLUDE="${UNIXODBC_INCLUDE}"
- elif test "${PBX_IODBC}" = 1; then
- PBX_GENERIC_ODBC=1
- GENERIC_ODBC_LIB="${IODBC_LIB}"
- GENERIC_ODBC_INCLUDE="${IODBC_INCLUDE}"
- fi
- PBX_SYSLOG=0
- if test "${ac_cv_header_syslog_h}" = "yes"; then
- # syslog facilities
- if test "x${PBX_SYSLOG_FACILITY_LOG_AUTH}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTH in syslog.h" >&5
- $as_echo_n "checking for LOG_AUTH in syslog.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${SYSLOG_FACILITY_LOG_AUTH_DIR}" != "x"; then
- SYSLOG_FACILITY_LOG_AUTH_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTH_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTH_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <syslog.h>
- int
- main ()
- {
- #if defined(LOG_AUTH)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_SYSLOG_FACILITY_LOG_AUTH=1
- $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_AUTH 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SYSLOG_FACILITY_LOG_AUTHPRIV}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTHPRIV in syslog.h" >&5
- $as_echo_n "checking for LOG_AUTHPRIV in syslog.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}" != "x"; then
- SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <syslog.h>
- int
- main ()
- {
- #if defined(LOG_AUTHPRIV)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_SYSLOG_FACILITY_LOG_AUTHPRIV=1
- $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_AUTHPRIV 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SYSLOG_FACILITY_LOG_CRON}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_CRON in syslog.h" >&5
- $as_echo_n "checking for LOG_CRON in syslog.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${SYSLOG_FACILITY_LOG_CRON_DIR}" != "x"; then
- SYSLOG_FACILITY_LOG_CRON_INCLUDE="-I${SYSLOG_FACILITY_LOG_CRON_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_CRON_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <syslog.h>
- int
- main ()
- {
- #if defined(LOG_CRON)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_SYSLOG_FACILITY_LOG_CRON=1
- $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_CRON 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SYSLOG_FACILITY_LOG_DAEMON}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_DAEMON in syslog.h" >&5
- $as_echo_n "checking for LOG_DAEMON in syslog.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${SYSLOG_FACILITY_LOG_DAEMON_DIR}" != "x"; then
- SYSLOG_FACILITY_LOG_DAEMON_INCLUDE="-I${SYSLOG_FACILITY_LOG_DAEMON_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_DAEMON_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <syslog.h>
- int
- main ()
- {
- #if defined(LOG_DAEMON)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_SYSLOG_FACILITY_LOG_DAEMON=1
- $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_DAEMON 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SYSLOG_FACILITY_LOG_FTP}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_FTP in syslog.h" >&5
- $as_echo_n "checking for LOG_FTP in syslog.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${SYSLOG_FACILITY_LOG_FTP_DIR}" != "x"; then
- SYSLOG_FACILITY_LOG_FTP_INCLUDE="-I${SYSLOG_FACILITY_LOG_FTP_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_FTP_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <syslog.h>
- int
- main ()
- {
- #if defined(LOG_FTP)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_SYSLOG_FACILITY_LOG_FTP=1
- $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_FTP 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SYSLOG_FACILITY_LOG_KERN}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_KERN in syslog.h" >&5
- $as_echo_n "checking for LOG_KERN in syslog.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${SYSLOG_FACILITY_LOG_KERN_DIR}" != "x"; then
- SYSLOG_FACILITY_LOG_KERN_INCLUDE="-I${SYSLOG_FACILITY_LOG_KERN_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_KERN_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <syslog.h>
- int
- main ()
- {
- #if defined(LOG_KERN)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_SYSLOG_FACILITY_LOG_KERN=1
- $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_KERN 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SYSLOG_FACILITY_LOG_LPR}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_LPR in syslog.h" >&5
- $as_echo_n "checking for LOG_LPR in syslog.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${SYSLOG_FACILITY_LOG_LPR_DIR}" != "x"; then
- SYSLOG_FACILITY_LOG_LPR_INCLUDE="-I${SYSLOG_FACILITY_LOG_LPR_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_LPR_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <syslog.h>
- int
- main ()
- {
- #if defined(LOG_LPR)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_SYSLOG_FACILITY_LOG_LPR=1
- $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_LPR 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SYSLOG_FACILITY_LOG_MAIL}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_MAIL in syslog.h" >&5
- $as_echo_n "checking for LOG_MAIL in syslog.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${SYSLOG_FACILITY_LOG_MAIL_DIR}" != "x"; then
- SYSLOG_FACILITY_LOG_MAIL_INCLUDE="-I${SYSLOG_FACILITY_LOG_MAIL_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_MAIL_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <syslog.h>
- int
- main ()
- {
- #if defined(LOG_MAIL)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_SYSLOG_FACILITY_LOG_MAIL=1
- $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_MAIL 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SYSLOG_FACILITY_LOG_NEWS}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_NEWS in syslog.h" >&5
- $as_echo_n "checking for LOG_NEWS in syslog.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${SYSLOG_FACILITY_LOG_NEWS_DIR}" != "x"; then
- SYSLOG_FACILITY_LOG_NEWS_INCLUDE="-I${SYSLOG_FACILITY_LOG_NEWS_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_NEWS_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <syslog.h>
- int
- main ()
- {
- #if defined(LOG_NEWS)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_SYSLOG_FACILITY_LOG_NEWS=1
- $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_NEWS 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SYSLOG_FACILITY_LOG_SYSLOG}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_SYSLOG in syslog.h" >&5
- $as_echo_n "checking for LOG_SYSLOG in syslog.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${SYSLOG_FACILITY_LOG_SYSLOG_DIR}" != "x"; then
- SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE="-I${SYSLOG_FACILITY_LOG_SYSLOG_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <syslog.h>
- int
- main ()
- {
- #if defined(LOG_SYSLOG)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_SYSLOG_FACILITY_LOG_SYSLOG=1
- $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_SYSLOG 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- if test "x${PBX_SYSLOG_FACILITY_LOG_UUCP}" != "x1"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_UUCP in syslog.h" >&5
- $as_echo_n "checking for LOG_UUCP in syslog.h... " >&6; }
- saved_cppflags="${CPPFLAGS}"
- if test "x${SYSLOG_FACILITY_LOG_UUCP_DIR}" != "x"; then
- SYSLOG_FACILITY_LOG_UUCP_INCLUDE="-I${SYSLOG_FACILITY_LOG_UUCP_DIR}/include"
- fi
- CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_UUCP_INCLUDE}"
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h. */
- #include <syslog.h>
- int
- main ()
- {
- #if defined(LOG_UUCP)
- int foo = 0;
- #else
- int foo = bar;
- #endif
- 0
- ;
- 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; }
- PBX_SYSLOG_FACILITY_LOG_UUCP=1
- $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_UUCP 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_ext
- CPPFLAGS="${saved_cppflags}"
- fi
- PBX_SYSLOG=1
- fi
- if test -f makeopts; then
- ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak
- else
- touch makeopts.acbak
- fi
- ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mandatory modules: ${ac_mandatory_list}" >&5
- $as_echo_n "checking for mandatory modules: ${ac_mandatory_list}... " >&6; }
- err=0;
- for i in ${ac_mandatory_list}; do
- eval "a=\${PBX_$i}"
- if test "x${a}" = "x1" ; then continue; fi
- if test ${err} = "0" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
- $as_echo "fail" >&6; } ; fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
- $as_echo "" >&6; }
- eval "a=\${${i}_OPTION}"
- { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
- $as_echo "$as_me: ***" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** The $i installation appears to be missing or broken." >&5
- $as_echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
- $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-${a}." >&5
- $as_echo "$as_me: *** including --without-${a}." >&6;}
- err=1
- done
- if test $err = 1 ; then exit 1; fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
- $as_echo "ok" >&6; }
- if test -f build_tools/menuselect-deps; then
- # extract old values of all PBX_ variables from menuselect-deps
- # and preserve them so that menuselect can determine whether
- # any previously-met dependencies are no longer met and warn
- # the user appropriately
- while IFS="=:" read var val old_val; do
- eval "PBX_${var}=\${PBX_${var}}:${val}"
- done < build_tools/menuselect-deps
- fi
- 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 asterisk $as_me trunk, 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"
- _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
- Report bugs to <https://issues.asterisk.org>."
- _ACEOF
- cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
- ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
- ac_cs_version="\\
- asterisk config.status trunk
- 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'
- INSTALL='$INSTALL'
- AWK='$AWK'
- 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
- _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
- "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
- "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
- "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
- *) 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
- 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 "
- 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
- #
- case $INSTALL in
- [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
- *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
- esac
- _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
- s&@INSTALL@&$ac_INSTALL&;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
- ;;
- 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
- ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
- if test "x${ac_cv_path_CMP}" = "x:"; then
- ( cd `pwd`/menuselect && ./configure )
- else if ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
- ( cd `pwd`/menuselect && ./configure )
- fi ; fi
- rm makeopts.acbak makeopts.acbak2
- if test "x${silent}" != "xyes" ; then
- echo
- echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
- echo " .\$7\$7.. .7\$\$7:. "
- echo " .\$\$:. ,\$7.7 "
- echo " .\$7. 7\$\$\$\$ .\$\$77 "
- echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
- echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
- echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
- echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
- echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
- echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
- echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
- echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
- echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
- echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
- echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
- echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
- echo " \$\$\$\$\$ \$\$\$ "
- echo " \$\$\$\$7. \$\$ (TM) "
- echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
- echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
- echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
- echo
- fi
- if test "x${AST_IODBC_FOUND}" = "xyes"; then
- echo "WARNING: iodbc libs/headers found!"
- echo
- echo " If you plan to use ODBC functionality, you should consider"
- echo " switching to unixodbc instead."
- echo " See: https://issues.asterisk.org/jira/browse/ASTERISK-22459"
- echo
- fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: Package configured for: " >&5
- $as_echo "$as_me: Package configured for: " >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: OS type : $host_os" >&5
- $as_echo "$as_me: OS type : $host_os" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: Host CPU : $host_cpu" >&5
- $as_echo "$as_me: Host CPU : $host_cpu" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
- $as_echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
- { $as_echo "$as_me:${as_lineno-$LINENO}: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
- $as_echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
- if test "${cross_compiling}" = "yes"; then
- { $as_echo "$as_me:${as_lineno-$LINENO}: Cross Compilation = YES" >&5
- $as_echo "$as_me: Cross Compilation = YES" >&6;}
- fi
|