configure 993 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.71 for asterisk master.
  4. #
  5. # Report bugs to <https://github.com/asterisk/asterisk/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
  9. # Inc.
  10. #
  11. #
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. #
  15. # "Asterisk"
  16. ## -------------------- ##
  17. ## M4sh Initialization. ##
  18. ## -------------------- ##
  19. # Be more Bourne compatible
  20. DUALCASE=1; export DUALCASE # for MKS sh
  21. as_nop=:
  22. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  23. then :
  24. emulate sh
  25. NULLCMD=:
  26. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  27. # is contrary to our usage. Disable this feature.
  28. alias -g '${1+"$@"}'='"$@"'
  29. setopt NO_GLOB_SUBST
  30. else $as_nop
  31. case `(set -o) 2>/dev/null` in #(
  32. *posix*) :
  33. set -o posix ;; #(
  34. *) :
  35. ;;
  36. esac
  37. fi
  38. # Reset variables that may have inherited troublesome values from
  39. # the environment.
  40. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  41. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  42. # side effect of setting IFS to empty, thus disabling word splitting.)
  43. # Quoting is to prevent editors from complaining about space-tab.
  44. as_nl='
  45. '
  46. export as_nl
  47. IFS=" "" $as_nl"
  48. PS1='$ '
  49. PS2='> '
  50. PS4='+ '
  51. # Ensure predictable behavior from utilities with locale-dependent output.
  52. LC_ALL=C
  53. export LC_ALL
  54. LANGUAGE=C
  55. export LANGUAGE
  56. # We cannot yet rely on "unset" to work, but we need these variables
  57. # to be unset--not just set to an empty or harmless value--now, to
  58. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  59. # also avoids known problems related to "unset" and subshell syntax
  60. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  61. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  62. do eval test \${$as_var+y} \
  63. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  64. done
  65. # Ensure that fds 0, 1, and 2 are open.
  66. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  67. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  68. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  69. # The user is always right.
  70. if ${PATH_SEPARATOR+false} :; then
  71. PATH_SEPARATOR=:
  72. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  73. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  74. PATH_SEPARATOR=';'
  75. }
  76. fi
  77. # Find who we are. Look in the path if we contain no directory separator.
  78. as_myself=
  79. case $0 in #((
  80. *[\\/]* ) as_myself=$0 ;;
  81. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  82. for as_dir in $PATH
  83. do
  84. IFS=$as_save_IFS
  85. case $as_dir in #(((
  86. '') as_dir=./ ;;
  87. */) ;;
  88. *) as_dir=$as_dir/ ;;
  89. esac
  90. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Use a proper internal environment variable to ensure we don't fall
  105. # into an infinite loop, continuously re-executing ourselves.
  106. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  107. _as_can_reexec=no; export _as_can_reexec;
  108. # We cannot yet assume a decent shell, so we have to provide a
  109. # neutralization value for shells without unset; and this also
  110. # works around shells that cannot unset nonexistent variables.
  111. # Preserve -v and -x to the replacement shell.
  112. BASH_ENV=/dev/null
  113. ENV=/dev/null
  114. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  115. case $- in # ((((
  116. *v*x* | *x*v* ) as_opts=-vx ;;
  117. *v* ) as_opts=-v ;;
  118. *x* ) as_opts=-x ;;
  119. * ) as_opts= ;;
  120. esac
  121. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  122. # Admittedly, this is quite paranoid, since all the known shells bail
  123. # out after a failed `exec'.
  124. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  125. exit 255
  126. fi
  127. # We don't want this to propagate to other subprocesses.
  128. { _as_can_reexec=; unset _as_can_reexec;}
  129. if test "x$CONFIG_SHELL" = x; then
  130. as_bourne_compatible="as_nop=:
  131. if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  132. then :
  133. emulate sh
  134. NULLCMD=:
  135. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  136. # is contrary to our usage. Disable this feature.
  137. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  138. setopt NO_GLOB_SUBST
  139. else \$as_nop
  140. case \`(set -o) 2>/dev/null\` in #(
  141. *posix*) :
  142. set -o posix ;; #(
  143. *) :
  144. ;;
  145. esac
  146. fi
  147. "
  148. as_required="as_fn_return () { (exit \$1); }
  149. as_fn_success () { as_fn_return 0; }
  150. as_fn_failure () { as_fn_return 1; }
  151. as_fn_ret_success () { return 0; }
  152. as_fn_ret_failure () { return 1; }
  153. exitcode=0
  154. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  155. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  156. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  157. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  158. if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  159. then :
  160. else \$as_nop
  161. exitcode=1; echo positional parameters were not saved.
  162. fi
  163. test x\$exitcode = x0 || exit 1
  164. blah=\$(echo \$(echo blah))
  165. test x\"\$blah\" = xblah || exit 1
  166. test -x / || exit 1"
  167. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  168. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  169. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  170. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  171. test \$(( 1 + 1 )) = 2 || exit 1"
  172. if (eval "$as_required") 2>/dev/null
  173. then :
  174. as_have_required=yes
  175. else $as_nop
  176. as_have_required=no
  177. fi
  178. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  179. then :
  180. else $as_nop
  181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  182. as_found=false
  183. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  184. do
  185. IFS=$as_save_IFS
  186. case $as_dir in #(((
  187. '') as_dir=./ ;;
  188. */) ;;
  189. *) as_dir=$as_dir/ ;;
  190. esac
  191. as_found=:
  192. case $as_dir in #(
  193. /*)
  194. for as_base in sh bash ksh sh5; do
  195. # Try only shells that exist, to save several forks.
  196. as_shell=$as_dir$as_base
  197. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  198. as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  199. then :
  200. CONFIG_SHELL=$as_shell as_have_required=yes
  201. if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  202. then :
  203. break 2
  204. fi
  205. fi
  206. done;;
  207. esac
  208. as_found=false
  209. done
  210. IFS=$as_save_IFS
  211. if $as_found
  212. then :
  213. else $as_nop
  214. if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  215. as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  216. then :
  217. CONFIG_SHELL=$SHELL as_have_required=yes
  218. fi
  219. fi
  220. if test "x$CONFIG_SHELL" != x
  221. then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno
  243. then :
  244. printf "%s\n" "$0: This script requires a shell more modern than all"
  245. printf "%s\n" "$0: the shells that I found on your system."
  246. if test ${ZSH_VERSION+y} ; then
  247. printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  248. printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  249. else
  250. printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
  251. $0: https://github.com/asterisk/asterisk/issues about your
  252. $0: system, including any error possibly output before this
  253. $0: message. Then install a modern shell, or manually run
  254. $0: the script under such a shell if you do have one."
  255. fi
  256. exit 1
  257. fi
  258. fi
  259. fi
  260. SHELL=${CONFIG_SHELL-/bin/sh}
  261. export SHELL
  262. # Unset more variables known to interfere with behavior of common tools.
  263. CLICOLOR_FORCE= GREP_OPTIONS=
  264. unset CLICOLOR_FORCE GREP_OPTIONS
  265. ## --------------------- ##
  266. ## M4sh Shell Functions. ##
  267. ## --------------------- ##
  268. # as_fn_unset VAR
  269. # ---------------
  270. # Portably unset VAR.
  271. as_fn_unset ()
  272. {
  273. { eval $1=; unset $1;}
  274. }
  275. as_unset=as_fn_unset
  276. # as_fn_set_status STATUS
  277. # -----------------------
  278. # Set $? to STATUS, without forking.
  279. as_fn_set_status ()
  280. {
  281. return $1
  282. } # as_fn_set_status
  283. # as_fn_exit STATUS
  284. # -----------------
  285. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  286. as_fn_exit ()
  287. {
  288. set +e
  289. as_fn_set_status $1
  290. exit $1
  291. } # as_fn_exit
  292. # as_fn_nop
  293. # ---------
  294. # Do nothing but, unlike ":", preserve the value of $?.
  295. as_fn_nop ()
  296. {
  297. return $?
  298. }
  299. as_nop=as_fn_nop
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. printf "%s\n" X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  358. then :
  359. eval 'as_fn_append ()
  360. {
  361. eval $1+=\$2
  362. }'
  363. else $as_nop
  364. as_fn_append ()
  365. {
  366. eval $1=\$$1\$2
  367. }
  368. fi # as_fn_append
  369. # as_fn_arith ARG...
  370. # ------------------
  371. # Perform arithmetic evaluation on the ARGs, and store the result in the
  372. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  373. # must be portable across $(()) and expr.
  374. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  375. then :
  376. eval 'as_fn_arith ()
  377. {
  378. as_val=$(( $* ))
  379. }'
  380. else $as_nop
  381. as_fn_arith ()
  382. {
  383. as_val=`expr "$@" || test $? -eq 1`
  384. }
  385. fi # as_fn_arith
  386. # as_fn_nop
  387. # ---------
  388. # Do nothing but, unlike ":", preserve the value of $?.
  389. as_fn_nop ()
  390. {
  391. return $?
  392. }
  393. as_nop=as_fn_nop
  394. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  395. # ----------------------------------------
  396. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  397. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  398. # script with STATUS, using 1 if that was 0.
  399. as_fn_error ()
  400. {
  401. as_status=$1; test $as_status -eq 0 && as_status=1
  402. if test "$4"; then
  403. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  405. fi
  406. printf "%s\n" "$as_me: error: $2" >&2
  407. as_fn_exit $as_status
  408. } # as_fn_error
  409. if expr a : '\(a\)' >/dev/null 2>&1 &&
  410. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  411. as_expr=expr
  412. else
  413. as_expr=false
  414. fi
  415. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  416. as_basename=basename
  417. else
  418. as_basename=false
  419. fi
  420. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  421. as_dirname=dirname
  422. else
  423. as_dirname=false
  424. fi
  425. as_me=`$as_basename -- "$0" ||
  426. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  427. X"$0" : 'X\(//\)$' \| \
  428. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  429. printf "%s\n" X/"$0" |
  430. sed '/^.*\/\([^/][^/]*\)\/*$/{
  431. s//\1/
  432. q
  433. }
  434. /^X\/\(\/\/\)$/{
  435. s//\1/
  436. q
  437. }
  438. /^X\/\(\/\).*/{
  439. s//\1/
  440. q
  441. }
  442. s/.*/./; q'`
  443. # Avoid depending upon Character Ranges.
  444. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  445. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  446. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  447. as_cr_digits='0123456789'
  448. as_cr_alnum=$as_cr_Letters$as_cr_digits
  449. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  450. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  451. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  452. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  453. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  454. sed -n '
  455. p
  456. /[$]LINENO/=
  457. ' <$as_myself |
  458. sed '
  459. s/[$]LINENO.*/&-/
  460. t lineno
  461. b
  462. :lineno
  463. N
  464. :loop
  465. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  466. t loop
  467. s/-\n.*//
  468. ' >$as_me.lineno &&
  469. chmod +x "$as_me.lineno" ||
  470. { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  471. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  472. # already done that, so ensure we don't try to do so again and fall
  473. # in an infinite loop. This has already happened in practice.
  474. _as_can_reexec=no; export _as_can_reexec
  475. # Don't try to exec as it changes $[0], causing all sort of problems
  476. # (the dirname of $[0] is not the place where we might find the
  477. # original and so on. Autoconf is especially sensitive to this).
  478. . "./$as_me.lineno"
  479. # Exit status is that of the last command.
  480. exit
  481. }
  482. # Determine whether it's possible to make 'echo' print without a newline.
  483. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  484. # for compatibility with existing Makefiles.
  485. ECHO_C= ECHO_N= ECHO_T=
  486. case `echo -n x` in #(((((
  487. -n*)
  488. case `echo 'xy\c'` in
  489. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  490. xy) ECHO_C='\c';;
  491. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  492. ECHO_T=' ';;
  493. esac;;
  494. *)
  495. ECHO_N='-n';;
  496. esac
  497. # For backward compatibility with old third-party macros, we provide
  498. # the shell variables $as_echo and $as_echo_n. New code should use
  499. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  500. as_echo='printf %s\n'
  501. as_echo_n='printf %s'
  502. rm -f conf$$ conf$$.exe conf$$.file
  503. if test -d conf$$.dir; then
  504. rm -f conf$$.dir/conf$$.file
  505. else
  506. rm -f conf$$.dir
  507. mkdir conf$$.dir 2>/dev/null
  508. fi
  509. if (echo >conf$$.file) 2>/dev/null; then
  510. if ln -s conf$$.file conf$$ 2>/dev/null; then
  511. as_ln_s='ln -s'
  512. # ... but there are two gotchas:
  513. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  514. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  515. # In both cases, we have to default to `cp -pR'.
  516. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  517. as_ln_s='cp -pR'
  518. elif ln conf$$.file conf$$ 2>/dev/null; then
  519. as_ln_s=ln
  520. else
  521. as_ln_s='cp -pR'
  522. fi
  523. else
  524. as_ln_s='cp -pR'
  525. fi
  526. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  527. rmdir conf$$.dir 2>/dev/null
  528. if mkdir -p . 2>/dev/null; then
  529. as_mkdir_p='mkdir -p "$as_dir"'
  530. else
  531. test -d ./-p && rmdir ./-p
  532. as_mkdir_p=false
  533. fi
  534. as_test_x='test -x'
  535. as_executable_p=as_fn_executable_p
  536. # Sed expression to map a string onto a valid CPP name.
  537. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  538. # Sed expression to map a string onto a valid variable name.
  539. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  540. test -n "$DJDIR" || exec 7<&0 </dev/null
  541. exec 6>&1
  542. # Name of the host.
  543. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  544. # so uname gets run too.
  545. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  546. #
  547. # Initializations.
  548. #
  549. ac_default_prefix=/usr/local
  550. ac_clean_files=
  551. ac_config_libobj_dir=.
  552. LIBOBJS=
  553. cross_compiling=no
  554. subdirs=
  555. MFLAGS=
  556. MAKEFLAGS=
  557. # Identity of this package.
  558. PACKAGE_NAME='asterisk'
  559. PACKAGE_TARNAME='asterisk'
  560. PACKAGE_VERSION='master'
  561. PACKAGE_STRING='asterisk master'
  562. PACKAGE_BUGREPORT='https://github.com/asterisk/asterisk/issues'
  563. PACKAGE_URL=''
  564. ac_unique_file="main/asterisk.c"
  565. # Factoring default headers for most tests.
  566. ac_includes_default="\
  567. #include <stddef.h>
  568. #ifdef HAVE_STDIO_H
  569. # include <stdio.h>
  570. #endif
  571. #ifdef HAVE_STDLIB_H
  572. # include <stdlib.h>
  573. #endif
  574. #ifdef HAVE_STRING_H
  575. # include <string.h>
  576. #endif
  577. #ifdef HAVE_INTTYPES_H
  578. # include <inttypes.h>
  579. #endif
  580. #ifdef HAVE_STDINT_H
  581. # include <stdint.h>
  582. #endif
  583. #ifdef HAVE_STRINGS_H
  584. # include <strings.h>
  585. #endif
  586. #ifdef HAVE_SYS_TYPES_H
  587. # include <sys/types.h>
  588. #endif
  589. #ifdef HAVE_SYS_STAT_H
  590. # include <sys/stat.h>
  591. #endif
  592. #ifdef HAVE_UNISTD_H
  593. # include <unistd.h>
  594. #endif"
  595. ac_header_c_list=
  596. ac_func_c_list=
  597. ac_subst_vars='LTLIBOBJS
  598. PBX_SYSLOG
  599. PBX_SYSLOG_FACILITY_LOG_UUCP
  600. PBX_SYSLOG_FACILITY_LOG_SYSLOG
  601. PBX_SYSLOG_FACILITY_LOG_NEWS
  602. PBX_SYSLOG_FACILITY_LOG_MAIL
  603. PBX_SYSLOG_FACILITY_LOG_LPR
  604. PBX_SYSLOG_FACILITY_LOG_KERN
  605. PBX_SYSLOG_FACILITY_LOG_FTP
  606. PBX_SYSLOG_FACILITY_LOG_DAEMON
  607. PBX_SYSLOG_FACILITY_LOG_CRON
  608. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
  609. PBX_SYSLOG_FACILITY_LOG_AUTH
  610. SYSTEMD_LIBS
  611. SYSTEMD_CFLAGS
  612. SYSTEMD_INCLUDE
  613. SYSTEMD_LIB
  614. PBX_SYSTEMD
  615. PBX_GENERIC_ODBC
  616. GENERIC_ODBC_INCLUDE
  617. GENERIC_ODBC_LIB
  618. GTK2_LIBS
  619. GTK2_CFLAGS
  620. PBX_LAUNCHD
  621. CONFIG_SDL
  622. GMIME_LIBS
  623. GMIME_CFLAGS
  624. PORTAUDIO_LIBS
  625. PORTAUDIO_CFLAGS
  626. PYTHONDEV_LIBS
  627. PYTHONDEV_CFLAGS
  628. PYTHONDEV_INCLUDE
  629. PYTHONDEV_LIB
  630. PJPROJECT_LIBS
  631. PJPROJECT_CFLAGS
  632. PG_CONFIG
  633. CONFIG_NETSNMP
  634. NETSNMP_LIBS
  635. NETSNMP_CFLAGS
  636. CONFIG_NEON29
  637. CONFIG_NEON
  638. CONFIG_MYSQLCLIENT
  639. ILBC_LIBS
  640. ILBC_CFLAGS
  641. ILBC_INTERNAL
  642. GSM_INTERNAL
  643. PBX_DAHDI_HALF_FULL
  644. PBX_DLADDR
  645. PBX_IP_MTU_DISCOVER
  646. PBX_RTLD_NOLOAD
  647. PBX_GLOB_BRACE
  648. PBX_GLOB_NOMAGIC
  649. BIND8_CFLAGS
  650. AST_RPATH
  651. AST_NATIVE_ARCH
  652. AST_SHADOW_WARNINGS
  653. AST_NO_STRINGOP_TRUNCATION
  654. AST_NO_FORMAT_Y2K
  655. AST_NO_FORMAT_TRUNCATION
  656. AST_NO_STRICT_OVERFLOW
  657. AST_FORTIFY_SOURCE
  658. AST_TRAMPOLINES
  659. AST_DECLARATION_AFTER_STATEMENT
  660. AST_UNDEFINED_SANITIZER
  661. AST_LEAK_SANITIZER
  662. AST_THREAD_SANITIZER
  663. AST_ADDRESS_SANITIZER
  664. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
  665. PBX_PTHREAD_RWLOCK_INITIALIZER
  666. AST_ASTERISKSSL
  667. HAS_POLL
  668. PBX_DYNAMIC_LIST
  669. POW_LIB
  670. PBX_WORKING_FORK
  671. LIBOBJS
  672. PERMANENT_DLOPEN
  673. DISABLE_XMLDOC
  674. CONFIG_LIBXML2
  675. LIBXML2_LIBS
  676. LIBXML2_CFLAGS
  677. LIBJWT_LIBS
  678. LIBJWT_CFLAGS
  679. JANSSON_LIBS
  680. JANSSON_CFLAGS
  681. UUID_LIB
  682. UUID_INCLUDE
  683. LIBEDIT_LIBS
  684. LIBEDIT_CFLAGS
  685. ALLOCA
  686. PBX_ZLIB
  687. ZLIB_DIR
  688. ZLIB_INCLUDE
  689. ZLIB_LIB
  690. PBX_X11
  691. X11_DIR
  692. X11_INCLUDE
  693. X11_LIB
  694. PBX_VORBIS
  695. VORBIS_DIR
  696. VORBIS_INCLUDE
  697. VORBIS_LIB
  698. PBX_UNIXODBC
  699. UNIXODBC_DIR
  700. UNIXODBC_INCLUDE
  701. UNIXODBC_LIB
  702. PBX_UNBOUND
  703. UNBOUND_DIR
  704. UNBOUND_INCLUDE
  705. UNBOUND_LIB
  706. PBX_TONEZONE
  707. TONEZONE_DIR
  708. TONEZONE_INCLUDE
  709. TONEZONE_LIB
  710. PBX_TIMERFD
  711. TIMERFD_DIR
  712. TIMERFD_INCLUDE
  713. TIMERFD_LIB
  714. PBX_FREETDS
  715. FREETDS_DIR
  716. FREETDS_INCLUDE
  717. FREETDS_LIB
  718. PBX_RT
  719. RT_DIR
  720. RT_INCLUDE
  721. RT_LIB
  722. PBX_SRTP_GET_VERSION
  723. SRTP_GET_VERSION_DIR
  724. SRTP_GET_VERSION_INCLUDE
  725. SRTP_GET_VERSION_LIB
  726. PBX_SRTP_SHUTDOWN
  727. SRTP_SHUTDOWN_DIR
  728. SRTP_SHUTDOWN_INCLUDE
  729. SRTP_SHUTDOWN_LIB
  730. PBX_SRTP_GCM
  731. SRTP_GCM_DIR
  732. SRTP_GCM_INCLUDE
  733. SRTP_GCM_LIB
  734. PBX_SRTP_192
  735. SRTP_192_DIR
  736. SRTP_192_INCLUDE
  737. SRTP_192_LIB
  738. PBX_SRTP_256
  739. SRTP_256_DIR
  740. SRTP_256_INCLUDE
  741. SRTP_256_LIB
  742. PBX_SRTP
  743. SRTP_DIR
  744. SRTP_INCLUDE
  745. SRTP_LIB
  746. PBX_SQLITE3
  747. SQLITE3_DIR
  748. SQLITE3_INCLUDE
  749. SQLITE3_LIB
  750. PBX_SPEEXDSP
  751. SPEEXDSP_DIR
  752. SPEEXDSP_INCLUDE
  753. SPEEXDSP_LIB
  754. PBX_SPEEX_PREPROCESS
  755. SPEEX_PREPROCESS_DIR
  756. SPEEX_PREPROCESS_INCLUDE
  757. SPEEX_PREPROCESS_LIB
  758. PBX_SPEEX
  759. SPEEX_DIR
  760. SPEEX_INCLUDE
  761. SPEEX_LIB
  762. PBX_SS7
  763. SS7_DIR
  764. SS7_INCLUDE
  765. SS7_LIB
  766. PBX_SPANDSP
  767. SPANDSP_DIR
  768. SPANDSP_INCLUDE
  769. SPANDSP_LIB
  770. PBX_SDL_IMAGE
  771. SDL_IMAGE_DIR
  772. SDL_IMAGE_INCLUDE
  773. SDL_IMAGE_LIB
  774. PBX_SDL
  775. SDL_DIR
  776. SDL_INCLUDE
  777. SDL_LIB
  778. PBX_SNDFILE
  779. SNDFILE_DIR
  780. SNDFILE_INCLUDE
  781. SNDFILE_LIB
  782. PBX_RESAMPLE
  783. RESAMPLE_DIR
  784. RESAMPLE_INCLUDE
  785. RESAMPLE_LIB
  786. PBX_FFTW3
  787. FFTW3_DIR
  788. FFTW3_INCLUDE
  789. FFTW3_LIB
  790. PBX_RADIUS
  791. RADIUS_DIR
  792. RADIUS_INCLUDE
  793. RADIUS_LIB
  794. PBX_PRI_REVERSE_CHARGE
  795. PRI_REVERSE_CHARGE_DIR
  796. PRI_REVERSE_CHARGE_INCLUDE
  797. PRI_REVERSE_CHARGE_LIB
  798. PBX_PRI_SERVICE_MESSAGES
  799. PRI_SERVICE_MESSAGES_DIR
  800. PRI_SERVICE_MESSAGES_INCLUDE
  801. PRI_SERVICE_MESSAGES_LIB
  802. PBX_PRI_PROG_W_CAUSE
  803. PRI_PROG_W_CAUSE_DIR
  804. PRI_PROG_W_CAUSE_INCLUDE
  805. PRI_PROG_W_CAUSE_LIB
  806. PBX_PRI_INBANDDISCONNECT
  807. PRI_INBANDDISCONNECT_DIR
  808. PRI_INBANDDISCONNECT_INCLUDE
  809. PRI_INBANDDISCONNECT_LIB
  810. PBX_PRI_SETUP_KEYPAD
  811. PRI_SETUP_KEYPAD_DIR
  812. PRI_SETUP_KEYPAD_INCLUDE
  813. PRI_SETUP_KEYPAD_LIB
  814. PBX_PRI_CALL_REROUTING
  815. PRI_CALL_REROUTING_DIR
  816. PRI_CALL_REROUTING_INCLUDE
  817. PRI_CALL_REROUTING_LIB
  818. PBX_PRI_CALL_HOLD
  819. PRI_CALL_HOLD_DIR
  820. PRI_CALL_HOLD_INCLUDE
  821. PRI_CALL_HOLD_LIB
  822. PBX_PRI_SUBADDR
  823. PRI_SUBADDR_DIR
  824. PRI_SUBADDR_INCLUDE
  825. PRI_SUBADDR_LIB
  826. PBX_PRI_HANGUP_FIX
  827. PRI_HANGUP_FIX_DIR
  828. PRI_HANGUP_FIX_INCLUDE
  829. PRI_HANGUP_FIX_LIB
  830. PBX_PRI_CCSS
  831. PRI_CCSS_DIR
  832. PRI_CCSS_INCLUDE
  833. PRI_CCSS_LIB
  834. PBX_PRI_TRANSFER
  835. PRI_TRANSFER_DIR
  836. PRI_TRANSFER_INCLUDE
  837. PRI_TRANSFER_LIB
  838. PBX_PRI_AOC_EVENTS
  839. PRI_AOC_EVENTS_DIR
  840. PRI_AOC_EVENTS_INCLUDE
  841. PRI_AOC_EVENTS_LIB
  842. PBX_PRI_CALL_WAITING
  843. PRI_CALL_WAITING_DIR
  844. PRI_CALL_WAITING_INCLUDE
  845. PRI_CALL_WAITING_LIB
  846. PBX_PRI_MCID
  847. PRI_MCID_DIR
  848. PRI_MCID_INCLUDE
  849. PRI_MCID_LIB
  850. PBX_PRI_MWI
  851. PRI_MWI_DIR
  852. PRI_MWI_INCLUDE
  853. PRI_MWI_LIB
  854. PBX_PRI_DISPLAY_TEXT
  855. PRI_DISPLAY_TEXT_DIR
  856. PRI_DISPLAY_TEXT_INCLUDE
  857. PRI_DISPLAY_TEXT_LIB
  858. PBX_PRI_MWI_V2
  859. PRI_MWI_V2_DIR
  860. PRI_MWI_V2_INCLUDE
  861. PRI_MWI_V2_LIB
  862. PBX_PRI_DATETIME_SEND
  863. PRI_DATETIME_SEND_DIR
  864. PRI_DATETIME_SEND_INCLUDE
  865. PRI_DATETIME_SEND_LIB
  866. PBX_PRI_L2_PERSISTENCE
  867. PRI_L2_PERSISTENCE_DIR
  868. PRI_L2_PERSISTENCE_INCLUDE
  869. PRI_L2_PERSISTENCE_LIB
  870. PBX_PRI_SETUP_ACK_INBAND
  871. PRI_SETUP_ACK_INBAND_DIR
  872. PRI_SETUP_ACK_INBAND_INCLUDE
  873. PRI_SETUP_ACK_INBAND_LIB
  874. PBX_PRI
  875. PRI_DIR
  876. PRI_INCLUDE
  877. PRI_LIB
  878. PBX_PORTAUDIO
  879. PORTAUDIO_DIR
  880. PORTAUDIO_INCLUDE
  881. PORTAUDIO_LIB
  882. PBX_POPT
  883. POPT_DIR
  884. POPT_INCLUDE
  885. POPT_LIB
  886. PBX_PJSIP_TLS_TRANSPORT_RESTART
  887. PJSIP_TLS_TRANSPORT_RESTART_DIR
  888. PJSIP_TLS_TRANSPORT_RESTART_INCLUDE
  889. PJSIP_TLS_TRANSPORT_RESTART_LIB
  890. PBX_PJSIP_OAUTH_AUTHENTICATION
  891. PJSIP_OAUTH_AUTHENTICATION_DIR
  892. PJSIP_OAUTH_AUTHENTICATION_INCLUDE
  893. PJSIP_OAUTH_AUTHENTICATION_LIB
  894. PBX_PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE
  895. PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_DIR
  896. PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_INCLUDE
  897. PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_LIB
  898. PBX_PJSIP_ENDPOINT_COMPACT_FORM
  899. PJSIP_ENDPOINT_COMPACT_FORM_DIR
  900. PJSIP_ENDPOINT_COMPACT_FORM_INCLUDE
  901. PJSIP_ENDPOINT_COMPACT_FORM_LIB
  902. PBX_PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS
  903. PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_DIR
  904. PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_INCLUDE
  905. PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_LIB
  906. PBX_PJSIP_TSX_LAYER_FIND_TSX2
  907. PJSIP_TSX_LAYER_FIND_TSX2_DIR
  908. PJSIP_TSX_LAYER_FIND_TSX2_INCLUDE
  909. PJSIP_TSX_LAYER_FIND_TSX2_LIB
  910. PBX_PJSIP_AUTH_CLT_DEINIT
  911. PJSIP_AUTH_CLT_DEINIT_DIR
  912. PJSIP_AUTH_CLT_DEINIT_INCLUDE
  913. PJSIP_AUTH_CLT_DEINIT_LIB
  914. PBX_PJSIP_INV_SESSION_REF
  915. PJSIP_INV_SESSION_REF_DIR
  916. PJSIP_INV_SESSION_REF_INCLUDE
  917. PJSIP_INV_SESSION_REF_LIB
  918. PBX_PJSIP_EVSUB_GRP_LOCK
  919. PJSIP_EVSUB_GRP_LOCK_DIR
  920. PJSIP_EVSUB_GRP_LOCK_INCLUDE
  921. PJSIP_EVSUB_GRP_LOCK_LIB
  922. PBX_PJSIP_TLS_1_3
  923. PJSIP_TLS_1_3_DIR
  924. PJSIP_TLS_1_3_INCLUDE
  925. PJSIP_TLS_1_3_LIB
  926. PBX_PJSIP_TLS_1_2
  927. PJSIP_TLS_1_2_DIR
  928. PJSIP_TLS_1_2_INCLUDE
  929. PJSIP_TLS_1_2_LIB
  930. PBX_PJSIP_TLS_1_1
  931. PJSIP_TLS_1_1_DIR
  932. PJSIP_TLS_1_1_INCLUDE
  933. PJSIP_TLS_1_1_LIB
  934. PBX_PJSIP_TLS_TRANSPORT_PROTO
  935. PJSIP_TLS_TRANSPORT_PROTO_DIR
  936. PJSIP_TLS_TRANSPORT_PROTO_INCLUDE
  937. PJSIP_TLS_TRANSPORT_PROTO_LIB
  938. PBX_PJSIP_EXTERNAL_RESOLVER
  939. PJSIP_EXTERNAL_RESOLVER_DIR
  940. PJSIP_EXTERNAL_RESOLVER_INCLUDE
  941. PJSIP_EXTERNAL_RESOLVER_LIB
  942. PBX_PJ_SSL_CERT_LOAD_FROM_FILES2
  943. PJ_SSL_CERT_LOAD_FROM_FILES2_DIR
  944. PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE
  945. PJ_SSL_CERT_LOAD_FROM_FILES2_LIB
  946. PBX_PJSIP_GET_DEST_INFO
  947. PJSIP_GET_DEST_INFO_DIR
  948. PJSIP_GET_DEST_INFO_INCLUDE
  949. PJSIP_GET_DEST_INFO_LIB
  950. PBX_PJSIP_REPLACE_MEDIA_STREAM
  951. PJSIP_REPLACE_MEDIA_STREAM_DIR
  952. PJSIP_REPLACE_MEDIA_STREAM_INCLUDE
  953. PJSIP_REPLACE_MEDIA_STREAM_LIB
  954. PBX_PJ_TRANSACTION_GRP_LOCK
  955. PJ_TRANSACTION_GRP_LOCK_DIR
  956. PJ_TRANSACTION_GRP_LOCK_INCLUDE
  957. PJ_TRANSACTION_GRP_LOCK_LIB
  958. PBX_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK
  959. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_DIR
  960. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_INCLUDE
  961. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_LIB
  962. PBX_BEANSTALK
  963. BEANSTALK_DIR
  964. BEANSTALK_INCLUDE
  965. BEANSTALK_LIB
  966. PBX_PGSQL
  967. PGSQL_DIR
  968. PGSQL_INCLUDE
  969. PGSQL_LIB
  970. PBX_OPUSFILE
  971. OPUSFILE_DIR
  972. OPUSFILE_INCLUDE
  973. OPUSFILE_LIB
  974. PBX_OPUS
  975. OPUS_DIR
  976. OPUS_INCLUDE
  977. OPUS_LIB
  978. PBX_OPENR2
  979. OPENR2_DIR
  980. OPENR2_INCLUDE
  981. OPENR2_LIB
  982. PBX_OGG
  983. OGG_DIR
  984. OGG_INCLUDE
  985. OGG_LIB
  986. PBX_NEWT
  987. NEWT_DIR
  988. NEWT_INCLUDE
  989. NEWT_LIB
  990. PBX_NETSNMP
  991. NETSNMP_DIR
  992. NETSNMP_INCLUDE
  993. NETSNMP_LIB
  994. PBX_NEON29
  995. NEON29_DIR
  996. NEON29_INCLUDE
  997. NEON29_LIB
  998. PBX_NEON
  999. NEON_DIR
  1000. NEON_INCLUDE
  1001. NEON_LIB
  1002. PBX_MYSQLCLIENT
  1003. MYSQLCLIENT_DIR
  1004. MYSQLCLIENT_INCLUDE
  1005. MYSQLCLIENT_LIB
  1006. LUA_VERSIONS
  1007. PBX_LUA
  1008. LUA_DIR
  1009. LUA_INCLUDE
  1010. LUA_LIB
  1011. PBX_LIBXSLT_CLEANUP
  1012. LIBXSLT_CLEANUP_DIR
  1013. LIBXSLT_CLEANUP_INCLUDE
  1014. LIBXSLT_CLEANUP_LIB
  1015. PBX_LIBXSLT
  1016. LIBXSLT_DIR
  1017. LIBXSLT_INCLUDE
  1018. LIBXSLT_LIB
  1019. PBX_LIBXML2
  1020. LIBXML2_DIR
  1021. LIBXML2_INCLUDE
  1022. LIBXML2_LIB
  1023. LIBJWT_DIR
  1024. PBX_LIBEDIT_IS_UNICODE
  1025. LIBEDIT_IS_UNICODE_DIR
  1026. LIBEDIT_IS_UNICODE_INCLUDE
  1027. LIBEDIT_IS_UNICODE_LIB
  1028. PBX_LIBEDIT
  1029. LIBEDIT_DIR
  1030. LIBEDIT_INCLUDE
  1031. LIBEDIT_LIB
  1032. CURL_LIB
  1033. CURL_INCLUDE
  1034. _libcurl_config
  1035. PBX_CURL
  1036. PBX_LDAP
  1037. LDAP_DIR
  1038. LDAP_INCLUDE
  1039. LDAP_LIB
  1040. PBX_KQUEUE
  1041. KQUEUE_DIR
  1042. KQUEUE_INCLUDE
  1043. KQUEUE_LIB
  1044. PBX_URIPARSER
  1045. URIPARSER_DIR
  1046. URIPARSER_INCLUDE
  1047. URIPARSER_LIB
  1048. JANSSON_DIR
  1049. PBX_JACK
  1050. JACK_DIR
  1051. JACK_INCLUDE
  1052. JACK_LIB
  1053. PBX_IODBC
  1054. IODBC_DIR
  1055. IODBC_INCLUDE
  1056. IODBC_LIB
  1057. PBX_INOTIFY
  1058. INOTIFY_DIR
  1059. INOTIFY_INCLUDE
  1060. INOTIFY_LIB
  1061. PBX_IMAP_TK
  1062. IMAP_TK_DIR
  1063. IMAP_TK_INCLUDE
  1064. IMAP_TK_LIB
  1065. PBX_IKSEMEL
  1066. IKSEMEL_DIR
  1067. IKSEMEL_INCLUDE
  1068. IKSEMEL_LIB
  1069. PBX_ICONV
  1070. ICONV_DIR
  1071. ICONV_INCLUDE
  1072. ICONV_LIB
  1073. PBX_ICAL
  1074. ICAL_DIR
  1075. ICAL_INCLUDE
  1076. ICAL_LIB
  1077. PBX_HOARD
  1078. HOARD_DIR
  1079. HOARD_INCLUDE
  1080. HOARD_LIB
  1081. PBX_GMIME
  1082. GMIME_DIR
  1083. GMIME_INCLUDE
  1084. GMIME_LIB
  1085. PBX_GTK2
  1086. GTK2_DIR
  1087. GTK2_INCLUDE
  1088. GTK2_LIB
  1089. PBX_ILBC
  1090. ILBC_DIR
  1091. ILBC_INCLUDE
  1092. ILBC_LIB
  1093. PBX_GSM
  1094. GSM_DIR
  1095. GSM_INCLUDE
  1096. GSM_LIB
  1097. PBX_FFMPEG
  1098. FFMPEG_DIR
  1099. FFMPEG_INCLUDE
  1100. FFMPEG_LIB
  1101. PBX_DAHDI
  1102. DAHDI_DIR
  1103. DAHDI_INCLUDE
  1104. DAHDI_LIB
  1105. PBX_CRYPT
  1106. CRYPT_DIR
  1107. CRYPT_INCLUDE
  1108. CRYPT_LIB
  1109. PBX_COROSYNC_CFG_STATE_TRACK
  1110. COROSYNC_CFG_STATE_TRACK_DIR
  1111. COROSYNC_CFG_STATE_TRACK_INCLUDE
  1112. COROSYNC_CFG_STATE_TRACK_LIB
  1113. PBX_COROSYNC
  1114. COROSYNC_DIR
  1115. COROSYNC_INCLUDE
  1116. COROSYNC_LIB
  1117. PBX_CODEC2
  1118. CODEC2_DIR
  1119. CODEC2_INCLUDE
  1120. CODEC2_LIB
  1121. PBX_CAP
  1122. CAP_DIR
  1123. CAP_INCLUDE
  1124. CAP_LIB
  1125. PBX_BLUETOOTH
  1126. BLUETOOTH_DIR
  1127. BLUETOOTH_INCLUDE
  1128. BLUETOOTH_LIB
  1129. PBX_BKTR
  1130. BKTR_DIR
  1131. BKTR_INCLUDE
  1132. BKTR_LIB
  1133. PBX_BFD
  1134. BFD_DIR
  1135. BFD_INCLUDE
  1136. BFD_LIB
  1137. LIBJWT_INCLUDE
  1138. LIBJWT_LIB
  1139. PBX_LIBJWT
  1140. LIBJWT_BUNDLED
  1141. LIBJWT_CONFIGURE_OPTS
  1142. PJPROJECT_INCLUDE
  1143. PJPROJECT_LIB
  1144. PBX_PJPROJECT
  1145. PJPROJECT_DIR
  1146. PJPROJECT_BUNDLED_OOT
  1147. PJPROJECT_BUNDLED
  1148. PJPROJECT_CONFIGURE_OPTS
  1149. JANSSON_INCLUDE
  1150. JANSSON_LIB
  1151. PBX_JANSSON
  1152. JANSSON_BUNDLED
  1153. JANSSON_CONFIGURE_OPTS
  1154. OPENSSL_LIBS
  1155. OPENSSL_CFLAGS
  1156. PBX_OPENSSL_BIO_METHOD
  1157. OPENSSL_BIO_METHOD_DIR
  1158. OPENSSL_BIO_METHOD_INCLUDE
  1159. OPENSSL_BIO_METHOD_LIB
  1160. PBX_OPENSSL
  1161. OPENSSL_DIR
  1162. OPENSSL_INCLUDE
  1163. OPENSSL_LIB
  1164. PBX_CRYPTO
  1165. CRYPTO_DIR
  1166. CRYPTO_INCLUDE
  1167. CRYPTO_LIB
  1168. AST_C_COMPILER_FAMILY
  1169. AST_CLANG_BLOCKS
  1170. AST_CLANG_BLOCKS_LIBS
  1171. AST_NESTED_FUNCTIONS
  1172. AST_CODE_COVERAGE
  1173. EXTERNALS_CACHE_DIR
  1174. SOUNDS_CACHE_DIR
  1175. AST_DOWNLOAD_CACHE
  1176. AST_DEVMODE_STRICT
  1177. AST_DEVMODE
  1178. NOISY_BUILD
  1179. PBX_NO_BINARY_MODULES
  1180. PTHREAD_CFLAGS
  1181. PTHREAD_LIBS
  1182. PTHREAD_CXX
  1183. PTHREAD_CC
  1184. ax_pthread_config
  1185. MD5
  1186. SOXMIX
  1187. PBX_BASH
  1188. PBX_XMLSTARLET
  1189. PBX_FLEX
  1190. PBX_BISON
  1191. PKG_CONFIG_LIBDIR
  1192. PKG_CONFIG_PATH
  1193. PKG_CONFIG
  1194. OPENSSL
  1195. SHA1SUM
  1196. LDCONFIG
  1197. DOWNLOAD_TIMEOUT
  1198. DOWNLOAD_TO_STDOUT
  1199. DOWNLOAD
  1200. FETCH
  1201. REALPATH
  1202. NM
  1203. PATCH
  1204. TAR
  1205. BZIP2
  1206. ALEMBIC
  1207. GIT
  1208. BASH
  1209. XMLSTARLET
  1210. XMLLINT
  1211. CURL
  1212. WGET
  1213. DOT
  1214. DOXYGEN
  1215. LN
  1216. DIRNAME
  1217. BASENAME
  1218. FIND
  1219. PYTHON
  1220. FLEX
  1221. CUT
  1222. CAT
  1223. CMP
  1224. BISON
  1225. GNU_LD
  1226. ac_ct_AR
  1227. AR
  1228. ac_ct_STRIP
  1229. STRIP
  1230. GREP
  1231. GNU_MAKE
  1232. LN_S
  1233. INSTALL_DATA
  1234. INSTALL_SCRIPT
  1235. INSTALL_PROGRAM
  1236. AWK
  1237. EGREP
  1238. SED
  1239. CXXCPP
  1240. CPP
  1241. ac_ct_CXX
  1242. CXXFLAGS
  1243. CROSS_COMPILING
  1244. RANLIB
  1245. LD
  1246. CXX
  1247. PBX_OSREV
  1248. UNAME
  1249. CONFIG_SIGNED_CHAR
  1250. PBX_WINARCH
  1251. OSARCH
  1252. HOST_OS
  1253. HOST_VENDOR
  1254. HOST_CPU
  1255. HOST_PLATFORM
  1256. BUILD_OS
  1257. BUILD_VENDOR
  1258. BUILD_CPU
  1259. BUILD_PLATFORM
  1260. astvarrundir
  1261. astlogdir
  1262. astspooldir
  1263. astkeydir
  1264. astdbdir
  1265. astdatadir
  1266. astvarlibdir
  1267. astmandir
  1268. astmoddir
  1269. astlibdir
  1270. astheaderdir
  1271. astetcdir
  1272. astcachedir
  1273. astsbindir
  1274. OBJEXT
  1275. EXEEXT
  1276. ac_ct_CC
  1277. CPPFLAGS
  1278. LDFLAGS
  1279. CFLAGS
  1280. CC
  1281. CONFIG_LDFLAGS
  1282. CONFIG_CFLAGS
  1283. host_os
  1284. host_vendor
  1285. host_cpu
  1286. host
  1287. build_os
  1288. build_vendor
  1289. build_cpu
  1290. build
  1291. target_alias
  1292. host_alias
  1293. build_alias
  1294. LIBS
  1295. ECHO_T
  1296. ECHO_N
  1297. ECHO_C
  1298. DEFS
  1299. mandir
  1300. localedir
  1301. libdir
  1302. psdir
  1303. pdfdir
  1304. dvidir
  1305. htmldir
  1306. infodir
  1307. docdir
  1308. oldincludedir
  1309. includedir
  1310. runstatedir
  1311. localstatedir
  1312. sharedstatedir
  1313. sysconfdir
  1314. datadir
  1315. datarootdir
  1316. libexecdir
  1317. sbindir
  1318. bindir
  1319. program_transform_name
  1320. prefix
  1321. exec_prefix
  1322. PACKAGE_URL
  1323. PACKAGE_BUGREPORT
  1324. PACKAGE_STRING
  1325. PACKAGE_VERSION
  1326. PACKAGE_TARNAME
  1327. PACKAGE_NAME
  1328. PATH_SEPARATOR
  1329. SHELL'
  1330. ac_subst_files=''
  1331. ac_user_opts='
  1332. enable_option_checking
  1333. with_gnu_ld
  1334. enable_binary_modules
  1335. enable_dev_mode
  1336. with_download_cache
  1337. with_sounds_cache
  1338. with_externals_cache
  1339. enable_coverage
  1340. with_jansson_bundled
  1341. with_pjproject_bundled
  1342. with_libjwt_bundled
  1343. with_crypto
  1344. with_ssl
  1345. with_bfd
  1346. with_execinfo
  1347. with_bluetooth
  1348. with_cap
  1349. with_codec2
  1350. with_cpg
  1351. with_crypt
  1352. with_dahdi
  1353. with_avcodec
  1354. with_gsm
  1355. with_ilbc
  1356. with_gtk2
  1357. with_gmime
  1358. with_hoard
  1359. with_ical
  1360. with_iconv
  1361. with_iksemel
  1362. with_imap
  1363. with_inotify
  1364. with_iodbc
  1365. with_jack
  1366. with_jansson
  1367. with_uriparser
  1368. with_kqueue
  1369. with_ldap
  1370. with_libcurl
  1371. with_libedit
  1372. with_libjwt
  1373. with_libxml2
  1374. with_libxslt
  1375. with_lua
  1376. with_mysqlclient
  1377. with_neon
  1378. with_neon29
  1379. with_netsnmp
  1380. with_newt
  1381. with_ogg
  1382. with_openr2
  1383. with_opus
  1384. with_opusfile
  1385. with_postgres
  1386. with_beanstalk
  1387. with_pjproject
  1388. with_popt
  1389. with_portaudio
  1390. with_pri
  1391. with_radius
  1392. with_fftw3
  1393. with_resample
  1394. with_sndfile
  1395. with_sdl
  1396. with_SDL_image
  1397. with_spandsp
  1398. with_ss7
  1399. with_speex
  1400. with_speexdsp
  1401. with_sqlite3
  1402. with_srtp
  1403. with_tds
  1404. with_timerfd
  1405. with_tonezone
  1406. with_unbound
  1407. with_unixodbc
  1408. with_vorbis
  1409. with_x11
  1410. with_z
  1411. enable_xmldoc
  1412. enable_permanent_dlopen
  1413. enable_largefile
  1414. enable_internal_poll
  1415. enable_asteriskssl
  1416. enable_rpath
  1417. '
  1418. ac_precious_vars='build_alias
  1419. host_alias
  1420. target_alias
  1421. CC
  1422. CFLAGS
  1423. LDFLAGS
  1424. LIBS
  1425. CPPFLAGS
  1426. CXX
  1427. CXXFLAGS
  1428. CCC
  1429. CPP
  1430. CXXCPP
  1431. PKG_CONFIG
  1432. PKG_CONFIG_PATH
  1433. PKG_CONFIG_LIBDIR
  1434. OPENSSL_CFLAGS
  1435. OPENSSL_LIBS
  1436. JANSSON_CONFIGURE_OPTS
  1437. PJPROJECT_CONFIGURE_OPTS
  1438. LIBJWT_CONFIGURE_OPTS
  1439. LUA_VERSIONS
  1440. LIBEDIT_CFLAGS
  1441. LIBEDIT_LIBS
  1442. JANSSON_CFLAGS
  1443. JANSSON_LIBS
  1444. LIBJWT_CFLAGS
  1445. LIBJWT_LIBS
  1446. LIBXML2_CFLAGS
  1447. LIBXML2_LIBS
  1448. ILBC_CFLAGS
  1449. ILBC_LIBS
  1450. NETSNMP_CFLAGS
  1451. NETSNMP_LIBS
  1452. PJPROJECT_CFLAGS
  1453. PJPROJECT_LIBS
  1454. PYTHONDEV_CFLAGS
  1455. PYTHONDEV_LIBS
  1456. PORTAUDIO_CFLAGS
  1457. PORTAUDIO_LIBS
  1458. GMIME_CFLAGS
  1459. GMIME_LIBS
  1460. GTK2_CFLAGS
  1461. GTK2_LIBS
  1462. SYSTEMD_CFLAGS
  1463. SYSTEMD_LIBS'
  1464. # Initialize some variables set by options.
  1465. ac_init_help=
  1466. ac_init_version=false
  1467. ac_unrecognized_opts=
  1468. ac_unrecognized_sep=
  1469. # The variables have the same names as the options, with
  1470. # dashes changed to underlines.
  1471. cache_file=/dev/null
  1472. exec_prefix=NONE
  1473. no_create=
  1474. no_recursion=
  1475. prefix=NONE
  1476. program_prefix=NONE
  1477. program_suffix=NONE
  1478. program_transform_name=s,x,x,
  1479. silent=
  1480. site=
  1481. srcdir=
  1482. verbose=
  1483. x_includes=NONE
  1484. x_libraries=NONE
  1485. # Installation directory options.
  1486. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1487. # and all the variables that are supposed to be based on exec_prefix
  1488. # by default will actually change.
  1489. # Use braces instead of parens because sh, perl, etc. also accept them.
  1490. # (The list follows the same order as the GNU Coding Standards.)
  1491. bindir='${exec_prefix}/bin'
  1492. sbindir='${exec_prefix}/sbin'
  1493. libexecdir='${exec_prefix}/libexec'
  1494. datarootdir='${prefix}/share'
  1495. datadir='${datarootdir}'
  1496. sysconfdir='${prefix}/etc'
  1497. sharedstatedir='${prefix}/com'
  1498. localstatedir='${prefix}/var'
  1499. runstatedir='${localstatedir}/run'
  1500. includedir='${prefix}/include'
  1501. oldincludedir='/usr/include'
  1502. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1503. infodir='${datarootdir}/info'
  1504. htmldir='${docdir}'
  1505. dvidir='${docdir}'
  1506. pdfdir='${docdir}'
  1507. psdir='${docdir}'
  1508. libdir='${exec_prefix}/lib'
  1509. localedir='${datarootdir}/locale'
  1510. mandir='${datarootdir}/man'
  1511. ac_prev=
  1512. ac_dashdash=
  1513. for ac_option
  1514. do
  1515. # If the previous option needs an argument, assign it.
  1516. if test -n "$ac_prev"; then
  1517. eval $ac_prev=\$ac_option
  1518. ac_prev=
  1519. continue
  1520. fi
  1521. case $ac_option in
  1522. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1523. *=) ac_optarg= ;;
  1524. *) ac_optarg=yes ;;
  1525. esac
  1526. case $ac_dashdash$ac_option in
  1527. --)
  1528. ac_dashdash=yes ;;
  1529. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1530. ac_prev=bindir ;;
  1531. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1532. bindir=$ac_optarg ;;
  1533. -build | --build | --buil | --bui | --bu)
  1534. ac_prev=build_alias ;;
  1535. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1536. build_alias=$ac_optarg ;;
  1537. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1538. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1539. ac_prev=cache_file ;;
  1540. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1541. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1542. cache_file=$ac_optarg ;;
  1543. --config-cache | -C)
  1544. cache_file=config.cache ;;
  1545. -datadir | --datadir | --datadi | --datad)
  1546. ac_prev=datadir ;;
  1547. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1548. datadir=$ac_optarg ;;
  1549. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1550. | --dataroo | --dataro | --datar)
  1551. ac_prev=datarootdir ;;
  1552. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1553. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1554. datarootdir=$ac_optarg ;;
  1555. -disable-* | --disable-*)
  1556. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1557. # Reject names that are not valid shell variable names.
  1558. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1559. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1560. ac_useropt_orig=$ac_useropt
  1561. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1562. case $ac_user_opts in
  1563. *"
  1564. "enable_$ac_useropt"
  1565. "*) ;;
  1566. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1567. ac_unrecognized_sep=', ';;
  1568. esac
  1569. eval enable_$ac_useropt=no ;;
  1570. -docdir | --docdir | --docdi | --doc | --do)
  1571. ac_prev=docdir ;;
  1572. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1573. docdir=$ac_optarg ;;
  1574. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1575. ac_prev=dvidir ;;
  1576. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1577. dvidir=$ac_optarg ;;
  1578. -enable-* | --enable-*)
  1579. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1580. # Reject names that are not valid shell variable names.
  1581. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1582. as_fn_error $? "invalid feature name: \`$ac_useropt'"
  1583. ac_useropt_orig=$ac_useropt
  1584. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1585. case $ac_user_opts in
  1586. *"
  1587. "enable_$ac_useropt"
  1588. "*) ;;
  1589. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1590. ac_unrecognized_sep=', ';;
  1591. esac
  1592. eval enable_$ac_useropt=\$ac_optarg ;;
  1593. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1594. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1595. | --exec | --exe | --ex)
  1596. ac_prev=exec_prefix ;;
  1597. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1598. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1599. | --exec=* | --exe=* | --ex=*)
  1600. exec_prefix=$ac_optarg ;;
  1601. -gas | --gas | --ga | --g)
  1602. # Obsolete; use --with-gas.
  1603. with_gas=yes ;;
  1604. -help | --help | --hel | --he | -h)
  1605. ac_init_help=long ;;
  1606. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1607. ac_init_help=recursive ;;
  1608. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1609. ac_init_help=short ;;
  1610. -host | --host | --hos | --ho)
  1611. ac_prev=host_alias ;;
  1612. -host=* | --host=* | --hos=* | --ho=*)
  1613. host_alias=$ac_optarg ;;
  1614. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1615. ac_prev=htmldir ;;
  1616. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1617. | --ht=*)
  1618. htmldir=$ac_optarg ;;
  1619. -includedir | --includedir | --includedi | --included | --include \
  1620. | --includ | --inclu | --incl | --inc)
  1621. ac_prev=includedir ;;
  1622. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1623. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1624. includedir=$ac_optarg ;;
  1625. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1626. ac_prev=infodir ;;
  1627. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1628. infodir=$ac_optarg ;;
  1629. -libdir | --libdir | --libdi | --libd)
  1630. ac_prev=libdir ;;
  1631. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1632. libdir=$ac_optarg ;;
  1633. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1634. | --libexe | --libex | --libe)
  1635. ac_prev=libexecdir ;;
  1636. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1637. | --libexe=* | --libex=* | --libe=*)
  1638. libexecdir=$ac_optarg ;;
  1639. -localedir | --localedir | --localedi | --localed | --locale)
  1640. ac_prev=localedir ;;
  1641. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1642. localedir=$ac_optarg ;;
  1643. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1644. | --localstate | --localstat | --localsta | --localst | --locals)
  1645. ac_prev=localstatedir ;;
  1646. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1647. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1648. localstatedir=$ac_optarg ;;
  1649. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1650. ac_prev=mandir ;;
  1651. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1652. mandir=$ac_optarg ;;
  1653. -nfp | --nfp | --nf)
  1654. # Obsolete; use --without-fp.
  1655. with_fp=no ;;
  1656. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1657. | --no-cr | --no-c | -n)
  1658. no_create=yes ;;
  1659. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1660. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1661. no_recursion=yes ;;
  1662. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1663. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1664. | --oldin | --oldi | --old | --ol | --o)
  1665. ac_prev=oldincludedir ;;
  1666. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1667. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1668. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1669. oldincludedir=$ac_optarg ;;
  1670. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1671. ac_prev=prefix ;;
  1672. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1673. prefix=$ac_optarg ;;
  1674. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1675. | --program-pre | --program-pr | --program-p)
  1676. ac_prev=program_prefix ;;
  1677. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1678. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1679. program_prefix=$ac_optarg ;;
  1680. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1681. | --program-suf | --program-su | --program-s)
  1682. ac_prev=program_suffix ;;
  1683. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1684. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1685. program_suffix=$ac_optarg ;;
  1686. -program-transform-name | --program-transform-name \
  1687. | --program-transform-nam | --program-transform-na \
  1688. | --program-transform-n | --program-transform- \
  1689. | --program-transform | --program-transfor \
  1690. | --program-transfo | --program-transf \
  1691. | --program-trans | --program-tran \
  1692. | --progr-tra | --program-tr | --program-t)
  1693. ac_prev=program_transform_name ;;
  1694. -program-transform-name=* | --program-transform-name=* \
  1695. | --program-transform-nam=* | --program-transform-na=* \
  1696. | --program-transform-n=* | --program-transform-=* \
  1697. | --program-transform=* | --program-transfor=* \
  1698. | --program-transfo=* | --program-transf=* \
  1699. | --program-trans=* | --program-tran=* \
  1700. | --progr-tra=* | --program-tr=* | --program-t=*)
  1701. program_transform_name=$ac_optarg ;;
  1702. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1703. ac_prev=pdfdir ;;
  1704. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1705. pdfdir=$ac_optarg ;;
  1706. -psdir | --psdir | --psdi | --psd | --ps)
  1707. ac_prev=psdir ;;
  1708. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1709. psdir=$ac_optarg ;;
  1710. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1711. | -silent | --silent | --silen | --sile | --sil)
  1712. silent=yes ;;
  1713. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1714. | --runstate | --runstat | --runsta | --runst | --runs \
  1715. | --run | --ru | --r)
  1716. ac_prev=runstatedir ;;
  1717. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1718. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1719. | --run=* | --ru=* | --r=*)
  1720. runstatedir=$ac_optarg ;;
  1721. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1722. ac_prev=sbindir ;;
  1723. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1724. | --sbi=* | --sb=*)
  1725. sbindir=$ac_optarg ;;
  1726. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1727. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1728. | --sharedst | --shareds | --shared | --share | --shar \
  1729. | --sha | --sh)
  1730. ac_prev=sharedstatedir ;;
  1731. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1732. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1733. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1734. | --sha=* | --sh=*)
  1735. sharedstatedir=$ac_optarg ;;
  1736. -site | --site | --sit)
  1737. ac_prev=site ;;
  1738. -site=* | --site=* | --sit=*)
  1739. site=$ac_optarg ;;
  1740. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1741. ac_prev=srcdir ;;
  1742. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1743. srcdir=$ac_optarg ;;
  1744. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1745. | --syscon | --sysco | --sysc | --sys | --sy)
  1746. ac_prev=sysconfdir ;;
  1747. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1748. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1749. sysconfdir=$ac_optarg ;;
  1750. -target | --target | --targe | --targ | --tar | --ta | --t)
  1751. ac_prev=target_alias ;;
  1752. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1753. target_alias=$ac_optarg ;;
  1754. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1755. verbose=yes ;;
  1756. -version | --version | --versio | --versi | --vers | -V)
  1757. ac_init_version=: ;;
  1758. -with-* | --with-*)
  1759. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1760. # Reject names that are not valid shell variable names.
  1761. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1762. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1763. ac_useropt_orig=$ac_useropt
  1764. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1765. case $ac_user_opts in
  1766. *"
  1767. "with_$ac_useropt"
  1768. "*) ;;
  1769. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1770. ac_unrecognized_sep=', ';;
  1771. esac
  1772. eval with_$ac_useropt=\$ac_optarg ;;
  1773. -without-* | --without-*)
  1774. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1775. # Reject names that are not valid shell variable names.
  1776. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1777. as_fn_error $? "invalid package name: \`$ac_useropt'"
  1778. ac_useropt_orig=$ac_useropt
  1779. ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  1780. case $ac_user_opts in
  1781. *"
  1782. "with_$ac_useropt"
  1783. "*) ;;
  1784. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1785. ac_unrecognized_sep=', ';;
  1786. esac
  1787. eval with_$ac_useropt=no ;;
  1788. --x)
  1789. # Obsolete; use --with-x.
  1790. with_x=yes ;;
  1791. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1792. | --x-incl | --x-inc | --x-in | --x-i)
  1793. ac_prev=x_includes ;;
  1794. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1795. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1796. x_includes=$ac_optarg ;;
  1797. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1798. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1799. ac_prev=x_libraries ;;
  1800. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1801. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1802. x_libraries=$ac_optarg ;;
  1803. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1804. Try \`$0 --help' for more information"
  1805. ;;
  1806. *=*)
  1807. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1808. # Reject names that are not valid shell variable names.
  1809. case $ac_envvar in #(
  1810. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1811. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1812. esac
  1813. eval $ac_envvar=\$ac_optarg
  1814. export $ac_envvar ;;
  1815. *)
  1816. # FIXME: should be removed in autoconf 3.0.
  1817. printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
  1818. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1819. printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
  1820. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1821. ;;
  1822. esac
  1823. done
  1824. if test -n "$ac_prev"; then
  1825. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1826. as_fn_error $? "missing argument to $ac_option"
  1827. fi
  1828. if test -n "$ac_unrecognized_opts"; then
  1829. case $enable_option_checking in
  1830. no) ;;
  1831. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1832. *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1833. esac
  1834. fi
  1835. # Check all directory arguments for consistency.
  1836. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1837. datadir sysconfdir sharedstatedir localstatedir includedir \
  1838. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1839. libdir localedir mandir runstatedir
  1840. do
  1841. eval ac_val=\$$ac_var
  1842. # Remove trailing slashes.
  1843. case $ac_val in
  1844. */ )
  1845. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1846. eval $ac_var=\$ac_val;;
  1847. esac
  1848. # Be sure to have absolute directory names.
  1849. case $ac_val in
  1850. [\\/$]* | ?:[\\/]* ) continue;;
  1851. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1852. esac
  1853. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1854. done
  1855. # There might be people who depend on the old broken behavior: `$host'
  1856. # used to hold the argument of --host etc.
  1857. # FIXME: To remove some day.
  1858. build=$build_alias
  1859. host=$host_alias
  1860. target=$target_alias
  1861. # FIXME: To remove some day.
  1862. if test "x$host_alias" != x; then
  1863. if test "x$build_alias" = x; then
  1864. cross_compiling=maybe
  1865. elif test "x$build_alias" != "x$host_alias"; then
  1866. cross_compiling=yes
  1867. fi
  1868. fi
  1869. ac_tool_prefix=
  1870. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1871. test "$silent" = yes && exec 6>/dev/null
  1872. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1873. ac_ls_di=`ls -di .` &&
  1874. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1875. as_fn_error $? "working directory cannot be determined"
  1876. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1877. as_fn_error $? "pwd does not report name of working directory"
  1878. # Find the source files, if location was not specified.
  1879. if test -z "$srcdir"; then
  1880. ac_srcdir_defaulted=yes
  1881. # Try the directory containing this script, then the parent directory.
  1882. ac_confdir=`$as_dirname -- "$as_myself" ||
  1883. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1884. X"$as_myself" : 'X\(//\)[^/]' \| \
  1885. X"$as_myself" : 'X\(//\)$' \| \
  1886. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1887. printf "%s\n" X"$as_myself" |
  1888. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1889. s//\1/
  1890. q
  1891. }
  1892. /^X\(\/\/\)[^/].*/{
  1893. s//\1/
  1894. q
  1895. }
  1896. /^X\(\/\/\)$/{
  1897. s//\1/
  1898. q
  1899. }
  1900. /^X\(\/\).*/{
  1901. s//\1/
  1902. q
  1903. }
  1904. s/.*/./; q'`
  1905. srcdir=$ac_confdir
  1906. if test ! -r "$srcdir/$ac_unique_file"; then
  1907. srcdir=..
  1908. fi
  1909. else
  1910. ac_srcdir_defaulted=no
  1911. fi
  1912. if test ! -r "$srcdir/$ac_unique_file"; then
  1913. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1914. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1915. fi
  1916. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1917. ac_abs_confdir=`(
  1918. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1919. pwd)`
  1920. # When building in place, set srcdir=.
  1921. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1922. srcdir=.
  1923. fi
  1924. # Remove unnecessary trailing slashes from srcdir.
  1925. # Double slashes in file names in object file debugging info
  1926. # mess up M-x gdb in Emacs.
  1927. case $srcdir in
  1928. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1929. esac
  1930. for ac_var in $ac_precious_vars; do
  1931. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1932. eval ac_env_${ac_var}_value=\$${ac_var}
  1933. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1934. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1935. done
  1936. #
  1937. # Report the --help message.
  1938. #
  1939. if test "$ac_init_help" = "long"; then
  1940. # Omit some internal or obsolete options to make the list less imposing.
  1941. # This message is too long to be a string in the A/UX 3.1 sh.
  1942. cat <<_ACEOF
  1943. \`configure' configures asterisk master to adapt to many kinds of systems.
  1944. Usage: $0 [OPTION]... [VAR=VALUE]...
  1945. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1946. VAR=VALUE. See below for descriptions of some of the useful variables.
  1947. Defaults for the options are specified in brackets.
  1948. Configuration:
  1949. -h, --help display this help and exit
  1950. --help=short display options specific to this package
  1951. --help=recursive display the short help of all the included packages
  1952. -V, --version display version information and exit
  1953. -q, --quiet, --silent do not print \`checking ...' messages
  1954. --cache-file=FILE cache test results in FILE [disabled]
  1955. -C, --config-cache alias for \`--cache-file=config.cache'
  1956. -n, --no-create do not create output files
  1957. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1958. Installation directories:
  1959. --prefix=PREFIX install architecture-independent files in PREFIX
  1960. [$ac_default_prefix]
  1961. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1962. [PREFIX]
  1963. By default, \`make install' will install all the files in
  1964. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1965. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1966. for instance \`--prefix=\$HOME'.
  1967. For better control, use the options below.
  1968. Fine tuning of the installation directories:
  1969. --bindir=DIR user executables [EPREFIX/bin]
  1970. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1971. --libexecdir=DIR program executables [EPREFIX/libexec]
  1972. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1973. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1974. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1975. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1976. --libdir=DIR object code libraries [EPREFIX/lib]
  1977. --includedir=DIR C header files [PREFIX/include]
  1978. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1979. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1980. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1981. --infodir=DIR info documentation [DATAROOTDIR/info]
  1982. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1983. --mandir=DIR man documentation [DATAROOTDIR/man]
  1984. --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
  1985. --htmldir=DIR html documentation [DOCDIR]
  1986. --dvidir=DIR dvi documentation [DOCDIR]
  1987. --pdfdir=DIR pdf documentation [DOCDIR]
  1988. --psdir=DIR ps documentation [DOCDIR]
  1989. _ACEOF
  1990. cat <<\_ACEOF
  1991. System types:
  1992. --build=BUILD configure for building on BUILD [guessed]
  1993. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1994. _ACEOF
  1995. fi
  1996. if test -n "$ac_init_help"; then
  1997. case $ac_init_help in
  1998. short | recursive ) echo "Configuration of asterisk master:";;
  1999. esac
  2000. cat <<\_ACEOF
  2001. Optional Features:
  2002. --disable-option-checking ignore unrecognized --enable/--with options
  2003. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  2004. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  2005. --disable-binary-modules
  2006. Block installation of binary modules.
  2007. --enable-dev-mode Turn on developer mode
  2008. --enable-coverage Turn on code coverage tracking (for gcov)
  2009. --disable-xmldoc Explicitly disable XML documentation
  2010. --enable-permanent-dlopen
  2011. Enable when your libc has a permanent dlopen like
  2012. musl
  2013. --disable-largefile omit support for large files
  2014. --enable-internal-poll Use Asterisk's poll implementation
  2015. --disable-asteriskssl Disable Asterisk's SSL wrapper library
  2016. --disable-rpath Disables rpath linker option checking
  2017. Optional Packages:
  2018. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  2019. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  2020. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  2021. --with-download-cache=PATH
  2022. use cached sound AND external module tarfiles in
  2023. PATH
  2024. --with-sounds-cache=PATH
  2025. use cached sound tarfiles in PATH
  2026. --with-externals-cache=PATH
  2027. use cached external module tarfiles in PATH
  2028. --with-jansson-bundled Use bundled jansson library
  2029. --with-pjproject-bundled
  2030. Use bundled pjproject libraries (default)
  2031. --with-libjwt-bundled Use bundled libjwt library
  2032. --with-crypto=PATH use OpenSSL Cryptography files in PATH
  2033. --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
  2034. --with-bfd=PATH use Debug symbol decoding files in PATH
  2035. --with-execinfo=PATH use Stack Backtrace files in PATH
  2036. --with-bluetooth=PATH use Bluetooth files in PATH
  2037. --with-cap=PATH use POSIX 1.e capabilities files in PATH
  2038. --with-codec2=PATH use Codec 2 Audio Decoder/Encoder files in PATH
  2039. --with-cpg=PATH use Corosync files in PATH
  2040. --with-crypt=PATH use password and data encryption files in PATH
  2041. --with-dahdi=PATH use DAHDI files in PATH
  2042. --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
  2043. --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
  2044. otherwise
  2045. --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
  2046. otherwise
  2047. --with-gtk2=PATH use gtk2 files in PATH
  2048. --with-gmime=PATH use GMime files in PATH
  2049. --with-hoard=PATH use Hoard Memory Allocator files in PATH
  2050. --with-ical=PATH use iCal files in PATH
  2051. --with-iconv=PATH use Iconv files in PATH
  2052. --with-iksemel=PATH use Iksemel Jabber files in PATH
  2053. --with-imap=PATH use UW IMAP Toolkit files in PATH
  2054. --with-inotify=PATH use inotify support files in PATH
  2055. --with-iodbc=PATH use iODBC files in PATH
  2056. --with-jack=PATH use Jack Audio Connection Kit files in PATH
  2057. --with-jansson=PATH use Jansson JSON library files in PATH
  2058. --with-uriparser=PATH use uriparser library files in PATH
  2059. --with-kqueue=PATH use kqueue support files in PATH
  2060. --with-ldap=PATH use OpenLDAP files in PATH
  2061. --with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers
  2062. in PREFIX/include
  2063. --with-libedit=PATH use NetBSD Editline library files in PATH
  2064. --with-libjwt=PATH use LIBJWT files in PATH
  2065. --with-libxml2=PATH use LibXML2 files in PATH
  2066. --with-libxslt=PATH use LibXSLT files in PATH
  2067. --with-lua=PATH use Lua files in PATH
  2068. --with-mysqlclient=PATH use MySQL client files in PATH
  2069. --with-neon=PATH use neon files in PATH
  2070. --with-neon29=PATH use neon29 files in PATH
  2071. --with-netsnmp=PATH use Net-SNMP files in PATH
  2072. --with-newt=PATH use newt files in PATH
  2073. --with-ogg=PATH use OGG files in PATH
  2074. --with-openr2=PATH use MFR2 files in PATH
  2075. --with-opus=PATH use Opus files in PATH
  2076. --with-opusfile=PATH use Opusfile files in PATH
  2077. --with-postgres=PATH use PostgreSQL files in PATH
  2078. --with-beanstalk=PATH use Beanstalk Job Queue files in PATH
  2079. --with-pjproject=PATH use PJPROJECT files in PATH
  2080. --with-popt=PATH use popt files in PATH
  2081. --with-portaudio=PATH use PortAudio files in PATH
  2082. --with-pri=PATH use ISDN PRI files in PATH
  2083. --with-radius=PATH use Radius Client files in PATH
  2084. --with-fftw3=PATH use LIBFFTW3 files in PATH
  2085. --with-resample=PATH use LIBRESAMPLE files in PATH
  2086. --with-sndfile=PATH use libsndfile files in PATH
  2087. --with-sdl=PATH use Sdl files in PATH
  2088. --with-SDL_image=PATH use Sdl Image files in PATH
  2089. --with-spandsp=PATH use SPANDSP files in PATH
  2090. --with-ss7=PATH use ISDN SS7 files in PATH
  2091. --with-speex=PATH use Speex files in PATH
  2092. --with-speex=PATH use Speex preprocess routines files in PATH
  2093. --with-speexdsp=PATH use SpeexDSP files in PATH
  2094. --with-sqlite3=PATH use SQLite files in PATH
  2095. --with-srtp=PATH use Secure RTP files in PATH
  2096. --with-tds=PATH use FreeTDS files in PATH
  2097. --with-timerfd=PATH use timerfd files in PATH
  2098. --with-tonezone=PATH use tonezone files in PATH
  2099. --with-unbound=PATH use unbound files in PATH
  2100. --with-unixodbc=PATH use unixODBC files in PATH
  2101. --with-vorbis=PATH use Vorbis files in PATH
  2102. --with-x11=PATH use X11 files in PATH
  2103. --with-z=PATH use zlib compression files in PATH
  2104. Some influential environment variables:
  2105. CC C compiler command
  2106. CFLAGS C compiler flags
  2107. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  2108. nonstandard directory <lib dir>
  2109. LIBS libraries to pass to the linker, e.g. -l<library>
  2110. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  2111. you have headers in a nonstandard directory <include dir>
  2112. CXX C++ compiler command
  2113. CXXFLAGS C++ compiler flags
  2114. CPP C preprocessor
  2115. CXXCPP C++ preprocessor
  2116. PKG_CONFIG path to pkg-config utility
  2117. PKG_CONFIG_PATH
  2118. directories to add to pkg-config's search path
  2119. PKG_CONFIG_LIBDIR
  2120. path overriding pkg-config's built-in search path
  2121. OPENSSL_CFLAGS
  2122. C compiler flags for OPENSSL, overriding pkg-config
  2123. OPENSSL_LIBS
  2124. linker flags for OPENSSL, overriding pkg-config
  2125. JANSSON_CONFIGURE_OPTS
  2126. Additional configure options to pass to bundled jansson
  2127. PJPROJECT_CONFIGURE_OPTS
  2128. Additional configure options to pass to bundled pjproject
  2129. LIBJWT_CONFIGURE_OPTS
  2130. Additional configure options to pass to bundled libjwt
  2131. LUA_VERSIONS
  2132. A space separated list of target lua versions to test.
  2133. LIBEDIT_CFLAGS
  2134. C compiler flags for LIBEDIT, overriding pkg-config
  2135. LIBEDIT_LIBS
  2136. linker flags for LIBEDIT, overriding pkg-config
  2137. JANSSON_CFLAGS
  2138. C compiler flags for JANSSON, overriding pkg-config
  2139. JANSSON_LIBS
  2140. linker flags for JANSSON, overriding pkg-config
  2141. LIBJWT_CFLAGS
  2142. C compiler flags for LIBJWT, overriding pkg-config
  2143. LIBJWT_LIBS linker flags for LIBJWT, overriding pkg-config
  2144. LIBXML2_CFLAGS
  2145. C compiler flags for LIBXML2, overriding pkg-config
  2146. LIBXML2_LIBS
  2147. linker flags for LIBXML2, overriding pkg-config
  2148. ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
  2149. ILBC_LIBS linker flags for ILBC, overriding pkg-config
  2150. NETSNMP_CFLAGS
  2151. C compiler flags for NETSNMP, overriding pkg-config
  2152. NETSNMP_LIBS
  2153. linker flags for NETSNMP, overriding pkg-config
  2154. PJPROJECT_CFLAGS
  2155. C compiler flags for PJPROJECT, overriding pkg-config
  2156. PJPROJECT_LIBS
  2157. linker flags for PJPROJECT, overriding pkg-config
  2158. PYTHONDEV_CFLAGS
  2159. C compiler flags for PYTHONDEV, overriding pkg-config
  2160. PYTHONDEV_LIBS
  2161. linker flags for PYTHONDEV, overriding pkg-config
  2162. PORTAUDIO_CFLAGS
  2163. C compiler flags for PORTAUDIO, overriding pkg-config
  2164. PORTAUDIO_LIBS
  2165. linker flags for PORTAUDIO, overriding pkg-config
  2166. GMIME_CFLAGS
  2167. C compiler flags for GMIME, overriding pkg-config
  2168. GMIME_LIBS linker flags for GMIME, overriding pkg-config
  2169. GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
  2170. GTK2_LIBS linker flags for GTK2, overriding pkg-config
  2171. SYSTEMD_CFLAGS
  2172. C compiler flags for SYSTEMD, overriding pkg-config
  2173. SYSTEMD_LIBS
  2174. linker flags for SYSTEMD, overriding pkg-config
  2175. Use these variables to override the choices made by `configure' or to help
  2176. it to find libraries and programs with nonstandard names/locations.
  2177. Report bugs to <https://github.com/asterisk/asterisk/issues>.
  2178. _ACEOF
  2179. ac_status=$?
  2180. fi
  2181. if test "$ac_init_help" = "recursive"; then
  2182. # If there are subdirs, report their specific --help.
  2183. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  2184. test -d "$ac_dir" ||
  2185. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  2186. continue
  2187. ac_builddir=.
  2188. case "$ac_dir" in
  2189. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2190. *)
  2191. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  2192. # A ".." for each directory in $ac_dir_suffix.
  2193. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2194. case $ac_top_builddir_sub in
  2195. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2196. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2197. esac ;;
  2198. esac
  2199. ac_abs_top_builddir=$ac_pwd
  2200. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2201. # for backward compatibility:
  2202. ac_top_builddir=$ac_top_build_prefix
  2203. case $srcdir in
  2204. .) # We are building in place.
  2205. ac_srcdir=.
  2206. ac_top_srcdir=$ac_top_builddir_sub
  2207. ac_abs_top_srcdir=$ac_pwd ;;
  2208. [\\/]* | ?:[\\/]* ) # Absolute name.
  2209. ac_srcdir=$srcdir$ac_dir_suffix;
  2210. ac_top_srcdir=$srcdir
  2211. ac_abs_top_srcdir=$srcdir ;;
  2212. *) # Relative name.
  2213. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2214. ac_top_srcdir=$ac_top_build_prefix$srcdir
  2215. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2216. esac
  2217. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2218. cd "$ac_dir" || { ac_status=$?; continue; }
  2219. # Check for configure.gnu first; this name is used for a wrapper for
  2220. # Metaconfig's "Configure" on case-insensitive file systems.
  2221. if test -f "$ac_srcdir/configure.gnu"; then
  2222. echo &&
  2223. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  2224. elif test -f "$ac_srcdir/configure"; then
  2225. echo &&
  2226. $SHELL "$ac_srcdir/configure" --help=recursive
  2227. else
  2228. printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2229. fi || ac_status=$?
  2230. cd "$ac_pwd" || { ac_status=$?; break; }
  2231. done
  2232. fi
  2233. test -n "$ac_init_help" && exit $ac_status
  2234. if $ac_init_version; then
  2235. cat <<\_ACEOF
  2236. asterisk configure master
  2237. generated by GNU Autoconf 2.71
  2238. Copyright (C) 2021 Free Software Foundation, Inc.
  2239. This configure script is free software; the Free Software Foundation
  2240. gives unlimited permission to copy, distribute and modify it.
  2241. "Asterisk"
  2242. _ACEOF
  2243. exit
  2244. fi
  2245. ## ------------------------ ##
  2246. ## Autoconf initialization. ##
  2247. ## ------------------------ ##
  2248. # ac_fn_c_try_compile LINENO
  2249. # --------------------------
  2250. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2251. ac_fn_c_try_compile ()
  2252. {
  2253. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2254. rm -f conftest.$ac_objext conftest.beam
  2255. if { { ac_try="$ac_compile"
  2256. case "(($ac_try" in
  2257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2258. *) ac_try_echo=$ac_try;;
  2259. esac
  2260. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2261. printf "%s\n" "$ac_try_echo"; } >&5
  2262. (eval "$ac_compile") 2>conftest.err
  2263. ac_status=$?
  2264. if test -s conftest.err; then
  2265. grep -v '^ *+' conftest.err >conftest.er1
  2266. cat conftest.er1 >&5
  2267. mv -f conftest.er1 conftest.err
  2268. fi
  2269. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2270. test $ac_status = 0; } && {
  2271. test -z "$ac_c_werror_flag" ||
  2272. test ! -s conftest.err
  2273. } && test -s conftest.$ac_objext
  2274. then :
  2275. ac_retval=0
  2276. else $as_nop
  2277. printf "%s\n" "$as_me: failed program was:" >&5
  2278. sed 's/^/| /' conftest.$ac_ext >&5
  2279. ac_retval=1
  2280. fi
  2281. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2282. as_fn_set_status $ac_retval
  2283. } # ac_fn_c_try_compile
  2284. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2285. # -------------------------------------------------------
  2286. # Tests whether HEADER exists and can be compiled using the include files in
  2287. # INCLUDES, setting the cache variable VAR accordingly.
  2288. ac_fn_c_check_header_compile ()
  2289. {
  2290. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2291. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2292. printf %s "checking for $2... " >&6; }
  2293. if eval test \${$3+y}
  2294. then :
  2295. printf %s "(cached) " >&6
  2296. else $as_nop
  2297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2298. /* end confdefs.h. */
  2299. $4
  2300. #include <$2>
  2301. _ACEOF
  2302. if ac_fn_c_try_compile "$LINENO"
  2303. then :
  2304. eval "$3=yes"
  2305. else $as_nop
  2306. eval "$3=no"
  2307. fi
  2308. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2309. fi
  2310. eval ac_res=\$$3
  2311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2312. printf "%s\n" "$ac_res" >&6; }
  2313. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2314. } # ac_fn_c_check_header_compile
  2315. # ac_fn_cxx_try_compile LINENO
  2316. # ----------------------------
  2317. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2318. ac_fn_cxx_try_compile ()
  2319. {
  2320. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2321. rm -f conftest.$ac_objext conftest.beam
  2322. if { { ac_try="$ac_compile"
  2323. case "(($ac_try" in
  2324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2325. *) ac_try_echo=$ac_try;;
  2326. esac
  2327. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2328. printf "%s\n" "$ac_try_echo"; } >&5
  2329. (eval "$ac_compile") 2>conftest.err
  2330. ac_status=$?
  2331. if test -s conftest.err; then
  2332. grep -v '^ *+' conftest.err >conftest.er1
  2333. cat conftest.er1 >&5
  2334. mv -f conftest.er1 conftest.err
  2335. fi
  2336. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2337. test $ac_status = 0; } && {
  2338. test -z "$ac_cxx_werror_flag" ||
  2339. test ! -s conftest.err
  2340. } && test -s conftest.$ac_objext
  2341. then :
  2342. ac_retval=0
  2343. else $as_nop
  2344. printf "%s\n" "$as_me: failed program was:" >&5
  2345. sed 's/^/| /' conftest.$ac_ext >&5
  2346. ac_retval=1
  2347. fi
  2348. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2349. as_fn_set_status $ac_retval
  2350. } # ac_fn_cxx_try_compile
  2351. # ac_fn_c_try_cpp LINENO
  2352. # ----------------------
  2353. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2354. ac_fn_c_try_cpp ()
  2355. {
  2356. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2357. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2358. case "(($ac_try" in
  2359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2360. *) ac_try_echo=$ac_try;;
  2361. esac
  2362. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2363. printf "%s\n" "$ac_try_echo"; } >&5
  2364. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2365. ac_status=$?
  2366. if test -s conftest.err; then
  2367. grep -v '^ *+' conftest.err >conftest.er1
  2368. cat conftest.er1 >&5
  2369. mv -f conftest.er1 conftest.err
  2370. fi
  2371. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2372. test $ac_status = 0; } > conftest.i && {
  2373. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2374. test ! -s conftest.err
  2375. }
  2376. then :
  2377. ac_retval=0
  2378. else $as_nop
  2379. printf "%s\n" "$as_me: failed program was:" >&5
  2380. sed 's/^/| /' conftest.$ac_ext >&5
  2381. ac_retval=1
  2382. fi
  2383. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2384. as_fn_set_status $ac_retval
  2385. } # ac_fn_c_try_cpp
  2386. # ac_fn_cxx_try_cpp LINENO
  2387. # ------------------------
  2388. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2389. ac_fn_cxx_try_cpp ()
  2390. {
  2391. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2392. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2393. case "(($ac_try" in
  2394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2395. *) ac_try_echo=$ac_try;;
  2396. esac
  2397. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2398. printf "%s\n" "$ac_try_echo"; } >&5
  2399. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2400. ac_status=$?
  2401. if test -s conftest.err; then
  2402. grep -v '^ *+' conftest.err >conftest.er1
  2403. cat conftest.er1 >&5
  2404. mv -f conftest.er1 conftest.err
  2405. fi
  2406. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2407. test $ac_status = 0; } > conftest.i && {
  2408. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2409. test ! -s conftest.err
  2410. }
  2411. then :
  2412. ac_retval=0
  2413. else $as_nop
  2414. printf "%s\n" "$as_me: failed program was:" >&5
  2415. sed 's/^/| /' conftest.$ac_ext >&5
  2416. ac_retval=1
  2417. fi
  2418. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2419. as_fn_set_status $ac_retval
  2420. } # ac_fn_cxx_try_cpp
  2421. # ac_fn_c_try_link LINENO
  2422. # -----------------------
  2423. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2424. ac_fn_c_try_link ()
  2425. {
  2426. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2427. rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
  2428. if { { ac_try="$ac_link"
  2429. case "(($ac_try" in
  2430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2431. *) ac_try_echo=$ac_try;;
  2432. esac
  2433. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2434. printf "%s\n" "$ac_try_echo"; } >&5
  2435. (eval "$ac_link") 2>conftest.err
  2436. ac_status=$?
  2437. if test -s conftest.err; then
  2438. grep -v '^ *+' conftest.err >conftest.er1
  2439. cat conftest.er1 >&5
  2440. mv -f conftest.er1 conftest.err
  2441. fi
  2442. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2443. test $ac_status = 0; } && {
  2444. test -z "$ac_c_werror_flag" ||
  2445. test ! -s conftest.err
  2446. } && test -s conftest$ac_exeext && {
  2447. test "$cross_compiling" = yes ||
  2448. test -x conftest$ac_exeext
  2449. }
  2450. then :
  2451. ac_retval=0
  2452. else $as_nop
  2453. printf "%s\n" "$as_me: failed program was:" >&5
  2454. sed 's/^/| /' conftest.$ac_ext >&5
  2455. ac_retval=1
  2456. fi
  2457. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2458. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2459. # interfere with the next link command; also delete a directory that is
  2460. # left behind by Apple's compiler. We do this before executing the actions.
  2461. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2462. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2463. as_fn_set_status $ac_retval
  2464. } # ac_fn_c_try_link
  2465. # ac_fn_c_check_func LINENO FUNC VAR
  2466. # ----------------------------------
  2467. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2468. ac_fn_c_check_func ()
  2469. {
  2470. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2472. printf %s "checking for $2... " >&6; }
  2473. if eval test \${$3+y}
  2474. then :
  2475. printf %s "(cached) " >&6
  2476. else $as_nop
  2477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2478. /* end confdefs.h. */
  2479. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2480. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2481. #define $2 innocuous_$2
  2482. /* System header to define __stub macros and hopefully few prototypes,
  2483. which can conflict with char $2 (); below. */
  2484. #include <limits.h>
  2485. #undef $2
  2486. /* Override any GCC internal prototype to avoid an error.
  2487. Use char because int might match the return type of a GCC
  2488. builtin and then its argument prototype would still apply. */
  2489. #ifdef __cplusplus
  2490. extern "C"
  2491. #endif
  2492. char $2 ();
  2493. /* The GNU C library defines this for functions which it implements
  2494. to always fail with ENOSYS. Some functions are actually named
  2495. something starting with __ and the normal name is an alias. */
  2496. #if defined __stub_$2 || defined __stub___$2
  2497. choke me
  2498. #endif
  2499. int
  2500. main (void)
  2501. {
  2502. return $2 ();
  2503. ;
  2504. return 0;
  2505. }
  2506. _ACEOF
  2507. if ac_fn_c_try_link "$LINENO"
  2508. then :
  2509. eval "$3=yes"
  2510. else $as_nop
  2511. eval "$3=no"
  2512. fi
  2513. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  2514. conftest$ac_exeext conftest.$ac_ext
  2515. fi
  2516. eval ac_res=\$$3
  2517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2518. printf "%s\n" "$ac_res" >&6; }
  2519. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2520. } # ac_fn_c_check_func
  2521. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2522. # -------------------------------------------
  2523. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2524. # variable VAR accordingly.
  2525. ac_fn_c_check_type ()
  2526. {
  2527. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2528. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2529. printf %s "checking for $2... " >&6; }
  2530. if eval test \${$3+y}
  2531. then :
  2532. printf %s "(cached) " >&6
  2533. else $as_nop
  2534. eval "$3=no"
  2535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2536. /* end confdefs.h. */
  2537. $4
  2538. int
  2539. main (void)
  2540. {
  2541. if (sizeof ($2))
  2542. return 0;
  2543. ;
  2544. return 0;
  2545. }
  2546. _ACEOF
  2547. if ac_fn_c_try_compile "$LINENO"
  2548. then :
  2549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2550. /* end confdefs.h. */
  2551. $4
  2552. int
  2553. main (void)
  2554. {
  2555. if (sizeof (($2)))
  2556. return 0;
  2557. ;
  2558. return 0;
  2559. }
  2560. _ACEOF
  2561. if ac_fn_c_try_compile "$LINENO"
  2562. then :
  2563. else $as_nop
  2564. eval "$3=yes"
  2565. fi
  2566. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2567. fi
  2568. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2569. fi
  2570. eval ac_res=\$$3
  2571. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2572. printf "%s\n" "$ac_res" >&6; }
  2573. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2574. } # ac_fn_c_check_type
  2575. # ac_fn_c_try_run LINENO
  2576. # ----------------------
  2577. # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
  2578. # executables *can* be run.
  2579. ac_fn_c_try_run ()
  2580. {
  2581. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2582. if { { ac_try="$ac_link"
  2583. case "(($ac_try" in
  2584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2585. *) ac_try_echo=$ac_try;;
  2586. esac
  2587. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2588. printf "%s\n" "$ac_try_echo"; } >&5
  2589. (eval "$ac_link") 2>&5
  2590. ac_status=$?
  2591. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2592. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2593. { { case "(($ac_try" in
  2594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2595. *) ac_try_echo=$ac_try;;
  2596. esac
  2597. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2598. printf "%s\n" "$ac_try_echo"; } >&5
  2599. (eval "$ac_try") 2>&5
  2600. ac_status=$?
  2601. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2602. test $ac_status = 0; }; }
  2603. then :
  2604. ac_retval=0
  2605. else $as_nop
  2606. printf "%s\n" "$as_me: program exited with status $ac_status" >&5
  2607. printf "%s\n" "$as_me: failed program was:" >&5
  2608. sed 's/^/| /' conftest.$ac_ext >&5
  2609. ac_retval=$ac_status
  2610. fi
  2611. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2612. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2613. as_fn_set_status $ac_retval
  2614. } # ac_fn_c_try_run
  2615. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2616. # ----------------------------------------------------
  2617. # Tries to find if the field MEMBER exists in type AGGR, after including
  2618. # INCLUDES, setting cache variable VAR accordingly.
  2619. ac_fn_c_check_member ()
  2620. {
  2621. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2623. printf %s "checking for $2.$3... " >&6; }
  2624. if eval test \${$4+y}
  2625. then :
  2626. printf %s "(cached) " >&6
  2627. else $as_nop
  2628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2629. /* end confdefs.h. */
  2630. $5
  2631. int
  2632. main (void)
  2633. {
  2634. static $2 ac_aggr;
  2635. if (ac_aggr.$3)
  2636. return 0;
  2637. ;
  2638. return 0;
  2639. }
  2640. _ACEOF
  2641. if ac_fn_c_try_compile "$LINENO"
  2642. then :
  2643. eval "$4=yes"
  2644. else $as_nop
  2645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2646. /* end confdefs.h. */
  2647. $5
  2648. int
  2649. main (void)
  2650. {
  2651. static $2 ac_aggr;
  2652. if (sizeof ac_aggr.$3)
  2653. return 0;
  2654. ;
  2655. return 0;
  2656. }
  2657. _ACEOF
  2658. if ac_fn_c_try_compile "$LINENO"
  2659. then :
  2660. eval "$4=yes"
  2661. else $as_nop
  2662. eval "$4=no"
  2663. fi
  2664. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2665. fi
  2666. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2667. fi
  2668. eval ac_res=\$$4
  2669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2670. printf "%s\n" "$ac_res" >&6; }
  2671. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2672. } # ac_fn_c_check_member
  2673. # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
  2674. # ------------------------------------------------------------------
  2675. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2676. # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
  2677. ac_fn_check_decl ()
  2678. {
  2679. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2680. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2681. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2682. printf %s "checking whether $as_decl_name is declared... " >&6; }
  2683. if eval test \${$3+y}
  2684. then :
  2685. printf %s "(cached) " >&6
  2686. else $as_nop
  2687. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2688. eval ac_save_FLAGS=\$$6
  2689. as_fn_append $6 " $5"
  2690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2691. /* end confdefs.h. */
  2692. $4
  2693. int
  2694. main (void)
  2695. {
  2696. #ifndef $as_decl_name
  2697. #ifdef __cplusplus
  2698. (void) $as_decl_use;
  2699. #else
  2700. (void) $as_decl_name;
  2701. #endif
  2702. #endif
  2703. ;
  2704. return 0;
  2705. }
  2706. _ACEOF
  2707. if ac_fn_c_try_compile "$LINENO"
  2708. then :
  2709. eval "$3=yes"
  2710. else $as_nop
  2711. eval "$3=no"
  2712. fi
  2713. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2714. eval $6=\$ac_save_FLAGS
  2715. fi
  2716. eval ac_res=\$$3
  2717. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2718. printf "%s\n" "$ac_res" >&6; }
  2719. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2720. } # ac_fn_check_decl
  2721. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2722. # --------------------------------------------
  2723. # Tries to find the compile-time value of EXPR in a program that includes
  2724. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2725. # computed
  2726. ac_fn_c_compute_int ()
  2727. {
  2728. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2729. if test "$cross_compiling" = yes; then
  2730. # Depending upon the size, compute the lo and hi bounds.
  2731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2732. /* end confdefs.h. */
  2733. $4
  2734. int
  2735. main (void)
  2736. {
  2737. static int test_array [1 - 2 * !(($2) >= 0)];
  2738. test_array [0] = 0;
  2739. return test_array [0];
  2740. ;
  2741. return 0;
  2742. }
  2743. _ACEOF
  2744. if ac_fn_c_try_compile "$LINENO"
  2745. then :
  2746. ac_lo=0 ac_mid=0
  2747. while :; do
  2748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2749. /* end confdefs.h. */
  2750. $4
  2751. int
  2752. main (void)
  2753. {
  2754. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2755. test_array [0] = 0;
  2756. return test_array [0];
  2757. ;
  2758. return 0;
  2759. }
  2760. _ACEOF
  2761. if ac_fn_c_try_compile "$LINENO"
  2762. then :
  2763. ac_hi=$ac_mid; break
  2764. else $as_nop
  2765. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2766. if test $ac_lo -le $ac_mid; then
  2767. ac_lo= ac_hi=
  2768. break
  2769. fi
  2770. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2771. fi
  2772. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2773. done
  2774. else $as_nop
  2775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2776. /* end confdefs.h. */
  2777. $4
  2778. int
  2779. main (void)
  2780. {
  2781. static int test_array [1 - 2 * !(($2) < 0)];
  2782. test_array [0] = 0;
  2783. return test_array [0];
  2784. ;
  2785. return 0;
  2786. }
  2787. _ACEOF
  2788. if ac_fn_c_try_compile "$LINENO"
  2789. then :
  2790. ac_hi=-1 ac_mid=-1
  2791. while :; do
  2792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2793. /* end confdefs.h. */
  2794. $4
  2795. int
  2796. main (void)
  2797. {
  2798. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2799. test_array [0] = 0;
  2800. return test_array [0];
  2801. ;
  2802. return 0;
  2803. }
  2804. _ACEOF
  2805. if ac_fn_c_try_compile "$LINENO"
  2806. then :
  2807. ac_lo=$ac_mid; break
  2808. else $as_nop
  2809. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2810. if test $ac_mid -le $ac_hi; then
  2811. ac_lo= ac_hi=
  2812. break
  2813. fi
  2814. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2815. fi
  2816. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2817. done
  2818. else $as_nop
  2819. ac_lo= ac_hi=
  2820. fi
  2821. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2822. fi
  2823. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2824. # Binary search between lo and hi bounds.
  2825. while test "x$ac_lo" != "x$ac_hi"; do
  2826. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2828. /* end confdefs.h. */
  2829. $4
  2830. int
  2831. main (void)
  2832. {
  2833. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2834. test_array [0] = 0;
  2835. return test_array [0];
  2836. ;
  2837. return 0;
  2838. }
  2839. _ACEOF
  2840. if ac_fn_c_try_compile "$LINENO"
  2841. then :
  2842. ac_hi=$ac_mid
  2843. else $as_nop
  2844. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2845. fi
  2846. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  2847. done
  2848. case $ac_lo in #((
  2849. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2850. '') ac_retval=1 ;;
  2851. esac
  2852. else
  2853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2854. /* end confdefs.h. */
  2855. $4
  2856. static long int longval (void) { return $2; }
  2857. static unsigned long int ulongval (void) { return $2; }
  2858. #include <stdio.h>
  2859. #include <stdlib.h>
  2860. int
  2861. main (void)
  2862. {
  2863. FILE *f = fopen ("conftest.val", "w");
  2864. if (! f)
  2865. return 1;
  2866. if (($2) < 0)
  2867. {
  2868. long int i = longval ();
  2869. if (i != ($2))
  2870. return 1;
  2871. fprintf (f, "%ld", i);
  2872. }
  2873. else
  2874. {
  2875. unsigned long int i = ulongval ();
  2876. if (i != ($2))
  2877. return 1;
  2878. fprintf (f, "%lu", i);
  2879. }
  2880. /* Do not output a trailing newline, as this causes \r\n confusion
  2881. on some platforms. */
  2882. return ferror (f) || fclose (f) != 0;
  2883. ;
  2884. return 0;
  2885. }
  2886. _ACEOF
  2887. if ac_fn_c_try_run "$LINENO"
  2888. then :
  2889. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2890. else $as_nop
  2891. ac_retval=1
  2892. fi
  2893. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2894. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2895. rm -f conftest.val
  2896. fi
  2897. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2898. as_fn_set_status $ac_retval
  2899. } # ac_fn_c_compute_int
  2900. ac_configure_args_raw=
  2901. for ac_arg
  2902. do
  2903. case $ac_arg in
  2904. *\'*)
  2905. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2906. esac
  2907. as_fn_append ac_configure_args_raw " '$ac_arg'"
  2908. done
  2909. case $ac_configure_args_raw in
  2910. *$as_nl*)
  2911. ac_safe_unquote= ;;
  2912. *)
  2913. ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
  2914. ac_unsafe_a="$ac_unsafe_z#~"
  2915. ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
  2916. ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
  2917. esac
  2918. cat >config.log <<_ACEOF
  2919. This file contains any messages produced by compilers while
  2920. running configure, to aid debugging if configure makes a mistake.
  2921. It was created by asterisk $as_me master, which was
  2922. generated by GNU Autoconf 2.71. Invocation command line was
  2923. $ $0$ac_configure_args_raw
  2924. _ACEOF
  2925. exec 5>>config.log
  2926. {
  2927. cat <<_ASUNAME
  2928. ## --------- ##
  2929. ## Platform. ##
  2930. ## --------- ##
  2931. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2932. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2933. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2934. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2935. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2936. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2937. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2938. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2939. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2940. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2941. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2942. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2943. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2944. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2945. _ASUNAME
  2946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2947. for as_dir in $PATH
  2948. do
  2949. IFS=$as_save_IFS
  2950. case $as_dir in #(((
  2951. '') as_dir=./ ;;
  2952. */) ;;
  2953. *) as_dir=$as_dir/ ;;
  2954. esac
  2955. printf "%s\n" "PATH: $as_dir"
  2956. done
  2957. IFS=$as_save_IFS
  2958. } >&5
  2959. cat >&5 <<_ACEOF
  2960. ## ----------- ##
  2961. ## Core tests. ##
  2962. ## ----------- ##
  2963. _ACEOF
  2964. # Keep a trace of the command line.
  2965. # Strip out --no-create and --no-recursion so they do not pile up.
  2966. # Strip out --silent because we don't want to record it for future runs.
  2967. # Also quote any args containing shell meta-characters.
  2968. # Make two passes to allow for proper duplicate-argument suppression.
  2969. ac_configure_args=
  2970. ac_configure_args0=
  2971. ac_configure_args1=
  2972. ac_must_keep_next=false
  2973. for ac_pass in 1 2
  2974. do
  2975. for ac_arg
  2976. do
  2977. case $ac_arg in
  2978. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2979. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2980. | -silent | --silent | --silen | --sile | --sil)
  2981. continue ;;
  2982. *\'*)
  2983. ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2984. esac
  2985. case $ac_pass in
  2986. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2987. 2)
  2988. as_fn_append ac_configure_args1 " '$ac_arg'"
  2989. if test $ac_must_keep_next = true; then
  2990. ac_must_keep_next=false # Got value, back to normal.
  2991. else
  2992. case $ac_arg in
  2993. *=* | --config-cache | -C | -disable-* | --disable-* \
  2994. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2995. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2996. | -with-* | --with-* | -without-* | --without-* | --x)
  2997. case "$ac_configure_args0 " in
  2998. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2999. esac
  3000. ;;
  3001. -* ) ac_must_keep_next=true ;;
  3002. esac
  3003. fi
  3004. as_fn_append ac_configure_args " '$ac_arg'"
  3005. ;;
  3006. esac
  3007. done
  3008. done
  3009. { ac_configure_args0=; unset ac_configure_args0;}
  3010. { ac_configure_args1=; unset ac_configure_args1;}
  3011. # When interrupted or exit'd, cleanup temporary files, and complete
  3012. # config.log. We remove comments because anyway the quotes in there
  3013. # would cause problems or look ugly.
  3014. # WARNING: Use '\'' to represent an apostrophe within the trap.
  3015. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  3016. trap 'exit_status=$?
  3017. # Sanitize IFS.
  3018. IFS=" "" $as_nl"
  3019. # Save into config.log some information that might help in debugging.
  3020. {
  3021. echo
  3022. printf "%s\n" "## ---------------- ##
  3023. ## Cache variables. ##
  3024. ## ---------------- ##"
  3025. echo
  3026. # The following way of writing the cache mishandles newlines in values,
  3027. (
  3028. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  3029. eval ac_val=\$$ac_var
  3030. case $ac_val in #(
  3031. *${as_nl}*)
  3032. case $ac_var in #(
  3033. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3034. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3035. esac
  3036. case $ac_var in #(
  3037. _ | IFS | as_nl) ;; #(
  3038. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3039. *) { eval $ac_var=; unset $ac_var;} ;;
  3040. esac ;;
  3041. esac
  3042. done
  3043. (set) 2>&1 |
  3044. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  3045. *${as_nl}ac_space=\ *)
  3046. sed -n \
  3047. "s/'\''/'\''\\\\'\'''\''/g;
  3048. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  3049. ;; #(
  3050. *)
  3051. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3052. ;;
  3053. esac |
  3054. sort
  3055. )
  3056. echo
  3057. printf "%s\n" "## ----------------- ##
  3058. ## Output variables. ##
  3059. ## ----------------- ##"
  3060. echo
  3061. for ac_var in $ac_subst_vars
  3062. do
  3063. eval ac_val=\$$ac_var
  3064. case $ac_val in
  3065. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3066. esac
  3067. printf "%s\n" "$ac_var='\''$ac_val'\''"
  3068. done | sort
  3069. echo
  3070. if test -n "$ac_subst_files"; then
  3071. printf "%s\n" "## ------------------- ##
  3072. ## File substitutions. ##
  3073. ## ------------------- ##"
  3074. echo
  3075. for ac_var in $ac_subst_files
  3076. do
  3077. eval ac_val=\$$ac_var
  3078. case $ac_val in
  3079. *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3080. esac
  3081. printf "%s\n" "$ac_var='\''$ac_val'\''"
  3082. done | sort
  3083. echo
  3084. fi
  3085. if test -s confdefs.h; then
  3086. printf "%s\n" "## ----------- ##
  3087. ## confdefs.h. ##
  3088. ## ----------- ##"
  3089. echo
  3090. cat confdefs.h
  3091. echo
  3092. fi
  3093. test "$ac_signal" != 0 &&
  3094. printf "%s\n" "$as_me: caught signal $ac_signal"
  3095. printf "%s\n" "$as_me: exit $exit_status"
  3096. } >&5
  3097. rm -f core *.core core.conftest.* &&
  3098. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  3099. exit $exit_status
  3100. ' 0
  3101. for ac_signal in 1 2 13 15; do
  3102. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  3103. done
  3104. ac_signal=0
  3105. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  3106. rm -f -r conftest* confdefs.h
  3107. printf "%s\n" "/* confdefs.h */" > confdefs.h
  3108. # Predefined preprocessor variables.
  3109. printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
  3110. printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
  3111. printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
  3112. printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
  3113. printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
  3114. printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
  3115. # Let the site file select an alternate cache file if it wants to.
  3116. # Prefer an explicitly selected file to automatically selected ones.
  3117. if test -n "$CONFIG_SITE"; then
  3118. ac_site_files="$CONFIG_SITE"
  3119. elif test "x$prefix" != xNONE; then
  3120. ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
  3121. else
  3122. ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  3123. fi
  3124. for ac_site_file in $ac_site_files
  3125. do
  3126. case $ac_site_file in #(
  3127. */*) :
  3128. ;; #(
  3129. *) :
  3130. ac_site_file=./$ac_site_file ;;
  3131. esac
  3132. if test -f "$ac_site_file" && test -r "$ac_site_file"; then
  3133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  3134. printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
  3135. sed 's/^/| /' "$ac_site_file" >&5
  3136. . "$ac_site_file" \
  3137. || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3138. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3139. as_fn_error $? "failed to load site script $ac_site_file
  3140. See \`config.log' for more details" "$LINENO" 5; }
  3141. fi
  3142. done
  3143. if test -r "$cache_file"; then
  3144. # Some versions of bash will fail to source /dev/null (special files
  3145. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  3146. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  3147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  3148. printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
  3149. case $cache_file in
  3150. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  3151. *) . "./$cache_file";;
  3152. esac
  3153. fi
  3154. else
  3155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  3156. printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
  3157. >$cache_file
  3158. fi
  3159. # Test code for whether the C compiler supports C89 (global declarations)
  3160. ac_c_conftest_c89_globals='
  3161. /* Does the compiler advertise C89 conformance?
  3162. Do not test the value of __STDC__, because some compilers set it to 0
  3163. while being otherwise adequately conformant. */
  3164. #if !defined __STDC__
  3165. # error "Compiler does not advertise C89 conformance"
  3166. #endif
  3167. #include <stddef.h>
  3168. #include <stdarg.h>
  3169. struct stat;
  3170. /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
  3171. struct buf { int x; };
  3172. struct buf * (*rcsopen) (struct buf *, struct stat *, int);
  3173. static char *e (p, i)
  3174. char **p;
  3175. int i;
  3176. {
  3177. return p[i];
  3178. }
  3179. static char *f (char * (*g) (char **, int), char **p, ...)
  3180. {
  3181. char *s;
  3182. va_list v;
  3183. va_start (v,p);
  3184. s = g (p, va_arg (v,int));
  3185. va_end (v);
  3186. return s;
  3187. }
  3188. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3189. function prototypes and stuff, but not \xHH hex character constants.
  3190. These do not provoke an error unfortunately, instead are silently treated
  3191. as an "x". The following induces an error, until -std is added to get
  3192. proper ANSI mode. Curiously \x00 != x always comes out true, for an
  3193. array size at least. It is necessary to write \x00 == 0 to get something
  3194. that is true only with -std. */
  3195. int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
  3196. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3197. inside strings and character constants. */
  3198. #define FOO(x) '\''x'\''
  3199. int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
  3200. int test (int i, double x);
  3201. struct s1 {int (*f) (int a);};
  3202. struct s2 {int (*f) (double a);};
  3203. int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
  3204. int, int);'
  3205. # Test code for whether the C compiler supports C89 (body of main).
  3206. ac_c_conftest_c89_main='
  3207. ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
  3208. '
  3209. # Test code for whether the C compiler supports C99 (global declarations)
  3210. ac_c_conftest_c99_globals='
  3211. // Does the compiler advertise C99 conformance?
  3212. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
  3213. # error "Compiler does not advertise C99 conformance"
  3214. #endif
  3215. #include <stdbool.h>
  3216. extern int puts (const char *);
  3217. extern int printf (const char *, ...);
  3218. extern int dprintf (int, const char *, ...);
  3219. extern void *malloc (size_t);
  3220. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3221. // dprintf is used instead of fprintf to avoid needing to declare
  3222. // FILE and stderr.
  3223. #define debug(...) dprintf (2, __VA_ARGS__)
  3224. #define showlist(...) puts (#__VA_ARGS__)
  3225. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3226. static void
  3227. test_varargs_macros (void)
  3228. {
  3229. int x = 1234;
  3230. int y = 5678;
  3231. debug ("Flag");
  3232. debug ("X = %d\n", x);
  3233. showlist (The first, second, and third items.);
  3234. report (x>y, "x is %d but y is %d", x, y);
  3235. }
  3236. // Check long long types.
  3237. #define BIG64 18446744073709551615ull
  3238. #define BIG32 4294967295ul
  3239. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3240. #if !BIG_OK
  3241. #error "your preprocessor is broken"
  3242. #endif
  3243. #if BIG_OK
  3244. #else
  3245. #error "your preprocessor is broken"
  3246. #endif
  3247. static long long int bignum = -9223372036854775807LL;
  3248. static unsigned long long int ubignum = BIG64;
  3249. struct incomplete_array
  3250. {
  3251. int datasize;
  3252. double data[];
  3253. };
  3254. struct named_init {
  3255. int number;
  3256. const wchar_t *name;
  3257. double average;
  3258. };
  3259. typedef const char *ccp;
  3260. static inline int
  3261. test_restrict (ccp restrict text)
  3262. {
  3263. // See if C++-style comments work.
  3264. // Iterate through items via the restricted pointer.
  3265. // Also check for declarations in for loops.
  3266. for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
  3267. continue;
  3268. return 0;
  3269. }
  3270. // Check varargs and va_copy.
  3271. static bool
  3272. test_varargs (const char *format, ...)
  3273. {
  3274. va_list args;
  3275. va_start (args, format);
  3276. va_list args_copy;
  3277. va_copy (args_copy, args);
  3278. const char *str = "";
  3279. int number = 0;
  3280. float fnumber = 0;
  3281. while (*format)
  3282. {
  3283. switch (*format++)
  3284. {
  3285. case '\''s'\'': // string
  3286. str = va_arg (args_copy, const char *);
  3287. break;
  3288. case '\''d'\'': // int
  3289. number = va_arg (args_copy, int);
  3290. break;
  3291. case '\''f'\'': // float
  3292. fnumber = va_arg (args_copy, double);
  3293. break;
  3294. default:
  3295. break;
  3296. }
  3297. }
  3298. va_end (args_copy);
  3299. va_end (args);
  3300. return *str && number && fnumber;
  3301. }
  3302. '
  3303. # Test code for whether the C compiler supports C99 (body of main).
  3304. ac_c_conftest_c99_main='
  3305. // Check bool.
  3306. _Bool success = false;
  3307. success |= (argc != 0);
  3308. // Check restrict.
  3309. if (test_restrict ("String literal") == 0)
  3310. success = true;
  3311. char *restrict newvar = "Another string";
  3312. // Check varargs.
  3313. success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
  3314. test_varargs_macros ();
  3315. // Check flexible array members.
  3316. struct incomplete_array *ia =
  3317. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3318. ia->datasize = 10;
  3319. for (int i = 0; i < ia->datasize; ++i)
  3320. ia->data[i] = i * 1.234;
  3321. // Check named initializers.
  3322. struct named_init ni = {
  3323. .number = 34,
  3324. .name = L"Test wide string",
  3325. .average = 543.34343,
  3326. };
  3327. ni.number = 58;
  3328. int dynamic_array[ni.number];
  3329. dynamic_array[0] = argv[0][0];
  3330. dynamic_array[ni.number - 1] = 543;
  3331. // work around unused variable warnings
  3332. ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
  3333. || dynamic_array[ni.number - 1] != 543);
  3334. '
  3335. # Test code for whether the C compiler supports C11 (global declarations)
  3336. ac_c_conftest_c11_globals='
  3337. // Does the compiler advertise C11 conformance?
  3338. #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
  3339. # error "Compiler does not advertise C11 conformance"
  3340. #endif
  3341. // Check _Alignas.
  3342. char _Alignas (double) aligned_as_double;
  3343. char _Alignas (0) no_special_alignment;
  3344. extern char aligned_as_int;
  3345. char _Alignas (0) _Alignas (int) aligned_as_int;
  3346. // Check _Alignof.
  3347. enum
  3348. {
  3349. int_alignment = _Alignof (int),
  3350. int_array_alignment = _Alignof (int[100]),
  3351. char_alignment = _Alignof (char)
  3352. };
  3353. _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
  3354. // Check _Noreturn.
  3355. int _Noreturn does_not_return (void) { for (;;) continue; }
  3356. // Check _Static_assert.
  3357. struct test_static_assert
  3358. {
  3359. int x;
  3360. _Static_assert (sizeof (int) <= sizeof (long int),
  3361. "_Static_assert does not work in struct");
  3362. long int y;
  3363. };
  3364. // Check UTF-8 literals.
  3365. #define u8 syntax error!
  3366. char const utf8_literal[] = u8"happens to be ASCII" "another string";
  3367. // Check duplicate typedefs.
  3368. typedef long *long_ptr;
  3369. typedef long int *long_ptr;
  3370. typedef long_ptr long_ptr;
  3371. // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
  3372. struct anonymous
  3373. {
  3374. union {
  3375. struct { int i; int j; };
  3376. struct { int k; long int l; } w;
  3377. };
  3378. int m;
  3379. } v1;
  3380. '
  3381. # Test code for whether the C compiler supports C11 (body of main).
  3382. ac_c_conftest_c11_main='
  3383. _Static_assert ((offsetof (struct anonymous, i)
  3384. == offsetof (struct anonymous, w.k)),
  3385. "Anonymous union alignment botch");
  3386. v1.i = 2;
  3387. v1.w.k = 5;
  3388. ok |= v1.i != 5;
  3389. '
  3390. # Test code for whether the C compiler supports C11 (complete).
  3391. ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
  3392. ${ac_c_conftest_c99_globals}
  3393. ${ac_c_conftest_c11_globals}
  3394. int
  3395. main (int argc, char **argv)
  3396. {
  3397. int ok = 0;
  3398. ${ac_c_conftest_c89_main}
  3399. ${ac_c_conftest_c99_main}
  3400. ${ac_c_conftest_c11_main}
  3401. return ok;
  3402. }
  3403. "
  3404. # Test code for whether the C compiler supports C99 (complete).
  3405. ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
  3406. ${ac_c_conftest_c99_globals}
  3407. int
  3408. main (int argc, char **argv)
  3409. {
  3410. int ok = 0;
  3411. ${ac_c_conftest_c89_main}
  3412. ${ac_c_conftest_c99_main}
  3413. return ok;
  3414. }
  3415. "
  3416. # Test code for whether the C compiler supports C89 (complete).
  3417. ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
  3418. int
  3419. main (int argc, char **argv)
  3420. {
  3421. int ok = 0;
  3422. ${ac_c_conftest_c89_main}
  3423. return ok;
  3424. }
  3425. "
  3426. as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
  3427. as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
  3428. as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
  3429. as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
  3430. as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
  3431. as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
  3432. as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
  3433. as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
  3434. as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
  3435. as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
  3436. as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
  3437. # Test code for whether the C++ compiler supports C++98 (global declarations)
  3438. ac_cxx_conftest_cxx98_globals='
  3439. // Does the compiler advertise C++98 conformance?
  3440. #if !defined __cplusplus || __cplusplus < 199711L
  3441. # error "Compiler does not advertise C++98 conformance"
  3442. #endif
  3443. // These inclusions are to reject old compilers that
  3444. // lack the unsuffixed header files.
  3445. #include <cstdlib>
  3446. #include <exception>
  3447. // <cassert> and <cstring> are *not* freestanding headers in C++98.
  3448. extern void assert (int);
  3449. namespace std {
  3450. extern int strcmp (const char *, const char *);
  3451. }
  3452. // Namespaces, exceptions, and templates were all added after "C++ 2.0".
  3453. using std::exception;
  3454. using std::strcmp;
  3455. namespace {
  3456. void test_exception_syntax()
  3457. {
  3458. try {
  3459. throw "test";
  3460. } catch (const char *s) {
  3461. // Extra parentheses suppress a warning when building autoconf itself,
  3462. // due to lint rules shared with more typical C programs.
  3463. assert (!(strcmp) (s, "test"));
  3464. }
  3465. }
  3466. template <typename T> struct test_template
  3467. {
  3468. T const val;
  3469. explicit test_template(T t) : val(t) {}
  3470. template <typename U> T add(U u) { return static_cast<T>(u) + val; }
  3471. };
  3472. } // anonymous namespace
  3473. '
  3474. # Test code for whether the C++ compiler supports C++98 (body of main)
  3475. ac_cxx_conftest_cxx98_main='
  3476. assert (argc);
  3477. assert (! argv[0]);
  3478. {
  3479. test_exception_syntax ();
  3480. test_template<double> tt (2.0);
  3481. assert (tt.add (4) == 6.0);
  3482. assert (true && !false);
  3483. }
  3484. '
  3485. # Test code for whether the C++ compiler supports C++11 (global declarations)
  3486. ac_cxx_conftest_cxx11_globals='
  3487. // Does the compiler advertise C++ 2011 conformance?
  3488. #if !defined __cplusplus || __cplusplus < 201103L
  3489. # error "Compiler does not advertise C++11 conformance"
  3490. #endif
  3491. namespace cxx11test
  3492. {
  3493. constexpr int get_val() { return 20; }
  3494. struct testinit
  3495. {
  3496. int i;
  3497. double d;
  3498. };
  3499. class delegate
  3500. {
  3501. public:
  3502. delegate(int n) : n(n) {}
  3503. delegate(): delegate(2354) {}
  3504. virtual int getval() { return this->n; };
  3505. protected:
  3506. int n;
  3507. };
  3508. class overridden : public delegate
  3509. {
  3510. public:
  3511. overridden(int n): delegate(n) {}
  3512. virtual int getval() override final { return this->n * 2; }
  3513. };
  3514. class nocopy
  3515. {
  3516. public:
  3517. nocopy(int i): i(i) {}
  3518. nocopy() = default;
  3519. nocopy(const nocopy&) = delete;
  3520. nocopy & operator=(const nocopy&) = delete;
  3521. private:
  3522. int i;
  3523. };
  3524. // for testing lambda expressions
  3525. template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
  3526. {
  3527. return f(v);
  3528. }
  3529. // for testing variadic templates and trailing return types
  3530. template <typename V> auto sum(V first) -> V
  3531. {
  3532. return first;
  3533. }
  3534. template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
  3535. {
  3536. return first + sum(rest...);
  3537. }
  3538. }
  3539. '
  3540. # Test code for whether the C++ compiler supports C++11 (body of main)
  3541. ac_cxx_conftest_cxx11_main='
  3542. {
  3543. // Test auto and decltype
  3544. auto a1 = 6538;
  3545. auto a2 = 48573953.4;
  3546. auto a3 = "String literal";
  3547. int total = 0;
  3548. for (auto i = a3; *i; ++i) { total += *i; }
  3549. decltype(a2) a4 = 34895.034;
  3550. }
  3551. {
  3552. // Test constexpr
  3553. short sa[cxx11test::get_val()] = { 0 };
  3554. }
  3555. {
  3556. // Test initializer lists
  3557. cxx11test::testinit il = { 4323, 435234.23544 };
  3558. }
  3559. {
  3560. // Test range-based for
  3561. int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
  3562. 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
  3563. for (auto &x : array) { x += 23; }
  3564. }
  3565. {
  3566. // Test lambda expressions
  3567. using cxx11test::eval;
  3568. assert (eval ([](int x) { return x*2; }, 21) == 42);
  3569. double d = 2.0;
  3570. assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
  3571. assert (d == 5.0);
  3572. assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
  3573. assert (d == 5.0);
  3574. }
  3575. {
  3576. // Test use of variadic templates
  3577. using cxx11test::sum;
  3578. auto a = sum(1);
  3579. auto b = sum(1, 2);
  3580. auto c = sum(1.0, 2.0, 3.0);
  3581. }
  3582. {
  3583. // Test constructor delegation
  3584. cxx11test::delegate d1;
  3585. cxx11test::delegate d2();
  3586. cxx11test::delegate d3(45);
  3587. }
  3588. {
  3589. // Test override and final
  3590. cxx11test::overridden o1(55464);
  3591. }
  3592. {
  3593. // Test nullptr
  3594. char *c = nullptr;
  3595. }
  3596. {
  3597. // Test template brackets
  3598. test_template<::test_template<int>> v(test_template<int>(12));
  3599. }
  3600. {
  3601. // Unicode literals
  3602. char const *utf8 = u8"UTF-8 string \u2500";
  3603. char16_t const *utf16 = u"UTF-8 string \u2500";
  3604. char32_t const *utf32 = U"UTF-32 string \u2500";
  3605. }
  3606. '
  3607. # Test code for whether the C compiler supports C++11 (complete).
  3608. ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
  3609. ${ac_cxx_conftest_cxx11_globals}
  3610. int
  3611. main (int argc, char **argv)
  3612. {
  3613. int ok = 0;
  3614. ${ac_cxx_conftest_cxx98_main}
  3615. ${ac_cxx_conftest_cxx11_main}
  3616. return ok;
  3617. }
  3618. "
  3619. # Test code for whether the C compiler supports C++98 (complete).
  3620. ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
  3621. int
  3622. main (int argc, char **argv)
  3623. {
  3624. int ok = 0;
  3625. ${ac_cxx_conftest_cxx98_main}
  3626. return ok;
  3627. }
  3628. "
  3629. as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
  3630. as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
  3631. as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
  3632. as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
  3633. as_fn_append ac_header_c_list " utime.h utime_h HAVE_UTIME_H"
  3634. as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
  3635. # Auxiliary files required by this configure script.
  3636. ac_aux_files="install-sh config.guess config.sub"
  3637. # Locations in which to look for auxiliary files.
  3638. ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
  3639. # Search for a directory containing all of the required auxiliary files,
  3640. # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
  3641. # If we don't find one directory that contains all the files we need,
  3642. # we report the set of missing files from the *first* directory in
  3643. # $ac_aux_dir_candidates and give up.
  3644. ac_missing_aux_files=""
  3645. ac_first_candidate=:
  3646. printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
  3647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3648. as_found=false
  3649. for as_dir in $ac_aux_dir_candidates
  3650. do
  3651. IFS=$as_save_IFS
  3652. case $as_dir in #(((
  3653. '') as_dir=./ ;;
  3654. */) ;;
  3655. *) as_dir=$as_dir/ ;;
  3656. esac
  3657. as_found=:
  3658. printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
  3659. ac_aux_dir_found=yes
  3660. ac_install_sh=
  3661. for ac_aux in $ac_aux_files
  3662. do
  3663. # As a special case, if "install-sh" is required, that requirement
  3664. # can be satisfied by any of "install-sh", "install.sh", or "shtool",
  3665. # and $ac_install_sh is set appropriately for whichever one is found.
  3666. if test x"$ac_aux" = x"install-sh"
  3667. then
  3668. if test -f "${as_dir}install-sh"; then
  3669. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
  3670. ac_install_sh="${as_dir}install-sh -c"
  3671. elif test -f "${as_dir}install.sh"; then
  3672. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
  3673. ac_install_sh="${as_dir}install.sh -c"
  3674. elif test -f "${as_dir}shtool"; then
  3675. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
  3676. ac_install_sh="${as_dir}shtool install -c"
  3677. else
  3678. ac_aux_dir_found=no
  3679. if $ac_first_candidate; then
  3680. ac_missing_aux_files="${ac_missing_aux_files} install-sh"
  3681. else
  3682. break
  3683. fi
  3684. fi
  3685. else
  3686. if test -f "${as_dir}${ac_aux}"; then
  3687. printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
  3688. else
  3689. ac_aux_dir_found=no
  3690. if $ac_first_candidate; then
  3691. ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
  3692. else
  3693. break
  3694. fi
  3695. fi
  3696. fi
  3697. done
  3698. if test "$ac_aux_dir_found" = yes; then
  3699. ac_aux_dir="$as_dir"
  3700. break
  3701. fi
  3702. ac_first_candidate=false
  3703. as_found=false
  3704. done
  3705. IFS=$as_save_IFS
  3706. if $as_found
  3707. then :
  3708. else $as_nop
  3709. as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
  3710. fi
  3711. # These three variables are undocumented and unsupported,
  3712. # and are intended to be withdrawn in a future Autoconf release.
  3713. # They can cause serious problems if a builder's source tree is in a directory
  3714. # whose full name contains unusual characters.
  3715. if test -f "${ac_aux_dir}config.guess"; then
  3716. ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
  3717. fi
  3718. if test -f "${ac_aux_dir}config.sub"; then
  3719. ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
  3720. fi
  3721. if test -f "$ac_aux_dir/configure"; then
  3722. ac_configure="$SHELL ${ac_aux_dir}configure"
  3723. fi
  3724. # Check that the precious variables saved in the cache have kept the same
  3725. # value.
  3726. ac_cache_corrupted=false
  3727. for ac_var in $ac_precious_vars; do
  3728. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3729. eval ac_new_set=\$ac_env_${ac_var}_set
  3730. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3731. eval ac_new_val=\$ac_env_${ac_var}_value
  3732. case $ac_old_set,$ac_new_set in
  3733. set,)
  3734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3735. printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3736. ac_cache_corrupted=: ;;
  3737. ,set)
  3738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3739. printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3740. ac_cache_corrupted=: ;;
  3741. ,);;
  3742. *)
  3743. if test "x$ac_old_val" != "x$ac_new_val"; then
  3744. # differences in whitespace do not lead to failure.
  3745. ac_old_val_w=`echo x $ac_old_val`
  3746. ac_new_val_w=`echo x $ac_new_val`
  3747. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3748. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3749. printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3750. ac_cache_corrupted=:
  3751. else
  3752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3753. printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3754. eval $ac_var=\$ac_old_val
  3755. fi
  3756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3757. printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
  3758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3759. printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
  3760. fi;;
  3761. esac
  3762. # Pass precious variables to config.status.
  3763. if test "$ac_new_set" = set; then
  3764. case $ac_new_val in
  3765. *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3766. *) ac_arg=$ac_var=$ac_new_val ;;
  3767. esac
  3768. case " $ac_configure_args " in
  3769. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3770. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3771. esac
  3772. fi
  3773. done
  3774. if $ac_cache_corrupted; then
  3775. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3776. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3778. printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
  3779. as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
  3780. and start over" "$LINENO" 5
  3781. fi
  3782. ## -------------------- ##
  3783. ## Main body of script. ##
  3784. ## -------------------- ##
  3785. ac_ext=c
  3786. ac_cpp='$CPP $CPPFLAGS'
  3787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3790. # cross-compile macros
  3791. # Make sure we can run config.sub.
  3792. $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
  3793. as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
  3794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3795. printf %s "checking build system type... " >&6; }
  3796. if test ${ac_cv_build+y}
  3797. then :
  3798. printf %s "(cached) " >&6
  3799. else $as_nop
  3800. ac_build_alias=$build_alias
  3801. test "x$ac_build_alias" = x &&
  3802. ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
  3803. test "x$ac_build_alias" = x &&
  3804. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3805. ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
  3806. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
  3807. fi
  3808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3809. printf "%s\n" "$ac_cv_build" >&6; }
  3810. case $ac_cv_build in
  3811. *-*-*) ;;
  3812. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3813. esac
  3814. build=$ac_cv_build
  3815. ac_save_IFS=$IFS; IFS='-'
  3816. set x $ac_cv_build
  3817. shift
  3818. build_cpu=$1
  3819. build_vendor=$2
  3820. shift; shift
  3821. # Remember, the first character of IFS is used to create $*,
  3822. # except with old shells:
  3823. build_os=$*
  3824. IFS=$ac_save_IFS
  3825. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3827. printf %s "checking host system type... " >&6; }
  3828. if test ${ac_cv_host+y}
  3829. then :
  3830. printf %s "(cached) " >&6
  3831. else $as_nop
  3832. if test "x$host_alias" = x; then
  3833. ac_cv_host=$ac_cv_build
  3834. else
  3835. ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
  3836. as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
  3837. fi
  3838. fi
  3839. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3840. printf "%s\n" "$ac_cv_host" >&6; }
  3841. case $ac_cv_host in
  3842. *-*-*) ;;
  3843. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3844. esac
  3845. host=$ac_cv_host
  3846. ac_save_IFS=$IFS; IFS='-'
  3847. set x $ac_cv_host
  3848. shift
  3849. host_cpu=$1
  3850. host_vendor=$2
  3851. shift; shift
  3852. # Remember, the first character of IFS is used to create $*,
  3853. # except with old shells:
  3854. host_os=$*
  3855. IFS=$ac_save_IFS
  3856. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3857. # check existence of the package
  3858. # preserve any CFLAGS or LDFLAGS that may be set
  3859. # NOTE: This must be done before calling any macros that end up
  3860. # calling AC_PROG_CC or the like, since they will set a default
  3861. # set of CFLAGS ("-g -O2") if the user did not supply any, and
  3862. # we don't want those default flags to be carried over into the
  3863. # rest of the build system since we have other means of controlling
  3864. # debugging symbol generation and optimization.
  3865. CONFIG_CFLAGS="${CFLAGS}"
  3866. CONFIG_LDFLAGS="${LDFLAGS}"
  3867. # specify output header file
  3868. ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
  3869. # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
  3870. # other macro that uses the C compiler, or the default order will be used.
  3871. ac_ext=c
  3872. ac_cpp='$CPP $CPPFLAGS'
  3873. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3874. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3875. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3876. if test -n "$ac_tool_prefix"; then
  3877. for ac_prog in gcc cc
  3878. do
  3879. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3880. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3881. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3882. printf %s "checking for $ac_word... " >&6; }
  3883. if test ${ac_cv_prog_CC+y}
  3884. then :
  3885. printf %s "(cached) " >&6
  3886. else $as_nop
  3887. if test -n "$CC"; then
  3888. ac_cv_prog_CC="$CC" # Let the user override the test.
  3889. else
  3890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3891. for as_dir in $PATH
  3892. do
  3893. IFS=$as_save_IFS
  3894. case $as_dir in #(((
  3895. '') as_dir=./ ;;
  3896. */) ;;
  3897. *) as_dir=$as_dir/ ;;
  3898. esac
  3899. for ac_exec_ext in '' $ac_executable_extensions; do
  3900. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3901. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3902. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3903. break 2
  3904. fi
  3905. done
  3906. done
  3907. IFS=$as_save_IFS
  3908. fi
  3909. fi
  3910. CC=$ac_cv_prog_CC
  3911. if test -n "$CC"; then
  3912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3913. printf "%s\n" "$CC" >&6; }
  3914. else
  3915. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3916. printf "%s\n" "no" >&6; }
  3917. fi
  3918. test -n "$CC" && break
  3919. done
  3920. fi
  3921. if test -z "$CC"; then
  3922. ac_ct_CC=$CC
  3923. for ac_prog in gcc cc
  3924. do
  3925. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3926. set dummy $ac_prog; ac_word=$2
  3927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3928. printf %s "checking for $ac_word... " >&6; }
  3929. if test ${ac_cv_prog_ac_ct_CC+y}
  3930. then :
  3931. printf %s "(cached) " >&6
  3932. else $as_nop
  3933. if test -n "$ac_ct_CC"; then
  3934. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3935. else
  3936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3937. for as_dir in $PATH
  3938. do
  3939. IFS=$as_save_IFS
  3940. case $as_dir in #(((
  3941. '') as_dir=./ ;;
  3942. */) ;;
  3943. *) as_dir=$as_dir/ ;;
  3944. esac
  3945. for ac_exec_ext in '' $ac_executable_extensions; do
  3946. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  3947. ac_cv_prog_ac_ct_CC="$ac_prog"
  3948. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  3949. break 2
  3950. fi
  3951. done
  3952. done
  3953. IFS=$as_save_IFS
  3954. fi
  3955. fi
  3956. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3957. if test -n "$ac_ct_CC"; then
  3958. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3959. printf "%s\n" "$ac_ct_CC" >&6; }
  3960. else
  3961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3962. printf "%s\n" "no" >&6; }
  3963. fi
  3964. test -n "$ac_ct_CC" && break
  3965. done
  3966. if test "x$ac_ct_CC" = x; then
  3967. CC=""
  3968. else
  3969. case $cross_compiling:$ac_tool_warned in
  3970. yes:)
  3971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3972. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3973. ac_tool_warned=yes ;;
  3974. esac
  3975. CC=$ac_ct_CC
  3976. fi
  3977. fi
  3978. test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3979. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  3980. as_fn_error $? "no acceptable C compiler found in \$PATH
  3981. See \`config.log' for more details" "$LINENO" 5; }
  3982. # Provide some information about the compiler.
  3983. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3984. set X $ac_compile
  3985. ac_compiler=$2
  3986. for ac_option in --version -v -V -qversion -version; do
  3987. { { ac_try="$ac_compiler $ac_option >&5"
  3988. case "(($ac_try" in
  3989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3990. *) ac_try_echo=$ac_try;;
  3991. esac
  3992. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3993. printf "%s\n" "$ac_try_echo"; } >&5
  3994. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3995. ac_status=$?
  3996. if test -s conftest.err; then
  3997. sed '10a\
  3998. ... rest of stderr output deleted ...
  3999. 10q' conftest.err >conftest.er1
  4000. cat conftest.er1 >&5
  4001. fi
  4002. rm -f conftest.er1 conftest.err
  4003. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4004. test $ac_status = 0; }
  4005. done
  4006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4007. /* end confdefs.h. */
  4008. int
  4009. main (void)
  4010. {
  4011. ;
  4012. return 0;
  4013. }
  4014. _ACEOF
  4015. ac_clean_files_save=$ac_clean_files
  4016. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4017. # Try to create an executable without -o first, disregard a.out.
  4018. # It will help us diagnose broken compilers, and finding out an intuition
  4019. # of exeext.
  4020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4021. printf %s "checking whether the C compiler works... " >&6; }
  4022. ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4023. # The possible output files:
  4024. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4025. ac_rmfiles=
  4026. for ac_file in $ac_files
  4027. do
  4028. case $ac_file in
  4029. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4030. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4031. esac
  4032. done
  4033. rm -f $ac_rmfiles
  4034. if { { ac_try="$ac_link_default"
  4035. case "(($ac_try" in
  4036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4037. *) ac_try_echo=$ac_try;;
  4038. esac
  4039. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4040. printf "%s\n" "$ac_try_echo"; } >&5
  4041. (eval "$ac_link_default") 2>&5
  4042. ac_status=$?
  4043. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4044. test $ac_status = 0; }
  4045. then :
  4046. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4047. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4048. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4049. # so that the user can short-circuit this test for compilers unknown to
  4050. # Autoconf.
  4051. for ac_file in $ac_files ''
  4052. do
  4053. test -f "$ac_file" || continue
  4054. case $ac_file in
  4055. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4056. ;;
  4057. [ab].out )
  4058. # We found the default executable, but exeext='' is most
  4059. # certainly right.
  4060. break;;
  4061. *.* )
  4062. if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
  4063. then :; else
  4064. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4065. fi
  4066. # We set ac_cv_exeext here because the later test for it is not
  4067. # safe: cross compilers may not add the suffix if given an `-o'
  4068. # argument, so we may need to know it at that point already.
  4069. # Even if this section looks crufty: it has the advantage of
  4070. # actually working.
  4071. break;;
  4072. * )
  4073. break;;
  4074. esac
  4075. done
  4076. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4077. else $as_nop
  4078. ac_file=''
  4079. fi
  4080. if test -z "$ac_file"
  4081. then :
  4082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4083. printf "%s\n" "no" >&6; }
  4084. printf "%s\n" "$as_me: failed program was:" >&5
  4085. sed 's/^/| /' conftest.$ac_ext >&5
  4086. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4087. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4088. as_fn_error 77 "C compiler cannot create executables
  4089. See \`config.log' for more details" "$LINENO" 5; }
  4090. else $as_nop
  4091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4092. printf "%s\n" "yes" >&6; }
  4093. fi
  4094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4095. printf %s "checking for C compiler default output file name... " >&6; }
  4096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4097. printf "%s\n" "$ac_file" >&6; }
  4098. ac_exeext=$ac_cv_exeext
  4099. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4100. ac_clean_files=$ac_clean_files_save
  4101. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4102. printf %s "checking for suffix of executables... " >&6; }
  4103. if { { ac_try="$ac_link"
  4104. case "(($ac_try" in
  4105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4106. *) ac_try_echo=$ac_try;;
  4107. esac
  4108. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4109. printf "%s\n" "$ac_try_echo"; } >&5
  4110. (eval "$ac_link") 2>&5
  4111. ac_status=$?
  4112. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4113. test $ac_status = 0; }
  4114. then :
  4115. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4116. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4117. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4118. # `rm'.
  4119. for ac_file in conftest.exe conftest conftest.*; do
  4120. test -f "$ac_file" || continue
  4121. case $ac_file in
  4122. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4123. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4124. break;;
  4125. * ) break;;
  4126. esac
  4127. done
  4128. else $as_nop
  4129. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4130. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4131. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4132. See \`config.log' for more details" "$LINENO" 5; }
  4133. fi
  4134. rm -f conftest conftest$ac_cv_exeext
  4135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4136. printf "%s\n" "$ac_cv_exeext" >&6; }
  4137. rm -f conftest.$ac_ext
  4138. EXEEXT=$ac_cv_exeext
  4139. ac_exeext=$EXEEXT
  4140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4141. /* end confdefs.h. */
  4142. #include <stdio.h>
  4143. int
  4144. main (void)
  4145. {
  4146. FILE *f = fopen ("conftest.out", "w");
  4147. return ferror (f) || fclose (f) != 0;
  4148. ;
  4149. return 0;
  4150. }
  4151. _ACEOF
  4152. ac_clean_files="$ac_clean_files conftest.out"
  4153. # Check that the compiler produces executables we can run. If not, either
  4154. # the compiler is broken, or we cross compile.
  4155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4156. printf %s "checking whether we are cross compiling... " >&6; }
  4157. if test "$cross_compiling" != yes; then
  4158. { { ac_try="$ac_link"
  4159. case "(($ac_try" in
  4160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4161. *) ac_try_echo=$ac_try;;
  4162. esac
  4163. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4164. printf "%s\n" "$ac_try_echo"; } >&5
  4165. (eval "$ac_link") 2>&5
  4166. ac_status=$?
  4167. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4168. test $ac_status = 0; }
  4169. if { ac_try='./conftest$ac_cv_exeext'
  4170. { { case "(($ac_try" in
  4171. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4172. *) ac_try_echo=$ac_try;;
  4173. esac
  4174. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4175. printf "%s\n" "$ac_try_echo"; } >&5
  4176. (eval "$ac_try") 2>&5
  4177. ac_status=$?
  4178. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4179. test $ac_status = 0; }; }; then
  4180. cross_compiling=no
  4181. else
  4182. if test "$cross_compiling" = maybe; then
  4183. cross_compiling=yes
  4184. else
  4185. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4186. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4187. as_fn_error 77 "cannot run C compiled programs.
  4188. If you meant to cross compile, use \`--host'.
  4189. See \`config.log' for more details" "$LINENO" 5; }
  4190. fi
  4191. fi
  4192. fi
  4193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4194. printf "%s\n" "$cross_compiling" >&6; }
  4195. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4196. ac_clean_files=$ac_clean_files_save
  4197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4198. printf %s "checking for suffix of object files... " >&6; }
  4199. if test ${ac_cv_objext+y}
  4200. then :
  4201. printf %s "(cached) " >&6
  4202. else $as_nop
  4203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4204. /* end confdefs.h. */
  4205. int
  4206. main (void)
  4207. {
  4208. ;
  4209. return 0;
  4210. }
  4211. _ACEOF
  4212. rm -f conftest.o conftest.obj
  4213. if { { ac_try="$ac_compile"
  4214. case "(($ac_try" in
  4215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4216. *) ac_try_echo=$ac_try;;
  4217. esac
  4218. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4219. printf "%s\n" "$ac_try_echo"; } >&5
  4220. (eval "$ac_compile") 2>&5
  4221. ac_status=$?
  4222. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4223. test $ac_status = 0; }
  4224. then :
  4225. for ac_file in conftest.o conftest.obj conftest.*; do
  4226. test -f "$ac_file" || continue;
  4227. case $ac_file in
  4228. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4229. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4230. break;;
  4231. esac
  4232. done
  4233. else $as_nop
  4234. printf "%s\n" "$as_me: failed program was:" >&5
  4235. sed 's/^/| /' conftest.$ac_ext >&5
  4236. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4237. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  4238. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4239. See \`config.log' for more details" "$LINENO" 5; }
  4240. fi
  4241. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4242. fi
  4243. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4244. printf "%s\n" "$ac_cv_objext" >&6; }
  4245. OBJEXT=$ac_cv_objext
  4246. ac_objext=$OBJEXT
  4247. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
  4248. printf %s "checking whether the compiler supports GNU C... " >&6; }
  4249. if test ${ac_cv_c_compiler_gnu+y}
  4250. then :
  4251. printf %s "(cached) " >&6
  4252. else $as_nop
  4253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4254. /* end confdefs.h. */
  4255. int
  4256. main (void)
  4257. {
  4258. #ifndef __GNUC__
  4259. choke me
  4260. #endif
  4261. ;
  4262. return 0;
  4263. }
  4264. _ACEOF
  4265. if ac_fn_c_try_compile "$LINENO"
  4266. then :
  4267. ac_compiler_gnu=yes
  4268. else $as_nop
  4269. ac_compiler_gnu=no
  4270. fi
  4271. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4272. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4273. fi
  4274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4275. printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
  4276. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4277. if test $ac_compiler_gnu = yes; then
  4278. GCC=yes
  4279. else
  4280. GCC=
  4281. fi
  4282. ac_test_CFLAGS=${CFLAGS+y}
  4283. ac_save_CFLAGS=$CFLAGS
  4284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4285. printf %s "checking whether $CC accepts -g... " >&6; }
  4286. if test ${ac_cv_prog_cc_g+y}
  4287. then :
  4288. printf %s "(cached) " >&6
  4289. else $as_nop
  4290. ac_save_c_werror_flag=$ac_c_werror_flag
  4291. ac_c_werror_flag=yes
  4292. ac_cv_prog_cc_g=no
  4293. CFLAGS="-g"
  4294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4295. /* end confdefs.h. */
  4296. int
  4297. main (void)
  4298. {
  4299. ;
  4300. return 0;
  4301. }
  4302. _ACEOF
  4303. if ac_fn_c_try_compile "$LINENO"
  4304. then :
  4305. ac_cv_prog_cc_g=yes
  4306. else $as_nop
  4307. CFLAGS=""
  4308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4309. /* end confdefs.h. */
  4310. int
  4311. main (void)
  4312. {
  4313. ;
  4314. return 0;
  4315. }
  4316. _ACEOF
  4317. if ac_fn_c_try_compile "$LINENO"
  4318. then :
  4319. else $as_nop
  4320. ac_c_werror_flag=$ac_save_c_werror_flag
  4321. CFLAGS="-g"
  4322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4323. /* end confdefs.h. */
  4324. int
  4325. main (void)
  4326. {
  4327. ;
  4328. return 0;
  4329. }
  4330. _ACEOF
  4331. if ac_fn_c_try_compile "$LINENO"
  4332. then :
  4333. ac_cv_prog_cc_g=yes
  4334. fi
  4335. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4336. fi
  4337. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4338. fi
  4339. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4340. ac_c_werror_flag=$ac_save_c_werror_flag
  4341. fi
  4342. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4343. printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
  4344. if test $ac_test_CFLAGS; then
  4345. CFLAGS=$ac_save_CFLAGS
  4346. elif test $ac_cv_prog_cc_g = yes; then
  4347. if test "$GCC" = yes; then
  4348. CFLAGS="-g -O2"
  4349. else
  4350. CFLAGS="-g"
  4351. fi
  4352. else
  4353. if test "$GCC" = yes; then
  4354. CFLAGS="-O2"
  4355. else
  4356. CFLAGS=
  4357. fi
  4358. fi
  4359. ac_prog_cc_stdc=no
  4360. if test x$ac_prog_cc_stdc = xno
  4361. then :
  4362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
  4363. printf %s "checking for $CC option to enable C11 features... " >&6; }
  4364. if test ${ac_cv_prog_cc_c11+y}
  4365. then :
  4366. printf %s "(cached) " >&6
  4367. else $as_nop
  4368. ac_cv_prog_cc_c11=no
  4369. ac_save_CC=$CC
  4370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4371. /* end confdefs.h. */
  4372. $ac_c_conftest_c11_program
  4373. _ACEOF
  4374. for ac_arg in '' -std=gnu11
  4375. do
  4376. CC="$ac_save_CC $ac_arg"
  4377. if ac_fn_c_try_compile "$LINENO"
  4378. then :
  4379. ac_cv_prog_cc_c11=$ac_arg
  4380. fi
  4381. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4382. test "x$ac_cv_prog_cc_c11" != "xno" && break
  4383. done
  4384. rm -f conftest.$ac_ext
  4385. CC=$ac_save_CC
  4386. fi
  4387. if test "x$ac_cv_prog_cc_c11" = xno
  4388. then :
  4389. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4390. printf "%s\n" "unsupported" >&6; }
  4391. else $as_nop
  4392. if test "x$ac_cv_prog_cc_c11" = x
  4393. then :
  4394. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4395. printf "%s\n" "none needed" >&6; }
  4396. else $as_nop
  4397. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
  4398. printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
  4399. CC="$CC $ac_cv_prog_cc_c11"
  4400. fi
  4401. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
  4402. ac_prog_cc_stdc=c11
  4403. fi
  4404. fi
  4405. if test x$ac_prog_cc_stdc = xno
  4406. then :
  4407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
  4408. printf %s "checking for $CC option to enable C99 features... " >&6; }
  4409. if test ${ac_cv_prog_cc_c99+y}
  4410. then :
  4411. printf %s "(cached) " >&6
  4412. else $as_nop
  4413. ac_cv_prog_cc_c99=no
  4414. ac_save_CC=$CC
  4415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4416. /* end confdefs.h. */
  4417. $ac_c_conftest_c99_program
  4418. _ACEOF
  4419. for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
  4420. do
  4421. CC="$ac_save_CC $ac_arg"
  4422. if ac_fn_c_try_compile "$LINENO"
  4423. then :
  4424. ac_cv_prog_cc_c99=$ac_arg
  4425. fi
  4426. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4427. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4428. done
  4429. rm -f conftest.$ac_ext
  4430. CC=$ac_save_CC
  4431. fi
  4432. if test "x$ac_cv_prog_cc_c99" = xno
  4433. then :
  4434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4435. printf "%s\n" "unsupported" >&6; }
  4436. else $as_nop
  4437. if test "x$ac_cv_prog_cc_c99" = x
  4438. then :
  4439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4440. printf "%s\n" "none needed" >&6; }
  4441. else $as_nop
  4442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4443. printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
  4444. CC="$CC $ac_cv_prog_cc_c99"
  4445. fi
  4446. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4447. ac_prog_cc_stdc=c99
  4448. fi
  4449. fi
  4450. if test x$ac_prog_cc_stdc = xno
  4451. then :
  4452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
  4453. printf %s "checking for $CC option to enable C89 features... " >&6; }
  4454. if test ${ac_cv_prog_cc_c89+y}
  4455. then :
  4456. printf %s "(cached) " >&6
  4457. else $as_nop
  4458. ac_cv_prog_cc_c89=no
  4459. ac_save_CC=$CC
  4460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4461. /* end confdefs.h. */
  4462. $ac_c_conftest_c89_program
  4463. _ACEOF
  4464. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4465. do
  4466. CC="$ac_save_CC $ac_arg"
  4467. if ac_fn_c_try_compile "$LINENO"
  4468. then :
  4469. ac_cv_prog_cc_c89=$ac_arg
  4470. fi
  4471. rm -f core conftest.err conftest.$ac_objext conftest.beam
  4472. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4473. done
  4474. rm -f conftest.$ac_ext
  4475. CC=$ac_save_CC
  4476. fi
  4477. if test "x$ac_cv_prog_cc_c89" = xno
  4478. then :
  4479. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4480. printf "%s\n" "unsupported" >&6; }
  4481. else $as_nop
  4482. if test "x$ac_cv_prog_cc_c89" = x
  4483. then :
  4484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4485. printf "%s\n" "none needed" >&6; }
  4486. else $as_nop
  4487. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4488. printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
  4489. CC="$CC $ac_cv_prog_cc_c89"
  4490. fi
  4491. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4492. ac_prog_cc_stdc=c89
  4493. fi
  4494. fi
  4495. ac_ext=c
  4496. ac_cpp='$CPP $CPPFLAGS'
  4497. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4498. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4499. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4500. ac_header= ac_cache=
  4501. for ac_item in $ac_header_c_list
  4502. do
  4503. if test $ac_cache; then
  4504. ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
  4505. if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
  4506. printf "%s\n" "#define $ac_item 1" >> confdefs.h
  4507. fi
  4508. ac_header= ac_cache=
  4509. elif test $ac_header; then
  4510. ac_cache=$ac_item
  4511. else
  4512. ac_header=$ac_item
  4513. fi
  4514. done
  4515. if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
  4516. then :
  4517. printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
  4518. fi
  4519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4520. printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4521. if test ${ac_cv_safe_to_define___extensions__+y}
  4522. then :
  4523. printf %s "(cached) " >&6
  4524. else $as_nop
  4525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4526. /* end confdefs.h. */
  4527. # define __EXTENSIONS__ 1
  4528. $ac_includes_default
  4529. int
  4530. main (void)
  4531. {
  4532. ;
  4533. return 0;
  4534. }
  4535. _ACEOF
  4536. if ac_fn_c_try_compile "$LINENO"
  4537. then :
  4538. ac_cv_safe_to_define___extensions__=yes
  4539. else $as_nop
  4540. ac_cv_safe_to_define___extensions__=no
  4541. fi
  4542. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4543. fi
  4544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4545. printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
  4546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
  4547. printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
  4548. if test ${ac_cv_should_define__xopen_source+y}
  4549. then :
  4550. printf %s "(cached) " >&6
  4551. else $as_nop
  4552. ac_cv_should_define__xopen_source=no
  4553. if test $ac_cv_header_wchar_h = yes
  4554. then :
  4555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4556. /* end confdefs.h. */
  4557. #include <wchar.h>
  4558. mbstate_t x;
  4559. int
  4560. main (void)
  4561. {
  4562. ;
  4563. return 0;
  4564. }
  4565. _ACEOF
  4566. if ac_fn_c_try_compile "$LINENO"
  4567. then :
  4568. else $as_nop
  4569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4570. /* end confdefs.h. */
  4571. #define _XOPEN_SOURCE 500
  4572. #include <wchar.h>
  4573. mbstate_t x;
  4574. int
  4575. main (void)
  4576. {
  4577. ;
  4578. return 0;
  4579. }
  4580. _ACEOF
  4581. if ac_fn_c_try_compile "$LINENO"
  4582. then :
  4583. ac_cv_should_define__xopen_source=yes
  4584. fi
  4585. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4586. fi
  4587. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4588. fi
  4589. fi
  4590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
  4591. printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
  4592. printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
  4593. printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
  4594. printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
  4595. printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
  4596. printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
  4597. printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
  4598. printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4599. printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
  4600. printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
  4601. printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
  4602. printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
  4603. printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
  4604. printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
  4605. printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
  4606. printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
  4607. if test $ac_cv_header_minix_config_h = yes
  4608. then :
  4609. MINIX=yes
  4610. printf "%s\n" "#define _MINIX 1" >>confdefs.h
  4611. printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
  4612. printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4613. else $as_nop
  4614. MINIX=
  4615. fi
  4616. if test $ac_cv_safe_to_define___extensions__ = yes
  4617. then :
  4618. printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
  4619. fi
  4620. if test $ac_cv_should_define__xopen_source = yes
  4621. then :
  4622. printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
  4623. fi
  4624. # System default paths
  4625. astsbindir='${sbindir}'
  4626. astcachedir='${localstatedir}/cache/asterisk'
  4627. astetcdir='${sysconfdir}/asterisk'
  4628. astheaderdir='${includedir}/asterisk'
  4629. astlibdir='${libdir}'
  4630. astmoddir='${libdir}/asterisk/modules'
  4631. astmandir='${mandir}'
  4632. astvarlibdir='${localstatedir}/lib/asterisk'
  4633. astdatadir='${astvarlibdir}'
  4634. astdbdir='${astvarlibdir}'
  4635. astkeydir='${astvarlibdir}'
  4636. astspooldir='${localstatedir}/spool/asterisk'
  4637. astlogdir='${localstatedir}/log/asterisk'
  4638. astvarrundir='${localstatedir}/run/asterisk'
  4639. case "${host_os}" in
  4640. *bsd*)
  4641. if test ${prefix} != 'NONE'; then
  4642. astvarlibdir='${prefix}/share/asterisk'
  4643. astdbdir='${localstatedir}/db/asterisk'
  4644. fi
  4645. ;;
  4646. darwin*)
  4647. if test ${prefix} = 'NONE'; then
  4648. astvarrundir='/Library/Application Support/Asterisk/Run'
  4649. fi
  4650. ;;
  4651. esac
  4652. case "${host_os}" in
  4653. netbsd*)
  4654. ac_default_prefix=/usr/pkg
  4655. CPPFLAGS=-I/usr/pkg/include
  4656. LDFLAGS=-L/usr/pkg/lib
  4657. ;;
  4658. dragonfly*|freebsd*)
  4659. ac_default_prefix=/usr/local
  4660. CPPFLAGS=-I/usr/local/include
  4661. LDFLAGS=-L/usr/local/lib
  4662. ;;
  4663. openbsd*)
  4664. ac_default_prefix=/usr/local
  4665. if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
  4666. if test ${sysconfdir} = '${prefix}/etc'; then
  4667. astetcdir=/etc/asterisk
  4668. fi
  4669. if test ${mandir} = '${prefix}/man'; then
  4670. astmandir=/usr/share/man
  4671. fi
  4672. fi
  4673. CPPFLAGS=-I/usr/local/include
  4674. LDFLAGS=-L/usr/local/lib
  4675. ;;
  4676. darwin*)
  4677. ac_default_prefix=/usr/local
  4678. if test ${prefix} = 'NONE'; then
  4679. astmoddir='/Library/Application Support/Asterisk/Modules'
  4680. astvarlibdir='/Library/Application Support/Asterisk'
  4681. astlogdir=/Library/Logs/Asterisk
  4682. astvarrundir='/Library/Application Support/Asterisk/Run'
  4683. fi
  4684. printf "%s\n" "#define AST_POLL_COMPAT 1" >>confdefs.h
  4685. printf "%s\n" "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
  4686. ;;
  4687. solaris*)
  4688. if test ${prefix} = 'NONE'; then
  4689. astcachedir=/var/cache/asterisk
  4690. astetcdir=/var/etc/asterisk
  4691. astsbindir=/opt/asterisk/sbin
  4692. astlibdir=/opt/asterisk/lib
  4693. astmoddir=/opt/asterisk/lib/modules
  4694. astheaderdir=/opt/asterisk/include
  4695. astmandir=/opt/asterisk/man
  4696. astvarlibdir=/var/opt/asterisk
  4697. astspooldir=/var/spool/asterisk
  4698. astlogdir=/var/log/asterisk
  4699. astvarrundir=/var/run/asterisk
  4700. fi
  4701. ;;
  4702. *)
  4703. ac_default_prefix=/usr
  4704. if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
  4705. if test ${sysconfdir} = '${prefix}/etc'; then
  4706. sysconfdir=/etc
  4707. fi
  4708. if test ${mandir} = '${prefix}/man'; then
  4709. mandir=/usr/share/man
  4710. fi
  4711. fi
  4712. ;;
  4713. esac
  4714. if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
  4715. if test ${localstatedir} = '${prefix}/var'; then
  4716. localstatedir=/var
  4717. fi
  4718. fi
  4719. BUILD_PLATFORM=${build}
  4720. BUILD_CPU=${build_cpu}
  4721. BUILD_VENDOR=${build_vendor}
  4722. BUILD_OS=${build_os}
  4723. HOST_PLATFORM=${host}
  4724. HOST_CPU=${host_cpu}
  4725. HOST_VENDOR=${host_vendor}
  4726. HOST_OS=${host_os}
  4727. PBX_WINARCH=0
  4728. case "${host_os}" in
  4729. dragonfly*|freebsd*)
  4730. OSARCH=FreeBSD
  4731. ;;
  4732. netbsd*)
  4733. OSARCH=NetBSD
  4734. ;;
  4735. openbsd*)
  4736. OSARCH=OpenBSD
  4737. ;;
  4738. solaris*)
  4739. OSARCH=SunOS
  4740. ;;
  4741. mingw32)
  4742. OSARCH=mingw32
  4743. PBX_WINARCH=1
  4744. ;;
  4745. cygwin)
  4746. OSARCH=cygwin
  4747. PBX_WINARCH=1
  4748. ;;
  4749. linux-gnu*)
  4750. OSARCH=linux-gnu
  4751. ;;
  4752. linux-musl*)
  4753. OSARCH=linux-musl
  4754. ;;
  4755. kfreebsd*-gnu)
  4756. OSARCH=kfreebsd-gnu
  4757. ;;
  4758. *)
  4759. OSARCH=${host_os}
  4760. ;;
  4761. esac
  4762. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  4763. printf %s "checking whether char is unsigned... " >&6; }
  4764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4765. /* end confdefs.h. */
  4766. #include <limits.h>
  4767. #if CHAR_MIN == 0
  4768. #error
  4769. #endif
  4770. _ACEOF
  4771. if ac_fn_c_try_compile "$LINENO"
  4772. then :
  4773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4774. printf "%s\n" "no" >&6; }
  4775. CONFIG_SIGNED_CHAR=""
  4776. else $as_nop
  4777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4778. printf "%s\n" "yes" >&6; }
  4779. CONFIG_SIGNED_CHAR="-fsigned-char"
  4780. fi
  4781. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  4782. # check for uname
  4783. if test -n "$ac_tool_prefix"; then
  4784. # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
  4785. set dummy ${ac_tool_prefix}uname; ac_word=$2
  4786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4787. printf %s "checking for $ac_word... " >&6; }
  4788. if test ${ac_cv_path_UNAME+y}
  4789. then :
  4790. printf %s "(cached) " >&6
  4791. else $as_nop
  4792. case $UNAME in
  4793. [\\/]* | ?:[\\/]*)
  4794. ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
  4795. ;;
  4796. *)
  4797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4798. for as_dir in $PATH
  4799. do
  4800. IFS=$as_save_IFS
  4801. case $as_dir in #(((
  4802. '') as_dir=./ ;;
  4803. */) ;;
  4804. *) as_dir=$as_dir/ ;;
  4805. esac
  4806. for ac_exec_ext in '' $ac_executable_extensions; do
  4807. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4808. ac_cv_path_UNAME="$as_dir$ac_word$ac_exec_ext"
  4809. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4810. break 2
  4811. fi
  4812. done
  4813. done
  4814. IFS=$as_save_IFS
  4815. ;;
  4816. esac
  4817. fi
  4818. UNAME=$ac_cv_path_UNAME
  4819. if test -n "$UNAME"; then
  4820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4821. printf "%s\n" "$UNAME" >&6; }
  4822. else
  4823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4824. printf "%s\n" "no" >&6; }
  4825. fi
  4826. fi
  4827. if test -z "$ac_cv_path_UNAME"; then
  4828. ac_pt_UNAME=$UNAME
  4829. # Extract the first word of "uname", so it can be a program name with args.
  4830. set dummy uname; ac_word=$2
  4831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4832. printf %s "checking for $ac_word... " >&6; }
  4833. if test ${ac_cv_path_ac_pt_UNAME+y}
  4834. then :
  4835. printf %s "(cached) " >&6
  4836. else $as_nop
  4837. case $ac_pt_UNAME in
  4838. [\\/]* | ?:[\\/]*)
  4839. ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
  4840. ;;
  4841. *)
  4842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4843. for as_dir in $PATH
  4844. do
  4845. IFS=$as_save_IFS
  4846. case $as_dir in #(((
  4847. '') as_dir=./ ;;
  4848. */) ;;
  4849. *) as_dir=$as_dir/ ;;
  4850. esac
  4851. for ac_exec_ext in '' $ac_executable_extensions; do
  4852. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4853. ac_cv_path_ac_pt_UNAME="$as_dir$ac_word$ac_exec_ext"
  4854. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4855. break 2
  4856. fi
  4857. done
  4858. done
  4859. IFS=$as_save_IFS
  4860. ;;
  4861. esac
  4862. fi
  4863. ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
  4864. if test -n "$ac_pt_UNAME"; then
  4865. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_UNAME" >&5
  4866. printf "%s\n" "$ac_pt_UNAME" >&6; }
  4867. else
  4868. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4869. printf "%s\n" "no" >&6; }
  4870. fi
  4871. if test "x$ac_pt_UNAME" = x; then
  4872. UNAME=":"
  4873. else
  4874. case $cross_compiling:$ac_tool_warned in
  4875. yes:)
  4876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4877. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4878. ac_tool_warned=yes ;;
  4879. esac
  4880. UNAME=$ac_pt_UNAME
  4881. fi
  4882. else
  4883. UNAME="$ac_cv_path_UNAME"
  4884. fi
  4885. if test "x${UNAME}" != "x:"; then
  4886. PBX_OSREV=$(${UNAME} -r)
  4887. fi
  4888. # cross-compile checks
  4889. if test "${cross_compiling}" = "yes";
  4890. then
  4891. if test -n "$ac_tool_prefix"; then
  4892. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4893. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4895. printf %s "checking for $ac_word... " >&6; }
  4896. if test ${ac_cv_prog_CC+y}
  4897. then :
  4898. printf %s "(cached) " >&6
  4899. else $as_nop
  4900. if test -n "$CC"; then
  4901. ac_cv_prog_CC="$CC" # Let the user override the test.
  4902. else
  4903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4904. for as_dir in $PATH
  4905. do
  4906. IFS=$as_save_IFS
  4907. case $as_dir in #(((
  4908. '') as_dir=./ ;;
  4909. */) ;;
  4910. *) as_dir=$as_dir/ ;;
  4911. esac
  4912. for ac_exec_ext in '' $ac_executable_extensions; do
  4913. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4914. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4915. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4916. break 2
  4917. fi
  4918. done
  4919. done
  4920. IFS=$as_save_IFS
  4921. fi
  4922. fi
  4923. CC=$ac_cv_prog_CC
  4924. if test -n "$CC"; then
  4925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4926. printf "%s\n" "$CC" >&6; }
  4927. else
  4928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4929. printf "%s\n" "no" >&6; }
  4930. fi
  4931. fi
  4932. if test -z "$ac_cv_prog_CC"; then
  4933. ac_ct_CC=$CC
  4934. # Extract the first word of "gcc", so it can be a program name with args.
  4935. set dummy gcc; ac_word=$2
  4936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4937. printf %s "checking for $ac_word... " >&6; }
  4938. if test ${ac_cv_prog_ac_ct_CC+y}
  4939. then :
  4940. printf %s "(cached) " >&6
  4941. else $as_nop
  4942. if test -n "$ac_ct_CC"; then
  4943. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4944. else
  4945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4946. for as_dir in $PATH
  4947. do
  4948. IFS=$as_save_IFS
  4949. case $as_dir in #(((
  4950. '') as_dir=./ ;;
  4951. */) ;;
  4952. *) as_dir=$as_dir/ ;;
  4953. esac
  4954. for ac_exec_ext in '' $ac_executable_extensions; do
  4955. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  4956. ac_cv_prog_ac_ct_CC="gcc"
  4957. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  4958. break 2
  4959. fi
  4960. done
  4961. done
  4962. IFS=$as_save_IFS
  4963. fi
  4964. fi
  4965. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4966. if test -n "$ac_ct_CC"; then
  4967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4968. printf "%s\n" "$ac_ct_CC" >&6; }
  4969. else
  4970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4971. printf "%s\n" "no" >&6; }
  4972. fi
  4973. if test "x$ac_ct_CC" = x; then
  4974. CC=":"
  4975. else
  4976. case $cross_compiling:$ac_tool_warned in
  4977. yes:)
  4978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4979. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4980. ac_tool_warned=yes ;;
  4981. esac
  4982. CC=$ac_ct_CC
  4983. fi
  4984. else
  4985. CC="$ac_cv_prog_CC"
  4986. fi
  4987. if test -n "$ac_tool_prefix"; then
  4988. # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
  4989. set dummy ${ac_tool_prefix}g++; ac_word=$2
  4990. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4991. printf %s "checking for $ac_word... " >&6; }
  4992. if test ${ac_cv_prog_CXX+y}
  4993. then :
  4994. printf %s "(cached) " >&6
  4995. else $as_nop
  4996. if test -n "$CXX"; then
  4997. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4998. else
  4999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5000. for as_dir in $PATH
  5001. do
  5002. IFS=$as_save_IFS
  5003. case $as_dir in #(((
  5004. '') as_dir=./ ;;
  5005. */) ;;
  5006. *) as_dir=$as_dir/ ;;
  5007. esac
  5008. for ac_exec_ext in '' $ac_executable_extensions; do
  5009. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5010. ac_cv_prog_CXX="${ac_tool_prefix}g++"
  5011. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5012. break 2
  5013. fi
  5014. done
  5015. done
  5016. IFS=$as_save_IFS
  5017. fi
  5018. fi
  5019. CXX=$ac_cv_prog_CXX
  5020. if test -n "$CXX"; then
  5021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  5022. printf "%s\n" "$CXX" >&6; }
  5023. else
  5024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5025. printf "%s\n" "no" >&6; }
  5026. fi
  5027. fi
  5028. if test -z "$ac_cv_prog_CXX"; then
  5029. ac_ct_CXX=$CXX
  5030. # Extract the first word of "g++", so it can be a program name with args.
  5031. set dummy g++; ac_word=$2
  5032. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5033. printf %s "checking for $ac_word... " >&6; }
  5034. if test ${ac_cv_prog_ac_ct_CXX+y}
  5035. then :
  5036. printf %s "(cached) " >&6
  5037. else $as_nop
  5038. if test -n "$ac_ct_CXX"; then
  5039. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5040. else
  5041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5042. for as_dir in $PATH
  5043. do
  5044. IFS=$as_save_IFS
  5045. case $as_dir in #(((
  5046. '') as_dir=./ ;;
  5047. */) ;;
  5048. *) as_dir=$as_dir/ ;;
  5049. esac
  5050. for ac_exec_ext in '' $ac_executable_extensions; do
  5051. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5052. ac_cv_prog_ac_ct_CXX="g++"
  5053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5054. break 2
  5055. fi
  5056. done
  5057. done
  5058. IFS=$as_save_IFS
  5059. fi
  5060. fi
  5061. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5062. if test -n "$ac_ct_CXX"; then
  5063. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5064. printf "%s\n" "$ac_ct_CXX" >&6; }
  5065. else
  5066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5067. printf "%s\n" "no" >&6; }
  5068. fi
  5069. if test "x$ac_ct_CXX" = x; then
  5070. CXX=":"
  5071. else
  5072. case $cross_compiling:$ac_tool_warned in
  5073. yes:)
  5074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5075. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5076. ac_tool_warned=yes ;;
  5077. esac
  5078. CXX=$ac_ct_CXX
  5079. fi
  5080. else
  5081. CXX="$ac_cv_prog_CXX"
  5082. fi
  5083. if test -n "$ac_tool_prefix"; then
  5084. # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  5085. set dummy ${ac_tool_prefix}ld; ac_word=$2
  5086. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5087. printf %s "checking for $ac_word... " >&6; }
  5088. if test ${ac_cv_prog_LD+y}
  5089. then :
  5090. printf %s "(cached) " >&6
  5091. else $as_nop
  5092. if test -n "$LD"; then
  5093. ac_cv_prog_LD="$LD" # Let the user override the test.
  5094. else
  5095. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5096. for as_dir in $PATH
  5097. do
  5098. IFS=$as_save_IFS
  5099. case $as_dir in #(((
  5100. '') as_dir=./ ;;
  5101. */) ;;
  5102. *) as_dir=$as_dir/ ;;
  5103. esac
  5104. for ac_exec_ext in '' $ac_executable_extensions; do
  5105. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5106. ac_cv_prog_LD="${ac_tool_prefix}ld"
  5107. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5108. break 2
  5109. fi
  5110. done
  5111. done
  5112. IFS=$as_save_IFS
  5113. fi
  5114. fi
  5115. LD=$ac_cv_prog_LD
  5116. if test -n "$LD"; then
  5117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5118. printf "%s\n" "$LD" >&6; }
  5119. else
  5120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5121. printf "%s\n" "no" >&6; }
  5122. fi
  5123. fi
  5124. if test -z "$ac_cv_prog_LD"; then
  5125. ac_ct_LD=$LD
  5126. # Extract the first word of "ld", so it can be a program name with args.
  5127. set dummy ld; ac_word=$2
  5128. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5129. printf %s "checking for $ac_word... " >&6; }
  5130. if test ${ac_cv_prog_ac_ct_LD+y}
  5131. then :
  5132. printf %s "(cached) " >&6
  5133. else $as_nop
  5134. if test -n "$ac_ct_LD"; then
  5135. ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  5136. else
  5137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5138. for as_dir in $PATH
  5139. do
  5140. IFS=$as_save_IFS
  5141. case $as_dir in #(((
  5142. '') as_dir=./ ;;
  5143. */) ;;
  5144. *) as_dir=$as_dir/ ;;
  5145. esac
  5146. for ac_exec_ext in '' $ac_executable_extensions; do
  5147. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5148. ac_cv_prog_ac_ct_LD="ld"
  5149. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5150. break 2
  5151. fi
  5152. done
  5153. done
  5154. IFS=$as_save_IFS
  5155. fi
  5156. fi
  5157. ac_ct_LD=$ac_cv_prog_ac_ct_LD
  5158. if test -n "$ac_ct_LD"; then
  5159. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
  5160. printf "%s\n" "$ac_ct_LD" >&6; }
  5161. else
  5162. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5163. printf "%s\n" "no" >&6; }
  5164. fi
  5165. if test "x$ac_ct_LD" = x; then
  5166. LD=":"
  5167. else
  5168. case $cross_compiling:$ac_tool_warned in
  5169. yes:)
  5170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5171. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5172. ac_tool_warned=yes ;;
  5173. esac
  5174. LD=$ac_ct_LD
  5175. fi
  5176. else
  5177. LD="$ac_cv_prog_LD"
  5178. fi
  5179. if test -n "$ac_tool_prefix"; then
  5180. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5181. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5182. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5183. printf %s "checking for $ac_word... " >&6; }
  5184. if test ${ac_cv_prog_RANLIB+y}
  5185. then :
  5186. printf %s "(cached) " >&6
  5187. else $as_nop
  5188. if test -n "$RANLIB"; then
  5189. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5190. else
  5191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5192. for as_dir in $PATH
  5193. do
  5194. IFS=$as_save_IFS
  5195. case $as_dir in #(((
  5196. '') as_dir=./ ;;
  5197. */) ;;
  5198. *) as_dir=$as_dir/ ;;
  5199. esac
  5200. for ac_exec_ext in '' $ac_executable_extensions; do
  5201. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5202. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5203. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5204. break 2
  5205. fi
  5206. done
  5207. done
  5208. IFS=$as_save_IFS
  5209. fi
  5210. fi
  5211. RANLIB=$ac_cv_prog_RANLIB
  5212. if test -n "$RANLIB"; then
  5213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5214. printf "%s\n" "$RANLIB" >&6; }
  5215. else
  5216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5217. printf "%s\n" "no" >&6; }
  5218. fi
  5219. fi
  5220. if test -z "$ac_cv_prog_RANLIB"; then
  5221. ac_ct_RANLIB=$RANLIB
  5222. # Extract the first word of "ranlib", so it can be a program name with args.
  5223. set dummy ranlib; ac_word=$2
  5224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5225. printf %s "checking for $ac_word... " >&6; }
  5226. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  5227. then :
  5228. printf %s "(cached) " >&6
  5229. else $as_nop
  5230. if test -n "$ac_ct_RANLIB"; then
  5231. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5232. else
  5233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5234. for as_dir in $PATH
  5235. do
  5236. IFS=$as_save_IFS
  5237. case $as_dir in #(((
  5238. '') as_dir=./ ;;
  5239. */) ;;
  5240. *) as_dir=$as_dir/ ;;
  5241. esac
  5242. for ac_exec_ext in '' $ac_executable_extensions; do
  5243. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5244. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5245. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5246. break 2
  5247. fi
  5248. done
  5249. done
  5250. IFS=$as_save_IFS
  5251. fi
  5252. fi
  5253. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5254. if test -n "$ac_ct_RANLIB"; then
  5255. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5256. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  5257. else
  5258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5259. printf "%s\n" "no" >&6; }
  5260. fi
  5261. if test "x$ac_ct_RANLIB" = x; then
  5262. RANLIB=":"
  5263. else
  5264. case $cross_compiling:$ac_tool_warned in
  5265. yes:)
  5266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5267. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5268. ac_tool_warned=yes ;;
  5269. esac
  5270. RANLIB=$ac_ct_RANLIB
  5271. fi
  5272. else
  5273. RANLIB="$ac_cv_prog_RANLIB"
  5274. fi
  5275. CROSS_COMPILING=1
  5276. fi
  5277. # Checks for programs.
  5278. ac_ext=cpp
  5279. ac_cpp='$CXXCPP $CPPFLAGS'
  5280. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5281. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5282. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5283. if test -z "$CXX"; then
  5284. if test -n "$CCC"; then
  5285. CXX=$CCC
  5286. else
  5287. if test -n "$ac_tool_prefix"; then
  5288. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  5289. do
  5290. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5291. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5292. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5293. printf %s "checking for $ac_word... " >&6; }
  5294. if test ${ac_cv_prog_CXX+y}
  5295. then :
  5296. printf %s "(cached) " >&6
  5297. else $as_nop
  5298. if test -n "$CXX"; then
  5299. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  5300. else
  5301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5302. for as_dir in $PATH
  5303. do
  5304. IFS=$as_save_IFS
  5305. case $as_dir in #(((
  5306. '') as_dir=./ ;;
  5307. */) ;;
  5308. *) as_dir=$as_dir/ ;;
  5309. esac
  5310. for ac_exec_ext in '' $ac_executable_extensions; do
  5311. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5312. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  5313. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5314. break 2
  5315. fi
  5316. done
  5317. done
  5318. IFS=$as_save_IFS
  5319. fi
  5320. fi
  5321. CXX=$ac_cv_prog_CXX
  5322. if test -n "$CXX"; then
  5323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  5324. printf "%s\n" "$CXX" >&6; }
  5325. else
  5326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5327. printf "%s\n" "no" >&6; }
  5328. fi
  5329. test -n "$CXX" && break
  5330. done
  5331. fi
  5332. if test -z "$CXX"; then
  5333. ac_ct_CXX=$CXX
  5334. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
  5335. do
  5336. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5337. set dummy $ac_prog; ac_word=$2
  5338. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5339. printf %s "checking for $ac_word... " >&6; }
  5340. if test ${ac_cv_prog_ac_ct_CXX+y}
  5341. then :
  5342. printf %s "(cached) " >&6
  5343. else $as_nop
  5344. if test -n "$ac_ct_CXX"; then
  5345. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  5346. else
  5347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5348. for as_dir in $PATH
  5349. do
  5350. IFS=$as_save_IFS
  5351. case $as_dir in #(((
  5352. '') as_dir=./ ;;
  5353. */) ;;
  5354. *) as_dir=$as_dir/ ;;
  5355. esac
  5356. for ac_exec_ext in '' $ac_executable_extensions; do
  5357. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  5358. ac_cv_prog_ac_ct_CXX="$ac_prog"
  5359. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  5360. break 2
  5361. fi
  5362. done
  5363. done
  5364. IFS=$as_save_IFS
  5365. fi
  5366. fi
  5367. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  5368. if test -n "$ac_ct_CXX"; then
  5369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  5370. printf "%s\n" "$ac_ct_CXX" >&6; }
  5371. else
  5372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5373. printf "%s\n" "no" >&6; }
  5374. fi
  5375. test -n "$ac_ct_CXX" && break
  5376. done
  5377. if test "x$ac_ct_CXX" = x; then
  5378. CXX="g++"
  5379. else
  5380. case $cross_compiling:$ac_tool_warned in
  5381. yes:)
  5382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5383. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5384. ac_tool_warned=yes ;;
  5385. esac
  5386. CXX=$ac_ct_CXX
  5387. fi
  5388. fi
  5389. fi
  5390. fi
  5391. # Provide some information about the compiler.
  5392. printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  5393. set X $ac_compile
  5394. ac_compiler=$2
  5395. for ac_option in --version -v -V -qversion; do
  5396. { { ac_try="$ac_compiler $ac_option >&5"
  5397. case "(($ac_try" in
  5398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5399. *) ac_try_echo=$ac_try;;
  5400. esac
  5401. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5402. printf "%s\n" "$ac_try_echo"; } >&5
  5403. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5404. ac_status=$?
  5405. if test -s conftest.err; then
  5406. sed '10a\
  5407. ... rest of stderr output deleted ...
  5408. 10q' conftest.err >conftest.er1
  5409. cat conftest.er1 >&5
  5410. fi
  5411. rm -f conftest.er1 conftest.err
  5412. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5413. test $ac_status = 0; }
  5414. done
  5415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
  5416. printf %s "checking whether the compiler supports GNU C++... " >&6; }
  5417. if test ${ac_cv_cxx_compiler_gnu+y}
  5418. then :
  5419. printf %s "(cached) " >&6
  5420. else $as_nop
  5421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5422. /* end confdefs.h. */
  5423. int
  5424. main (void)
  5425. {
  5426. #ifndef __GNUC__
  5427. choke me
  5428. #endif
  5429. ;
  5430. return 0;
  5431. }
  5432. _ACEOF
  5433. if ac_fn_cxx_try_compile "$LINENO"
  5434. then :
  5435. ac_compiler_gnu=yes
  5436. else $as_nop
  5437. ac_compiler_gnu=no
  5438. fi
  5439. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5440. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5441. fi
  5442. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5443. printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
  5444. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5445. if test $ac_compiler_gnu = yes; then
  5446. GXX=yes
  5447. else
  5448. GXX=
  5449. fi
  5450. ac_test_CXXFLAGS=${CXXFLAGS+y}
  5451. ac_save_CXXFLAGS=$CXXFLAGS
  5452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5453. printf %s "checking whether $CXX accepts -g... " >&6; }
  5454. if test ${ac_cv_prog_cxx_g+y}
  5455. then :
  5456. printf %s "(cached) " >&6
  5457. else $as_nop
  5458. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5459. ac_cxx_werror_flag=yes
  5460. ac_cv_prog_cxx_g=no
  5461. CXXFLAGS="-g"
  5462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5463. /* end confdefs.h. */
  5464. int
  5465. main (void)
  5466. {
  5467. ;
  5468. return 0;
  5469. }
  5470. _ACEOF
  5471. if ac_fn_cxx_try_compile "$LINENO"
  5472. then :
  5473. ac_cv_prog_cxx_g=yes
  5474. else $as_nop
  5475. CXXFLAGS=""
  5476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5477. /* end confdefs.h. */
  5478. int
  5479. main (void)
  5480. {
  5481. ;
  5482. return 0;
  5483. }
  5484. _ACEOF
  5485. if ac_fn_cxx_try_compile "$LINENO"
  5486. then :
  5487. else $as_nop
  5488. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5489. CXXFLAGS="-g"
  5490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5491. /* end confdefs.h. */
  5492. int
  5493. main (void)
  5494. {
  5495. ;
  5496. return 0;
  5497. }
  5498. _ACEOF
  5499. if ac_fn_cxx_try_compile "$LINENO"
  5500. then :
  5501. ac_cv_prog_cxx_g=yes
  5502. fi
  5503. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5504. fi
  5505. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5506. fi
  5507. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  5508. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5509. fi
  5510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5511. printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
  5512. if test $ac_test_CXXFLAGS; then
  5513. CXXFLAGS=$ac_save_CXXFLAGS
  5514. elif test $ac_cv_prog_cxx_g = yes; then
  5515. if test "$GXX" = yes; then
  5516. CXXFLAGS="-g -O2"
  5517. else
  5518. CXXFLAGS="-g"
  5519. fi
  5520. else
  5521. if test "$GXX" = yes; then
  5522. CXXFLAGS="-O2"
  5523. else
  5524. CXXFLAGS=
  5525. fi
  5526. fi
  5527. ac_prog_cxx_stdcxx=no
  5528. if test x$ac_prog_cxx_stdcxx = xno
  5529. then :
  5530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
  5531. printf %s "checking for $CXX option to enable C++11 features... " >&6; }
  5532. if test ${ac_cv_prog_cxx_cxx11+y}
  5533. then :
  5534. printf %s "(cached) " >&6
  5535. else $as_nop
  5536. ac_cv_prog_cxx_cxx11=no
  5537. ac_save_CXX=$CXX
  5538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5539. /* end confdefs.h. */
  5540. $ac_cxx_conftest_cxx11_program
  5541. _ACEOF
  5542. for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
  5543. do
  5544. CXX="$ac_save_CXX $ac_arg"
  5545. if ac_fn_cxx_try_compile "$LINENO"
  5546. then :
  5547. ac_cv_prog_cxx_cxx11=$ac_arg
  5548. fi
  5549. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5550. test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
  5551. done
  5552. rm -f conftest.$ac_ext
  5553. CXX=$ac_save_CXX
  5554. fi
  5555. if test "x$ac_cv_prog_cxx_cxx11" = xno
  5556. then :
  5557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5558. printf "%s\n" "unsupported" >&6; }
  5559. else $as_nop
  5560. if test "x$ac_cv_prog_cxx_cxx11" = x
  5561. then :
  5562. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5563. printf "%s\n" "none needed" >&6; }
  5564. else $as_nop
  5565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
  5566. printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
  5567. CXX="$CXX $ac_cv_prog_cxx_cxx11"
  5568. fi
  5569. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
  5570. ac_prog_cxx_stdcxx=cxx11
  5571. fi
  5572. fi
  5573. if test x$ac_prog_cxx_stdcxx = xno
  5574. then :
  5575. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
  5576. printf %s "checking for $CXX option to enable C++98 features... " >&6; }
  5577. if test ${ac_cv_prog_cxx_cxx98+y}
  5578. then :
  5579. printf %s "(cached) " >&6
  5580. else $as_nop
  5581. ac_cv_prog_cxx_cxx98=no
  5582. ac_save_CXX=$CXX
  5583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5584. /* end confdefs.h. */
  5585. $ac_cxx_conftest_cxx98_program
  5586. _ACEOF
  5587. for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
  5588. do
  5589. CXX="$ac_save_CXX $ac_arg"
  5590. if ac_fn_cxx_try_compile "$LINENO"
  5591. then :
  5592. ac_cv_prog_cxx_cxx98=$ac_arg
  5593. fi
  5594. rm -f core conftest.err conftest.$ac_objext conftest.beam
  5595. test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
  5596. done
  5597. rm -f conftest.$ac_ext
  5598. CXX=$ac_save_CXX
  5599. fi
  5600. if test "x$ac_cv_prog_cxx_cxx98" = xno
  5601. then :
  5602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5603. printf "%s\n" "unsupported" >&6; }
  5604. else $as_nop
  5605. if test "x$ac_cv_prog_cxx_cxx98" = x
  5606. then :
  5607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5608. printf "%s\n" "none needed" >&6; }
  5609. else $as_nop
  5610. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
  5611. printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
  5612. CXX="$CXX $ac_cv_prog_cxx_cxx98"
  5613. fi
  5614. ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
  5615. ac_prog_cxx_stdcxx=cxx98
  5616. fi
  5617. fi
  5618. ac_ext=c
  5619. ac_cpp='$CPP $CPPFLAGS'
  5620. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5621. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5623. ac_ext=c
  5624. ac_cpp='$CPP $CPPFLAGS'
  5625. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5626. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5627. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5628. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5629. printf %s "checking how to run the C preprocessor... " >&6; }
  5630. # On Suns, sometimes $CPP names a directory.
  5631. if test -n "$CPP" && test -d "$CPP"; then
  5632. CPP=
  5633. fi
  5634. if test -z "$CPP"; then
  5635. if test ${ac_cv_prog_CPP+y}
  5636. then :
  5637. printf %s "(cached) " >&6
  5638. else $as_nop
  5639. # Double quotes because $CC needs to be expanded
  5640. for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
  5641. do
  5642. ac_preproc_ok=false
  5643. for ac_c_preproc_warn_flag in '' yes
  5644. do
  5645. # Use a header file that comes with gcc, so configuring glibc
  5646. # with a fresh cross-compiler works.
  5647. # On the NeXT, cc -E runs the code through the compiler's parser,
  5648. # not just through cpp. "Syntax error" is here to catch this case.
  5649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5650. /* end confdefs.h. */
  5651. #include <limits.h>
  5652. Syntax error
  5653. _ACEOF
  5654. if ac_fn_c_try_cpp "$LINENO"
  5655. then :
  5656. else $as_nop
  5657. # Broken: fails on valid input.
  5658. continue
  5659. fi
  5660. rm -f conftest.err conftest.i conftest.$ac_ext
  5661. # OK, works on sane cases. Now check whether nonexistent headers
  5662. # can be detected and how.
  5663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5664. /* end confdefs.h. */
  5665. #include <ac_nonexistent.h>
  5666. _ACEOF
  5667. if ac_fn_c_try_cpp "$LINENO"
  5668. then :
  5669. # Broken: success on invalid input.
  5670. continue
  5671. else $as_nop
  5672. # Passes both tests.
  5673. ac_preproc_ok=:
  5674. break
  5675. fi
  5676. rm -f conftest.err conftest.i conftest.$ac_ext
  5677. done
  5678. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5679. rm -f conftest.i conftest.err conftest.$ac_ext
  5680. if $ac_preproc_ok
  5681. then :
  5682. break
  5683. fi
  5684. done
  5685. ac_cv_prog_CPP=$CPP
  5686. fi
  5687. CPP=$ac_cv_prog_CPP
  5688. else
  5689. ac_cv_prog_CPP=$CPP
  5690. fi
  5691. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5692. printf "%s\n" "$CPP" >&6; }
  5693. ac_preproc_ok=false
  5694. for ac_c_preproc_warn_flag in '' yes
  5695. do
  5696. # Use a header file that comes with gcc, so configuring glibc
  5697. # with a fresh cross-compiler works.
  5698. # On the NeXT, cc -E runs the code through the compiler's parser,
  5699. # not just through cpp. "Syntax error" is here to catch this case.
  5700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5701. /* end confdefs.h. */
  5702. #include <limits.h>
  5703. Syntax error
  5704. _ACEOF
  5705. if ac_fn_c_try_cpp "$LINENO"
  5706. then :
  5707. else $as_nop
  5708. # Broken: fails on valid input.
  5709. continue
  5710. fi
  5711. rm -f conftest.err conftest.i conftest.$ac_ext
  5712. # OK, works on sane cases. Now check whether nonexistent headers
  5713. # can be detected and how.
  5714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5715. /* end confdefs.h. */
  5716. #include <ac_nonexistent.h>
  5717. _ACEOF
  5718. if ac_fn_c_try_cpp "$LINENO"
  5719. then :
  5720. # Broken: success on invalid input.
  5721. continue
  5722. else $as_nop
  5723. # Passes both tests.
  5724. ac_preproc_ok=:
  5725. break
  5726. fi
  5727. rm -f conftest.err conftest.i conftest.$ac_ext
  5728. done
  5729. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5730. rm -f conftest.i conftest.err conftest.$ac_ext
  5731. if $ac_preproc_ok
  5732. then :
  5733. else $as_nop
  5734. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5735. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  5736. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5737. See \`config.log' for more details" "$LINENO" 5; }
  5738. fi
  5739. ac_ext=c
  5740. ac_cpp='$CPP $CPPFLAGS'
  5741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5744. ac_ext=cpp
  5745. ac_cpp='$CXXCPP $CPPFLAGS'
  5746. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5747. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5748. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  5750. printf %s "checking how to run the C++ preprocessor... " >&6; }
  5751. if test -z "$CXXCPP"; then
  5752. if test ${ac_cv_prog_CXXCPP+y}
  5753. then :
  5754. printf %s "(cached) " >&6
  5755. else $as_nop
  5756. # Double quotes because $CXX needs to be expanded
  5757. for CXXCPP in "$CXX -E" cpp /lib/cpp
  5758. do
  5759. ac_preproc_ok=false
  5760. for ac_cxx_preproc_warn_flag in '' yes
  5761. do
  5762. # Use a header file that comes with gcc, so configuring glibc
  5763. # with a fresh cross-compiler works.
  5764. # On the NeXT, cc -E runs the code through the compiler's parser,
  5765. # not just through cpp. "Syntax error" is here to catch this case.
  5766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5767. /* end confdefs.h. */
  5768. #include <limits.h>
  5769. Syntax error
  5770. _ACEOF
  5771. if ac_fn_cxx_try_cpp "$LINENO"
  5772. then :
  5773. else $as_nop
  5774. # Broken: fails on valid input.
  5775. continue
  5776. fi
  5777. rm -f conftest.err conftest.i conftest.$ac_ext
  5778. # OK, works on sane cases. Now check whether nonexistent headers
  5779. # can be detected and how.
  5780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5781. /* end confdefs.h. */
  5782. #include <ac_nonexistent.h>
  5783. _ACEOF
  5784. if ac_fn_cxx_try_cpp "$LINENO"
  5785. then :
  5786. # Broken: success on invalid input.
  5787. continue
  5788. else $as_nop
  5789. # Passes both tests.
  5790. ac_preproc_ok=:
  5791. break
  5792. fi
  5793. rm -f conftest.err conftest.i conftest.$ac_ext
  5794. done
  5795. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5796. rm -f conftest.i conftest.err conftest.$ac_ext
  5797. if $ac_preproc_ok
  5798. then :
  5799. break
  5800. fi
  5801. done
  5802. ac_cv_prog_CXXCPP=$CXXCPP
  5803. fi
  5804. CXXCPP=$ac_cv_prog_CXXCPP
  5805. else
  5806. ac_cv_prog_CXXCPP=$CXXCPP
  5807. fi
  5808. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  5809. printf "%s\n" "$CXXCPP" >&6; }
  5810. ac_preproc_ok=false
  5811. for ac_cxx_preproc_warn_flag in '' yes
  5812. do
  5813. # Use a header file that comes with gcc, so configuring glibc
  5814. # with a fresh cross-compiler works.
  5815. # On the NeXT, cc -E runs the code through the compiler's parser,
  5816. # not just through cpp. "Syntax error" is here to catch this case.
  5817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5818. /* end confdefs.h. */
  5819. #include <limits.h>
  5820. Syntax error
  5821. _ACEOF
  5822. if ac_fn_cxx_try_cpp "$LINENO"
  5823. then :
  5824. else $as_nop
  5825. # Broken: fails on valid input.
  5826. continue
  5827. fi
  5828. rm -f conftest.err conftest.i conftest.$ac_ext
  5829. # OK, works on sane cases. Now check whether nonexistent headers
  5830. # can be detected and how.
  5831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5832. /* end confdefs.h. */
  5833. #include <ac_nonexistent.h>
  5834. _ACEOF
  5835. if ac_fn_cxx_try_cpp "$LINENO"
  5836. then :
  5837. # Broken: success on invalid input.
  5838. continue
  5839. else $as_nop
  5840. # Passes both tests.
  5841. ac_preproc_ok=:
  5842. break
  5843. fi
  5844. rm -f conftest.err conftest.i conftest.$ac_ext
  5845. done
  5846. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5847. rm -f conftest.i conftest.err conftest.$ac_ext
  5848. if $ac_preproc_ok
  5849. then :
  5850. else $as_nop
  5851. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5852. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  5853. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  5854. See \`config.log' for more details" "$LINENO" 5; }
  5855. fi
  5856. ac_ext=c
  5857. ac_cpp='$CPP $CPPFLAGS'
  5858. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5859. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5860. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5861. # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
  5862. # the developers regenerating the configure script don't have to install libtool.
  5863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5864. printf %s "checking for a sed that does not truncate output... " >&6; }
  5865. if test ${ac_cv_path_SED+y}
  5866. then :
  5867. printf %s "(cached) " >&6
  5868. else $as_nop
  5869. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5870. for ac_i in 1 2 3 4 5 6 7; do
  5871. ac_script="$ac_script$as_nl$ac_script"
  5872. done
  5873. echo "$ac_script" | sed 99q >conftest.sed
  5874. $as_unset ac_script || ac_script=
  5875. if test -z "$SED"; then
  5876. ac_path_SED_found=false
  5877. # Loop through the user's path and test for each of PROGNAME-LIST
  5878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5879. for as_dir in $PATH
  5880. do
  5881. IFS=$as_save_IFS
  5882. case $as_dir in #(((
  5883. '') as_dir=./ ;;
  5884. */) ;;
  5885. *) as_dir=$as_dir/ ;;
  5886. esac
  5887. for ac_prog in sed gsed
  5888. do
  5889. for ac_exec_ext in '' $ac_executable_extensions; do
  5890. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  5891. as_fn_executable_p "$ac_path_SED" || continue
  5892. # Check for GNU ac_path_SED and select it if it is found.
  5893. # Check for GNU $ac_path_SED
  5894. case `"$ac_path_SED" --version 2>&1` in
  5895. *GNU*)
  5896. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5897. *)
  5898. ac_count=0
  5899. printf %s 0123456789 >"conftest.in"
  5900. while :
  5901. do
  5902. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5903. mv "conftest.tmp" "conftest.in"
  5904. cp "conftest.in" "conftest.nl"
  5905. printf "%s\n" '' >> "conftest.nl"
  5906. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5907. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5908. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5909. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5910. # Best one so far, save it but keep looking for a better one
  5911. ac_cv_path_SED="$ac_path_SED"
  5912. ac_path_SED_max=$ac_count
  5913. fi
  5914. # 10*(2^10) chars as input seems more than enough
  5915. test $ac_count -gt 10 && break
  5916. done
  5917. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5918. esac
  5919. $ac_path_SED_found && break 3
  5920. done
  5921. done
  5922. done
  5923. IFS=$as_save_IFS
  5924. if test -z "$ac_cv_path_SED"; then
  5925. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5926. fi
  5927. else
  5928. ac_cv_path_SED=$SED
  5929. fi
  5930. fi
  5931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5932. printf "%s\n" "$ac_cv_path_SED" >&6; }
  5933. SED="$ac_cv_path_SED"
  5934. rm -f conftest.sed
  5935. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5936. printf %s "checking for egrep... " >&6; }
  5937. if test ${ac_cv_prog_egrep+y}
  5938. then :
  5939. printf %s "(cached) " >&6
  5940. else $as_nop
  5941. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5942. then ac_cv_prog_egrep='grep -E'
  5943. else ac_cv_prog_egrep='egrep'
  5944. fi
  5945. fi
  5946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_egrep" >&5
  5947. printf "%s\n" "$ac_cv_prog_egrep" >&6; }
  5948. EGREP=$ac_cv_prog_egrep
  5949. # Check whether --with-gnu-ld was given.
  5950. if test ${with_gnu_ld+y}
  5951. then :
  5952. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5953. else $as_nop
  5954. with_gnu_ld=no
  5955. fi
  5956. ac_prog=ld
  5957. if test "$GCC" = yes; then
  5958. # Check if gcc -print-prog-name=ld gives a path.
  5959. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5960. printf %s "checking for ld used by $CC... " >&6; }
  5961. case $host in
  5962. *-*-mingw*)
  5963. # gcc leaves a trailing carriage return which upsets mingw
  5964. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5965. *)
  5966. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5967. esac
  5968. case $ac_prog in
  5969. # Accept absolute paths.
  5970. [\\/]* | ?:[\\/]*)
  5971. re_direlt='/[^/][^/]*/\.\./'
  5972. # Canonicalize the pathname of ld
  5973. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  5974. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5975. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  5976. done
  5977. test -z "$LD" && LD="$ac_prog"
  5978. ;;
  5979. "")
  5980. # If it fails, then pretend we aren't using GCC.
  5981. ac_prog=ld
  5982. ;;
  5983. *)
  5984. # If it is relative, then search for the first ld in PATH.
  5985. with_gnu_ld=unknown
  5986. ;;
  5987. esac
  5988. elif test "$with_gnu_ld" = yes; then
  5989. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5990. printf %s "checking for GNU ld... " >&6; }
  5991. else
  5992. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5993. printf %s "checking for non-GNU ld... " >&6; }
  5994. fi
  5995. if test ${lt_cv_path_LD+y}
  5996. then :
  5997. printf %s "(cached) " >&6
  5998. else $as_nop
  5999. if test -z "$LD"; then
  6000. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6001. for ac_dir in $PATH; do
  6002. IFS="$lt_save_ifs"
  6003. test -z "$ac_dir" && ac_dir=.
  6004. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6005. lt_cv_path_LD="$ac_dir/$ac_prog"
  6006. # Check to see if the program is GNU ld. I'd rather use --version,
  6007. # but apparently some variants of GNU ld only accept -v.
  6008. # Break only if it was the GNU/non-GNU ld that we prefer.
  6009. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  6010. *GNU* | *'with BFD'*)
  6011. test "$with_gnu_ld" != no && break
  6012. ;;
  6013. *)
  6014. test "$with_gnu_ld" != yes && break
  6015. ;;
  6016. esac
  6017. fi
  6018. done
  6019. IFS="$lt_save_ifs"
  6020. else
  6021. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  6022. fi
  6023. fi
  6024. LD="$lt_cv_path_LD"
  6025. if test -n "$LD"; then
  6026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6027. printf "%s\n" "$LD" >&6; }
  6028. else
  6029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6030. printf "%s\n" "no" >&6; }
  6031. fi
  6032. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  6033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6034. printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
  6035. if test ${lt_cv_prog_gnu_ld+y}
  6036. then :
  6037. printf %s "(cached) " >&6
  6038. else $as_nop
  6039. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  6040. case `$LD -v 2>&1 </dev/null` in
  6041. *GNU* | *'with BFD'*)
  6042. lt_cv_prog_gnu_ld=yes
  6043. ;;
  6044. *)
  6045. lt_cv_prog_gnu_ld=no
  6046. ;;
  6047. esac
  6048. fi
  6049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  6050. printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
  6051. with_gnu_ld=$lt_cv_prog_gnu_ld
  6052. # note, does not work on FreeBSD
  6053. for ac_prog in gawk mawk nawk awk
  6054. do
  6055. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6056. set dummy $ac_prog; ac_word=$2
  6057. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6058. printf %s "checking for $ac_word... " >&6; }
  6059. if test ${ac_cv_prog_AWK+y}
  6060. then :
  6061. printf %s "(cached) " >&6
  6062. else $as_nop
  6063. if test -n "$AWK"; then
  6064. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  6065. else
  6066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6067. for as_dir in $PATH
  6068. do
  6069. IFS=$as_save_IFS
  6070. case $as_dir in #(((
  6071. '') as_dir=./ ;;
  6072. */) ;;
  6073. *) as_dir=$as_dir/ ;;
  6074. esac
  6075. for ac_exec_ext in '' $ac_executable_extensions; do
  6076. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6077. ac_cv_prog_AWK="$ac_prog"
  6078. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6079. break 2
  6080. fi
  6081. done
  6082. done
  6083. IFS=$as_save_IFS
  6084. fi
  6085. fi
  6086. AWK=$ac_cv_prog_AWK
  6087. if test -n "$AWK"; then
  6088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6089. printf "%s\n" "$AWK" >&6; }
  6090. else
  6091. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6092. printf "%s\n" "no" >&6; }
  6093. fi
  6094. test -n "$AWK" && break
  6095. done
  6096. # Find a good install program. We prefer a C program (faster),
  6097. # so one script is as good as another. But avoid the broken or
  6098. # incompatible versions:
  6099. # SysV /etc/install, /usr/sbin/install
  6100. # SunOS /usr/etc/install
  6101. # IRIX /sbin/install
  6102. # AIX /bin/install
  6103. # AmigaOS /C/install, which installs bootblocks on floppy discs
  6104. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  6105. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  6106. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  6107. # OS/2's system install, which has a completely different semantic
  6108. # ./install, which can be erroneously created by make from ./install.sh.
  6109. # Reject install programs that cannot install multiple files.
  6110. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  6111. printf %s "checking for a BSD-compatible install... " >&6; }
  6112. if test -z "$INSTALL"; then
  6113. if test ${ac_cv_path_install+y}
  6114. then :
  6115. printf %s "(cached) " >&6
  6116. else $as_nop
  6117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6118. for as_dir in $PATH
  6119. do
  6120. IFS=$as_save_IFS
  6121. case $as_dir in #(((
  6122. '') as_dir=./ ;;
  6123. */) ;;
  6124. *) as_dir=$as_dir/ ;;
  6125. esac
  6126. # Account for fact that we put trailing slashes in our PATH walk.
  6127. case $as_dir in #((
  6128. ./ | /[cC]/* | \
  6129. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  6130. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  6131. /usr/ucb/* ) ;;
  6132. *)
  6133. # OSF1 and SCO ODT 3.0 have their own names for install.
  6134. # Don't use installbsd from OSF since it installs stuff as root
  6135. # by default.
  6136. for ac_prog in ginstall scoinst install; do
  6137. for ac_exec_ext in '' $ac_executable_extensions; do
  6138. if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
  6139. if test $ac_prog = install &&
  6140. grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6141. # AIX install. It has an incompatible calling convention.
  6142. :
  6143. elif test $ac_prog = install &&
  6144. grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6145. # program-specific install script used by HP pwplus--don't use.
  6146. :
  6147. else
  6148. rm -rf conftest.one conftest.two conftest.dir
  6149. echo one > conftest.one
  6150. echo two > conftest.two
  6151. mkdir conftest.dir
  6152. if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
  6153. test -s conftest.one && test -s conftest.two &&
  6154. test -s conftest.dir/conftest.one &&
  6155. test -s conftest.dir/conftest.two
  6156. then
  6157. ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
  6158. break 3
  6159. fi
  6160. fi
  6161. fi
  6162. done
  6163. done
  6164. ;;
  6165. esac
  6166. done
  6167. IFS=$as_save_IFS
  6168. rm -rf conftest.one conftest.two conftest.dir
  6169. fi
  6170. if test ${ac_cv_path_install+y}; then
  6171. INSTALL=$ac_cv_path_install
  6172. else
  6173. # As a last resort, use the slow shell script. Don't cache a
  6174. # value for INSTALL within a source directory, because that will
  6175. # break other packages using the cache if that directory is
  6176. # removed, or if the value is a relative name.
  6177. INSTALL=$ac_install_sh
  6178. fi
  6179. fi
  6180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  6181. printf "%s\n" "$INSTALL" >&6; }
  6182. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  6183. # It thinks the first close brace ends the variable substitution.
  6184. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  6185. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  6186. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  6187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  6188. printf %s "checking whether ln -s works... " >&6; }
  6189. LN_S=$as_ln_s
  6190. if test "$LN_S" = "ln -s"; then
  6191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6192. printf "%s\n" "yes" >&6; }
  6193. else
  6194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  6195. printf "%s\n" "no, using $LN_S" >&6; }
  6196. fi
  6197. if test -n "$ac_tool_prefix"; then
  6198. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6199. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6201. printf %s "checking for $ac_word... " >&6; }
  6202. if test ${ac_cv_prog_RANLIB+y}
  6203. then :
  6204. printf %s "(cached) " >&6
  6205. else $as_nop
  6206. if test -n "$RANLIB"; then
  6207. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6208. else
  6209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6210. for as_dir in $PATH
  6211. do
  6212. IFS=$as_save_IFS
  6213. case $as_dir in #(((
  6214. '') as_dir=./ ;;
  6215. */) ;;
  6216. *) as_dir=$as_dir/ ;;
  6217. esac
  6218. for ac_exec_ext in '' $ac_executable_extensions; do
  6219. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6220. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6221. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6222. break 2
  6223. fi
  6224. done
  6225. done
  6226. IFS=$as_save_IFS
  6227. fi
  6228. fi
  6229. RANLIB=$ac_cv_prog_RANLIB
  6230. if test -n "$RANLIB"; then
  6231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6232. printf "%s\n" "$RANLIB" >&6; }
  6233. else
  6234. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6235. printf "%s\n" "no" >&6; }
  6236. fi
  6237. fi
  6238. if test -z "$ac_cv_prog_RANLIB"; then
  6239. ac_ct_RANLIB=$RANLIB
  6240. # Extract the first word of "ranlib", so it can be a program name with args.
  6241. set dummy ranlib; ac_word=$2
  6242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6243. printf %s "checking for $ac_word... " >&6; }
  6244. if test ${ac_cv_prog_ac_ct_RANLIB+y}
  6245. then :
  6246. printf %s "(cached) " >&6
  6247. else $as_nop
  6248. if test -n "$ac_ct_RANLIB"; then
  6249. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6250. else
  6251. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6252. for as_dir in $PATH
  6253. do
  6254. IFS=$as_save_IFS
  6255. case $as_dir in #(((
  6256. '') as_dir=./ ;;
  6257. */) ;;
  6258. *) as_dir=$as_dir/ ;;
  6259. esac
  6260. for ac_exec_ext in '' $ac_executable_extensions; do
  6261. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6262. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6263. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6264. break 2
  6265. fi
  6266. done
  6267. done
  6268. IFS=$as_save_IFS
  6269. fi
  6270. fi
  6271. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6272. if test -n "$ac_ct_RANLIB"; then
  6273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6274. printf "%s\n" "$ac_ct_RANLIB" >&6; }
  6275. else
  6276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6277. printf "%s\n" "no" >&6; }
  6278. fi
  6279. if test "x$ac_ct_RANLIB" = x; then
  6280. RANLIB=":"
  6281. else
  6282. case $cross_compiling:$ac_tool_warned in
  6283. yes:)
  6284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6285. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6286. ac_tool_warned=yes ;;
  6287. esac
  6288. RANLIB=$ac_ct_RANLIB
  6289. fi
  6290. else
  6291. RANLIB="$ac_cv_prog_RANLIB"
  6292. fi
  6293. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  6294. printf %s "checking for GNU make... " >&6; }
  6295. if test ${ac_cv_GNU_MAKE+y}
  6296. then :
  6297. printf %s "(cached) " >&6
  6298. else $as_nop
  6299. ac_cv_GNU_MAKE='Not Found' ;
  6300. ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
  6301. ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
  6302. for a in make gmake gnumake ; do
  6303. if test -z "$a" ; then continue ; fi ;
  6304. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
  6305. ac_cv_GNU_MAKE=$a ;
  6306. ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
  6307. ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
  6308. break;
  6309. fi
  6310. done ;
  6311. fi
  6312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
  6313. printf "%s\n" "$ac_cv_GNU_MAKE" >&6; } ;
  6314. if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
  6315. as_fn_error $? "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5
  6316. exit 1
  6317. fi
  6318. GNU_MAKE=$ac_cv_GNU_MAKE
  6319. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  6320. printf %s "checking for grep that handles long lines and -e... " >&6; }
  6321. if test ${ac_cv_path_GREP+y}
  6322. then :
  6323. printf %s "(cached) " >&6
  6324. else $as_nop
  6325. if test -z "$GREP"; then
  6326. ac_path_GREP_found=false
  6327. # Loop through the user's path and test for each of PROGNAME-LIST
  6328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6329. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6330. do
  6331. IFS=$as_save_IFS
  6332. case $as_dir in #(((
  6333. '') as_dir=./ ;;
  6334. */) ;;
  6335. *) as_dir=$as_dir/ ;;
  6336. esac
  6337. for ac_prog in grep ggrep
  6338. do
  6339. for ac_exec_ext in '' $ac_executable_extensions; do
  6340. ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
  6341. as_fn_executable_p "$ac_path_GREP" || continue
  6342. # Check for GNU ac_path_GREP and select it if it is found.
  6343. # Check for GNU $ac_path_GREP
  6344. case `"$ac_path_GREP" --version 2>&1` in
  6345. *GNU*)
  6346. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  6347. *)
  6348. ac_count=0
  6349. printf %s 0123456789 >"conftest.in"
  6350. while :
  6351. do
  6352. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6353. mv "conftest.tmp" "conftest.in"
  6354. cp "conftest.in" "conftest.nl"
  6355. printf "%s\n" 'GREP' >> "conftest.nl"
  6356. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6357. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6358. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6359. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  6360. # Best one so far, save it but keep looking for a better one
  6361. ac_cv_path_GREP="$ac_path_GREP"
  6362. ac_path_GREP_max=$ac_count
  6363. fi
  6364. # 10*(2^10) chars as input seems more than enough
  6365. test $ac_count -gt 10 && break
  6366. done
  6367. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6368. esac
  6369. $ac_path_GREP_found && break 3
  6370. done
  6371. done
  6372. done
  6373. IFS=$as_save_IFS
  6374. if test -z "$ac_cv_path_GREP"; then
  6375. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6376. fi
  6377. else
  6378. ac_cv_path_GREP=$GREP
  6379. fi
  6380. fi
  6381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  6382. printf "%s\n" "$ac_cv_path_GREP" >&6; }
  6383. GREP="$ac_cv_path_GREP"
  6384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  6385. printf %s "checking for egrep... " >&6; }
  6386. if test ${ac_cv_path_EGREP+y}
  6387. then :
  6388. printf %s "(cached) " >&6
  6389. else $as_nop
  6390. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  6391. then ac_cv_path_EGREP="$GREP -E"
  6392. else
  6393. if test -z "$EGREP"; then
  6394. ac_path_EGREP_found=false
  6395. # Loop through the user's path and test for each of PROGNAME-LIST
  6396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6397. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  6398. do
  6399. IFS=$as_save_IFS
  6400. case $as_dir in #(((
  6401. '') as_dir=./ ;;
  6402. */) ;;
  6403. *) as_dir=$as_dir/ ;;
  6404. esac
  6405. for ac_prog in egrep
  6406. do
  6407. for ac_exec_ext in '' $ac_executable_extensions; do
  6408. ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
  6409. as_fn_executable_p "$ac_path_EGREP" || continue
  6410. # Check for GNU ac_path_EGREP and select it if it is found.
  6411. # Check for GNU $ac_path_EGREP
  6412. case `"$ac_path_EGREP" --version 2>&1` in
  6413. *GNU*)
  6414. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  6415. *)
  6416. ac_count=0
  6417. printf %s 0123456789 >"conftest.in"
  6418. while :
  6419. do
  6420. cat "conftest.in" "conftest.in" >"conftest.tmp"
  6421. mv "conftest.tmp" "conftest.in"
  6422. cp "conftest.in" "conftest.nl"
  6423. printf "%s\n" 'EGREP' >> "conftest.nl"
  6424. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  6425. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  6426. as_fn_arith $ac_count + 1 && ac_count=$as_val
  6427. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  6428. # Best one so far, save it but keep looking for a better one
  6429. ac_cv_path_EGREP="$ac_path_EGREP"
  6430. ac_path_EGREP_max=$ac_count
  6431. fi
  6432. # 10*(2^10) chars as input seems more than enough
  6433. test $ac_count -gt 10 && break
  6434. done
  6435. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  6436. esac
  6437. $ac_path_EGREP_found && break 3
  6438. done
  6439. done
  6440. done
  6441. IFS=$as_save_IFS
  6442. if test -z "$ac_cv_path_EGREP"; then
  6443. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  6444. fi
  6445. else
  6446. ac_cv_path_EGREP=$EGREP
  6447. fi
  6448. fi
  6449. fi
  6450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  6451. printf "%s\n" "$ac_cv_path_EGREP" >&6; }
  6452. EGREP="$ac_cv_path_EGREP"
  6453. if test -n "$ac_tool_prefix"; then
  6454. for ac_prog in strip gstrip
  6455. do
  6456. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6457. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6459. printf %s "checking for $ac_word... " >&6; }
  6460. if test ${ac_cv_prog_STRIP+y}
  6461. then :
  6462. printf %s "(cached) " >&6
  6463. else $as_nop
  6464. if test -n "$STRIP"; then
  6465. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6466. else
  6467. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6468. for as_dir in $PATH
  6469. do
  6470. IFS=$as_save_IFS
  6471. case $as_dir in #(((
  6472. '') as_dir=./ ;;
  6473. */) ;;
  6474. *) as_dir=$as_dir/ ;;
  6475. esac
  6476. for ac_exec_ext in '' $ac_executable_extensions; do
  6477. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6478. ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
  6479. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6480. break 2
  6481. fi
  6482. done
  6483. done
  6484. IFS=$as_save_IFS
  6485. fi
  6486. fi
  6487. STRIP=$ac_cv_prog_STRIP
  6488. if test -n "$STRIP"; then
  6489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6490. printf "%s\n" "$STRIP" >&6; }
  6491. else
  6492. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6493. printf "%s\n" "no" >&6; }
  6494. fi
  6495. test -n "$STRIP" && break
  6496. done
  6497. fi
  6498. if test -z "$STRIP"; then
  6499. ac_ct_STRIP=$STRIP
  6500. for ac_prog in strip gstrip
  6501. do
  6502. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6503. set dummy $ac_prog; ac_word=$2
  6504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6505. printf %s "checking for $ac_word... " >&6; }
  6506. if test ${ac_cv_prog_ac_ct_STRIP+y}
  6507. then :
  6508. printf %s "(cached) " >&6
  6509. else $as_nop
  6510. if test -n "$ac_ct_STRIP"; then
  6511. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6512. else
  6513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6514. for as_dir in $PATH
  6515. do
  6516. IFS=$as_save_IFS
  6517. case $as_dir in #(((
  6518. '') as_dir=./ ;;
  6519. */) ;;
  6520. *) as_dir=$as_dir/ ;;
  6521. esac
  6522. for ac_exec_ext in '' $ac_executable_extensions; do
  6523. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6524. ac_cv_prog_ac_ct_STRIP="$ac_prog"
  6525. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6526. break 2
  6527. fi
  6528. done
  6529. done
  6530. IFS=$as_save_IFS
  6531. fi
  6532. fi
  6533. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6534. if test -n "$ac_ct_STRIP"; then
  6535. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6536. printf "%s\n" "$ac_ct_STRIP" >&6; }
  6537. else
  6538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6539. printf "%s\n" "no" >&6; }
  6540. fi
  6541. test -n "$ac_ct_STRIP" && break
  6542. done
  6543. if test "x$ac_ct_STRIP" = x; then
  6544. STRIP=":"
  6545. else
  6546. case $cross_compiling:$ac_tool_warned in
  6547. yes:)
  6548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6549. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6550. ac_tool_warned=yes ;;
  6551. esac
  6552. STRIP=$ac_ct_STRIP
  6553. fi
  6554. fi
  6555. if test -n "$ac_tool_prefix"; then
  6556. for ac_prog in ar gar
  6557. do
  6558. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6559. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6560. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6561. printf %s "checking for $ac_word... " >&6; }
  6562. if test ${ac_cv_prog_AR+y}
  6563. then :
  6564. printf %s "(cached) " >&6
  6565. else $as_nop
  6566. if test -n "$AR"; then
  6567. ac_cv_prog_AR="$AR" # Let the user override the test.
  6568. else
  6569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6570. for as_dir in $PATH
  6571. do
  6572. IFS=$as_save_IFS
  6573. case $as_dir in #(((
  6574. '') as_dir=./ ;;
  6575. */) ;;
  6576. *) as_dir=$as_dir/ ;;
  6577. esac
  6578. for ac_exec_ext in '' $ac_executable_extensions; do
  6579. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6580. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6581. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6582. break 2
  6583. fi
  6584. done
  6585. done
  6586. IFS=$as_save_IFS
  6587. fi
  6588. fi
  6589. AR=$ac_cv_prog_AR
  6590. if test -n "$AR"; then
  6591. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6592. printf "%s\n" "$AR" >&6; }
  6593. else
  6594. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6595. printf "%s\n" "no" >&6; }
  6596. fi
  6597. test -n "$AR" && break
  6598. done
  6599. fi
  6600. if test -z "$AR"; then
  6601. ac_ct_AR=$AR
  6602. for ac_prog in ar gar
  6603. do
  6604. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6605. set dummy $ac_prog; ac_word=$2
  6606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6607. printf %s "checking for $ac_word... " >&6; }
  6608. if test ${ac_cv_prog_ac_ct_AR+y}
  6609. then :
  6610. printf %s "(cached) " >&6
  6611. else $as_nop
  6612. if test -n "$ac_ct_AR"; then
  6613. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6614. else
  6615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6616. for as_dir in $PATH
  6617. do
  6618. IFS=$as_save_IFS
  6619. case $as_dir in #(((
  6620. '') as_dir=./ ;;
  6621. */) ;;
  6622. *) as_dir=$as_dir/ ;;
  6623. esac
  6624. for ac_exec_ext in '' $ac_executable_extensions; do
  6625. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6626. ac_cv_prog_ac_ct_AR="$ac_prog"
  6627. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6628. break 2
  6629. fi
  6630. done
  6631. done
  6632. IFS=$as_save_IFS
  6633. fi
  6634. fi
  6635. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6636. if test -n "$ac_ct_AR"; then
  6637. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6638. printf "%s\n" "$ac_ct_AR" >&6; }
  6639. else
  6640. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6641. printf "%s\n" "no" >&6; }
  6642. fi
  6643. test -n "$ac_ct_AR" && break
  6644. done
  6645. if test "x$ac_ct_AR" = x; then
  6646. AR=":"
  6647. else
  6648. case $cross_compiling:$ac_tool_warned in
  6649. yes:)
  6650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6651. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6652. ac_tool_warned=yes ;;
  6653. esac
  6654. AR=$ac_ct_AR
  6655. fi
  6656. fi
  6657. GNU_LD=0
  6658. if test "x$with_gnu_ld" = "xyes" ; then
  6659. GNU_LD=1
  6660. fi
  6661. # Extract the first word of "bison", so it can be a program name with args.
  6662. set dummy bison; ac_word=$2
  6663. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6664. printf %s "checking for $ac_word... " >&6; }
  6665. if test ${ac_cv_path_BISON+y}
  6666. then :
  6667. printf %s "(cached) " >&6
  6668. else $as_nop
  6669. case $BISON in
  6670. [\\/]* | ?:[\\/]*)
  6671. ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  6672. ;;
  6673. *)
  6674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6675. for as_dir in $PATH
  6676. do
  6677. IFS=$as_save_IFS
  6678. case $as_dir in #(((
  6679. '') as_dir=./ ;;
  6680. */) ;;
  6681. *) as_dir=$as_dir/ ;;
  6682. esac
  6683. for ac_exec_ext in '' $ac_executable_extensions; do
  6684. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6685. ac_cv_path_BISON="$as_dir$ac_word$ac_exec_ext"
  6686. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6687. break 2
  6688. fi
  6689. done
  6690. done
  6691. IFS=$as_save_IFS
  6692. test -z "$ac_cv_path_BISON" && ac_cv_path_BISON=":"
  6693. ;;
  6694. esac
  6695. fi
  6696. BISON=$ac_cv_path_BISON
  6697. if test -n "$BISON"; then
  6698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6699. printf "%s\n" "$BISON" >&6; }
  6700. else
  6701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6702. printf "%s\n" "no" >&6; }
  6703. fi
  6704. # Extract the first word of "cmp", so it can be a program name with args.
  6705. set dummy cmp; ac_word=$2
  6706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6707. printf %s "checking for $ac_word... " >&6; }
  6708. if test ${ac_cv_path_CMP+y}
  6709. then :
  6710. printf %s "(cached) " >&6
  6711. else $as_nop
  6712. case $CMP in
  6713. [\\/]* | ?:[\\/]*)
  6714. ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
  6715. ;;
  6716. *)
  6717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6718. for as_dir in $PATH
  6719. do
  6720. IFS=$as_save_IFS
  6721. case $as_dir in #(((
  6722. '') as_dir=./ ;;
  6723. */) ;;
  6724. *) as_dir=$as_dir/ ;;
  6725. esac
  6726. for ac_exec_ext in '' $ac_executable_extensions; do
  6727. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6728. ac_cv_path_CMP="$as_dir$ac_word$ac_exec_ext"
  6729. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6730. break 2
  6731. fi
  6732. done
  6733. done
  6734. IFS=$as_save_IFS
  6735. test -z "$ac_cv_path_CMP" && ac_cv_path_CMP=":"
  6736. ;;
  6737. esac
  6738. fi
  6739. CMP=$ac_cv_path_CMP
  6740. if test -n "$CMP"; then
  6741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
  6742. printf "%s\n" "$CMP" >&6; }
  6743. else
  6744. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6745. printf "%s\n" "no" >&6; }
  6746. fi
  6747. # Extract the first word of "cat", so it can be a program name with args.
  6748. set dummy cat; ac_word=$2
  6749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6750. printf %s "checking for $ac_word... " >&6; }
  6751. if test ${ac_cv_path_CAT+y}
  6752. then :
  6753. printf %s "(cached) " >&6
  6754. else $as_nop
  6755. case $CAT in
  6756. [\\/]* | ?:[\\/]*)
  6757. ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
  6758. ;;
  6759. *)
  6760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6761. for as_dir in $PATH
  6762. do
  6763. IFS=$as_save_IFS
  6764. case $as_dir in #(((
  6765. '') as_dir=./ ;;
  6766. */) ;;
  6767. *) as_dir=$as_dir/ ;;
  6768. esac
  6769. for ac_exec_ext in '' $ac_executable_extensions; do
  6770. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6771. ac_cv_path_CAT="$as_dir$ac_word$ac_exec_ext"
  6772. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6773. break 2
  6774. fi
  6775. done
  6776. done
  6777. IFS=$as_save_IFS
  6778. test -z "$ac_cv_path_CAT" && ac_cv_path_CAT=":"
  6779. ;;
  6780. esac
  6781. fi
  6782. CAT=$ac_cv_path_CAT
  6783. if test -n "$CAT"; then
  6784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
  6785. printf "%s\n" "$CAT" >&6; }
  6786. else
  6787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6788. printf "%s\n" "no" >&6; }
  6789. fi
  6790. # Extract the first word of "cut", so it can be a program name with args.
  6791. set dummy cut; ac_word=$2
  6792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6793. printf %s "checking for $ac_word... " >&6; }
  6794. if test ${ac_cv_path_CUT+y}
  6795. then :
  6796. printf %s "(cached) " >&6
  6797. else $as_nop
  6798. case $CUT in
  6799. [\\/]* | ?:[\\/]*)
  6800. ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
  6801. ;;
  6802. *)
  6803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6804. for as_dir in $PATH
  6805. do
  6806. IFS=$as_save_IFS
  6807. case $as_dir in #(((
  6808. '') as_dir=./ ;;
  6809. */) ;;
  6810. *) as_dir=$as_dir/ ;;
  6811. esac
  6812. for ac_exec_ext in '' $ac_executable_extensions; do
  6813. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6814. ac_cv_path_CUT="$as_dir$ac_word$ac_exec_ext"
  6815. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6816. break 2
  6817. fi
  6818. done
  6819. done
  6820. IFS=$as_save_IFS
  6821. test -z "$ac_cv_path_CUT" && ac_cv_path_CUT=":"
  6822. ;;
  6823. esac
  6824. fi
  6825. CUT=$ac_cv_path_CUT
  6826. if test -n "$CUT"; then
  6827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
  6828. printf "%s\n" "$CUT" >&6; }
  6829. else
  6830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6831. printf "%s\n" "no" >&6; }
  6832. fi
  6833. # Extract the first word of "flex", so it can be a program name with args.
  6834. set dummy flex; ac_word=$2
  6835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6836. printf %s "checking for $ac_word... " >&6; }
  6837. if test ${ac_cv_path_FLEX+y}
  6838. then :
  6839. printf %s "(cached) " >&6
  6840. else $as_nop
  6841. case $FLEX in
  6842. [\\/]* | ?:[\\/]*)
  6843. ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
  6844. ;;
  6845. *)
  6846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6847. for as_dir in $PATH
  6848. do
  6849. IFS=$as_save_IFS
  6850. case $as_dir in #(((
  6851. '') as_dir=./ ;;
  6852. */) ;;
  6853. *) as_dir=$as_dir/ ;;
  6854. esac
  6855. for ac_exec_ext in '' $ac_executable_extensions; do
  6856. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6857. ac_cv_path_FLEX="$as_dir$ac_word$ac_exec_ext"
  6858. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6859. break 2
  6860. fi
  6861. done
  6862. done
  6863. IFS=$as_save_IFS
  6864. test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX=":"
  6865. ;;
  6866. esac
  6867. fi
  6868. FLEX=$ac_cv_path_FLEX
  6869. if test -n "$FLEX"; then
  6870. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  6871. printf "%s\n" "$FLEX" >&6; }
  6872. else
  6873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6874. printf "%s\n" "no" >&6; }
  6875. fi
  6876. # Extract the first word of "grep", so it can be a program name with args.
  6877. set dummy grep; ac_word=$2
  6878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6879. printf %s "checking for $ac_word... " >&6; }
  6880. if test ${ac_cv_path_GREP+y}
  6881. then :
  6882. printf %s "(cached) " >&6
  6883. else $as_nop
  6884. case $GREP in
  6885. [\\/]* | ?:[\\/]*)
  6886. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  6887. ;;
  6888. *)
  6889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6890. for as_dir in $PATH
  6891. do
  6892. IFS=$as_save_IFS
  6893. case $as_dir in #(((
  6894. '') as_dir=./ ;;
  6895. */) ;;
  6896. *) as_dir=$as_dir/ ;;
  6897. esac
  6898. for ac_exec_ext in '' $ac_executable_extensions; do
  6899. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6900. ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
  6901. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6902. break 2
  6903. fi
  6904. done
  6905. done
  6906. IFS=$as_save_IFS
  6907. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
  6908. ;;
  6909. esac
  6910. fi
  6911. GREP=$ac_cv_path_GREP
  6912. if test -n "$GREP"; then
  6913. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  6914. printf "%s\n" "$GREP" >&6; }
  6915. else
  6916. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6917. printf "%s\n" "no" >&6; }
  6918. fi
  6919. for ac_prog in python2.7 python2 python python3
  6920. do
  6921. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6922. set dummy $ac_prog; ac_word=$2
  6923. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6924. printf %s "checking for $ac_word... " >&6; }
  6925. if test ${ac_cv_path_PYTHON+y}
  6926. then :
  6927. printf %s "(cached) " >&6
  6928. else $as_nop
  6929. case $PYTHON in
  6930. [\\/]* | ?:[\\/]*)
  6931. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  6932. ;;
  6933. *)
  6934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6935. for as_dir in $PATH
  6936. do
  6937. IFS=$as_save_IFS
  6938. case $as_dir in #(((
  6939. '') as_dir=./ ;;
  6940. */) ;;
  6941. *) as_dir=$as_dir/ ;;
  6942. esac
  6943. for ac_exec_ext in '' $ac_executable_extensions; do
  6944. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6945. ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
  6946. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6947. break 2
  6948. fi
  6949. done
  6950. done
  6951. IFS=$as_save_IFS
  6952. ;;
  6953. esac
  6954. fi
  6955. PYTHON=$ac_cv_path_PYTHON
  6956. if test -n "$PYTHON"; then
  6957. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  6958. printf "%s\n" "$PYTHON" >&6; }
  6959. else
  6960. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6961. printf "%s\n" "no" >&6; }
  6962. fi
  6963. test -n "$PYTHON" && break
  6964. done
  6965. test -n "$PYTHON" || PYTHON=":"
  6966. # Extract the first word of "find", so it can be a program name with args.
  6967. set dummy find; ac_word=$2
  6968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6969. printf %s "checking for $ac_word... " >&6; }
  6970. if test ${ac_cv_path_FIND+y}
  6971. then :
  6972. printf %s "(cached) " >&6
  6973. else $as_nop
  6974. case $FIND in
  6975. [\\/]* | ?:[\\/]*)
  6976. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  6977. ;;
  6978. *)
  6979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6980. for as_dir in $PATH
  6981. do
  6982. IFS=$as_save_IFS
  6983. case $as_dir in #(((
  6984. '') as_dir=./ ;;
  6985. */) ;;
  6986. *) as_dir=$as_dir/ ;;
  6987. esac
  6988. for ac_exec_ext in '' $ac_executable_extensions; do
  6989. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  6990. ac_cv_path_FIND="$as_dir$ac_word$ac_exec_ext"
  6991. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  6992. break 2
  6993. fi
  6994. done
  6995. done
  6996. IFS=$as_save_IFS
  6997. test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
  6998. ;;
  6999. esac
  7000. fi
  7001. FIND=$ac_cv_path_FIND
  7002. if test -n "$FIND"; then
  7003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
  7004. printf "%s\n" "$FIND" >&6; }
  7005. else
  7006. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7007. printf "%s\n" "no" >&6; }
  7008. fi
  7009. # Extract the first word of "basename", so it can be a program name with args.
  7010. set dummy basename; ac_word=$2
  7011. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7012. printf %s "checking for $ac_word... " >&6; }
  7013. if test ${ac_cv_path_BASENAME+y}
  7014. then :
  7015. printf %s "(cached) " >&6
  7016. else $as_nop
  7017. case $BASENAME in
  7018. [\\/]* | ?:[\\/]*)
  7019. ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
  7020. ;;
  7021. *)
  7022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7023. for as_dir in $PATH
  7024. do
  7025. IFS=$as_save_IFS
  7026. case $as_dir in #(((
  7027. '') as_dir=./ ;;
  7028. */) ;;
  7029. *) as_dir=$as_dir/ ;;
  7030. esac
  7031. for ac_exec_ext in '' $ac_executable_extensions; do
  7032. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7033. ac_cv_path_BASENAME="$as_dir$ac_word$ac_exec_ext"
  7034. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7035. break 2
  7036. fi
  7037. done
  7038. done
  7039. IFS=$as_save_IFS
  7040. test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
  7041. ;;
  7042. esac
  7043. fi
  7044. BASENAME=$ac_cv_path_BASENAME
  7045. if test -n "$BASENAME"; then
  7046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  7047. printf "%s\n" "$BASENAME" >&6; }
  7048. else
  7049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7050. printf "%s\n" "no" >&6; }
  7051. fi
  7052. # Extract the first word of "dirname", so it can be a program name with args.
  7053. set dummy dirname; ac_word=$2
  7054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7055. printf %s "checking for $ac_word... " >&6; }
  7056. if test ${ac_cv_path_DIRNAME+y}
  7057. then :
  7058. printf %s "(cached) " >&6
  7059. else $as_nop
  7060. case $DIRNAME in
  7061. [\\/]* | ?:[\\/]*)
  7062. ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
  7063. ;;
  7064. *)
  7065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7066. for as_dir in $PATH
  7067. do
  7068. IFS=$as_save_IFS
  7069. case $as_dir in #(((
  7070. '') as_dir=./ ;;
  7071. */) ;;
  7072. *) as_dir=$as_dir/ ;;
  7073. esac
  7074. for ac_exec_ext in '' $ac_executable_extensions; do
  7075. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7076. ac_cv_path_DIRNAME="$as_dir$ac_word$ac_exec_ext"
  7077. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7078. break 2
  7079. fi
  7080. done
  7081. done
  7082. IFS=$as_save_IFS
  7083. test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
  7084. ;;
  7085. esac
  7086. fi
  7087. DIRNAME=$ac_cv_path_DIRNAME
  7088. if test -n "$DIRNAME"; then
  7089. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
  7090. printf "%s\n" "$DIRNAME" >&6; }
  7091. else
  7092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7093. printf "%s\n" "no" >&6; }
  7094. fi
  7095. # Extract the first word of "sh", so it can be a program name with args.
  7096. set dummy sh; ac_word=$2
  7097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7098. printf %s "checking for $ac_word... " >&6; }
  7099. if test ${ac_cv_path_SHELL+y}
  7100. then :
  7101. printf %s "(cached) " >&6
  7102. else $as_nop
  7103. case $SHELL in
  7104. [\\/]* | ?:[\\/]*)
  7105. ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
  7106. ;;
  7107. *)
  7108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7109. for as_dir in $PATH
  7110. do
  7111. IFS=$as_save_IFS
  7112. case $as_dir in #(((
  7113. '') as_dir=./ ;;
  7114. */) ;;
  7115. *) as_dir=$as_dir/ ;;
  7116. esac
  7117. for ac_exec_ext in '' $ac_executable_extensions; do
  7118. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7119. ac_cv_path_SHELL="$as_dir$ac_word$ac_exec_ext"
  7120. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7121. break 2
  7122. fi
  7123. done
  7124. done
  7125. IFS=$as_save_IFS
  7126. test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
  7127. ;;
  7128. esac
  7129. fi
  7130. SHELL=$ac_cv_path_SHELL
  7131. if test -n "$SHELL"; then
  7132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHELL" >&5
  7133. printf "%s\n" "$SHELL" >&6; }
  7134. else
  7135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7136. printf "%s\n" "no" >&6; }
  7137. fi
  7138. # Extract the first word of "ln", so it can be a program name with args.
  7139. set dummy ln; ac_word=$2
  7140. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7141. printf %s "checking for $ac_word... " >&6; }
  7142. if test ${ac_cv_path_LN+y}
  7143. then :
  7144. printf %s "(cached) " >&6
  7145. else $as_nop
  7146. case $LN in
  7147. [\\/]* | ?:[\\/]*)
  7148. ac_cv_path_LN="$LN" # Let the user override the test with a path.
  7149. ;;
  7150. *)
  7151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7152. for as_dir in $PATH
  7153. do
  7154. IFS=$as_save_IFS
  7155. case $as_dir in #(((
  7156. '') as_dir=./ ;;
  7157. */) ;;
  7158. *) as_dir=$as_dir/ ;;
  7159. esac
  7160. for ac_exec_ext in '' $ac_executable_extensions; do
  7161. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7162. ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
  7163. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7164. break 2
  7165. fi
  7166. done
  7167. done
  7168. IFS=$as_save_IFS
  7169. test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
  7170. ;;
  7171. esac
  7172. fi
  7173. LN=$ac_cv_path_LN
  7174. if test -n "$LN"; then
  7175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
  7176. printf "%s\n" "$LN" >&6; }
  7177. else
  7178. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7179. printf "%s\n" "no" >&6; }
  7180. fi
  7181. # Extract the first word of "doxygen", so it can be a program name with args.
  7182. set dummy doxygen; ac_word=$2
  7183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7184. printf %s "checking for $ac_word... " >&6; }
  7185. if test ${ac_cv_path_DOXYGEN+y}
  7186. then :
  7187. printf %s "(cached) " >&6
  7188. else $as_nop
  7189. case $DOXYGEN in
  7190. [\\/]* | ?:[\\/]*)
  7191. ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
  7192. ;;
  7193. *)
  7194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7195. for as_dir in $PATH
  7196. do
  7197. IFS=$as_save_IFS
  7198. case $as_dir in #(((
  7199. '') as_dir=./ ;;
  7200. */) ;;
  7201. *) as_dir=$as_dir/ ;;
  7202. esac
  7203. for ac_exec_ext in '' $ac_executable_extensions; do
  7204. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7205. ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
  7206. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7207. break 2
  7208. fi
  7209. done
  7210. done
  7211. IFS=$as_save_IFS
  7212. test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=":"
  7213. ;;
  7214. esac
  7215. fi
  7216. DOXYGEN=$ac_cv_path_DOXYGEN
  7217. if test -n "$DOXYGEN"; then
  7218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
  7219. printf "%s\n" "$DOXYGEN" >&6; }
  7220. else
  7221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7222. printf "%s\n" "no" >&6; }
  7223. fi
  7224. # Extract the first word of "dot", so it can be a program name with args.
  7225. set dummy dot; ac_word=$2
  7226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7227. printf %s "checking for $ac_word... " >&6; }
  7228. if test ${ac_cv_path_DOT+y}
  7229. then :
  7230. printf %s "(cached) " >&6
  7231. else $as_nop
  7232. case $DOT in
  7233. [\\/]* | ?:[\\/]*)
  7234. ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
  7235. ;;
  7236. *)
  7237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7238. for as_dir in $PATH
  7239. do
  7240. IFS=$as_save_IFS
  7241. case $as_dir in #(((
  7242. '') as_dir=./ ;;
  7243. */) ;;
  7244. *) as_dir=$as_dir/ ;;
  7245. esac
  7246. for ac_exec_ext in '' $ac_executable_extensions; do
  7247. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7248. ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext"
  7249. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7250. break 2
  7251. fi
  7252. done
  7253. done
  7254. IFS=$as_save_IFS
  7255. test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
  7256. ;;
  7257. esac
  7258. fi
  7259. DOT=$ac_cv_path_DOT
  7260. if test -n "$DOT"; then
  7261. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
  7262. printf "%s\n" "$DOT" >&6; }
  7263. else
  7264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7265. printf "%s\n" "no" >&6; }
  7266. fi
  7267. # Extract the first word of "wget", so it can be a program name with args.
  7268. set dummy wget; ac_word=$2
  7269. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7270. printf %s "checking for $ac_word... " >&6; }
  7271. if test ${ac_cv_path_WGET+y}
  7272. then :
  7273. printf %s "(cached) " >&6
  7274. else $as_nop
  7275. case $WGET in
  7276. [\\/]* | ?:[\\/]*)
  7277. ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
  7278. ;;
  7279. *)
  7280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7281. for as_dir in $PATH
  7282. do
  7283. IFS=$as_save_IFS
  7284. case $as_dir in #(((
  7285. '') as_dir=./ ;;
  7286. */) ;;
  7287. *) as_dir=$as_dir/ ;;
  7288. esac
  7289. for ac_exec_ext in '' $ac_executable_extensions; do
  7290. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7291. ac_cv_path_WGET="$as_dir$ac_word$ac_exec_ext"
  7292. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7293. break 2
  7294. fi
  7295. done
  7296. done
  7297. IFS=$as_save_IFS
  7298. test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
  7299. ;;
  7300. esac
  7301. fi
  7302. WGET=$ac_cv_path_WGET
  7303. if test -n "$WGET"; then
  7304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
  7305. printf "%s\n" "$WGET" >&6; }
  7306. else
  7307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7308. printf "%s\n" "no" >&6; }
  7309. fi
  7310. # Extract the first word of "curl", so it can be a program name with args.
  7311. set dummy curl; ac_word=$2
  7312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7313. printf %s "checking for $ac_word... " >&6; }
  7314. if test ${ac_cv_path_CURL+y}
  7315. then :
  7316. printf %s "(cached) " >&6
  7317. else $as_nop
  7318. case $CURL in
  7319. [\\/]* | ?:[\\/]*)
  7320. ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
  7321. ;;
  7322. *)
  7323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7324. for as_dir in $PATH
  7325. do
  7326. IFS=$as_save_IFS
  7327. case $as_dir in #(((
  7328. '') as_dir=./ ;;
  7329. */) ;;
  7330. *) as_dir=$as_dir/ ;;
  7331. esac
  7332. for ac_exec_ext in '' $ac_executable_extensions; do
  7333. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7334. ac_cv_path_CURL="$as_dir$ac_word$ac_exec_ext"
  7335. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7336. break 2
  7337. fi
  7338. done
  7339. done
  7340. IFS=$as_save_IFS
  7341. test -z "$ac_cv_path_CURL" && ac_cv_path_CURL=":"
  7342. ;;
  7343. esac
  7344. fi
  7345. CURL=$ac_cv_path_CURL
  7346. if test -n "$CURL"; then
  7347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
  7348. printf "%s\n" "$CURL" >&6; }
  7349. else
  7350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7351. printf "%s\n" "no" >&6; }
  7352. fi
  7353. # Extract the first word of "xmllint", so it can be a program name with args.
  7354. set dummy xmllint; ac_word=$2
  7355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7356. printf %s "checking for $ac_word... " >&6; }
  7357. if test ${ac_cv_path_XMLLINT+y}
  7358. then :
  7359. printf %s "(cached) " >&6
  7360. else $as_nop
  7361. case $XMLLINT in
  7362. [\\/]* | ?:[\\/]*)
  7363. ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
  7364. ;;
  7365. *)
  7366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7367. for as_dir in $PATH
  7368. do
  7369. IFS=$as_save_IFS
  7370. case $as_dir in #(((
  7371. '') as_dir=./ ;;
  7372. */) ;;
  7373. *) as_dir=$as_dir/ ;;
  7374. esac
  7375. for ac_exec_ext in '' $ac_executable_extensions; do
  7376. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7377. ac_cv_path_XMLLINT="$as_dir$ac_word$ac_exec_ext"
  7378. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7379. break 2
  7380. fi
  7381. done
  7382. done
  7383. IFS=$as_save_IFS
  7384. test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT=":"
  7385. ;;
  7386. esac
  7387. fi
  7388. XMLLINT=$ac_cv_path_XMLLINT
  7389. if test -n "$XMLLINT"; then
  7390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
  7391. printf "%s\n" "$XMLLINT" >&6; }
  7392. else
  7393. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7394. printf "%s\n" "no" >&6; }
  7395. fi
  7396. for ac_prog in xmlstarlet xml
  7397. do
  7398. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7399. set dummy $ac_prog; ac_word=$2
  7400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7401. printf %s "checking for $ac_word... " >&6; }
  7402. if test ${ac_cv_path_XMLSTARLET+y}
  7403. then :
  7404. printf %s "(cached) " >&6
  7405. else $as_nop
  7406. case $XMLSTARLET in
  7407. [\\/]* | ?:[\\/]*)
  7408. ac_cv_path_XMLSTARLET="$XMLSTARLET" # Let the user override the test with a path.
  7409. ;;
  7410. *)
  7411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7412. for as_dir in $PATH
  7413. do
  7414. IFS=$as_save_IFS
  7415. case $as_dir in #(((
  7416. '') as_dir=./ ;;
  7417. */) ;;
  7418. *) as_dir=$as_dir/ ;;
  7419. esac
  7420. for ac_exec_ext in '' $ac_executable_extensions; do
  7421. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7422. ac_cv_path_XMLSTARLET="$as_dir$ac_word$ac_exec_ext"
  7423. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7424. break 2
  7425. fi
  7426. done
  7427. done
  7428. IFS=$as_save_IFS
  7429. ;;
  7430. esac
  7431. fi
  7432. XMLSTARLET=$ac_cv_path_XMLSTARLET
  7433. if test -n "$XMLSTARLET"; then
  7434. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLSTARLET" >&5
  7435. printf "%s\n" "$XMLSTARLET" >&6; }
  7436. else
  7437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7438. printf "%s\n" "no" >&6; }
  7439. fi
  7440. test -n "$XMLSTARLET" && break
  7441. done
  7442. test -n "$XMLSTARLET" || XMLSTARLET=":"
  7443. # Extract the first word of "bash", so it can be a program name with args.
  7444. set dummy bash; ac_word=$2
  7445. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7446. printf %s "checking for $ac_word... " >&6; }
  7447. if test ${ac_cv_path_BASH+y}
  7448. then :
  7449. printf %s "(cached) " >&6
  7450. else $as_nop
  7451. case $BASH in
  7452. [\\/]* | ?:[\\/]*)
  7453. ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
  7454. ;;
  7455. *)
  7456. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7457. for as_dir in $PATH
  7458. do
  7459. IFS=$as_save_IFS
  7460. case $as_dir in #(((
  7461. '') as_dir=./ ;;
  7462. */) ;;
  7463. *) as_dir=$as_dir/ ;;
  7464. esac
  7465. for ac_exec_ext in '' $ac_executable_extensions; do
  7466. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7467. ac_cv_path_BASH="$as_dir$ac_word$ac_exec_ext"
  7468. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7469. break 2
  7470. fi
  7471. done
  7472. done
  7473. IFS=$as_save_IFS
  7474. test -z "$ac_cv_path_BASH" && ac_cv_path_BASH=":"
  7475. ;;
  7476. esac
  7477. fi
  7478. BASH=$ac_cv_path_BASH
  7479. if test -n "$BASH"; then
  7480. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
  7481. printf "%s\n" "$BASH" >&6; }
  7482. else
  7483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7484. printf "%s\n" "no" >&6; }
  7485. fi
  7486. # Extract the first word of "git", so it can be a program name with args.
  7487. set dummy git; ac_word=$2
  7488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7489. printf %s "checking for $ac_word... " >&6; }
  7490. if test ${ac_cv_path_GIT+y}
  7491. then :
  7492. printf %s "(cached) " >&6
  7493. else $as_nop
  7494. case $GIT in
  7495. [\\/]* | ?:[\\/]*)
  7496. ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
  7497. ;;
  7498. *)
  7499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7500. for as_dir in $PATH
  7501. do
  7502. IFS=$as_save_IFS
  7503. case $as_dir in #(((
  7504. '') as_dir=./ ;;
  7505. */) ;;
  7506. *) as_dir=$as_dir/ ;;
  7507. esac
  7508. for ac_exec_ext in '' $ac_executable_extensions; do
  7509. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7510. ac_cv_path_GIT="$as_dir$ac_word$ac_exec_ext"
  7511. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7512. break 2
  7513. fi
  7514. done
  7515. done
  7516. IFS=$as_save_IFS
  7517. test -z "$ac_cv_path_GIT" && ac_cv_path_GIT=":"
  7518. ;;
  7519. esac
  7520. fi
  7521. GIT=$ac_cv_path_GIT
  7522. if test -n "$GIT"; then
  7523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
  7524. printf "%s\n" "$GIT" >&6; }
  7525. else
  7526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7527. printf "%s\n" "no" >&6; }
  7528. fi
  7529. # Extract the first word of "alembic", so it can be a program name with args.
  7530. set dummy alembic; ac_word=$2
  7531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7532. printf %s "checking for $ac_word... " >&6; }
  7533. if test ${ac_cv_path_ALEMBIC+y}
  7534. then :
  7535. printf %s "(cached) " >&6
  7536. else $as_nop
  7537. case $ALEMBIC in
  7538. [\\/]* | ?:[\\/]*)
  7539. ac_cv_path_ALEMBIC="$ALEMBIC" # Let the user override the test with a path.
  7540. ;;
  7541. *)
  7542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7543. for as_dir in $PATH
  7544. do
  7545. IFS=$as_save_IFS
  7546. case $as_dir in #(((
  7547. '') as_dir=./ ;;
  7548. */) ;;
  7549. *) as_dir=$as_dir/ ;;
  7550. esac
  7551. for ac_exec_ext in '' $ac_executable_extensions; do
  7552. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7553. ac_cv_path_ALEMBIC="$as_dir$ac_word$ac_exec_ext"
  7554. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7555. break 2
  7556. fi
  7557. done
  7558. done
  7559. IFS=$as_save_IFS
  7560. test -z "$ac_cv_path_ALEMBIC" && ac_cv_path_ALEMBIC=":"
  7561. ;;
  7562. esac
  7563. fi
  7564. ALEMBIC=$ac_cv_path_ALEMBIC
  7565. if test -n "$ALEMBIC"; then
  7566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ALEMBIC" >&5
  7567. printf "%s\n" "$ALEMBIC" >&6; }
  7568. else
  7569. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7570. printf "%s\n" "no" >&6; }
  7571. fi
  7572. # Extract the first word of "bzip2", so it can be a program name with args.
  7573. set dummy bzip2; ac_word=$2
  7574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7575. printf %s "checking for $ac_word... " >&6; }
  7576. if test ${ac_cv_path_BZIP2+y}
  7577. then :
  7578. printf %s "(cached) " >&6
  7579. else $as_nop
  7580. case $BZIP2 in
  7581. [\\/]* | ?:[\\/]*)
  7582. ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
  7583. ;;
  7584. *)
  7585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7586. for as_dir in $PATH
  7587. do
  7588. IFS=$as_save_IFS
  7589. case $as_dir in #(((
  7590. '') as_dir=./ ;;
  7591. */) ;;
  7592. *) as_dir=$as_dir/ ;;
  7593. esac
  7594. for ac_exec_ext in '' $ac_executable_extensions; do
  7595. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7596. ac_cv_path_BZIP2="$as_dir$ac_word$ac_exec_ext"
  7597. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7598. break 2
  7599. fi
  7600. done
  7601. done
  7602. IFS=$as_save_IFS
  7603. test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2=":"
  7604. ;;
  7605. esac
  7606. fi
  7607. BZIP2=$ac_cv_path_BZIP2
  7608. if test -n "$BZIP2"; then
  7609. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
  7610. printf "%s\n" "$BZIP2" >&6; }
  7611. else
  7612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7613. printf "%s\n" "no" >&6; }
  7614. fi
  7615. # Extract the first word of "tar", so it can be a program name with args.
  7616. set dummy tar; ac_word=$2
  7617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7618. printf %s "checking for $ac_word... " >&6; }
  7619. if test ${ac_cv_path_TAR+y}
  7620. then :
  7621. printf %s "(cached) " >&6
  7622. else $as_nop
  7623. case $TAR in
  7624. [\\/]* | ?:[\\/]*)
  7625. ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
  7626. ;;
  7627. *)
  7628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7629. for as_dir in $PATH
  7630. do
  7631. IFS=$as_save_IFS
  7632. case $as_dir in #(((
  7633. '') as_dir=./ ;;
  7634. */) ;;
  7635. *) as_dir=$as_dir/ ;;
  7636. esac
  7637. for ac_exec_ext in '' $ac_executable_extensions; do
  7638. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7639. ac_cv_path_TAR="$as_dir$ac_word$ac_exec_ext"
  7640. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7641. break 2
  7642. fi
  7643. done
  7644. done
  7645. IFS=$as_save_IFS
  7646. test -z "$ac_cv_path_TAR" && ac_cv_path_TAR=":"
  7647. ;;
  7648. esac
  7649. fi
  7650. TAR=$ac_cv_path_TAR
  7651. if test -n "$TAR"; then
  7652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
  7653. printf "%s\n" "$TAR" >&6; }
  7654. else
  7655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7656. printf "%s\n" "no" >&6; }
  7657. fi
  7658. # Extract the first word of "patch", so it can be a program name with args.
  7659. set dummy patch; ac_word=$2
  7660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7661. printf %s "checking for $ac_word... " >&6; }
  7662. if test ${ac_cv_path_PATCH+y}
  7663. then :
  7664. printf %s "(cached) " >&6
  7665. else $as_nop
  7666. case $PATCH in
  7667. [\\/]* | ?:[\\/]*)
  7668. ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
  7669. ;;
  7670. *)
  7671. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7672. for as_dir in $PATH
  7673. do
  7674. IFS=$as_save_IFS
  7675. case $as_dir in #(((
  7676. '') as_dir=./ ;;
  7677. */) ;;
  7678. *) as_dir=$as_dir/ ;;
  7679. esac
  7680. for ac_exec_ext in '' $ac_executable_extensions; do
  7681. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7682. ac_cv_path_PATCH="$as_dir$ac_word$ac_exec_ext"
  7683. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7684. break 2
  7685. fi
  7686. done
  7687. done
  7688. IFS=$as_save_IFS
  7689. test -z "$ac_cv_path_PATCH" && ac_cv_path_PATCH=":"
  7690. ;;
  7691. esac
  7692. fi
  7693. PATCH=$ac_cv_path_PATCH
  7694. if test -n "$PATCH"; then
  7695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
  7696. printf "%s\n" "$PATCH" >&6; }
  7697. else
  7698. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7699. printf "%s\n" "no" >&6; }
  7700. fi
  7701. # Extract the first word of "sed", so it can be a program name with args.
  7702. set dummy sed; ac_word=$2
  7703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7704. printf %s "checking for $ac_word... " >&6; }
  7705. if test ${ac_cv_path_SED+y}
  7706. then :
  7707. printf %s "(cached) " >&6
  7708. else $as_nop
  7709. case $SED in
  7710. [\\/]* | ?:[\\/]*)
  7711. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  7712. ;;
  7713. *)
  7714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7715. for as_dir in $PATH
  7716. do
  7717. IFS=$as_save_IFS
  7718. case $as_dir in #(((
  7719. '') as_dir=./ ;;
  7720. */) ;;
  7721. *) as_dir=$as_dir/ ;;
  7722. esac
  7723. for ac_exec_ext in '' $ac_executable_extensions; do
  7724. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7725. ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
  7726. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7727. break 2
  7728. fi
  7729. done
  7730. done
  7731. IFS=$as_save_IFS
  7732. test -z "$ac_cv_path_SED" && ac_cv_path_SED=":"
  7733. ;;
  7734. esac
  7735. fi
  7736. SED=$ac_cv_path_SED
  7737. if test -n "$SED"; then
  7738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  7739. printf "%s\n" "$SED" >&6; }
  7740. else
  7741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7742. printf "%s\n" "no" >&6; }
  7743. fi
  7744. # Extract the first word of "nm", so it can be a program name with args.
  7745. set dummy nm; ac_word=$2
  7746. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7747. printf %s "checking for $ac_word... " >&6; }
  7748. if test ${ac_cv_path_NM+y}
  7749. then :
  7750. printf %s "(cached) " >&6
  7751. else $as_nop
  7752. case $NM in
  7753. [\\/]* | ?:[\\/]*)
  7754. ac_cv_path_NM="$NM" # Let the user override the test with a path.
  7755. ;;
  7756. *)
  7757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7758. for as_dir in $PATH
  7759. do
  7760. IFS=$as_save_IFS
  7761. case $as_dir in #(((
  7762. '') as_dir=./ ;;
  7763. */) ;;
  7764. *) as_dir=$as_dir/ ;;
  7765. esac
  7766. for ac_exec_ext in '' $ac_executable_extensions; do
  7767. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7768. ac_cv_path_NM="$as_dir$ac_word$ac_exec_ext"
  7769. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7770. break 2
  7771. fi
  7772. done
  7773. done
  7774. IFS=$as_save_IFS
  7775. test -z "$ac_cv_path_NM" && ac_cv_path_NM=":"
  7776. ;;
  7777. esac
  7778. fi
  7779. NM=$ac_cv_path_NM
  7780. if test -n "$NM"; then
  7781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7782. printf "%s\n" "$NM" >&6; }
  7783. else
  7784. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7785. printf "%s\n" "no" >&6; }
  7786. fi
  7787. # Extract the first word of "realpath", so it can be a program name with args.
  7788. set dummy realpath; ac_word=$2
  7789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7790. printf %s "checking for $ac_word... " >&6; }
  7791. if test ${ac_cv_path_REALPATH+y}
  7792. then :
  7793. printf %s "(cached) " >&6
  7794. else $as_nop
  7795. case $REALPATH in
  7796. [\\/]* | ?:[\\/]*)
  7797. ac_cv_path_REALPATH="$REALPATH" # Let the user override the test with a path.
  7798. ;;
  7799. *)
  7800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7801. for as_dir in $PATH
  7802. do
  7803. IFS=$as_save_IFS
  7804. case $as_dir in #(((
  7805. '') as_dir=./ ;;
  7806. */) ;;
  7807. *) as_dir=$as_dir/ ;;
  7808. esac
  7809. for ac_exec_ext in '' $ac_executable_extensions; do
  7810. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7811. ac_cv_path_REALPATH="$as_dir$ac_word$ac_exec_ext"
  7812. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7813. break 2
  7814. fi
  7815. done
  7816. done
  7817. IFS=$as_save_IFS
  7818. test -z "$ac_cv_path_REALPATH" && ac_cv_path_REALPATH=":"
  7819. ;;
  7820. esac
  7821. fi
  7822. REALPATH=$ac_cv_path_REALPATH
  7823. if test -n "$REALPATH"; then
  7824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $REALPATH" >&5
  7825. printf "%s\n" "$REALPATH" >&6; }
  7826. else
  7827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7828. printf "%s\n" "no" >&6; }
  7829. fi
  7830. DOWNLOAD=":"
  7831. DOWNLOAD_TO_STDOUT=
  7832. DOWNLOAD_TIMEOUT=
  7833. if test "x${WGET}" != "x:"; then
  7834. DOWNLOAD=${WGET}
  7835. DOWNLOAD_TO_STDOUT="${WGET} -q -O-"
  7836. DOWNLOAD_TIMEOUT='--timeout=$1'
  7837. elif test "x${CURL}" != "x:"; then
  7838. DOWNLOAD="${CURL} -L -O --progress-bar -w \"%{url_effective}\n\""
  7839. DOWNLOAD_TO_STDOUT="${CURL} -Ls"
  7840. DOWNLOAD_TIMEOUT='--max-time $(or $2,$1)'
  7841. else
  7842. # Extract the first word of "fetch", so it can be a program name with args.
  7843. set dummy fetch; ac_word=$2
  7844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7845. printf %s "checking for $ac_word... " >&6; }
  7846. if test ${ac_cv_path_FETCH+y}
  7847. then :
  7848. printf %s "(cached) " >&6
  7849. else $as_nop
  7850. case $FETCH in
  7851. [\\/]* | ?:[\\/]*)
  7852. ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
  7853. ;;
  7854. *)
  7855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7856. for as_dir in $PATH
  7857. do
  7858. IFS=$as_save_IFS
  7859. case $as_dir in #(((
  7860. '') as_dir=./ ;;
  7861. */) ;;
  7862. *) as_dir=$as_dir/ ;;
  7863. esac
  7864. for ac_exec_ext in '' $ac_executable_extensions; do
  7865. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7866. ac_cv_path_FETCH="$as_dir$ac_word$ac_exec_ext"
  7867. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7868. break 2
  7869. fi
  7870. done
  7871. done
  7872. IFS=$as_save_IFS
  7873. test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
  7874. ;;
  7875. esac
  7876. fi
  7877. FETCH=$ac_cv_path_FETCH
  7878. if test -n "$FETCH"; then
  7879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FETCH" >&5
  7880. printf "%s\n" "$FETCH" >&6; }
  7881. else
  7882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7883. printf "%s\n" "no" >&6; }
  7884. fi
  7885. if test "x${FETCH}" != "x:"; then
  7886. DOWNLOAD=${FETCH}
  7887. DOWNLOAD_TO_STDOUT="${FETCH} -o-"
  7888. DOWNLOAD_TIMEOUT='--timeout=$(or $2,$1)'
  7889. fi
  7890. fi
  7891. # Extract the first word of "ldconfig", so it can be a program name with args.
  7892. set dummy ldconfig; ac_word=$2
  7893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7894. printf %s "checking for $ac_word... " >&6; }
  7895. if test ${ac_cv_path_LDCONFIG+y}
  7896. then :
  7897. printf %s "(cached) " >&6
  7898. else $as_nop
  7899. case $LDCONFIG in
  7900. [\\/]* | ?:[\\/]*)
  7901. ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
  7902. ;;
  7903. *)
  7904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7905. for as_dir in $PATH
  7906. do
  7907. IFS=$as_save_IFS
  7908. case $as_dir in #(((
  7909. '') as_dir=./ ;;
  7910. */) ;;
  7911. *) as_dir=$as_dir/ ;;
  7912. esac
  7913. for ac_exec_ext in '' $ac_executable_extensions; do
  7914. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7915. ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
  7916. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7917. break 2
  7918. fi
  7919. done
  7920. done
  7921. IFS=$as_save_IFS
  7922. test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
  7923. ;;
  7924. esac
  7925. fi
  7926. LDCONFIG=$ac_cv_path_LDCONFIG
  7927. if test -n "$LDCONFIG"; then
  7928. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
  7929. printf "%s\n" "$LDCONFIG" >&6; }
  7930. else
  7931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7932. printf "%s\n" "no" >&6; }
  7933. fi
  7934. # Extract the first word of "sha1sum", so it can be a program name with args.
  7935. set dummy sha1sum; ac_word=$2
  7936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7937. printf %s "checking for $ac_word... " >&6; }
  7938. if test ${ac_cv_path_SHA1SUM+y}
  7939. then :
  7940. printf %s "(cached) " >&6
  7941. else $as_nop
  7942. case $SHA1SUM in
  7943. [\\/]* | ?:[\\/]*)
  7944. ac_cv_path_SHA1SUM="$SHA1SUM" # Let the user override the test with a path.
  7945. ;;
  7946. *)
  7947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7948. for as_dir in $PATH
  7949. do
  7950. IFS=$as_save_IFS
  7951. case $as_dir in #(((
  7952. '') as_dir=./ ;;
  7953. */) ;;
  7954. *) as_dir=$as_dir/ ;;
  7955. esac
  7956. for ac_exec_ext in '' $ac_executable_extensions; do
  7957. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  7958. ac_cv_path_SHA1SUM="$as_dir$ac_word$ac_exec_ext"
  7959. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  7960. break 2
  7961. fi
  7962. done
  7963. done
  7964. IFS=$as_save_IFS
  7965. test -z "$ac_cv_path_SHA1SUM" && ac_cv_path_SHA1SUM="$ac_aux_dir/build_tools/sha1sum-sh"
  7966. ;;
  7967. esac
  7968. fi
  7969. SHA1SUM=$ac_cv_path_SHA1SUM
  7970. if test -n "$SHA1SUM"; then
  7971. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHA1SUM" >&5
  7972. printf "%s\n" "$SHA1SUM" >&6; }
  7973. else
  7974. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7975. printf "%s\n" "no" >&6; }
  7976. fi
  7977. # Extract the first word of "openssl", so it can be a program name with args.
  7978. set dummy openssl; ac_word=$2
  7979. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7980. printf %s "checking for $ac_word... " >&6; }
  7981. if test ${ac_cv_path_OPENSSL+y}
  7982. then :
  7983. printf %s "(cached) " >&6
  7984. else $as_nop
  7985. case $OPENSSL in
  7986. [\\/]* | ?:[\\/]*)
  7987. ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
  7988. ;;
  7989. *)
  7990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7991. for as_dir in $PATH
  7992. do
  7993. IFS=$as_save_IFS
  7994. case $as_dir in #(((
  7995. '') as_dir=./ ;;
  7996. */) ;;
  7997. *) as_dir=$as_dir/ ;;
  7998. esac
  7999. for ac_exec_ext in '' $ac_executable_extensions; do
  8000. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8001. ac_cv_path_OPENSSL="$as_dir$ac_word$ac_exec_ext"
  8002. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8003. break 2
  8004. fi
  8005. done
  8006. done
  8007. IFS=$as_save_IFS
  8008. test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL=":"
  8009. ;;
  8010. esac
  8011. fi
  8012. OPENSSL=$ac_cv_path_OPENSSL
  8013. if test -n "$OPENSSL"; then
  8014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  8015. printf "%s\n" "$OPENSSL" >&6; }
  8016. else
  8017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8018. printf "%s\n" "no" >&6; }
  8019. fi
  8020. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  8021. if test -n "$ac_tool_prefix"; then
  8022. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  8023. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  8024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8025. printf %s "checking for $ac_word... " >&6; }
  8026. if test ${ac_cv_path_PKG_CONFIG+y}
  8027. then :
  8028. printf %s "(cached) " >&6
  8029. else $as_nop
  8030. case $PKG_CONFIG in
  8031. [\\/]* | ?:[\\/]*)
  8032. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  8033. ;;
  8034. *)
  8035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8036. for as_dir in $PATH
  8037. do
  8038. IFS=$as_save_IFS
  8039. case $as_dir in #(((
  8040. '') as_dir=./ ;;
  8041. */) ;;
  8042. *) as_dir=$as_dir/ ;;
  8043. esac
  8044. for ac_exec_ext in '' $ac_executable_extensions; do
  8045. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8046. ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  8047. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8048. break 2
  8049. fi
  8050. done
  8051. done
  8052. IFS=$as_save_IFS
  8053. ;;
  8054. esac
  8055. fi
  8056. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  8057. if test -n "$PKG_CONFIG"; then
  8058. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  8059. printf "%s\n" "$PKG_CONFIG" >&6; }
  8060. else
  8061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8062. printf "%s\n" "no" >&6; }
  8063. fi
  8064. fi
  8065. if test -z "$ac_cv_path_PKG_CONFIG"; then
  8066. ac_pt_PKG_CONFIG=$PKG_CONFIG
  8067. # Extract the first word of "pkg-config", so it can be a program name with args.
  8068. set dummy pkg-config; ac_word=$2
  8069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8070. printf %s "checking for $ac_word... " >&6; }
  8071. if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
  8072. then :
  8073. printf %s "(cached) " >&6
  8074. else $as_nop
  8075. case $ac_pt_PKG_CONFIG in
  8076. [\\/]* | ?:[\\/]*)
  8077. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  8078. ;;
  8079. *)
  8080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8081. for as_dir in $PATH
  8082. do
  8083. IFS=$as_save_IFS
  8084. case $as_dir in #(((
  8085. '') as_dir=./ ;;
  8086. */) ;;
  8087. *) as_dir=$as_dir/ ;;
  8088. esac
  8089. for ac_exec_ext in '' $ac_executable_extensions; do
  8090. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8091. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  8092. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8093. break 2
  8094. fi
  8095. done
  8096. done
  8097. IFS=$as_save_IFS
  8098. ;;
  8099. esac
  8100. fi
  8101. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  8102. if test -n "$ac_pt_PKG_CONFIG"; then
  8103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  8104. printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
  8105. else
  8106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8107. printf "%s\n" "no" >&6; }
  8108. fi
  8109. if test "x$ac_pt_PKG_CONFIG" = x; then
  8110. PKG_CONFIG=""
  8111. else
  8112. case $cross_compiling:$ac_tool_warned in
  8113. yes:)
  8114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8115. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8116. ac_tool_warned=yes ;;
  8117. esac
  8118. PKG_CONFIG=$ac_pt_PKG_CONFIG
  8119. fi
  8120. else
  8121. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  8122. fi
  8123. fi
  8124. if test -n "$PKG_CONFIG"; then
  8125. _pkg_min_version=0.9.0
  8126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  8127. printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  8128. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  8129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8130. printf "%s\n" "yes" >&6; }
  8131. else
  8132. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8133. printf "%s\n" "no" >&6; }
  8134. PKG_CONFIG=""
  8135. fi
  8136. fi
  8137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bison that supports parse-param" >&5
  8138. printf %s "checking for bison that supports parse-param... " >&6; }
  8139. if test ${ac_cv_path_BISON2+y}
  8140. then :
  8141. printf %s "(cached) " >&6
  8142. else $as_nop
  8143. if test "x$BISON" != "x:" ; then
  8144. # Create a temporary directory $tmp in $TMPDIR (default /tmp).
  8145. # Use mktemp if possible; otherwise fall back on mkdir,
  8146. # with $RANDOM to make collisions less likely.
  8147. : ${TMPDIR=/tmp}
  8148. {
  8149. tmp=`
  8150. (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
  8151. ` &&
  8152. test -n "$tmp" && test -d "$tmp"
  8153. } || {
  8154. tmp=$TMPDIR/foo$$-$RANDOM
  8155. (umask 077 && mkdir "$tmp")
  8156. } || exit $?
  8157. cat >$tmp/test.y <<__EOL__
  8158. %parse-param {struct parse_io *parseio}
  8159. %%
  8160. file : { \$\$ = parseio->pval = 1; }
  8161. ;
  8162. %%
  8163. __EOL__
  8164. ${BISON} -o ${tmp}/test.tab.c ${tmp}/test.y >/dev/null 2>&1
  8165. if test -e "${tmp}/test.tab.c"; then
  8166. ac_cv_path_BISON2=${BISON}
  8167. fi
  8168. rm -rf ${tmp}
  8169. fi
  8170. fi
  8171. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_BISON2" >&5
  8172. printf "%s\n" "$ac_cv_path_BISON2" >&6; }
  8173. if test "x${ac_cv_path_BISON2}" = "x" ; then
  8174. BISON=:
  8175. PBX_BISON=0
  8176. else
  8177. PBX_BISON=1
  8178. fi
  8179. if test "${FLEX}" = ":"; then
  8180. PBX_FLEX=0
  8181. else
  8182. PBX_FLEX=1
  8183. fi
  8184. if test "${XMLSTARLET}" = ":"; then
  8185. PBX_XMLSTARLET=0
  8186. else
  8187. PBX_XMLSTARLET=1
  8188. fi
  8189. if test "${BASH}" = ":"; then
  8190. PBX_BASH=0
  8191. else
  8192. PBX_BASH=1
  8193. fi
  8194. if test -n "$ac_tool_prefix"; then
  8195. # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
  8196. set dummy ${ac_tool_prefix}soxmix; ac_word=$2
  8197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8198. printf %s "checking for $ac_word... " >&6; }
  8199. if test ${ac_cv_prog_SOXMIX+y}
  8200. then :
  8201. printf %s "(cached) " >&6
  8202. else $as_nop
  8203. if test -n "$SOXMIX"; then
  8204. ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
  8205. else
  8206. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8207. for as_dir in $PATH
  8208. do
  8209. IFS=$as_save_IFS
  8210. case $as_dir in #(((
  8211. '') as_dir=./ ;;
  8212. */) ;;
  8213. *) as_dir=$as_dir/ ;;
  8214. esac
  8215. for ac_exec_ext in '' $ac_executable_extensions; do
  8216. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8217. ac_cv_prog_SOXMIX="${ac_tool_prefix}soxmix"
  8218. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8219. break 2
  8220. fi
  8221. done
  8222. done
  8223. IFS=$as_save_IFS
  8224. fi
  8225. fi
  8226. SOXMIX=$ac_cv_prog_SOXMIX
  8227. if test -n "$SOXMIX"; then
  8228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOXMIX" >&5
  8229. printf "%s\n" "$SOXMIX" >&6; }
  8230. else
  8231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8232. printf "%s\n" "no" >&6; }
  8233. fi
  8234. fi
  8235. if test -z "$ac_cv_prog_SOXMIX"; then
  8236. ac_ct_SOXMIX=$SOXMIX
  8237. # Extract the first word of "soxmix", so it can be a program name with args.
  8238. set dummy soxmix; ac_word=$2
  8239. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8240. printf %s "checking for $ac_word... " >&6; }
  8241. if test ${ac_cv_prog_ac_ct_SOXMIX+y}
  8242. then :
  8243. printf %s "(cached) " >&6
  8244. else $as_nop
  8245. if test -n "$ac_ct_SOXMIX"; then
  8246. ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
  8247. else
  8248. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8249. for as_dir in $PATH
  8250. do
  8251. IFS=$as_save_IFS
  8252. case $as_dir in #(((
  8253. '') as_dir=./ ;;
  8254. */) ;;
  8255. *) as_dir=$as_dir/ ;;
  8256. esac
  8257. for ac_exec_ext in '' $ac_executable_extensions; do
  8258. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8259. ac_cv_prog_ac_ct_SOXMIX="soxmix"
  8260. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8261. break 2
  8262. fi
  8263. done
  8264. done
  8265. IFS=$as_save_IFS
  8266. fi
  8267. fi
  8268. ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
  8269. if test -n "$ac_ct_SOXMIX"; then
  8270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SOXMIX" >&5
  8271. printf "%s\n" "$ac_ct_SOXMIX" >&6; }
  8272. else
  8273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8274. printf "%s\n" "no" >&6; }
  8275. fi
  8276. if test "x$ac_ct_SOXMIX" = x; then
  8277. SOXMIX=":"
  8278. else
  8279. case $cross_compiling:$ac_tool_warned in
  8280. yes:)
  8281. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8282. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8283. ac_tool_warned=yes ;;
  8284. esac
  8285. SOXMIX=$ac_ct_SOXMIX
  8286. fi
  8287. else
  8288. SOXMIX="$ac_cv_prog_SOXMIX"
  8289. fi
  8290. if test "x${SOXMIX}" != "x:"; then
  8291. printf "%s\n" "#define HAVE_SOXMIX 1" >>confdefs.h
  8292. fi
  8293. for ac_prog in md5 md5sum gmd5sum digest
  8294. do
  8295. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8296. set dummy $ac_prog; ac_word=$2
  8297. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8298. printf %s "checking for $ac_word... " >&6; }
  8299. if test ${ac_cv_prog_MD5+y}
  8300. then :
  8301. printf %s "(cached) " >&6
  8302. else $as_nop
  8303. if test -n "$MD5"; then
  8304. ac_cv_prog_MD5="$MD5" # Let the user override the test.
  8305. else
  8306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8307. for as_dir in $PATH
  8308. do
  8309. IFS=$as_save_IFS
  8310. case $as_dir in #(((
  8311. '') as_dir=./ ;;
  8312. */) ;;
  8313. *) as_dir=$as_dir/ ;;
  8314. esac
  8315. for ac_exec_ext in '' $ac_executable_extensions; do
  8316. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8317. ac_cv_prog_MD5="$ac_prog"
  8318. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8319. break 2
  8320. fi
  8321. done
  8322. done
  8323. IFS=$as_save_IFS
  8324. fi
  8325. fi
  8326. MD5=$ac_cv_prog_MD5
  8327. if test -n "$MD5"; then
  8328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MD5" >&5
  8329. printf "%s\n" "$MD5" >&6; }
  8330. else
  8331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8332. printf "%s\n" "no" >&6; }
  8333. fi
  8334. test -n "$MD5" && break
  8335. done
  8336. if test "${MD5}" = "digest" ; then
  8337. MD5="${MD5} -a md5"
  8338. fi
  8339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  8340. printf %s "checking for a sed that does not truncate output... " >&6; }
  8341. if test ${ac_cv_path_SED+y}
  8342. then :
  8343. printf %s "(cached) " >&6
  8344. else $as_nop
  8345. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  8346. for ac_i in 1 2 3 4 5 6 7; do
  8347. ac_script="$ac_script$as_nl$ac_script"
  8348. done
  8349. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  8350. { ac_script=; unset ac_script;}
  8351. if test -z "$SED"; then
  8352. ac_path_SED_found=false
  8353. # Loop through the user's path and test for each of PROGNAME-LIST
  8354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8355. for as_dir in $PATH
  8356. do
  8357. IFS=$as_save_IFS
  8358. case $as_dir in #(((
  8359. '') as_dir=./ ;;
  8360. */) ;;
  8361. *) as_dir=$as_dir/ ;;
  8362. esac
  8363. for ac_prog in sed gsed
  8364. do
  8365. for ac_exec_ext in '' $ac_executable_extensions; do
  8366. ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
  8367. as_fn_executable_p "$ac_path_SED" || continue
  8368. # Check for GNU ac_path_SED and select it if it is found.
  8369. # Check for GNU $ac_path_SED
  8370. case `"$ac_path_SED" --version 2>&1` in
  8371. *GNU*)
  8372. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  8373. *)
  8374. ac_count=0
  8375. printf %s 0123456789 >"conftest.in"
  8376. while :
  8377. do
  8378. cat "conftest.in" "conftest.in" >"conftest.tmp"
  8379. mv "conftest.tmp" "conftest.in"
  8380. cp "conftest.in" "conftest.nl"
  8381. printf "%s\n" '' >> "conftest.nl"
  8382. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  8383. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  8384. as_fn_arith $ac_count + 1 && ac_count=$as_val
  8385. if test $ac_count -gt ${ac_path_SED_max-0}; then
  8386. # Best one so far, save it but keep looking for a better one
  8387. ac_cv_path_SED="$ac_path_SED"
  8388. ac_path_SED_max=$ac_count
  8389. fi
  8390. # 10*(2^10) chars as input seems more than enough
  8391. test $ac_count -gt 10 && break
  8392. done
  8393. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  8394. esac
  8395. $ac_path_SED_found && break 3
  8396. done
  8397. done
  8398. done
  8399. IFS=$as_save_IFS
  8400. if test -z "$ac_cv_path_SED"; then
  8401. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  8402. fi
  8403. else
  8404. ac_cv_path_SED=$SED
  8405. fi
  8406. fi
  8407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  8408. printf "%s\n" "$ac_cv_path_SED" >&6; }
  8409. SED="$ac_cv_path_SED"
  8410. rm -f conftest.sed
  8411. ac_ext=c
  8412. ac_cpp='$CPP $CPPFLAGS'
  8413. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8414. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8415. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8416. ax_pthread_ok=no
  8417. # We used to check for pthread.h first, but this fails if pthread.h
  8418. # requires special compiler flags (e.g. on Tru64 or Sequent).
  8419. # It gets checked for in the link test anyway.
  8420. # First of all, check if the user has set any of the PTHREAD_LIBS,
  8421. # etcetera environment variables, and if threads linking works using
  8422. # them:
  8423. if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
  8424. ax_pthread_save_CC="$CC"
  8425. ax_pthread_save_CFLAGS="$CFLAGS"
  8426. ax_pthread_save_LIBS="$LIBS"
  8427. if test "x$PTHREAD_CC" != "x"
  8428. then :
  8429. CC="$PTHREAD_CC"
  8430. fi
  8431. if test "x$PTHREAD_CXX" != "x"
  8432. then :
  8433. CXX="$PTHREAD_CXX"
  8434. fi
  8435. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  8436. LIBS="$PTHREAD_LIBS $LIBS"
  8437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
  8438. printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
  8439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8440. /* end confdefs.h. */
  8441. /* Override any GCC internal prototype to avoid an error.
  8442. Use char because int might match the return type of a GCC
  8443. builtin and then its argument prototype would still apply. */
  8444. char pthread_join ();
  8445. int
  8446. main (void)
  8447. {
  8448. return pthread_join ();
  8449. ;
  8450. return 0;
  8451. }
  8452. _ACEOF
  8453. if ac_fn_c_try_link "$LINENO"
  8454. then :
  8455. ax_pthread_ok=yes
  8456. fi
  8457. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8458. conftest$ac_exeext conftest.$ac_ext
  8459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  8460. printf "%s\n" "$ax_pthread_ok" >&6; }
  8461. if test "x$ax_pthread_ok" = "xno"; then
  8462. PTHREAD_LIBS=""
  8463. PTHREAD_CFLAGS=""
  8464. fi
  8465. CC="$ax_pthread_save_CC"
  8466. CFLAGS="$ax_pthread_save_CFLAGS"
  8467. LIBS="$ax_pthread_save_LIBS"
  8468. fi
  8469. # We must check for the threads library under a number of different
  8470. # names; the ordering is very important because some systems
  8471. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  8472. # libraries is broken (non-POSIX).
  8473. # Create a list of thread flags to try. Items with a "," contain both
  8474. # C compiler flags (before ",") and linker flags (after ","). Other items
  8475. # starting with a "-" are C compiler flags, and remaining items are
  8476. # library names, except for "none" which indicates that we try without
  8477. # any flags at all, and "pthread-config" which is a program returning
  8478. # the flags for the Pth emulation library.
  8479. ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  8480. # The ordering *is* (sometimes) important. Some notes on the
  8481. # individual items follow:
  8482. # pthreads: AIX (must check this before -lpthread)
  8483. # none: in case threads are in libc; should be tried before -Kthread and
  8484. # other compiler flags to prevent continual compiler warnings
  8485. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  8486. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
  8487. # (Note: HP C rejects this with "bad form for `-t' option")
  8488. # -pthreads: Solaris/gcc (Note: HP C also rejects)
  8489. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  8490. # doesn't hurt to check since this sometimes defines pthreads and
  8491. # -D_REENTRANT too), HP C (must be checked before -lpthread, which
  8492. # is present but should not be used directly; and before -mthreads,
  8493. # because the compiler interprets this as "-mt" + "-hreads")
  8494. # -mthreads: Mingw32/gcc, Lynx/gcc
  8495. # pthread: Linux, etcetera
  8496. # --thread-safe: KAI C++
  8497. # pthread-config: use pthread-config program (for GNU Pth library)
  8498. case $host_os in
  8499. freebsd*)
  8500. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  8501. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  8502. ax_pthread_flags="-kthread lthread $ax_pthread_flags"
  8503. ;;
  8504. hpux*)
  8505. # From the cc(1) man page: "[-mt] Sets various -D flags to enable
  8506. # multi-threading and also sets -lpthread."
  8507. ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
  8508. ;;
  8509. openedition*)
  8510. # IBM z/OS requires a feature-test macro to be defined in order to
  8511. # enable POSIX threads at all, so give the user a hint if this is
  8512. # not set. (We don't define these ourselves, as they can affect
  8513. # other portions of the system API in unpredictable ways.)
  8514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8515. /* end confdefs.h. */
  8516. # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
  8517. AX_PTHREAD_ZOS_MISSING
  8518. # endif
  8519. _ACEOF
  8520. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8521. $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
  8522. then :
  8523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
  8524. printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
  8525. fi
  8526. rm -rf conftest*
  8527. ;;
  8528. solaris*)
  8529. # On Solaris (at least, for some versions), libc contains stubbed
  8530. # (non-functional) versions of the pthreads routines, so link-based
  8531. # tests will erroneously succeed. (N.B.: The stubs are missing
  8532. # pthread_cleanup_push, or rather a function called by this macro,
  8533. # so we could check for that, but who knows whether they'll stub
  8534. # that too in a future libc.) So we'll check first for the
  8535. # standard Solaris way of linking pthreads (-mt -lpthread).
  8536. ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
  8537. ;;
  8538. esac
  8539. # Are we compiling with Clang?
  8540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
  8541. printf %s "checking whether $CC is Clang... " >&6; }
  8542. if test ${ax_cv_PTHREAD_CLANG+y}
  8543. then :
  8544. printf %s "(cached) " >&6
  8545. else $as_nop
  8546. ax_cv_PTHREAD_CLANG=no
  8547. # Note that Autoconf sets GCC=yes for Clang as well as GCC
  8548. if test "x$GCC" = "xyes"; then
  8549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8550. /* end confdefs.h. */
  8551. /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
  8552. # if defined(__clang__) && defined(__llvm__)
  8553. AX_PTHREAD_CC_IS_CLANG
  8554. # endif
  8555. _ACEOF
  8556. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8557. $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
  8558. then :
  8559. ax_cv_PTHREAD_CLANG=yes
  8560. fi
  8561. rm -rf conftest*
  8562. fi
  8563. fi
  8564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
  8565. printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
  8566. ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
  8567. # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
  8568. # Note that for GCC and Clang -pthread generally implies -lpthread,
  8569. # except when -nostdlib is passed.
  8570. # This is problematic using libtool to build C++ shared libraries with pthread:
  8571. # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
  8572. # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
  8573. # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
  8574. # To solve this, first try -pthread together with -lpthread for GCC
  8575. if test "x$GCC" = "xyes"
  8576. then :
  8577. ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
  8578. fi
  8579. # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
  8580. if test "x$ax_pthread_clang" = "xyes"
  8581. then :
  8582. ax_pthread_flags="-pthread,-lpthread -pthread"
  8583. fi
  8584. # The presence of a feature test macro requesting re-entrant function
  8585. # definitions is, on some systems, a strong hint that pthreads support is
  8586. # correctly enabled
  8587. case $host_os in
  8588. darwin* | hpux* | linux* | osf* | solaris*)
  8589. ax_pthread_check_macro="_REENTRANT"
  8590. ;;
  8591. aix*)
  8592. ax_pthread_check_macro="_THREAD_SAFE"
  8593. ;;
  8594. *)
  8595. ax_pthread_check_macro="--"
  8596. ;;
  8597. esac
  8598. if test "x$ax_pthread_check_macro" = "x--"
  8599. then :
  8600. ax_pthread_check_cond=0
  8601. else $as_nop
  8602. ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
  8603. fi
  8604. if test "x$ax_pthread_ok" = "xno"; then
  8605. for ax_pthread_try_flag in $ax_pthread_flags; do
  8606. case $ax_pthread_try_flag in
  8607. none)
  8608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  8609. printf %s "checking whether pthreads work without any flags... " >&6; }
  8610. ;;
  8611. *,*)
  8612. PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
  8613. PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
  8614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
  8615. printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
  8616. ;;
  8617. -*)
  8618. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
  8619. printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
  8620. PTHREAD_CFLAGS="$ax_pthread_try_flag"
  8621. ;;
  8622. pthread-config)
  8623. # Extract the first word of "pthread-config", so it can be a program name with args.
  8624. set dummy pthread-config; ac_word=$2
  8625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8626. printf %s "checking for $ac_word... " >&6; }
  8627. if test ${ac_cv_prog_ax_pthread_config+y}
  8628. then :
  8629. printf %s "(cached) " >&6
  8630. else $as_nop
  8631. if test -n "$ax_pthread_config"; then
  8632. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  8633. else
  8634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8635. for as_dir in $PATH
  8636. do
  8637. IFS=$as_save_IFS
  8638. case $as_dir in #(((
  8639. '') as_dir=./ ;;
  8640. */) ;;
  8641. *) as_dir=$as_dir/ ;;
  8642. esac
  8643. for ac_exec_ext in '' $ac_executable_extensions; do
  8644. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8645. ac_cv_prog_ax_pthread_config="yes"
  8646. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8647. break 2
  8648. fi
  8649. done
  8650. done
  8651. IFS=$as_save_IFS
  8652. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  8653. fi
  8654. fi
  8655. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  8656. if test -n "$ax_pthread_config"; then
  8657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  8658. printf "%s\n" "$ax_pthread_config" >&6; }
  8659. else
  8660. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8661. printf "%s\n" "no" >&6; }
  8662. fi
  8663. if test "x$ax_pthread_config" = "xno"
  8664. then :
  8665. continue
  8666. fi
  8667. PTHREAD_CFLAGS="`pthread-config --cflags`"
  8668. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  8669. ;;
  8670. *)
  8671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
  8672. printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
  8673. PTHREAD_LIBS="-l$ax_pthread_try_flag"
  8674. ;;
  8675. esac
  8676. ax_pthread_save_CFLAGS="$CFLAGS"
  8677. ax_pthread_save_LIBS="$LIBS"
  8678. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  8679. LIBS="$PTHREAD_LIBS $LIBS"
  8680. # Check for various functions. We must include pthread.h,
  8681. # since some functions may be macros. (On the Sequent, we
  8682. # need a special flag -Kthread to make this header compile.)
  8683. # We check for pthread_join because it is in -lpthread on IRIX
  8684. # while pthread_create is in libc. We check for pthread_attr_init
  8685. # due to DEC craziness with -lpthreads. We check for
  8686. # pthread_cleanup_push because it is one of the few pthread
  8687. # functions on Solaris that doesn't have a non-functional libc stub.
  8688. # We try pthread_create on general principles.
  8689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8690. /* end confdefs.h. */
  8691. #include <pthread.h>
  8692. # if $ax_pthread_check_cond
  8693. # error "$ax_pthread_check_macro must be defined"
  8694. # endif
  8695. static void *some_global = NULL;
  8696. static void routine(void *a)
  8697. {
  8698. /* To avoid any unused-parameter or
  8699. unused-but-set-parameter warning. */
  8700. some_global = a;
  8701. }
  8702. static void *start_routine(void *a) { return a; }
  8703. int
  8704. main (void)
  8705. {
  8706. pthread_t th; pthread_attr_t attr;
  8707. pthread_create(&th, 0, start_routine, 0);
  8708. pthread_join(th, 0);
  8709. pthread_attr_init(&attr);
  8710. pthread_cleanup_push(routine, 0);
  8711. pthread_cleanup_pop(0) /* ; */
  8712. ;
  8713. return 0;
  8714. }
  8715. _ACEOF
  8716. if ac_fn_c_try_link "$LINENO"
  8717. then :
  8718. ax_pthread_ok=yes
  8719. fi
  8720. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8721. conftest$ac_exeext conftest.$ac_ext
  8722. CFLAGS="$ax_pthread_save_CFLAGS"
  8723. LIBS="$ax_pthread_save_LIBS"
  8724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  8725. printf "%s\n" "$ax_pthread_ok" >&6; }
  8726. if test "x$ax_pthread_ok" = "xyes"
  8727. then :
  8728. break
  8729. fi
  8730. PTHREAD_LIBS=""
  8731. PTHREAD_CFLAGS=""
  8732. done
  8733. fi
  8734. # Clang needs special handling, because older versions handle the -pthread
  8735. # option in a rather... idiosyncratic way
  8736. if test "x$ax_pthread_clang" = "xyes"; then
  8737. # Clang takes -pthread; it has never supported any other flag
  8738. # (Note 1: This will need to be revisited if a system that Clang
  8739. # supports has POSIX threads in a separate library. This tends not
  8740. # to be the way of modern systems, but it's conceivable.)
  8741. # (Note 2: On some systems, notably Darwin, -pthread is not needed
  8742. # to get POSIX threads support; the API is always present and
  8743. # active. We could reasonably leave PTHREAD_CFLAGS empty. But
  8744. # -pthread does define _REENTRANT, and while the Darwin headers
  8745. # ignore this macro, third-party headers might not.)
  8746. # However, older versions of Clang make a point of warning the user
  8747. # that, in an invocation where only linking and no compilation is
  8748. # taking place, the -pthread option has no effect ("argument unused
  8749. # during compilation"). They expect -pthread to be passed in only
  8750. # when source code is being compiled.
  8751. #
  8752. # Problem is, this is at odds with the way Automake and most other
  8753. # C build frameworks function, which is that the same flags used in
  8754. # compilation (CFLAGS) are also used in linking. Many systems
  8755. # supported by AX_PTHREAD require exactly this for POSIX threads
  8756. # support, and in fact it is often not straightforward to specify a
  8757. # flag that is used only in the compilation phase and not in
  8758. # linking. Such a scenario is extremely rare in practice.
  8759. #
  8760. # Even though use of the -pthread flag in linking would only print
  8761. # a warning, this can be a nuisance for well-run software projects
  8762. # that build with -Werror. So if the active version of Clang has
  8763. # this misfeature, we search for an option to squash it.
  8764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
  8765. printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
  8766. if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
  8767. then :
  8768. printf %s "(cached) " >&6
  8769. else $as_nop
  8770. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
  8771. # Create an alternate version of $ac_link that compiles and
  8772. # links in two steps (.c -> .o, .o -> exe) instead of one
  8773. # (.c -> exe), because the warning occurs only in the second
  8774. # step
  8775. ax_pthread_save_ac_link="$ac_link"
  8776. ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
  8777. ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
  8778. ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
  8779. ax_pthread_save_CFLAGS="$CFLAGS"
  8780. for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
  8781. if test "x$ax_pthread_try" = "xunknown"
  8782. then :
  8783. break
  8784. fi
  8785. CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
  8786. ac_link="$ax_pthread_save_ac_link"
  8787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8788. /* end confdefs.h. */
  8789. int main(void){return 0;}
  8790. _ACEOF
  8791. if ac_fn_c_try_link "$LINENO"
  8792. then :
  8793. ac_link="$ax_pthread_2step_ac_link"
  8794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8795. /* end confdefs.h. */
  8796. int main(void){return 0;}
  8797. _ACEOF
  8798. if ac_fn_c_try_link "$LINENO"
  8799. then :
  8800. break
  8801. fi
  8802. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8803. conftest$ac_exeext conftest.$ac_ext
  8804. fi
  8805. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8806. conftest$ac_exeext conftest.$ac_ext
  8807. done
  8808. ac_link="$ax_pthread_save_ac_link"
  8809. CFLAGS="$ax_pthread_save_CFLAGS"
  8810. if test "x$ax_pthread_try" = "x"
  8811. then :
  8812. ax_pthread_try=no
  8813. fi
  8814. ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
  8815. fi
  8816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
  8817. printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
  8818. case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
  8819. no | unknown) ;;
  8820. *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
  8821. esac
  8822. fi # $ax_pthread_clang = yes
  8823. # Various other checks:
  8824. if test "x$ax_pthread_ok" = "xyes"; then
  8825. ax_pthread_save_CFLAGS="$CFLAGS"
  8826. ax_pthread_save_LIBS="$LIBS"
  8827. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  8828. LIBS="$PTHREAD_LIBS $LIBS"
  8829. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  8830. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  8831. printf %s "checking for joinable pthread attribute... " >&6; }
  8832. if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
  8833. then :
  8834. printf %s "(cached) " >&6
  8835. else $as_nop
  8836. ax_cv_PTHREAD_JOINABLE_ATTR=unknown
  8837. for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  8838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8839. /* end confdefs.h. */
  8840. #include <pthread.h>
  8841. int
  8842. main (void)
  8843. {
  8844. int attr = $ax_pthread_attr; return attr /* ; */
  8845. ;
  8846. return 0;
  8847. }
  8848. _ACEOF
  8849. if ac_fn_c_try_link "$LINENO"
  8850. then :
  8851. ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
  8852. fi
  8853. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8854. conftest$ac_exeext conftest.$ac_ext
  8855. done
  8856. fi
  8857. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
  8858. printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
  8859. if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
  8860. test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
  8861. test "x$ax_pthread_joinable_attr_defined" != "xyes"
  8862. then :
  8863. printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
  8864. ax_pthread_joinable_attr_defined=yes
  8865. fi
  8866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
  8867. printf %s "checking whether more special flags are required for pthreads... " >&6; }
  8868. if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
  8869. then :
  8870. printf %s "(cached) " >&6
  8871. else $as_nop
  8872. ax_cv_PTHREAD_SPECIAL_FLAGS=no
  8873. case $host_os in
  8874. solaris*)
  8875. ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
  8876. ;;
  8877. esac
  8878. fi
  8879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
  8880. printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
  8881. if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
  8882. test "x$ax_pthread_special_flags_added" != "xyes"
  8883. then :
  8884. PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
  8885. ax_pthread_special_flags_added=yes
  8886. fi
  8887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  8888. printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  8889. if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
  8890. then :
  8891. printf %s "(cached) " >&6
  8892. else $as_nop
  8893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8894. /* end confdefs.h. */
  8895. #include <pthread.h>
  8896. int
  8897. main (void)
  8898. {
  8899. int i = PTHREAD_PRIO_INHERIT;
  8900. return i;
  8901. ;
  8902. return 0;
  8903. }
  8904. _ACEOF
  8905. if ac_fn_c_try_link "$LINENO"
  8906. then :
  8907. ax_cv_PTHREAD_PRIO_INHERIT=yes
  8908. else $as_nop
  8909. ax_cv_PTHREAD_PRIO_INHERIT=no
  8910. fi
  8911. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  8912. conftest$ac_exeext conftest.$ac_ext
  8913. fi
  8914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  8915. printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  8916. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
  8917. test "x$ax_pthread_prio_inherit_defined" != "xyes"
  8918. then :
  8919. printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  8920. ax_pthread_prio_inherit_defined=yes
  8921. fi
  8922. CFLAGS="$ax_pthread_save_CFLAGS"
  8923. LIBS="$ax_pthread_save_LIBS"
  8924. # More AIX lossage: compile with *_r variant
  8925. if test "x$GCC" != "xyes"; then
  8926. case $host_os in
  8927. aix*)
  8928. case "x/$CC" in #(
  8929. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
  8930. #handle absolute path differently from PATH based program lookup
  8931. case "x$CC" in #(
  8932. x/*) :
  8933. if as_fn_executable_p ${CC}_r
  8934. then :
  8935. PTHREAD_CC="${CC}_r"
  8936. fi
  8937. if test "x${CXX}" != "x"
  8938. then :
  8939. if as_fn_executable_p ${CXX}_r
  8940. then :
  8941. PTHREAD_CXX="${CXX}_r"
  8942. fi
  8943. fi
  8944. ;; #(
  8945. *) :
  8946. for ac_prog in ${CC}_r
  8947. do
  8948. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8949. set dummy $ac_prog; ac_word=$2
  8950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8951. printf %s "checking for $ac_word... " >&6; }
  8952. if test ${ac_cv_prog_PTHREAD_CC+y}
  8953. then :
  8954. printf %s "(cached) " >&6
  8955. else $as_nop
  8956. if test -n "$PTHREAD_CC"; then
  8957. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  8958. else
  8959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8960. for as_dir in $PATH
  8961. do
  8962. IFS=$as_save_IFS
  8963. case $as_dir in #(((
  8964. '') as_dir=./ ;;
  8965. */) ;;
  8966. *) as_dir=$as_dir/ ;;
  8967. esac
  8968. for ac_exec_ext in '' $ac_executable_extensions; do
  8969. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  8970. ac_cv_prog_PTHREAD_CC="$ac_prog"
  8971. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  8972. break 2
  8973. fi
  8974. done
  8975. done
  8976. IFS=$as_save_IFS
  8977. fi
  8978. fi
  8979. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  8980. if test -n "$PTHREAD_CC"; then
  8981. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  8982. printf "%s\n" "$PTHREAD_CC" >&6; }
  8983. else
  8984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8985. printf "%s\n" "no" >&6; }
  8986. fi
  8987. test -n "$PTHREAD_CC" && break
  8988. done
  8989. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  8990. if test "x${CXX}" != "x"
  8991. then :
  8992. for ac_prog in ${CXX}_r
  8993. do
  8994. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8995. set dummy $ac_prog; ac_word=$2
  8996. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8997. printf %s "checking for $ac_word... " >&6; }
  8998. if test ${ac_cv_prog_PTHREAD_CXX+y}
  8999. then :
  9000. printf %s "(cached) " >&6
  9001. else $as_nop
  9002. if test -n "$PTHREAD_CXX"; then
  9003. ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
  9004. else
  9005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9006. for as_dir in $PATH
  9007. do
  9008. IFS=$as_save_IFS
  9009. case $as_dir in #(((
  9010. '') as_dir=./ ;;
  9011. */) ;;
  9012. *) as_dir=$as_dir/ ;;
  9013. esac
  9014. for ac_exec_ext in '' $ac_executable_extensions; do
  9015. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  9016. ac_cv_prog_PTHREAD_CXX="$ac_prog"
  9017. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  9018. break 2
  9019. fi
  9020. done
  9021. done
  9022. IFS=$as_save_IFS
  9023. fi
  9024. fi
  9025. PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
  9026. if test -n "$PTHREAD_CXX"; then
  9027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
  9028. printf "%s\n" "$PTHREAD_CXX" >&6; }
  9029. else
  9030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9031. printf "%s\n" "no" >&6; }
  9032. fi
  9033. test -n "$PTHREAD_CXX" && break
  9034. done
  9035. test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
  9036. fi
  9037. ;;
  9038. esac
  9039. ;; #(
  9040. *) :
  9041. ;;
  9042. esac
  9043. ;;
  9044. esac
  9045. fi
  9046. fi
  9047. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  9048. test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
  9049. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  9050. if test "x$ax_pthread_ok" = "xyes"; then
  9051. printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
  9052. :
  9053. else
  9054. ax_pthread_ok=no
  9055. fi
  9056. ac_ext=c
  9057. ac_cpp='$CPP $CPPFLAGS'
  9058. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9059. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9060. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9061. ac_ext=c
  9062. ac_cpp='$CPP $CPPFLAGS'
  9063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9066. PBX_NO_BINARY_MODULES=0
  9067. # Check whether --enable-binary-modules was given.
  9068. if test ${enable_binary_modules+y}
  9069. then :
  9070. enableval=$enable_binary_modules; case "${enableval}" in
  9071. y|ye|yes) PBX_NO_BINARY_MODULES=0 ;;
  9072. n|no) PBX_NO_BINARY_MODULES=1 ;;
  9073. *) as_fn_error $? "bad value ${enableval} for --disable-binary-modules" "$LINENO" 5 ;;
  9074. esac
  9075. fi
  9076. # Check whether --enable-dev-mode was given.
  9077. if test ${enable_dev_mode+y}
  9078. then :
  9079. enableval=$enable_dev_mode; case "${enableval}" in
  9080. y|ye|yes) AST_DEVMODE=yes ;;
  9081. n|no) AST_DEVMODE=no ;;
  9082. noisy)
  9083. AST_DEVMODE=yes
  9084. NOISY_BUILD=yes
  9085. ;;
  9086. strict)
  9087. AST_DEVMODE=yes
  9088. AST_DEVMODE_STRICT=yes
  9089. ;;
  9090. *) as_fn_error $? "bad value ${enableval} for --enable-dev-mode" "$LINENO" 5 ;;
  9091. esac
  9092. fi
  9093. # Check whether --with-download-cache was given.
  9094. if test ${with_download_cache+y}
  9095. then :
  9096. withval=$with_download_cache;
  9097. case ${withval} in
  9098. n|no)
  9099. unset AST_DOWNLOAD_CACHE
  9100. ;;
  9101. *)
  9102. if test "x${withval}" = "x"; then
  9103. :
  9104. else
  9105. AST_DOWNLOAD_CACHE="${withval}"
  9106. fi
  9107. ;;
  9108. esac
  9109. else $as_nop
  9110. :
  9111. fi
  9112. # Check whether --with-sounds-cache was given.
  9113. if test ${with_sounds_cache+y}
  9114. then :
  9115. withval=$with_sounds_cache;
  9116. case ${withval} in
  9117. n|no)
  9118. unset SOUNDS_CACHE_DIR
  9119. ;;
  9120. *)
  9121. if test "x${withval}" = "x"; then
  9122. :
  9123. else
  9124. SOUNDS_CACHE_DIR="${withval}"
  9125. fi
  9126. ;;
  9127. esac
  9128. else $as_nop
  9129. :
  9130. fi
  9131. # Check whether --with-externals-cache was given.
  9132. if test ${with_externals_cache+y}
  9133. then :
  9134. withval=$with_externals_cache;
  9135. case ${withval} in
  9136. n|no)
  9137. unset EXTERNALS_CACHE_DIR
  9138. ;;
  9139. *)
  9140. if test "x${withval}" = "x"; then
  9141. :
  9142. else
  9143. EXTERNALS_CACHE_DIR="${withval}"
  9144. fi
  9145. ;;
  9146. esac
  9147. else $as_nop
  9148. :
  9149. fi
  9150. AST_CODE_COVERAGE=no
  9151. # Check whether --enable-coverage was given.
  9152. if test ${enable_coverage+y}
  9153. then :
  9154. enableval=$enable_coverage; case "${enableval}" in
  9155. y|ye|yes) AST_CODE_COVERAGE=yes ;;
  9156. n|no) AST_CODE_COVERAGE=no ;;
  9157. *) as_fn_error $? "bad value ${enableval} for --enable-coverage" "$LINENO" 5 ;;
  9158. esac
  9159. fi
  9160. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RAII support" >&5
  9161. printf %s "checking for RAII support... " >&6; }
  9162. AST_C_COMPILER_FAMILY=""
  9163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9164. /* end confdefs.h. */
  9165. int
  9166. main (void)
  9167. {
  9168. int main() {
  9169. #if defined(__clang__)
  9170. choke
  9171. #endif
  9172. return 0;
  9173. }
  9174. ;
  9175. return 0;
  9176. }
  9177. _ACEOF
  9178. if ac_fn_c_try_link "$LINENO"
  9179. then :
  9180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc -fnested-functions" >&5
  9181. printf %s "checking for gcc -fnested-functions... " >&6; }
  9182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9183. /* end confdefs.h. */
  9184. int
  9185. main (void)
  9186. {
  9187. auto void foo(void); void foo(void) {}
  9188. ;
  9189. return 0;
  9190. }
  9191. _ACEOF
  9192. if ac_fn_c_try_compile "$LINENO"
  9193. then :
  9194. AST_NESTED_FUNCTIONS=""
  9195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9196. printf "%s\n" "no" >&6; }
  9197. else $as_nop
  9198. AST_NESTED_FUNCTIONS="-fnested-functions"
  9199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9200. printf "%s\n" "yes" >&6; }
  9201. fi
  9202. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  9203. AST_C_COMPILER_FAMILY="gcc"
  9204. else $as_nop
  9205. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang -fblocks" >&5
  9206. printf %s "checking for clang -fblocks... " >&6; }
  9207. if test "`echo 'int main(){return ^{return 42;}();}' | ${CC} -o /dev/null -fblocks -x c - 2>&1`" = ""; then
  9208. AST_CLANG_BLOCKS_LIBS=""
  9209. AST_CLANG_BLOCKS="-Wno-unknown-warning-option -fblocks"
  9210. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9211. printf "%s\n" "yes" >&6; }
  9212. elif test "`echo 'int main(){return ^{return 42;}();}' | ${CC} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then
  9213. AST_CLANG_BLOCKS_LIBS="-lBlocksRuntime"
  9214. AST_CLANG_BLOCKS="-fblocks"
  9215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9216. printf "%s\n" "yes" >&6; }
  9217. else
  9218. as_fn_error $? "BlocksRuntime is required for clang, please install libblocksruntime" "$LINENO" 5
  9219. fi
  9220. AST_C_COMPILER_FAMILY="clang"
  9221. fi
  9222. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9223. conftest$ac_exeext conftest.$ac_ext
  9224. if test -z "${AST_C_COMPILER_FAMILY}"; then
  9225. as_fn_error $? "Compiler ${CC} not supported. Mminimum required gcc-4.3 / llvm-gcc-4.3 / clang-3.3 + libblocksruntime-dev" "$LINENO" 5
  9226. fi
  9227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clang strsep/strcmp optimization" >&5
  9228. printf %s "checking for clang strsep/strcmp optimization... " >&6; }
  9229. save_CFLAGS="$CFLAGS"
  9230. CFLAGS="$CFLAGS -O1 -Werror=array-bounds"
  9231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9232. /* end confdefs.h. */
  9233. #include <stdio.h>
  9234. #include <string.h>
  9235. /* fails with clang and -O1 */
  9236. void test_strsep_strcmp (void) {
  9237. char *haystackstr = "test1,test2";
  9238. char *outstr;
  9239. if (!strcmp(haystackstr, ",")) {
  9240. printf("fail\n");
  9241. }
  9242. if ((outstr = strsep(&haystackstr, ","))) {
  9243. printf("fail:%s\n", outstr);
  9244. }
  9245. }
  9246. int main(int argc, char *argv) {
  9247. test_strsep_strcmp();
  9248. return 0;
  9249. }
  9250. _ACEOF
  9251. if ac_fn_c_try_compile "$LINENO"
  9252. then :
  9253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9254. printf "%s\n" "no" >&6; }
  9255. else $as_nop
  9256. printf "%s\n" "#define _HAVE_STRING_ARCH_strcmp 1" >>confdefs.h
  9257. printf "%s\n" "#define _HAVE_STRING_ARCH_strsep 1" >>confdefs.h
  9258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: prevent use of __string2_1bptr_p / strsep / strcmp from bits/string2.h" >&5
  9259. printf "%s\n" "prevent use of __string2_1bptr_p / strsep / strcmp from bits/string2.h" >&6; }
  9260. fi
  9261. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  9262. CFLAGS="$save_CFLAGS"
  9263. JANSSON_BUNDLED=no
  9264. # Check whether --with-jansson-bundled was given.
  9265. if test ${with_jansson_bundled+y}
  9266. then :
  9267. withval=$with_jansson_bundled; case "${withval}" in
  9268. y|ye|yes) JANSSON_BUNDLED=yes ;;
  9269. *) JANSSON_BUNDLED=no ;;
  9270. esac
  9271. fi
  9272. PJPROJECT_BUNDLED=yes
  9273. # Check whether --with-pjproject-bundled was given.
  9274. if test ${with_pjproject_bundled+y}
  9275. then :
  9276. withval=$with_pjproject_bundled; case "${withval}" in
  9277. n|no) PJPROJECT_BUNDLED=no ;;
  9278. *) PJPROJECT_BUNDLED=yes ;;
  9279. esac
  9280. fi
  9281. if test "${with_pjproject}" = "no" || test "${with_pjproject}" = "n" ; then
  9282. PJPROJECT_BUNDLED=no
  9283. fi
  9284. LIBJWT_BUNDLED=no
  9285. # Check whether --with-libjwt-bundled was given.
  9286. if test ${with_libjwt_bundled+y}
  9287. then :
  9288. withval=$with_libjwt_bundled; case "${withval}" in
  9289. y|ye|yes) LIBJWT_BUNDLED=yes ;;
  9290. *) LIBJWT_BUNDLED=no ;;
  9291. esac
  9292. fi
  9293. #
  9294. # OpenSSL stuff has to be done here because we want to pass
  9295. # any resulting CFLAGS and LDFLAGS to the bundled pjproject
  9296. # configure done in THIRD_PARTY_CONFIGURE()
  9297. #
  9298. CRYPTO_DESCRIP="OpenSSL Cryptography"
  9299. CRYPTO_OPTION="crypto"
  9300. PBX_CRYPTO=0
  9301. # Check whether --with-crypto was given.
  9302. if test ${with_crypto+y}
  9303. then :
  9304. withval=$with_crypto;
  9305. case ${withval} in
  9306. n|no)
  9307. USE_CRYPTO=no
  9308. # -1 is a magic value used by menuselect to know that the package
  9309. # was disabled, other than 'not found'
  9310. PBX_CRYPTO=-1
  9311. ;;
  9312. y|ye|yes)
  9313. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  9314. ;;
  9315. *)
  9316. CRYPTO_DIR="${withval}"
  9317. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  9318. ;;
  9319. esac
  9320. fi
  9321. OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer"
  9322. OPENSSL_OPTION="ssl"
  9323. PBX_OPENSSL=0
  9324. # Check whether --with-ssl was given.
  9325. if test ${with_ssl+y}
  9326. then :
  9327. withval=$with_ssl;
  9328. case ${withval} in
  9329. n|no)
  9330. USE_OPENSSL=no
  9331. # -1 is a magic value used by menuselect to know that the package
  9332. # was disabled, other than 'not found'
  9333. PBX_OPENSSL=-1
  9334. ;;
  9335. y|ye|yes)
  9336. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9337. ;;
  9338. *)
  9339. OPENSSL_DIR="${withval}"
  9340. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9341. ;;
  9342. esac
  9343. fi
  9344. OPENSSL_BIO_METHOD_DESCRIP="OpenSSL BIO Method Support"
  9345. OPENSSL_BIO_METHOD_OPTION=crypto
  9346. OPENSSL_BIO_METHOD_DIR=${CRYPTO_DIR}
  9347. PBX_OPENSSL_BIO_METHOD=0
  9348. # If neither --without-ssl (PBX_OPENSSL=-1) nor --without-crypto (PBX_CRYPTO=-1)
  9349. # and there were no directories atdded to --with-ssl and --with-crypto, and
  9350. # pkg-config is installed (which is should be by install_prereq).
  9351. if test "x$PKG_CONFIG" != "x" -a $PBX_OPENSSL -ge 0 -a $PBX_CRYPTO -ge 0 -a "x$OPENSSL_DIR" = "x" ; then
  9352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OPENSSL with pkg-config" >&5
  9353. printf "%s\n" "$as_me: checking OPENSSL with pkg-config" >&6;}
  9354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system openssl > 1.1.0" >&5
  9355. printf "%s\n" "$as_me: checking whether system openssl > 1.1.0" >&6;}
  9356. if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
  9357. pkg_failed=no
  9358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 1.1.0" >&5
  9359. printf %s "checking for openssl >= 1.1.0... " >&6; }
  9360. if test -n "$OPENSSL_CFLAGS"; then
  9361. pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
  9362. elif test -n "$PKG_CONFIG"; then
  9363. if test -n "$PKG_CONFIG" && \
  9364. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.0\""; } >&5
  9365. ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.0") 2>&5
  9366. ac_status=$?
  9367. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9368. test $ac_status = 0; }; then
  9369. pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 1.1.0" 2>/dev/null`
  9370. test "x$?" != "x0" && pkg_failed=yes
  9371. else
  9372. pkg_failed=yes
  9373. fi
  9374. else
  9375. pkg_failed=untried
  9376. fi
  9377. if test -n "$OPENSSL_LIBS"; then
  9378. pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
  9379. elif test -n "$PKG_CONFIG"; then
  9380. if test -n "$PKG_CONFIG" && \
  9381. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 1.1.0\""; } >&5
  9382. ($PKG_CONFIG --exists --print-errors "openssl >= 1.1.0") 2>&5
  9383. ac_status=$?
  9384. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9385. test $ac_status = 0; }; then
  9386. pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 1.1.0" 2>/dev/null`
  9387. test "x$?" != "x0" && pkg_failed=yes
  9388. else
  9389. pkg_failed=yes
  9390. fi
  9391. else
  9392. pkg_failed=untried
  9393. fi
  9394. if test $pkg_failed = yes; then
  9395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9396. printf "%s\n" "no" >&6; }
  9397. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9398. _pkg_short_errors_supported=yes
  9399. else
  9400. _pkg_short_errors_supported=no
  9401. fi
  9402. if test $_pkg_short_errors_supported = yes; then
  9403. OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 1.1.0" 2>&1`
  9404. else
  9405. OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 1.1.0" 2>&1`
  9406. fi
  9407. # Put the nasty error message in config.log where it belongs
  9408. echo "$OPENSSL_PKG_ERRORS" >&5
  9409. PBX_OPENSSL=0
  9410. elif test $pkg_failed = untried; then
  9411. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9412. printf "%s\n" "no" >&6; }
  9413. PBX_OPENSSL=0
  9414. else
  9415. OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
  9416. OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
  9417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9418. printf "%s\n" "yes" >&6; }
  9419. PBX_OPENSSL=1
  9420. OPENSSL_INCLUDE=$(echo ${OPENSSL_CFLAGS} | $SED -e "s|-std=c99||g")
  9421. OPENSSL_LIB="$OPENSSL_LIBS"
  9422. printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
  9423. fi
  9424. fi
  9425. if test $PBX_OPENSSL -eq 0 ; then
  9426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether alternate openssl11 is installed" >&5
  9427. printf "%s\n" "$as_me: checking whether alternate openssl11 is installed" >&6;}
  9428. if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
  9429. pkg_failed=no
  9430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl11" >&5
  9431. printf %s "checking for openssl11... " >&6; }
  9432. if test -n "$OPENSSL_CFLAGS"; then
  9433. pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
  9434. elif test -n "$PKG_CONFIG"; then
  9435. if test -n "$PKG_CONFIG" && \
  9436. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl11\""; } >&5
  9437. ($PKG_CONFIG --exists --print-errors "openssl11") 2>&5
  9438. ac_status=$?
  9439. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9440. test $ac_status = 0; }; then
  9441. pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl11" 2>/dev/null`
  9442. test "x$?" != "x0" && pkg_failed=yes
  9443. else
  9444. pkg_failed=yes
  9445. fi
  9446. else
  9447. pkg_failed=untried
  9448. fi
  9449. if test -n "$OPENSSL_LIBS"; then
  9450. pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
  9451. elif test -n "$PKG_CONFIG"; then
  9452. if test -n "$PKG_CONFIG" && \
  9453. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl11\""; } >&5
  9454. ($PKG_CONFIG --exists --print-errors "openssl11") 2>&5
  9455. ac_status=$?
  9456. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9457. test $ac_status = 0; }; then
  9458. pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl11" 2>/dev/null`
  9459. test "x$?" != "x0" && pkg_failed=yes
  9460. else
  9461. pkg_failed=yes
  9462. fi
  9463. else
  9464. pkg_failed=untried
  9465. fi
  9466. if test $pkg_failed = yes; then
  9467. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9468. printf "%s\n" "no" >&6; }
  9469. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9470. _pkg_short_errors_supported=yes
  9471. else
  9472. _pkg_short_errors_supported=no
  9473. fi
  9474. if test $_pkg_short_errors_supported = yes; then
  9475. OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl11" 2>&1`
  9476. else
  9477. OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl11" 2>&1`
  9478. fi
  9479. # Put the nasty error message in config.log where it belongs
  9480. echo "$OPENSSL_PKG_ERRORS" >&5
  9481. PBX_OPENSSL=0
  9482. elif test $pkg_failed = untried; then
  9483. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9484. printf "%s\n" "no" >&6; }
  9485. PBX_OPENSSL=0
  9486. else
  9487. OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
  9488. OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
  9489. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9490. printf "%s\n" "yes" >&6; }
  9491. PBX_OPENSSL=1
  9492. OPENSSL_INCLUDE=$(echo ${OPENSSL_CFLAGS} | $SED -e "s|-std=c99||g")
  9493. OPENSSL_LIB="$OPENSSL_LIBS"
  9494. printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
  9495. fi
  9496. fi
  9497. fi
  9498. if test $PBX_OPENSSL -eq 1 ; then
  9499. printf "%s\n" "#define HAVE_OPENSSL_BIO_METHOD 1" >>confdefs.h
  9500. PBX_OPENSSL_BIO_METHOD=1
  9501. else
  9502. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking fallback system openssl" >&5
  9503. printf "%s\n" "$as_me: checking fallback system openssl" >&6;}
  9504. if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
  9505. pkg_failed=no
  9506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
  9507. printf %s "checking for openssl... " >&6; }
  9508. if test -n "$OPENSSL_CFLAGS"; then
  9509. pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
  9510. elif test -n "$PKG_CONFIG"; then
  9511. if test -n "$PKG_CONFIG" && \
  9512. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
  9513. ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
  9514. ac_status=$?
  9515. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9516. test $ac_status = 0; }; then
  9517. pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
  9518. test "x$?" != "x0" && pkg_failed=yes
  9519. else
  9520. pkg_failed=yes
  9521. fi
  9522. else
  9523. pkg_failed=untried
  9524. fi
  9525. if test -n "$OPENSSL_LIBS"; then
  9526. pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
  9527. elif test -n "$PKG_CONFIG"; then
  9528. if test -n "$PKG_CONFIG" && \
  9529. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
  9530. ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
  9531. ac_status=$?
  9532. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9533. test $ac_status = 0; }; then
  9534. pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
  9535. test "x$?" != "x0" && pkg_failed=yes
  9536. else
  9537. pkg_failed=yes
  9538. fi
  9539. else
  9540. pkg_failed=untried
  9541. fi
  9542. if test $pkg_failed = yes; then
  9543. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9544. printf "%s\n" "no" >&6; }
  9545. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9546. _pkg_short_errors_supported=yes
  9547. else
  9548. _pkg_short_errors_supported=no
  9549. fi
  9550. if test $_pkg_short_errors_supported = yes; then
  9551. OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
  9552. else
  9553. OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
  9554. fi
  9555. # Put the nasty error message in config.log where it belongs
  9556. echo "$OPENSSL_PKG_ERRORS" >&5
  9557. PBX_OPENSSL=0
  9558. elif test $pkg_failed = untried; then
  9559. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9560. printf "%s\n" "no" >&6; }
  9561. PBX_OPENSSL=0
  9562. else
  9563. OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
  9564. OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
  9565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9566. printf "%s\n" "yes" >&6; }
  9567. PBX_OPENSSL=1
  9568. OPENSSL_INCLUDE=$(echo ${OPENSSL_CFLAGS} | $SED -e "s|-std=c99||g")
  9569. OPENSSL_LIB="$OPENSSL_LIBS"
  9570. printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
  9571. fi
  9572. fi
  9573. fi
  9574. if test $PBX_OPENSSL -eq 1; then
  9575. printf "%s\n" "#define HAVE_CRYPTO 1" >>confdefs.h
  9576. PBX_CRYPTO=1
  9577. fi
  9578. else
  9579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checking OPENSSL without pkg-config" >&5
  9580. printf "%s\n" "$as_me: Checking OPENSSL without pkg-config" >&6;}
  9581. if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
  9582. pbxlibdir=""
  9583. # if --with-CRYPTO=DIR has been specified, use it.
  9584. if test "x${CRYPTO_DIR}" != "x"; then
  9585. if test -d ${CRYPTO_DIR}/lib; then
  9586. pbxlibdir="-L${CRYPTO_DIR}/lib"
  9587. else
  9588. pbxlibdir="-L${CRYPTO_DIR}"
  9589. fi
  9590. fi
  9591. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  9592. CFLAGS="${CFLAGS} "
  9593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  9594. printf %s "checking for AES_encrypt in -lcrypto... " >&6; }
  9595. if test ${ac_cv_lib_crypto_AES_encrypt+y}
  9596. then :
  9597. printf %s "(cached) " >&6
  9598. else $as_nop
  9599. ac_check_lib_save_LIBS=$LIBS
  9600. LIBS="-lcrypto ${pbxlibdir} $LIBS"
  9601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9602. /* end confdefs.h. */
  9603. /* Override any GCC internal prototype to avoid an error.
  9604. Use char because int might match the return type of a GCC
  9605. builtin and then its argument prototype would still apply. */
  9606. char AES_encrypt ();
  9607. int
  9608. main (void)
  9609. {
  9610. return AES_encrypt ();
  9611. ;
  9612. return 0;
  9613. }
  9614. _ACEOF
  9615. if ac_fn_c_try_link "$LINENO"
  9616. then :
  9617. ac_cv_lib_crypto_AES_encrypt=yes
  9618. else $as_nop
  9619. ac_cv_lib_crypto_AES_encrypt=no
  9620. fi
  9621. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9622. conftest$ac_exeext conftest.$ac_ext
  9623. LIBS=$ac_check_lib_save_LIBS
  9624. fi
  9625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  9626. printf "%s\n" "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  9627. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes
  9628. then :
  9629. AST_CRYPTO_FOUND=yes
  9630. else $as_nop
  9631. AST_CRYPTO_FOUND=no
  9632. fi
  9633. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  9634. # now check for the header.
  9635. if test "${AST_CRYPTO_FOUND}" = "yes"; then
  9636. CRYPTO_LIB="${pbxlibdir} -lcrypto "
  9637. # if --with-CRYPTO=DIR has been specified, use it.
  9638. if test "x${CRYPTO_DIR}" != "x"; then
  9639. CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
  9640. fi
  9641. CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
  9642. # check for the header
  9643. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  9644. CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"
  9645. ac_fn_c_check_header_compile "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default"
  9646. if test "x$ac_cv_header_openssl_aes_h" = xyes
  9647. then :
  9648. CRYPTO_HEADER_FOUND=1
  9649. else $as_nop
  9650. CRYPTO_HEADER_FOUND=0
  9651. fi
  9652. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  9653. if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
  9654. CRYPTO_LIB=""
  9655. CRYPTO_INCLUDE=""
  9656. else
  9657. PBX_CRYPTO=1
  9658. cat >>confdefs.h <<_ACEOF
  9659. #define HAVE_CRYPTO 1
  9660. _ACEOF
  9661. fi
  9662. fi
  9663. fi
  9664. if test "$PBX_CRYPTO" = "1";
  9665. then
  9666. if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
  9667. pbxlibdir=""
  9668. # if --with-OPENSSL=DIR has been specified, use it.
  9669. if test "x${OPENSSL_DIR}" != "x"; then
  9670. if test -d ${OPENSSL_DIR}/lib; then
  9671. pbxlibdir="-L${OPENSSL_DIR}/lib"
  9672. else
  9673. pbxlibdir="-L${OPENSSL_DIR}"
  9674. fi
  9675. fi
  9676. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  9677. CFLAGS="${CFLAGS} "
  9678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
  9679. printf %s "checking for SSL_connect in -lssl... " >&6; }
  9680. if test ${ac_cv_lib_ssl_SSL_connect+y}
  9681. then :
  9682. printf %s "(cached) " >&6
  9683. else $as_nop
  9684. ac_check_lib_save_LIBS=$LIBS
  9685. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  9686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9687. /* end confdefs.h. */
  9688. /* Override any GCC internal prototype to avoid an error.
  9689. Use char because int might match the return type of a GCC
  9690. builtin and then its argument prototype would still apply. */
  9691. char SSL_connect ();
  9692. int
  9693. main (void)
  9694. {
  9695. return SSL_connect ();
  9696. ;
  9697. return 0;
  9698. }
  9699. _ACEOF
  9700. if ac_fn_c_try_link "$LINENO"
  9701. then :
  9702. ac_cv_lib_ssl_SSL_connect=yes
  9703. else $as_nop
  9704. ac_cv_lib_ssl_SSL_connect=no
  9705. fi
  9706. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9707. conftest$ac_exeext conftest.$ac_ext
  9708. LIBS=$ac_check_lib_save_LIBS
  9709. fi
  9710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
  9711. printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
  9712. if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
  9713. then :
  9714. AST_OPENSSL_FOUND=yes
  9715. else $as_nop
  9716. AST_OPENSSL_FOUND=no
  9717. fi
  9718. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  9719. # now check for the header.
  9720. if test "${AST_OPENSSL_FOUND}" = "yes"; then
  9721. OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
  9722. # if --with-OPENSSL=DIR has been specified, use it.
  9723. if test "x${OPENSSL_DIR}" != "x"; then
  9724. OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
  9725. fi
  9726. OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
  9727. # check for the header
  9728. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  9729. CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
  9730. ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  9731. if test "x$ac_cv_header_openssl_ssl_h" = xyes
  9732. then :
  9733. OPENSSL_HEADER_FOUND=1
  9734. else $as_nop
  9735. OPENSSL_HEADER_FOUND=0
  9736. fi
  9737. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  9738. if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
  9739. OPENSSL_LIB=""
  9740. OPENSSL_INCLUDE=""
  9741. else
  9742. PBX_OPENSSL=1
  9743. cat >>confdefs.h <<_ACEOF
  9744. #define HAVE_OPENSSL 1
  9745. _ACEOF
  9746. fi
  9747. fi
  9748. fi
  9749. if test "x${PBX_OPENSSL_BIO_METHOD}" != "x1" -a "${USE_OPENSSL_BIO_METHOD}" != "no"; then
  9750. pbxlibdir=""
  9751. # if --with-OPENSSL_BIO_METHOD=DIR has been specified, use it.
  9752. if test "x${OPENSSL_BIO_METHOD_DIR}" != "x"; then
  9753. if test -d ${OPENSSL_BIO_METHOD_DIR}/lib; then
  9754. pbxlibdir="-L${OPENSSL_BIO_METHOD_DIR}/lib"
  9755. else
  9756. pbxlibdir="-L${OPENSSL_BIO_METHOD_DIR}"
  9757. fi
  9758. fi
  9759. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  9760. CFLAGS="${CFLAGS} "
  9761. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIO_meth_new in -lssl" >&5
  9762. printf %s "checking for BIO_meth_new in -lssl... " >&6; }
  9763. if test ${ac_cv_lib_ssl_BIO_meth_new+y}
  9764. then :
  9765. printf %s "(cached) " >&6
  9766. else $as_nop
  9767. ac_check_lib_save_LIBS=$LIBS
  9768. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  9769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9770. /* end confdefs.h. */
  9771. /* Override any GCC internal prototype to avoid an error.
  9772. Use char because int might match the return type of a GCC
  9773. builtin and then its argument prototype would still apply. */
  9774. char BIO_meth_new ();
  9775. int
  9776. main (void)
  9777. {
  9778. return BIO_meth_new ();
  9779. ;
  9780. return 0;
  9781. }
  9782. _ACEOF
  9783. if ac_fn_c_try_link "$LINENO"
  9784. then :
  9785. ac_cv_lib_ssl_BIO_meth_new=yes
  9786. else $as_nop
  9787. ac_cv_lib_ssl_BIO_meth_new=no
  9788. fi
  9789. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  9790. conftest$ac_exeext conftest.$ac_ext
  9791. LIBS=$ac_check_lib_save_LIBS
  9792. fi
  9793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_BIO_meth_new" >&5
  9794. printf "%s\n" "$ac_cv_lib_ssl_BIO_meth_new" >&6; }
  9795. if test "x$ac_cv_lib_ssl_BIO_meth_new" = xyes
  9796. then :
  9797. AST_OPENSSL_BIO_METHOD_FOUND=yes
  9798. else $as_nop
  9799. AST_OPENSSL_BIO_METHOD_FOUND=no
  9800. fi
  9801. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  9802. # now check for the header.
  9803. if test "${AST_OPENSSL_BIO_METHOD_FOUND}" = "yes"; then
  9804. OPENSSL_BIO_METHOD_LIB="${pbxlibdir} -lssl -lcrypto"
  9805. # if --with-OPENSSL_BIO_METHOD=DIR has been specified, use it.
  9806. if test "x${OPENSSL_BIO_METHOD_DIR}" != "x"; then
  9807. OPENSSL_BIO_METHOD_INCLUDE="-I${OPENSSL_BIO_METHOD_DIR}/include"
  9808. fi
  9809. OPENSSL_BIO_METHOD_INCLUDE="${OPENSSL_BIO_METHOD_INCLUDE} "
  9810. # check for the header
  9811. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  9812. CPPFLAGS="${CPPFLAGS} ${OPENSSL_BIO_METHOD_INCLUDE}"
  9813. ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  9814. if test "x$ac_cv_header_openssl_ssl_h" = xyes
  9815. then :
  9816. OPENSSL_BIO_METHOD_HEADER_FOUND=1
  9817. else $as_nop
  9818. OPENSSL_BIO_METHOD_HEADER_FOUND=0
  9819. fi
  9820. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  9821. if test "x${OPENSSL_BIO_METHOD_HEADER_FOUND}" = "x0" ; then
  9822. OPENSSL_BIO_METHOD_LIB=""
  9823. OPENSSL_BIO_METHOD_INCLUDE=""
  9824. else
  9825. PBX_OPENSSL_BIO_METHOD=1
  9826. cat >>confdefs.h <<_ACEOF
  9827. #define HAVE_OPENSSL_BIO_METHOD 1
  9828. _ACEOF
  9829. fi
  9830. fi
  9831. fi
  9832. fi
  9833. fi
  9834. if test $PBX_OPENSSL -eq 0 ; then
  9835. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL does not seem to be installed" >&5
  9836. printf "%s\n" "$as_me: WARNING: OpenSSL does not seem to be installed" >&2;}
  9837. fi
  9838. if test "$JANSSON_BUNDLED" = "yes" ; then
  9839. if test "${ac_mandatory_list#*JANSSON*}" != "$ac_mandatory_list" ; then
  9840. as_fn_error $? "--with-jansson and --with-jansson-bundled can't both be specified" "$LINENO" 5
  9841. fi
  9842. ac_mandatory_list="$ac_mandatory_list JANSSON"
  9843. JANSSON_DIR="${ac_pwd}/third-party/jansson"
  9844. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for embedded jansson (may have to download)" >&5
  9845. printf %s "checking for embedded jansson (may have to download)... " >&6; }
  9846. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: configuring" >&5
  9847. printf "%s\n" "configuring" >&6; }
  9848. if test "x${DOWNLOAD_TO_STDOUT}" = "x" ; then
  9849. as_fn_error $? "A download utility (wget, curl, or fetch) is required to download bundled jansson" "$LINENO" 5
  9850. fi
  9851. if test "${BZIP2}" = ":" ; then
  9852. as_fn_error $? "bzip2 is required to extract the jansson tar file" "$LINENO" 5
  9853. fi
  9854. if test "${TAR}" = ":" ; then
  9855. as_fn_error $? "tar is required to extract the jansson tar file" "$LINENO" 5
  9856. fi
  9857. if test "${PATCH}" = ":" ; then
  9858. as_fn_error $? "patch is required to configure bundled jansson" "$LINENO" 5
  9859. fi
  9860. if test "${SED}" = ":" ; then
  9861. as_fn_error $? "sed is required to configure bundled jansson" "$LINENO" 5
  9862. fi
  9863. if test "${NM}" = ":" ; then
  9864. as_fn_error $? "nm is required to build bundled jansson" "$LINENO" 5
  9865. fi
  9866. if test "${MD5}" = ":" ; then
  9867. as_fn_error $? "md5sum is required to build bundled jansson" "$LINENO" 5
  9868. fi
  9869. if test "${CAT}" = ":" ; then
  9870. as_fn_error $? "cat is required to build bundled jansson" "$LINENO" 5
  9871. fi
  9872. if test "${CUT}" = ":" ; then
  9873. as_fn_error $? "cut is required to build bundled jansson" "$LINENO" 5
  9874. fi
  9875. if test "${GREP}" = ":" ; then
  9876. as_fn_error $? "grep is required to build bundled jansson" "$LINENO" 5
  9877. fi
  9878. this_host=$(./config.sub $(./config.guess))
  9879. if test "$build" != "$this_host" ; then
  9880. JANSSON_CONFIGURE_OPTS+=" --build=$build_alias"
  9881. fi
  9882. if test "$host" != "$this_host" ; then
  9883. JANSSON_CONFIGURE_OPTS+=" --host=$host_alias"
  9884. fi
  9885. export TAR PATCH SED NM EXTERNALS_CACHE_DIR AST_DOWNLOAD_CACHE DOWNLOAD_TO_STDOUT DOWNLOAD_TIMEOUT DOWNLOAD MD5 CAT CUT GREP
  9886. export NOISY_BUILD
  9887. ${GNU_MAKE} --quiet --no-print-directory -C ${JANSSON_DIR} \
  9888. JANSSON_CONFIGURE_OPTS="$JANSSON_CONFIGURE_OPTS" \
  9889. EXTERNALS_CACHE_DIR="${EXTERNALS_CACHE_DIR:-${AST_DOWNLOAD_CACHE}}" \
  9890. configure
  9891. if test $? -ne 0 ; then
  9892. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  9893. printf "%s\n" "failed" >&6; }
  9894. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Unable to configure ${JANSSON_DIR}" >&5
  9895. printf "%s\n" "$as_me: Unable to configure ${JANSSON_DIR}" >&6;}
  9896. as_fn_error $? "Re-run the ./configure command with 'NOISY_BUILD=yes' appended to see error details." "$LINENO" 5
  9897. fi
  9898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bundled jansson" >&5
  9899. printf %s "checking for bundled jansson... " >&6; }
  9900. JANSSON_INCLUDE=-I${JANSSON_DIR}/dist/usr/include
  9901. JANSSON_CFLAGS="$JANSSON_INCLUDE"
  9902. JANSSON_LIB="-L${JANSSON_DIR}/dist/usr/lib -ljansson"
  9903. PBX_JANSSON=1
  9904. # We haven't run install yet
  9905. # Define the ast_json_int_t (large integer type) to match jansson's
  9906. saved_cppflags="${CPPFLAGS}"
  9907. CPPFLAGS="${CPPFLAGS} ${JANSSON_INCLUDE}"
  9908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9909. /* end confdefs.h. */
  9910. #include <$JANSSON_DIR/source/src/jansson.h>
  9911. int
  9912. main (void)
  9913. {
  9914. #if !JSON_INTEGER_IS_LONG_LONG
  9915. #error "not long long"
  9916. #endif
  9917. ;
  9918. return 0;
  9919. }
  9920. _ACEOF
  9921. if ac_fn_c_try_compile "$LINENO"
  9922. then :
  9923. printf "%s\n" "#define AST_JSON_INT_T long long" >>confdefs.h
  9924. else $as_nop
  9925. printf "%s\n" "#define AST_JSON_INT_T long" >>confdefs.h
  9926. fi
  9927. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  9928. CPPFLAGS="${saved_cppflags}"
  9929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9930. printf "%s\n" "yes" >&6; }
  9931. printf "%s\n" "#define HAVE_JANSSON_BUNDLED 1" >>confdefs.h
  9932. fi
  9933. if test "$PJPROJECT_BUNDLED" = "yes" ; then
  9934. if test "${ac_mandatory_list#*PJPROJECT*}" != "$ac_mandatory_list" ; then
  9935. as_fn_error $? "--with-pjproject and --with-pjproject-bundled can't both be specified" "$LINENO" 5
  9936. fi
  9937. if test "${with_pjproject}" != "no" && test "${with_pjproject}" != "n" ; then
  9938. ac_mandatory_list="$ac_mandatory_list PJPROJECT"
  9939. PJPROJECT_DIR="${ac_top_build_prefix}third-party/pjproject"
  9940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for embedded pjproject (may have to download)" >&5
  9941. printf %s "checking for embedded pjproject (may have to download)... " >&6; }
  9942. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: configuring" >&5
  9943. printf "%s\n" "configuring" >&6; }
  9944. if test "x${DOWNLOAD_TO_STDOUT}" = "x" ; then
  9945. as_fn_error $? "A download utility (wget, curl, or fetch) is required to download bundled pjproject" "$LINENO" 5
  9946. fi
  9947. if test "${BZIP2}" = ":" ; then
  9948. as_fn_error $? "bzip2 is required to extract the pjproject tar file" "$LINENO" 5
  9949. fi
  9950. if test "${TAR}" = ":" ; then
  9951. as_fn_error $? "tar is required to extract the pjproject tar file" "$LINENO" 5
  9952. fi
  9953. if test "${PATCH}" = ":" ; then
  9954. as_fn_error $? "patch is required to configure bundled pjproject" "$LINENO" 5
  9955. fi
  9956. if test "${SED}" = ":" ; then
  9957. as_fn_error $? "sed is required to configure bundled pjproject" "$LINENO" 5
  9958. fi
  9959. if test "${NM}" = ":" ; then
  9960. as_fn_error $? "nm is required to build bundled pjproject" "$LINENO" 5
  9961. fi
  9962. if test "${MD5}" = ":" ; then
  9963. as_fn_error $? "md5sum is required to build bundled pjproject" "$LINENO" 5
  9964. fi
  9965. if test "${CAT}" = ":" ; then
  9966. as_fn_error $? "cat is required to build bundled pjproject" "$LINENO" 5
  9967. fi
  9968. if test "${CUT}" = ":" ; then
  9969. as_fn_error $? "cut is required to build bundled pjproject" "$LINENO" 5
  9970. fi
  9971. if test "${GREP}" = ":" ; then
  9972. as_fn_error $? "grep is required to build bundled pjproject" "$LINENO" 5
  9973. fi
  9974. if test "${FIND}" = ":" ; then
  9975. as_fn_error $? "find is required to build bundled pjproject" "$LINENO" 5
  9976. fi
  9977. if test "x${AST_DEVMODE}" != "x" ; then
  9978. if test "${REALPATH}" = ":" ; then
  9979. as_fn_error $? "realpath is required to build bundled pjproject in dev mode" "$LINENO" 5
  9980. fi
  9981. fi
  9982. this_host=$(./config.sub $(./config.guess))
  9983. if test "$build" != "$this_host" ; then
  9984. PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --build=$build_alias"
  9985. fi
  9986. if test "$host" != "$this_host" ; then
  9987. PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --host=$host_alias"
  9988. fi
  9989. # This was a copy of the autoconf generated code from the root ./configure.
  9990. # Hopefully, when you read this, the code is still the same.
  9991. if test "${with_ssl+set}" = set; then :
  9992. case $with_ssl in
  9993. n|no)
  9994. PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --disable-ssl"
  9995. ;;
  9996. y|ye|yes)
  9997. # Not to mention SSL is the default in PJProject and means "autodetect".
  9998. # In Asterisk, "./configure --with-ssl" means "must be present".
  9999. PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl"
  10000. ;;
  10001. *)
  10002. PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl=${with_ssl}"
  10003. ;;
  10004. esac
  10005. else
  10006. if test $PBX_OPENSSL -eq 1 ; then
  10007. PJPROJECT_CONFIGURE_OPTS="${PJPROJECT_CONFIGURE_OPTS} --with-ssl"
  10008. fi
  10009. fi
  10010. # Determine if we're doing an out-of-tree build...
  10011. if test -L ${PJPROJECT_DIR}/source -o -d ${PJPROJECT_DIR}/source/.git ; then
  10012. printf "%s\n" "#define HAVE_PJPROJECT_BUNDLED_OOT 1" >>confdefs.h
  10013. PJPROJECT_BUNDLED_OOT=yes
  10014. fi
  10015. export TAR PATCH SED NM EXTERNALS_CACHE_DIR AST_DOWNLOAD_CACHE DOWNLOAD_TO_STDOUT DOWNLOAD_TIMEOUT DOWNLOAD MD5 CAT CUT GREP FIND REALPATH
  10016. export NOISY_BUILD AST_DEVMODE
  10017. ${GNU_MAKE} --quiet --no-print-directory -C ${PJPROJECT_DIR} \
  10018. PJPROJECT_CONFIGURE_OPTS="$PJPROJECT_CONFIGURE_OPTS" \
  10019. EXTERNALS_CACHE_DIR="${EXTERNALS_CACHE_DIR:-${AST_DOWNLOAD_CACHE}}" \
  10020. PJPROJECT_BUNDLED_OOT="${PJPROJECT_BUNDLED_OOT}" \
  10021. configure
  10022. if test $? -ne 0 ; then
  10023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  10024. printf "%s\n" "failed" >&6; }
  10025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Unable to configure ${PJPROJECT_DIR}" >&5
  10026. printf "%s\n" "$as_me: Unable to configure ${PJPROJECT_DIR}" >&6;}
  10027. as_fn_error $? "Re-run the ./configure command with 'NOISY_BUILD=yes' appended to see error details." "$LINENO" 5
  10028. fi
  10029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bundled pjproject" >&5
  10030. printf %s "checking for bundled pjproject... " >&6; }
  10031. PJPROJECT_INCLUDE=$(${GNU_MAKE} --quiet --no-print-directory -C ${PJPROJECT_DIR} \
  10032. PJPROJECT_CONFIGURE_OPTS="$PJPROJECT_CONFIGURE_OPTS" \
  10033. EXTERNALS_CACHE_DIR="${EXTERNALS_CACHE_DIR:-${AST_DOWNLOAD_CACHE}}" \
  10034. PJPROJECT_BUNDLED_OOT="${PJPROJECT_BUNDLED_OOT}" \
  10035. echo_cflags)
  10036. PJPROJECT_CFLAGS="$PJPROJECT_INCLUDE"
  10037. PBX_PJPROJECT=1
  10038. printf "%s\n" "#define HAVE_PJPROJECT 1" >>confdefs.h
  10039. printf "%s\n" "#define HAVE_PJPROJECT_BUNDLED 1" >>confdefs.h
  10040. printf "%s\n" "#define HAVE_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK 1" >>confdefs.h
  10041. printf "%s\n" "#define HAVE_PJ_TRANSACTION_GRP_LOCK 1" >>confdefs.h
  10042. printf "%s\n" "#define HAVE_PJSIP_REPLACE_MEDIA_STREAM 1" >>confdefs.h
  10043. printf "%s\n" "#define HAVE_PJSIP_GET_DEST_INFO 1" >>confdefs.h
  10044. printf "%s\n" "#define HAVE_PJ_SSL_CERT_LOAD_FROM_FILES2 1" >>confdefs.h
  10045. printf "%s\n" "#define HAVE_PJSIP_EXTERNAL_RESOLVER 1" >>confdefs.h
  10046. printf "%s\n" "#define HAVE_PJSIP_TLS_TRANSPORT_PROTO 1" >>confdefs.h
  10047. printf "%s\n" "#define HAVE_PJSIP_TLS_1_1 1" >>confdefs.h
  10048. printf "%s\n" "#define HAVE_PJSIP_TLS_1_2 1" >>confdefs.h
  10049. printf "%s\n" "#define HAVE_PJSIP_TLS_1_3 1" >>confdefs.h
  10050. printf "%s\n" "#define HAVE_PJSIP_EVSUB_GRP_LOCK 1" >>confdefs.h
  10051. printf "%s\n" "#define HAVE_PJSIP_INV_SESSION_REF 1" >>confdefs.h
  10052. printf "%s\n" "#define HAVE_PJSIP_AUTH_CLT_DEINIT 1" >>confdefs.h
  10053. printf "%s\n" "#define HAVE_PJSIP_TSX_LAYER_FIND_TSX2 1" >>confdefs.h
  10054. printf "%s\n" "#define HAVE_PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS 1" >>confdefs.h
  10055. printf "%s\n" "#define HAVE_PJSIP_ENDPOINT_COMPACT_FORM 1" >>confdefs.h
  10056. printf "%s\n" "#define HAVE_PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE 1" >>confdefs.h
  10057. printf "%s\n" "#define HAVE_PJSIP_OAUTH_AUTHENTICATION 1" >>confdefs.h
  10058. printf "%s\n" "#define HAVE_PJPROJECT_ON_VALID_ICE_PAIR_CALLBACK 1" >>confdefs.h
  10059. printf "%s\n" "#define HAVE_PJSIP_TLS_TRANSPORT_RESTART 1" >>confdefs.h
  10060. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10061. printf "%s\n" "yes" >&6; }
  10062. fi
  10063. fi
  10064. if test "$LIBJWT_BUNDLED" = "yes" ; then
  10065. if test "${ac_mandatory_list#*LIBJWT*}" != "$ac_mandatory_list" ; then
  10066. as_fn_error $? "--with-libjwt and --with-libjwt-bundled can't both be specified" "$LINENO" 5
  10067. fi
  10068. ac_mandatory_list="$ac_mandatory_list LIBJWT"
  10069. LIBJWT_DIR="${ac_pwd}/third-party/libjwt"
  10070. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for embedded libjwt (may have to download)" >&5
  10071. printf %s "checking for embedded libjwt (may have to download)... " >&6; }
  10072. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: configuring" >&5
  10073. printf "%s\n" "configuring" >&6; }
  10074. if test "x${DOWNLOAD_TO_STDOUT}" = "x" ; then
  10075. as_fn_error $? "A download utility (wget, curl, or fetch) is required to download bundled libjwt" "$LINENO" 5
  10076. fi
  10077. if test "${GZIP}" = ":" ; then
  10078. as_fn_error $? "gzip is required to extract the libjwt tar file" "$LINENO" 5
  10079. fi
  10080. if test "${TAR}" = ":" ; then
  10081. as_fn_error $? "tar is required to extract the libjwt tar file" "$LINENO" 5
  10082. fi
  10083. if test "${PATCH}" = ":" ; then
  10084. as_fn_error $? "patch is required to configure bundled libjwt" "$LINENO" 5
  10085. fi
  10086. if test "${SED}" = ":" ; then
  10087. as_fn_error $? "sed is required to configure bundled libjwt" "$LINENO" 5
  10088. fi
  10089. if test "${NM}" = ":" ; then
  10090. as_fn_error $? "nm is required to build bundled libjwt" "$LINENO" 5
  10091. fi
  10092. if test "${MD5}" = ":" ; then
  10093. as_fn_error $? "md5sum is required to build bundled libjwt" "$LINENO" 5
  10094. fi
  10095. if test "${CAT}" = ":" ; then
  10096. as_fn_error $? "cat is required to build bundled libjwt" "$LINENO" 5
  10097. fi
  10098. if test "${CUT}" = ":" ; then
  10099. as_fn_error $? "cut is required to build bundled libjwt" "$LINENO" 5
  10100. fi
  10101. if test "${GREP}" = ":" ; then
  10102. as_fn_error $? "grep is required to build bundled libjwt" "$LINENO" 5
  10103. fi
  10104. this_host=$(./config.sub $(./config.guess))
  10105. if test "$build" != "$this_host" ; then
  10106. LIBJWT_CONFIGURE_OPTS+=" --build=$build_alias"
  10107. fi
  10108. if test "$host" != "$this_host" ; then
  10109. LIBJWT_CONFIGURE_OPTS+=" --host=$host_alias"
  10110. fi
  10111. export TAR PATCH SED NM EXTERNALS_CACHE_DIR AST_DOWNLOAD_CACHE DOWNLOAD_TO_STDOUT DOWNLOAD_TIMEOUT DOWNLOAD MD5 CAT CUT GREP
  10112. export NOISY_BUILD
  10113. export JANSSON_CFLAGS
  10114. export JANSSON_LIBS="${JANSSON_LIB}"
  10115. ${GNU_MAKE} --quiet --no-print-directory -C ${LIBJWT_DIR} \
  10116. LIBJWT_CONFIGURE_OPTS="$LIBJWT_CONFIGURE_OPTS" \
  10117. EXTERNALS_CACHE_DIR="${EXTERNALS_CACHE_DIR:-${AST_DOWNLOAD_CACHE}}" \
  10118. configure
  10119. if test $? -ne 0 ; then
  10120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  10121. printf "%s\n" "failed" >&6; }
  10122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Unable to configure ${LIBJWT_DIR}" >&5
  10123. printf "%s\n" "$as_me: Unable to configure ${LIBJWT_DIR}" >&6;}
  10124. as_fn_error $? "Re-run the ./configure command with 'NOISY_BUILD=yes' appended to see error details." "$LINENO" 5
  10125. fi
  10126. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bundled libjwt" >&5
  10127. printf %s "checking for bundled libjwt... " >&6; }
  10128. LIBJWT_INCLUDE=-I${LIBJWT_DIR}/dist/usr/include
  10129. LIBJWT_CFLAGS="$LIBJWT_INCLUDE"
  10130. LIBJWT_LIB="-L${LIBJWT_DIR}/dist/usr/lib -ljwt"
  10131. PBX_LIBJWT=1
  10132. # We haven't run install yet
  10133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10134. printf "%s\n" "yes" >&6; }
  10135. printf "%s\n" "#define HAVE_LIBJWT_BUNDLED 1" >>confdefs.h
  10136. fi
  10137. # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
  10138. # various packages.
  10139. # $1 is the prefix for the variables in makeopts and autoconfig.h
  10140. # $2 is the short comment, $4 is the long comment
  10141. # $3 is the name used in --with- or --without- flags for configure.
  10142. #
  10143. # Package option names should be in alphabetical order
  10144. # by the --with option name (the third field),
  10145. # to make things easier for the users.
  10146. BFD_DESCRIP="Debug symbol decoding"
  10147. BFD_OPTION="bfd"
  10148. PBX_BFD=0
  10149. # Check whether --with-bfd was given.
  10150. if test ${with_bfd+y}
  10151. then :
  10152. withval=$with_bfd;
  10153. case ${withval} in
  10154. n|no)
  10155. USE_BFD=no
  10156. # -1 is a magic value used by menuselect to know that the package
  10157. # was disabled, other than 'not found'
  10158. PBX_BFD=-1
  10159. ;;
  10160. y|ye|yes)
  10161. ac_mandatory_list="${ac_mandatory_list} BFD"
  10162. ;;
  10163. *)
  10164. BFD_DIR="${withval}"
  10165. ac_mandatory_list="${ac_mandatory_list} BFD"
  10166. ;;
  10167. esac
  10168. fi
  10169. # BKTR is used for backtrace support on platforms that do not
  10170. # have it natively.
  10171. BKTR_DESCRIP="Stack Backtrace"
  10172. BKTR_OPTION="execinfo"
  10173. PBX_BKTR=0
  10174. # Check whether --with-execinfo was given.
  10175. if test ${with_execinfo+y}
  10176. then :
  10177. withval=$with_execinfo;
  10178. case ${withval} in
  10179. n|no)
  10180. USE_BKTR=no
  10181. # -1 is a magic value used by menuselect to know that the package
  10182. # was disabled, other than 'not found'
  10183. PBX_BKTR=-1
  10184. ;;
  10185. y|ye|yes)
  10186. ac_mandatory_list="${ac_mandatory_list} BKTR"
  10187. ;;
  10188. *)
  10189. BKTR_DIR="${withval}"
  10190. ac_mandatory_list="${ac_mandatory_list} BKTR"
  10191. ;;
  10192. esac
  10193. fi
  10194. BLUETOOTH_DESCRIP="Bluetooth"
  10195. BLUETOOTH_OPTION="bluetooth"
  10196. PBX_BLUETOOTH=0
  10197. # Check whether --with-bluetooth was given.
  10198. if test ${with_bluetooth+y}
  10199. then :
  10200. withval=$with_bluetooth;
  10201. case ${withval} in
  10202. n|no)
  10203. USE_BLUETOOTH=no
  10204. # -1 is a magic value used by menuselect to know that the package
  10205. # was disabled, other than 'not found'
  10206. PBX_BLUETOOTH=-1
  10207. ;;
  10208. y|ye|yes)
  10209. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  10210. ;;
  10211. *)
  10212. BLUETOOTH_DIR="${withval}"
  10213. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  10214. ;;
  10215. esac
  10216. fi
  10217. CAP_DESCRIP="POSIX 1.e capabilities"
  10218. CAP_OPTION="cap"
  10219. PBX_CAP=0
  10220. # Check whether --with-cap was given.
  10221. if test ${with_cap+y}
  10222. then :
  10223. withval=$with_cap;
  10224. case ${withval} in
  10225. n|no)
  10226. USE_CAP=no
  10227. # -1 is a magic value used by menuselect to know that the package
  10228. # was disabled, other than 'not found'
  10229. PBX_CAP=-1
  10230. ;;
  10231. y|ye|yes)
  10232. ac_mandatory_list="${ac_mandatory_list} CAP"
  10233. ;;
  10234. *)
  10235. CAP_DIR="${withval}"
  10236. ac_mandatory_list="${ac_mandatory_list} CAP"
  10237. ;;
  10238. esac
  10239. fi
  10240. CODEC2_DESCRIP="Codec 2 Audio Decoder/Encoder"
  10241. CODEC2_OPTION="codec2"
  10242. PBX_CODEC2=0
  10243. # Check whether --with-codec2 was given.
  10244. if test ${with_codec2+y}
  10245. then :
  10246. withval=$with_codec2;
  10247. case ${withval} in
  10248. n|no)
  10249. USE_CODEC2=no
  10250. # -1 is a magic value used by menuselect to know that the package
  10251. # was disabled, other than 'not found'
  10252. PBX_CODEC2=-1
  10253. ;;
  10254. y|ye|yes)
  10255. ac_mandatory_list="${ac_mandatory_list} CODEC2"
  10256. ;;
  10257. *)
  10258. CODEC2_DIR="${withval}"
  10259. ac_mandatory_list="${ac_mandatory_list} CODEC2"
  10260. ;;
  10261. esac
  10262. fi
  10263. COROSYNC_DESCRIP="Corosync"
  10264. COROSYNC_OPTION="cpg"
  10265. PBX_COROSYNC=0
  10266. # Check whether --with-cpg was given.
  10267. if test ${with_cpg+y}
  10268. then :
  10269. withval=$with_cpg;
  10270. case ${withval} in
  10271. n|no)
  10272. USE_COROSYNC=no
  10273. # -1 is a magic value used by menuselect to know that the package
  10274. # was disabled, other than 'not found'
  10275. PBX_COROSYNC=-1
  10276. ;;
  10277. y|ye|yes)
  10278. ac_mandatory_list="${ac_mandatory_list} COROSYNC"
  10279. ;;
  10280. *)
  10281. COROSYNC_DIR="${withval}"
  10282. ac_mandatory_list="${ac_mandatory_list} COROSYNC"
  10283. ;;
  10284. esac
  10285. fi
  10286. COROSYNC_CFG_STATE_TRACK_DESCRIP="A callback only in corosync 1.x"
  10287. COROSYNC_CFG_STATE_TRACK_OPTION=cfg
  10288. COROSYNC_CFG_STATE_TRACK_DIR=${COROSYNC_DIR}
  10289. PBX_COROSYNC_CFG_STATE_TRACK=0
  10290. CRYPT_DESCRIP="password and data encryption"
  10291. CRYPT_OPTION="crypt"
  10292. PBX_CRYPT=0
  10293. # Check whether --with-crypt was given.
  10294. if test ${with_crypt+y}
  10295. then :
  10296. withval=$with_crypt;
  10297. case ${withval} in
  10298. n|no)
  10299. USE_CRYPT=no
  10300. # -1 is a magic value used by menuselect to know that the package
  10301. # was disabled, other than 'not found'
  10302. PBX_CRYPT=-1
  10303. ;;
  10304. y|ye|yes)
  10305. ac_mandatory_list="${ac_mandatory_list} CRYPT"
  10306. ;;
  10307. *)
  10308. CRYPT_DIR="${withval}"
  10309. ac_mandatory_list="${ac_mandatory_list} CRYPT"
  10310. ;;
  10311. esac
  10312. fi
  10313. DAHDI_DESCRIP="DAHDI"
  10314. DAHDI_OPTION="dahdi"
  10315. PBX_DAHDI=0
  10316. # Check whether --with-dahdi was given.
  10317. if test ${with_dahdi+y}
  10318. then :
  10319. withval=$with_dahdi;
  10320. case ${withval} in
  10321. n|no)
  10322. USE_DAHDI=no
  10323. # -1 is a magic value used by menuselect to know that the package
  10324. # was disabled, other than 'not found'
  10325. PBX_DAHDI=-1
  10326. ;;
  10327. y|ye|yes)
  10328. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  10329. ;;
  10330. *)
  10331. DAHDI_DIR="${withval}"
  10332. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  10333. ;;
  10334. esac
  10335. fi
  10336. FFMPEG_DESCRIP="Ffmpeg and avcodec"
  10337. FFMPEG_OPTION="avcodec"
  10338. PBX_FFMPEG=0
  10339. # Check whether --with-avcodec was given.
  10340. if test ${with_avcodec+y}
  10341. then :
  10342. withval=$with_avcodec;
  10343. case ${withval} in
  10344. n|no)
  10345. USE_FFMPEG=no
  10346. # -1 is a magic value used by menuselect to know that the package
  10347. # was disabled, other than 'not found'
  10348. PBX_FFMPEG=-1
  10349. ;;
  10350. y|ye|yes)
  10351. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  10352. ;;
  10353. *)
  10354. FFMPEG_DIR="${withval}"
  10355. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  10356. ;;
  10357. esac
  10358. fi
  10359. GSM_DESCRIP="External GSM"
  10360. GSM_OPTION="gsm"
  10361. PBX_GSM=0
  10362. # Check whether --with-gsm was given.
  10363. if test ${with_gsm+y}
  10364. then :
  10365. withval=$with_gsm;
  10366. case ${withval} in
  10367. n|no)
  10368. USE_GSM=no
  10369. # -1 is a magic value used by menuselect to know that the package
  10370. # was disabled, other than 'not found'
  10371. PBX_GSM=-1
  10372. ;;
  10373. y|ye|yes)
  10374. ac_mandatory_list="${ac_mandatory_list} GSM"
  10375. ;;
  10376. *)
  10377. GSM_DIR="${withval}"
  10378. ac_mandatory_list="${ac_mandatory_list} GSM"
  10379. ;;
  10380. esac
  10381. fi
  10382. ILBC_DESCRIP="System iLBC"
  10383. ILBC_OPTION="ilbc"
  10384. PBX_ILBC=0
  10385. # Check whether --with-ilbc was given.
  10386. if test ${with_ilbc+y}
  10387. then :
  10388. withval=$with_ilbc;
  10389. case ${withval} in
  10390. n|no)
  10391. USE_ILBC=no
  10392. # -1 is a magic value used by menuselect to know that the package
  10393. # was disabled, other than 'not found'
  10394. PBX_ILBC=-1
  10395. ;;
  10396. y|ye|yes)
  10397. ac_mandatory_list="${ac_mandatory_list} ILBC"
  10398. ;;
  10399. *)
  10400. ILBC_DIR="${withval}"
  10401. ac_mandatory_list="${ac_mandatory_list} ILBC"
  10402. ;;
  10403. esac
  10404. fi
  10405. GTK2_DESCRIP="gtk2"
  10406. GTK2_OPTION="gtk2"
  10407. PBX_GTK2=0
  10408. # Check whether --with-gtk2 was given.
  10409. if test ${with_gtk2+y}
  10410. then :
  10411. withval=$with_gtk2;
  10412. case ${withval} in
  10413. n|no)
  10414. USE_GTK2=no
  10415. # -1 is a magic value used by menuselect to know that the package
  10416. # was disabled, other than 'not found'
  10417. PBX_GTK2=-1
  10418. ;;
  10419. y|ye|yes)
  10420. ac_mandatory_list="${ac_mandatory_list} GTK2"
  10421. ;;
  10422. *)
  10423. GTK2_DIR="${withval}"
  10424. ac_mandatory_list="${ac_mandatory_list} GTK2"
  10425. ;;
  10426. esac
  10427. fi
  10428. GMIME_DESCRIP="GMime"
  10429. GMIME_OPTION="gmime"
  10430. PBX_GMIME=0
  10431. # Check whether --with-gmime was given.
  10432. if test ${with_gmime+y}
  10433. then :
  10434. withval=$with_gmime;
  10435. case ${withval} in
  10436. n|no)
  10437. USE_GMIME=no
  10438. # -1 is a magic value used by menuselect to know that the package
  10439. # was disabled, other than 'not found'
  10440. PBX_GMIME=-1
  10441. ;;
  10442. y|ye|yes)
  10443. ac_mandatory_list="${ac_mandatory_list} GMIME"
  10444. ;;
  10445. *)
  10446. GMIME_DIR="${withval}"
  10447. ac_mandatory_list="${ac_mandatory_list} GMIME"
  10448. ;;
  10449. esac
  10450. fi
  10451. HOARD_DESCRIP="Hoard Memory Allocator"
  10452. HOARD_OPTION="hoard"
  10453. PBX_HOARD=0
  10454. # Check whether --with-hoard was given.
  10455. if test ${with_hoard+y}
  10456. then :
  10457. withval=$with_hoard;
  10458. case ${withval} in
  10459. n|no)
  10460. USE_HOARD=no
  10461. # -1 is a magic value used by menuselect to know that the package
  10462. # was disabled, other than 'not found'
  10463. PBX_HOARD=-1
  10464. ;;
  10465. y|ye|yes)
  10466. ac_mandatory_list="${ac_mandatory_list} HOARD"
  10467. ;;
  10468. *)
  10469. HOARD_DIR="${withval}"
  10470. ac_mandatory_list="${ac_mandatory_list} HOARD"
  10471. ;;
  10472. esac
  10473. fi
  10474. ICAL_DESCRIP="iCal"
  10475. ICAL_OPTION="ical"
  10476. PBX_ICAL=0
  10477. # Check whether --with-ical was given.
  10478. if test ${with_ical+y}
  10479. then :
  10480. withval=$with_ical;
  10481. case ${withval} in
  10482. n|no)
  10483. USE_ICAL=no
  10484. # -1 is a magic value used by menuselect to know that the package
  10485. # was disabled, other than 'not found'
  10486. PBX_ICAL=-1
  10487. ;;
  10488. y|ye|yes)
  10489. ac_mandatory_list="${ac_mandatory_list} ICAL"
  10490. ;;
  10491. *)
  10492. ICAL_DIR="${withval}"
  10493. ac_mandatory_list="${ac_mandatory_list} ICAL"
  10494. ;;
  10495. esac
  10496. fi
  10497. ICONV_DESCRIP="Iconv"
  10498. ICONV_OPTION="iconv"
  10499. PBX_ICONV=0
  10500. # Check whether --with-iconv was given.
  10501. if test ${with_iconv+y}
  10502. then :
  10503. withval=$with_iconv;
  10504. case ${withval} in
  10505. n|no)
  10506. USE_ICONV=no
  10507. # -1 is a magic value used by menuselect to know that the package
  10508. # was disabled, other than 'not found'
  10509. PBX_ICONV=-1
  10510. ;;
  10511. y|ye|yes)
  10512. ac_mandatory_list="${ac_mandatory_list} ICONV"
  10513. ;;
  10514. *)
  10515. ICONV_DIR="${withval}"
  10516. ac_mandatory_list="${ac_mandatory_list} ICONV"
  10517. ;;
  10518. esac
  10519. fi
  10520. IKSEMEL_DESCRIP="Iksemel Jabber"
  10521. IKSEMEL_OPTION="iksemel"
  10522. PBX_IKSEMEL=0
  10523. # Check whether --with-iksemel was given.
  10524. if test ${with_iksemel+y}
  10525. then :
  10526. withval=$with_iksemel;
  10527. case ${withval} in
  10528. n|no)
  10529. USE_IKSEMEL=no
  10530. # -1 is a magic value used by menuselect to know that the package
  10531. # was disabled, other than 'not found'
  10532. PBX_IKSEMEL=-1
  10533. ;;
  10534. y|ye|yes)
  10535. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  10536. ;;
  10537. *)
  10538. IKSEMEL_DIR="${withval}"
  10539. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  10540. ;;
  10541. esac
  10542. fi
  10543. IMAP_TK_DESCRIP="UW IMAP Toolkit"
  10544. IMAP_TK_OPTION="imap"
  10545. PBX_IMAP_TK=0
  10546. # Check whether --with-imap was given.
  10547. if test ${with_imap+y}
  10548. then :
  10549. withval=$with_imap;
  10550. case ${withval} in
  10551. n|no)
  10552. USE_IMAP_TK=no
  10553. # -1 is a magic value used by menuselect to know that the package
  10554. # was disabled, other than 'not found'
  10555. PBX_IMAP_TK=-1
  10556. ;;
  10557. y|ye|yes)
  10558. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  10559. ;;
  10560. *)
  10561. IMAP_TK_DIR="${withval}"
  10562. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  10563. ;;
  10564. esac
  10565. fi
  10566. INOTIFY_DESCRIP="inotify support"
  10567. INOTIFY_OPTION="inotify"
  10568. PBX_INOTIFY=0
  10569. # Check whether --with-inotify was given.
  10570. if test ${with_inotify+y}
  10571. then :
  10572. withval=$with_inotify;
  10573. case ${withval} in
  10574. n|no)
  10575. USE_INOTIFY=no
  10576. # -1 is a magic value used by menuselect to know that the package
  10577. # was disabled, other than 'not found'
  10578. PBX_INOTIFY=-1
  10579. ;;
  10580. y|ye|yes)
  10581. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  10582. ;;
  10583. *)
  10584. INOTIFY_DIR="${withval}"
  10585. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  10586. ;;
  10587. esac
  10588. fi
  10589. IODBC_DESCRIP="iODBC"
  10590. IODBC_OPTION="iodbc"
  10591. PBX_IODBC=0
  10592. # Check whether --with-iodbc was given.
  10593. if test ${with_iodbc+y}
  10594. then :
  10595. withval=$with_iodbc;
  10596. case ${withval} in
  10597. n|no)
  10598. USE_IODBC=no
  10599. # -1 is a magic value used by menuselect to know that the package
  10600. # was disabled, other than 'not found'
  10601. PBX_IODBC=-1
  10602. ;;
  10603. y|ye|yes)
  10604. ac_mandatory_list="${ac_mandatory_list} IODBC"
  10605. ;;
  10606. *)
  10607. IODBC_DIR="${withval}"
  10608. ac_mandatory_list="${ac_mandatory_list} IODBC"
  10609. ;;
  10610. esac
  10611. fi
  10612. JACK_DESCRIP="Jack Audio Connection Kit"
  10613. JACK_OPTION="jack"
  10614. PBX_JACK=0
  10615. # Check whether --with-jack was given.
  10616. if test ${with_jack+y}
  10617. then :
  10618. withval=$with_jack;
  10619. case ${withval} in
  10620. n|no)
  10621. USE_JACK=no
  10622. # -1 is a magic value used by menuselect to know that the package
  10623. # was disabled, other than 'not found'
  10624. PBX_JACK=-1
  10625. ;;
  10626. y|ye|yes)
  10627. ac_mandatory_list="${ac_mandatory_list} JACK"
  10628. ;;
  10629. *)
  10630. JACK_DIR="${withval}"
  10631. ac_mandatory_list="${ac_mandatory_list} JACK"
  10632. ;;
  10633. esac
  10634. fi
  10635. JANSSON_DESCRIP="Jansson JSON library"
  10636. JANSSON_OPTION="jansson"
  10637. PBX_JANSSON=0
  10638. # Check whether --with-jansson was given.
  10639. if test ${with_jansson+y}
  10640. then :
  10641. withval=$with_jansson;
  10642. case ${withval} in
  10643. n|no)
  10644. USE_JANSSON=no
  10645. # -1 is a magic value used by menuselect to know that the package
  10646. # was disabled, other than 'not found'
  10647. PBX_JANSSON=-1
  10648. ;;
  10649. y|ye|yes)
  10650. ac_mandatory_list="${ac_mandatory_list} JANSSON"
  10651. ;;
  10652. *)
  10653. JANSSON_DIR="${withval}"
  10654. ac_mandatory_list="${ac_mandatory_list} JANSSON"
  10655. ;;
  10656. esac
  10657. fi
  10658. URIPARSER_DESCRIP="uriparser library"
  10659. URIPARSER_OPTION="uriparser"
  10660. PBX_URIPARSER=0
  10661. # Check whether --with-uriparser was given.
  10662. if test ${with_uriparser+y}
  10663. then :
  10664. withval=$with_uriparser;
  10665. case ${withval} in
  10666. n|no)
  10667. USE_URIPARSER=no
  10668. # -1 is a magic value used by menuselect to know that the package
  10669. # was disabled, other than 'not found'
  10670. PBX_URIPARSER=-1
  10671. ;;
  10672. y|ye|yes)
  10673. ac_mandatory_list="${ac_mandatory_list} URIPARSER"
  10674. ;;
  10675. *)
  10676. URIPARSER_DIR="${withval}"
  10677. ac_mandatory_list="${ac_mandatory_list} URIPARSER"
  10678. ;;
  10679. esac
  10680. fi
  10681. KQUEUE_DESCRIP="kqueue support"
  10682. KQUEUE_OPTION="kqueue"
  10683. PBX_KQUEUE=0
  10684. # Check whether --with-kqueue was given.
  10685. if test ${with_kqueue+y}
  10686. then :
  10687. withval=$with_kqueue;
  10688. case ${withval} in
  10689. n|no)
  10690. USE_KQUEUE=no
  10691. # -1 is a magic value used by menuselect to know that the package
  10692. # was disabled, other than 'not found'
  10693. PBX_KQUEUE=-1
  10694. ;;
  10695. y|ye|yes)
  10696. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  10697. ;;
  10698. *)
  10699. KQUEUE_DIR="${withval}"
  10700. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  10701. ;;
  10702. esac
  10703. fi
  10704. LDAP_DESCRIP="OpenLDAP"
  10705. LDAP_OPTION="ldap"
  10706. PBX_LDAP=0
  10707. # Check whether --with-ldap was given.
  10708. if test ${with_ldap+y}
  10709. then :
  10710. withval=$with_ldap;
  10711. case ${withval} in
  10712. n|no)
  10713. USE_LDAP=no
  10714. # -1 is a magic value used by menuselect to know that the package
  10715. # was disabled, other than 'not found'
  10716. PBX_LDAP=-1
  10717. ;;
  10718. y|ye|yes)
  10719. ac_mandatory_list="${ac_mandatory_list} LDAP"
  10720. ;;
  10721. *)
  10722. LDAP_DIR="${withval}"
  10723. ac_mandatory_list="${ac_mandatory_list} LDAP"
  10724. ;;
  10725. esac
  10726. fi
  10727. PBX_CURL=0
  10728. # Check whether --with-libcurl was given.
  10729. if test ${with_libcurl+y}
  10730. then :
  10731. withval=$with_libcurl; _libcurl_with=$withval
  10732. else $as_nop
  10733. _libcurl_with=yes
  10734. fi
  10735. if test "$_libcurl_with" != "no" ; then
  10736. for ac_prog in gawk mawk nawk awk
  10737. do
  10738. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10739. set dummy $ac_prog; ac_word=$2
  10740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10741. printf %s "checking for $ac_word... " >&6; }
  10742. if test ${ac_cv_prog_AWK+y}
  10743. then :
  10744. printf %s "(cached) " >&6
  10745. else $as_nop
  10746. if test -n "$AWK"; then
  10747. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  10748. else
  10749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10750. for as_dir in $PATH
  10751. do
  10752. IFS=$as_save_IFS
  10753. case $as_dir in #(((
  10754. '') as_dir=./ ;;
  10755. */) ;;
  10756. *) as_dir=$as_dir/ ;;
  10757. esac
  10758. for ac_exec_ext in '' $ac_executable_extensions; do
  10759. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10760. ac_cv_prog_AWK="$ac_prog"
  10761. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10762. break 2
  10763. fi
  10764. done
  10765. done
  10766. IFS=$as_save_IFS
  10767. fi
  10768. fi
  10769. AWK=$ac_cv_prog_AWK
  10770. if test -n "$AWK"; then
  10771. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  10772. printf "%s\n" "$AWK" >&6; }
  10773. else
  10774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10775. printf "%s\n" "no" >&6; }
  10776. fi
  10777. test -n "$AWK" && break
  10778. done
  10779. _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
  10780. _libcurl_try_link=yes
  10781. if test -d "$_libcurl_with" ; then
  10782. CURL_INCLUDE="-I$withval/include"
  10783. _libcurl_ldflags="-L$withval/lib"
  10784. # Extract the first word of "curl-config", so it can be a program name with args.
  10785. set dummy curl-config; ac_word=$2
  10786. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10787. printf %s "checking for $ac_word... " >&6; }
  10788. if test ${ac_cv_path__libcurl_config+y}
  10789. then :
  10790. printf %s "(cached) " >&6
  10791. else $as_nop
  10792. case $_libcurl_config in
  10793. [\\/]* | ?:[\\/]*)
  10794. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  10795. ;;
  10796. *)
  10797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10798. for as_dir in "$withval/bin"
  10799. do
  10800. IFS=$as_save_IFS
  10801. case $as_dir in #(((
  10802. '') as_dir=./ ;;
  10803. */) ;;
  10804. *) as_dir=$as_dir/ ;;
  10805. esac
  10806. for ac_exec_ext in '' $ac_executable_extensions; do
  10807. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10808. ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext"
  10809. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10810. break 2
  10811. fi
  10812. done
  10813. done
  10814. IFS=$as_save_IFS
  10815. ;;
  10816. esac
  10817. fi
  10818. _libcurl_config=$ac_cv_path__libcurl_config
  10819. if test -n "$_libcurl_config"; then
  10820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  10821. printf "%s\n" "$_libcurl_config" >&6; }
  10822. else
  10823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10824. printf "%s\n" "no" >&6; }
  10825. fi
  10826. else
  10827. # Extract the first word of "curl-config", so it can be a program name with args.
  10828. set dummy curl-config; ac_word=$2
  10829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10830. printf %s "checking for $ac_word... " >&6; }
  10831. if test ${ac_cv_path__libcurl_config+y}
  10832. then :
  10833. printf %s "(cached) " >&6
  10834. else $as_nop
  10835. case $_libcurl_config in
  10836. [\\/]* | ?:[\\/]*)
  10837. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  10838. ;;
  10839. *)
  10840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10841. for as_dir in $PATH
  10842. do
  10843. IFS=$as_save_IFS
  10844. case $as_dir in #(((
  10845. '') as_dir=./ ;;
  10846. */) ;;
  10847. *) as_dir=$as_dir/ ;;
  10848. esac
  10849. for ac_exec_ext in '' $ac_executable_extensions; do
  10850. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  10851. ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext"
  10852. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  10853. break 2
  10854. fi
  10855. done
  10856. done
  10857. IFS=$as_save_IFS
  10858. ;;
  10859. esac
  10860. fi
  10861. _libcurl_config=$ac_cv_path__libcurl_config
  10862. if test -n "$_libcurl_config"; then
  10863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  10864. printf "%s\n" "$_libcurl_config" >&6; }
  10865. else
  10866. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10867. printf "%s\n" "no" >&6; }
  10868. fi
  10869. fi
  10870. if test x$_libcurl_config != "x" ; then
  10871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
  10872. printf %s "checking for the version of libcurl... " >&6; }
  10873. if test ${libcurl_cv_lib_curl_version+y}
  10874. then :
  10875. printf %s "(cached) " >&6
  10876. else $as_nop
  10877. libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
  10878. fi
  10879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
  10880. printf "%s\n" "$libcurl_cv_lib_curl_version" >&6; }
  10881. _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
  10882. _libcurl_wanted=`echo 7.10.1 | $_libcurl_version_parse`
  10883. if test $_libcurl_wanted -gt 0 ; then
  10884. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.1" >&5
  10885. printf %s "checking for libcurl >= version 7.10.1... " >&6; }
  10886. if test ${libcurl_cv_lib_version_ok+y}
  10887. then :
  10888. printf %s "(cached) " >&6
  10889. else $as_nop
  10890. if test $_libcurl_version -ge $_libcurl_wanted ; then
  10891. libcurl_cv_lib_version_ok=yes
  10892. else
  10893. libcurl_cv_lib_version_ok=no
  10894. fi
  10895. fi
  10896. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
  10897. printf "%s\n" "$libcurl_cv_lib_version_ok" >&6; }
  10898. fi
  10899. if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
  10900. if test x"$CURL_INCLUDE" = "x" ; then
  10901. CURL_INCLUDE=`$_libcurl_config --cflags`
  10902. fi
  10903. if test x"$CURL_LIB" = "x" ; then
  10904. CURL_LIB=`$_libcurl_config --libs`
  10905. # This is so silly, but Apple actually has a bug in their
  10906. # curl-config script. Fixed in Tiger, but there are still
  10907. # lots of Panther installs around.
  10908. case "${host}" in
  10909. powerpc-apple-darwin7*)
  10910. CURL_LIB=`echo $CURL_LIB | sed -e 's|-arch i386||g'`
  10911. ;;
  10912. esac
  10913. fi
  10914. # All curl-config scripts support --feature
  10915. _libcurl_features=`$_libcurl_config --feature`
  10916. # Is it modern enough to have --protocols? (7.12.4)
  10917. if test $_libcurl_version -ge 461828 ; then
  10918. _libcurl_protocols=`$_libcurl_config --protocols`
  10919. fi
  10920. else
  10921. _libcurl_try_link=no
  10922. fi
  10923. unset _libcurl_wanted
  10924. fi
  10925. if test $_libcurl_try_link = yes ; then
  10926. # we didn't find curl-config, so let's see if the user-supplied
  10927. # link line (or failing that, "-lcurl") is enough.
  10928. CURL_LIB=${CURL_LIB-"$_libcurl_ldflags -lcurl"}
  10929. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
  10930. printf %s "checking whether libcurl is usable... " >&6; }
  10931. if test ${libcurl_cv_lib_curl_usable+y}
  10932. then :
  10933. printf %s "(cached) " >&6
  10934. else $as_nop
  10935. _libcurl_save_cppflags=$CPPFLAGS
  10936. CPPFLAGS="$CURL_INCLUDE $CPPFLAGS"
  10937. _libcurl_save_libs=$LIBS
  10938. LIBS="$CURL_LIB $LIBS"
  10939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10940. /* end confdefs.h. */
  10941. #include <curl/curl.h>
  10942. int
  10943. main (void)
  10944. {
  10945. /* Try and use a few common options to force a failure if we are
  10946. missing symbols or can't link. */
  10947. int x;
  10948. curl_easy_setopt(NULL,CURLOPT_URL,NULL);
  10949. x=CURL_ERROR_SIZE;
  10950. x=CURLOPT_WRITEFUNCTION;
  10951. x=CURLOPT_WRITEDATA;
  10952. x=CURLOPT_ERRORBUFFER;
  10953. x=CURLOPT_STDERR;
  10954. x=CURLOPT_VERBOSE;
  10955. if (x) {;}
  10956. ;
  10957. return 0;
  10958. }
  10959. _ACEOF
  10960. if ac_fn_c_try_link "$LINENO"
  10961. then :
  10962. libcurl_cv_lib_curl_usable=yes
  10963. else $as_nop
  10964. libcurl_cv_lib_curl_usable=no
  10965. fi
  10966. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  10967. conftest$ac_exeext conftest.$ac_ext
  10968. CPPFLAGS=$_libcurl_save_cppflags
  10969. LIBS=$_libcurl_save_libs
  10970. unset _libcurl_save_cppflags
  10971. unset _libcurl_save_libs
  10972. fi
  10973. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
  10974. printf "%s\n" "$libcurl_cv_lib_curl_usable" >&6; }
  10975. if test $libcurl_cv_lib_curl_usable = yes ; then
  10976. # Does curl_free() exist in this version of libcurl?
  10977. # If not, fake it with free()
  10978. _libcurl_save_cppflags=$CPPFLAGS
  10979. CPPFLAGS="$CPPFLAGS $CURL_INCLUDE"
  10980. _libcurl_save_libs=$LIBS
  10981. LIBS="$LIBS $CURL_LIB"
  10982. ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
  10983. if test "x$ac_cv_func_curl_free" = xyes
  10984. then :
  10985. else $as_nop
  10986. printf "%s\n" "#define curl_free free" >>confdefs.h
  10987. fi
  10988. CPPFLAGS=$_libcurl_save_cppflags
  10989. LIBS=$_libcurl_save_libs
  10990. unset _libcurl_save_cppflags
  10991. unset _libcurl_save_libs
  10992. printf "%s\n" "#define HAVE_CURL 1" >>confdefs.h
  10993. PBX_CURL=1
  10994. for _libcurl_feature in $_libcurl_features ; do
  10995. cat >>confdefs.h <<_ACEOF
  10996. #define `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
  10997. _ACEOF
  10998. eval `printf "%s\n" "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
  10999. done
  11000. if test "x$_libcurl_protocols" = "x" ; then
  11001. # We don't have --protocols, so just assume that all
  11002. # protocols are available
  11003. _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP"
  11004. if test x$libcurl_feature_SSL = xyes ; then
  11005. _libcurl_protocols="$_libcurl_protocols HTTPS"
  11006. # FTPS wasn't standards-compliant until version
  11007. # 7.11.0 (0x070b00 == 461568)
  11008. if test $_libcurl_version -ge 461568; then
  11009. _libcurl_protocols="$_libcurl_protocols FTPS"
  11010. fi
  11011. fi
  11012. # RTSP, IMAP, POP3 and SMTP were added in
  11013. # 7.20.0 (0x071400 == 463872)
  11014. if test $_libcurl_version -ge 463872; then
  11015. _libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP"
  11016. fi
  11017. fi
  11018. for _libcurl_protocol in $_libcurl_protocols ; do
  11019. cat >>confdefs.h <<_ACEOF
  11020. #define `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
  11021. _ACEOF
  11022. eval `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
  11023. done
  11024. else
  11025. unset CURL_LIB
  11026. unset CURL_INCLUDE
  11027. fi
  11028. fi
  11029. unset _libcurl_try_link
  11030. unset _libcurl_version_parse
  11031. unset _libcurl_config
  11032. unset _libcurl_feature
  11033. unset _libcurl_features
  11034. unset _libcurl_protocol
  11035. unset _libcurl_protocols
  11036. unset _libcurl_version
  11037. unset _libcurl_ldflags
  11038. fi
  11039. if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
  11040. # This is the IF-NO path
  11041. :
  11042. else
  11043. # This is the IF-YES path
  11044. :
  11045. fi
  11046. unset _libcurl_with
  11047. LIBEDIT_DESCRIP="NetBSD Editline library"
  11048. LIBEDIT_OPTION="libedit"
  11049. PBX_LIBEDIT=0
  11050. # Check whether --with-libedit was given.
  11051. if test ${with_libedit+y}
  11052. then :
  11053. withval=$with_libedit;
  11054. case ${withval} in
  11055. n|no)
  11056. USE_LIBEDIT=no
  11057. # -1 is a magic value used by menuselect to know that the package
  11058. # was disabled, other than 'not found'
  11059. PBX_LIBEDIT=-1
  11060. ;;
  11061. y|ye|yes)
  11062. ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
  11063. ;;
  11064. *)
  11065. LIBEDIT_DIR="${withval}"
  11066. ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
  11067. ;;
  11068. esac
  11069. fi
  11070. LIBEDIT_IS_UNICODE_DESCRIP="Libedit compiled for unicode"
  11071. LIBEDIT_IS_UNICODE_OPTION=libedit
  11072. LIBEDIT_IS_UNICODE_DIR=${LIBEDIT_DIR}
  11073. PBX_LIBEDIT_IS_UNICODE=0
  11074. LIBJWT_DESCRIP="LIBJWT"
  11075. LIBJWT_OPTION="libjwt"
  11076. PBX_LIBJWT=0
  11077. # Check whether --with-libjwt was given.
  11078. if test ${with_libjwt+y}
  11079. then :
  11080. withval=$with_libjwt;
  11081. case ${withval} in
  11082. n|no)
  11083. USE_LIBJWT=no
  11084. # -1 is a magic value used by menuselect to know that the package
  11085. # was disabled, other than 'not found'
  11086. PBX_LIBJWT=-1
  11087. ;;
  11088. y|ye|yes)
  11089. ac_mandatory_list="${ac_mandatory_list} LIBJWT"
  11090. ;;
  11091. *)
  11092. LIBJWT_DIR="${withval}"
  11093. ac_mandatory_list="${ac_mandatory_list} LIBJWT"
  11094. ;;
  11095. esac
  11096. fi
  11097. LIBXML2_DESCRIP="LibXML2"
  11098. LIBXML2_OPTION="libxml2"
  11099. PBX_LIBXML2=0
  11100. # Check whether --with-libxml2 was given.
  11101. if test ${with_libxml2+y}
  11102. then :
  11103. withval=$with_libxml2;
  11104. case ${withval} in
  11105. n|no)
  11106. USE_LIBXML2=no
  11107. # -1 is a magic value used by menuselect to know that the package
  11108. # was disabled, other than 'not found'
  11109. PBX_LIBXML2=-1
  11110. ;;
  11111. y|ye|yes)
  11112. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  11113. ;;
  11114. *)
  11115. LIBXML2_DIR="${withval}"
  11116. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  11117. ;;
  11118. esac
  11119. fi
  11120. LIBXSLT_DESCRIP="LibXSLT"
  11121. LIBXSLT_OPTION="libxslt"
  11122. PBX_LIBXSLT=0
  11123. # Check whether --with-libxslt was given.
  11124. if test ${with_libxslt+y}
  11125. then :
  11126. withval=$with_libxslt;
  11127. case ${withval} in
  11128. n|no)
  11129. USE_LIBXSLT=no
  11130. # -1 is a magic value used by menuselect to know that the package
  11131. # was disabled, other than 'not found'
  11132. PBX_LIBXSLT=-1
  11133. ;;
  11134. y|ye|yes)
  11135. ac_mandatory_list="${ac_mandatory_list} LIBXSLT"
  11136. ;;
  11137. *)
  11138. LIBXSLT_DIR="${withval}"
  11139. ac_mandatory_list="${ac_mandatory_list} LIBXSLT"
  11140. ;;
  11141. esac
  11142. fi
  11143. LIBXSLT_CLEANUP_DESCRIP="LibXSLT Library Cleanup Function"
  11144. LIBXSLT_CLEANUP_OPTION=libxslt
  11145. LIBXSLT_CLEANUP_DIR=${LIBXSLT_DIR}
  11146. PBX_LIBXSLT_CLEANUP=0
  11147. LUA_DESCRIP="Lua"
  11148. LUA_OPTION="lua"
  11149. PBX_LUA=0
  11150. # Check whether --with-lua was given.
  11151. if test ${with_lua+y}
  11152. then :
  11153. withval=$with_lua;
  11154. case ${withval} in
  11155. n|no)
  11156. USE_LUA=no
  11157. # -1 is a magic value used by menuselect to know that the package
  11158. # was disabled, other than 'not found'
  11159. PBX_LUA=-1
  11160. ;;
  11161. y|ye|yes)
  11162. ac_mandatory_list="${ac_mandatory_list} LUA"
  11163. ;;
  11164. *)
  11165. LUA_DIR="${withval}"
  11166. ac_mandatory_list="${ac_mandatory_list} LUA"
  11167. ;;
  11168. esac
  11169. fi
  11170. MYSQLCLIENT_DESCRIP="MySQL client"
  11171. MYSQLCLIENT_OPTION="mysqlclient"
  11172. PBX_MYSQLCLIENT=0
  11173. # Check whether --with-mysqlclient was given.
  11174. if test ${with_mysqlclient+y}
  11175. then :
  11176. withval=$with_mysqlclient;
  11177. case ${withval} in
  11178. n|no)
  11179. USE_MYSQLCLIENT=no
  11180. # -1 is a magic value used by menuselect to know that the package
  11181. # was disabled, other than 'not found'
  11182. PBX_MYSQLCLIENT=-1
  11183. ;;
  11184. y|ye|yes)
  11185. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  11186. ;;
  11187. *)
  11188. MYSQLCLIENT_DIR="${withval}"
  11189. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  11190. ;;
  11191. esac
  11192. fi
  11193. NEON_DESCRIP="neon"
  11194. NEON_OPTION="neon"
  11195. PBX_NEON=0
  11196. # Check whether --with-neon was given.
  11197. if test ${with_neon+y}
  11198. then :
  11199. withval=$with_neon;
  11200. case ${withval} in
  11201. n|no)
  11202. USE_NEON=no
  11203. # -1 is a magic value used by menuselect to know that the package
  11204. # was disabled, other than 'not found'
  11205. PBX_NEON=-1
  11206. ;;
  11207. y|ye|yes)
  11208. ac_mandatory_list="${ac_mandatory_list} NEON"
  11209. ;;
  11210. *)
  11211. NEON_DIR="${withval}"
  11212. ac_mandatory_list="${ac_mandatory_list} NEON"
  11213. ;;
  11214. esac
  11215. fi
  11216. NEON29_DESCRIP="neon29"
  11217. NEON29_OPTION="neon29"
  11218. PBX_NEON29=0
  11219. # Check whether --with-neon29 was given.
  11220. if test ${with_neon29+y}
  11221. then :
  11222. withval=$with_neon29;
  11223. case ${withval} in
  11224. n|no)
  11225. USE_NEON29=no
  11226. # -1 is a magic value used by menuselect to know that the package
  11227. # was disabled, other than 'not found'
  11228. PBX_NEON29=-1
  11229. ;;
  11230. y|ye|yes)
  11231. ac_mandatory_list="${ac_mandatory_list} NEON29"
  11232. ;;
  11233. *)
  11234. NEON29_DIR="${withval}"
  11235. ac_mandatory_list="${ac_mandatory_list} NEON29"
  11236. ;;
  11237. esac
  11238. fi
  11239. NETSNMP_DESCRIP="Net-SNMP"
  11240. NETSNMP_OPTION="netsnmp"
  11241. PBX_NETSNMP=0
  11242. # Check whether --with-netsnmp was given.
  11243. if test ${with_netsnmp+y}
  11244. then :
  11245. withval=$with_netsnmp;
  11246. case ${withval} in
  11247. n|no)
  11248. USE_NETSNMP=no
  11249. # -1 is a magic value used by menuselect to know that the package
  11250. # was disabled, other than 'not found'
  11251. PBX_NETSNMP=-1
  11252. ;;
  11253. y|ye|yes)
  11254. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  11255. ;;
  11256. *)
  11257. NETSNMP_DIR="${withval}"
  11258. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  11259. ;;
  11260. esac
  11261. fi
  11262. NEWT_DESCRIP="newt"
  11263. NEWT_OPTION="newt"
  11264. PBX_NEWT=0
  11265. # Check whether --with-newt was given.
  11266. if test ${with_newt+y}
  11267. then :
  11268. withval=$with_newt;
  11269. case ${withval} in
  11270. n|no)
  11271. USE_NEWT=no
  11272. # -1 is a magic value used by menuselect to know that the package
  11273. # was disabled, other than 'not found'
  11274. PBX_NEWT=-1
  11275. ;;
  11276. y|ye|yes)
  11277. ac_mandatory_list="${ac_mandatory_list} NEWT"
  11278. ;;
  11279. *)
  11280. NEWT_DIR="${withval}"
  11281. ac_mandatory_list="${ac_mandatory_list} NEWT"
  11282. ;;
  11283. esac
  11284. fi
  11285. OGG_DESCRIP="OGG"
  11286. OGG_OPTION="ogg"
  11287. PBX_OGG=0
  11288. # Check whether --with-ogg was given.
  11289. if test ${with_ogg+y}
  11290. then :
  11291. withval=$with_ogg;
  11292. case ${withval} in
  11293. n|no)
  11294. USE_OGG=no
  11295. # -1 is a magic value used by menuselect to know that the package
  11296. # was disabled, other than 'not found'
  11297. PBX_OGG=-1
  11298. ;;
  11299. y|ye|yes)
  11300. ac_mandatory_list="${ac_mandatory_list} OGG"
  11301. ;;
  11302. *)
  11303. OGG_DIR="${withval}"
  11304. ac_mandatory_list="${ac_mandatory_list} OGG"
  11305. ;;
  11306. esac
  11307. fi
  11308. OPENR2_DESCRIP="MFR2"
  11309. OPENR2_OPTION="openr2"
  11310. PBX_OPENR2=0
  11311. # Check whether --with-openr2 was given.
  11312. if test ${with_openr2+y}
  11313. then :
  11314. withval=$with_openr2;
  11315. case ${withval} in
  11316. n|no)
  11317. USE_OPENR2=no
  11318. # -1 is a magic value used by menuselect to know that the package
  11319. # was disabled, other than 'not found'
  11320. PBX_OPENR2=-1
  11321. ;;
  11322. y|ye|yes)
  11323. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  11324. ;;
  11325. *)
  11326. OPENR2_DIR="${withval}"
  11327. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  11328. ;;
  11329. esac
  11330. fi
  11331. OPUS_DESCRIP="Opus"
  11332. OPUS_OPTION="opus"
  11333. PBX_OPUS=0
  11334. # Check whether --with-opus was given.
  11335. if test ${with_opus+y}
  11336. then :
  11337. withval=$with_opus;
  11338. case ${withval} in
  11339. n|no)
  11340. USE_OPUS=no
  11341. # -1 is a magic value used by menuselect to know that the package
  11342. # was disabled, other than 'not found'
  11343. PBX_OPUS=-1
  11344. ;;
  11345. y|ye|yes)
  11346. ac_mandatory_list="${ac_mandatory_list} OPUS"
  11347. ;;
  11348. *)
  11349. OPUS_DIR="${withval}"
  11350. ac_mandatory_list="${ac_mandatory_list} OPUS"
  11351. ;;
  11352. esac
  11353. fi
  11354. OPUSFILE_DESCRIP="Opusfile"
  11355. OPUSFILE_OPTION="opusfile"
  11356. PBX_OPUSFILE=0
  11357. # Check whether --with-opusfile was given.
  11358. if test ${with_opusfile+y}
  11359. then :
  11360. withval=$with_opusfile;
  11361. case ${withval} in
  11362. n|no)
  11363. USE_OPUSFILE=no
  11364. # -1 is a magic value used by menuselect to know that the package
  11365. # was disabled, other than 'not found'
  11366. PBX_OPUSFILE=-1
  11367. ;;
  11368. y|ye|yes)
  11369. ac_mandatory_list="${ac_mandatory_list} OPUSFILE"
  11370. ;;
  11371. *)
  11372. OPUSFILE_DIR="${withval}"
  11373. ac_mandatory_list="${ac_mandatory_list} OPUSFILE"
  11374. ;;
  11375. esac
  11376. fi
  11377. PGSQL_DESCRIP="PostgreSQL"
  11378. PGSQL_OPTION="postgres"
  11379. PBX_PGSQL=0
  11380. # Check whether --with-postgres was given.
  11381. if test ${with_postgres+y}
  11382. then :
  11383. withval=$with_postgres;
  11384. case ${withval} in
  11385. n|no)
  11386. USE_PGSQL=no
  11387. # -1 is a magic value used by menuselect to know that the package
  11388. # was disabled, other than 'not found'
  11389. PBX_PGSQL=-1
  11390. ;;
  11391. y|ye|yes)
  11392. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  11393. ;;
  11394. *)
  11395. PGSQL_DIR="${withval}"
  11396. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  11397. ;;
  11398. esac
  11399. fi
  11400. BEANSTALK_DESCRIP="Beanstalk Job Queue"
  11401. BEANSTALK_OPTION="beanstalk"
  11402. PBX_BEANSTALK=0
  11403. # Check whether --with-beanstalk was given.
  11404. if test ${with_beanstalk+y}
  11405. then :
  11406. withval=$with_beanstalk;
  11407. case ${withval} in
  11408. n|no)
  11409. USE_BEANSTALK=no
  11410. # -1 is a magic value used by menuselect to know that the package
  11411. # was disabled, other than 'not found'
  11412. PBX_BEANSTALK=-1
  11413. ;;
  11414. y|ye|yes)
  11415. ac_mandatory_list="${ac_mandatory_list} BEANSTALK"
  11416. ;;
  11417. *)
  11418. BEANSTALK_DIR="${withval}"
  11419. ac_mandatory_list="${ac_mandatory_list} BEANSTALK"
  11420. ;;
  11421. esac
  11422. fi
  11423. if test "x${PBX_PJPROJECT}" != "x1" ; then
  11424. PJPROJECT_DESCRIP="PJPROJECT"
  11425. PJPROJECT_OPTION="pjproject"
  11426. PBX_PJPROJECT=0
  11427. # Check whether --with-pjproject was given.
  11428. if test ${with_pjproject+y}
  11429. then :
  11430. withval=$with_pjproject;
  11431. case ${withval} in
  11432. n|no)
  11433. USE_PJPROJECT=no
  11434. # -1 is a magic value used by menuselect to know that the package
  11435. # was disabled, other than 'not found'
  11436. PBX_PJPROJECT=-1
  11437. ;;
  11438. y|ye|yes)
  11439. ac_mandatory_list="${ac_mandatory_list} PJPROJECT"
  11440. ;;
  11441. *)
  11442. PJPROJECT_DIR="${withval}"
  11443. ac_mandatory_list="${ac_mandatory_list} PJPROJECT"
  11444. ;;
  11445. esac
  11446. fi
  11447. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_DESCRIP="PJSIP Dialog Create UAS with Incremented Lock"
  11448. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_OPTION=pjsip
  11449. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_DIR=${PJPROJECT_DIR}
  11450. PBX_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK=0
  11451. PJ_TRANSACTION_GRP_LOCK_DESCRIP="PJSIP Transaction Group Lock Support"
  11452. PJ_TRANSACTION_GRP_LOCK_OPTION=pjsip
  11453. PJ_TRANSACTION_GRP_LOCK_DIR=${PJPROJECT_DIR}
  11454. PBX_PJ_TRANSACTION_GRP_LOCK=0
  11455. PJSIP_REPLACE_MEDIA_STREAM_DESCRIP="PJSIP Media Stream Replacement Support"
  11456. PJSIP_REPLACE_MEDIA_STREAM_OPTION=pjsip
  11457. PJSIP_REPLACE_MEDIA_STREAM_DIR=${PJPROJECT_DIR}
  11458. PBX_PJSIP_REPLACE_MEDIA_STREAM=0
  11459. PJSIP_GET_DEST_INFO_DESCRIP="pjsip_get_dest_info support"
  11460. PJSIP_GET_DEST_INFO_OPTION=pjsip
  11461. PJSIP_GET_DEST_INFO_DIR=${PJPROJECT_DIR}
  11462. PBX_PJSIP_GET_DEST_INFO=0
  11463. PJ_SSL_CERT_LOAD_FROM_FILES2_DESCRIP="pj_ssl_cert_load_from_files2 support"
  11464. PJ_SSL_CERT_LOAD_FROM_FILES2_OPTION=pjsip
  11465. PJ_SSL_CERT_LOAD_FROM_FILES2_DIR=${PJPROJECT_DIR}
  11466. PBX_PJ_SSL_CERT_LOAD_FROM_FILES2=0
  11467. PJSIP_EXTERNAL_RESOLVER_DESCRIP="PJSIP External Resolver Support"
  11468. PJSIP_EXTERNAL_RESOLVER_OPTION=pjsip
  11469. PJSIP_EXTERNAL_RESOLVER_DIR=${PJPROJECT_DIR}
  11470. PBX_PJSIP_EXTERNAL_RESOLVER=0
  11471. PJSIP_TLS_TRANSPORT_PROTO_DESCRIP="PJSIP TLS Transport proto field support"
  11472. PJSIP_TLS_TRANSPORT_PROTO_OPTION=pjsip
  11473. PJSIP_TLS_TRANSPORT_PROTO_DIR=${PJPROJECT_DIR}
  11474. PBX_PJSIP_TLS_TRANSPORT_PROTO=0
  11475. PJSIP_TLS_1_1_DESCRIP="PJSIP TLS 1.1 Support"
  11476. PJSIP_TLS_1_1_OPTION=pjsip
  11477. PJSIP_TLS_1_1_DIR=${PJPROJECT_DIR}
  11478. PBX_PJSIP_TLS_1_1=0
  11479. PJSIP_TLS_1_2_DESCRIP="PJSIP TLS 1.2 Support"
  11480. PJSIP_TLS_1_2_OPTION=pjsip
  11481. PJSIP_TLS_1_2_DIR=${PJPROJECT_DIR}
  11482. PBX_PJSIP_TLS_1_2=0
  11483. PJSIP_TLS_1_3_DESCRIP="PJSIP TLS 1.3 Support"
  11484. PJSIP_TLS_1_3_OPTION=pjsip
  11485. PJSIP_TLS_1_3_DIR=${PJPROJECT_DIR}
  11486. PBX_PJSIP_TLS_1_3=0
  11487. PJSIP_EVSUB_GRP_LOCK_DESCRIP="PJSIP EVSUB Group Lock support"
  11488. PJSIP_EVSUB_GRP_LOCK_OPTION=pjsip
  11489. PJSIP_EVSUB_GRP_LOCK_DIR=${PJPROJECT_DIR}
  11490. PBX_PJSIP_EVSUB_GRP_LOCK=0
  11491. PJSIP_INV_SESSION_REF_DESCRIP="PJSIP INVITE Session Reference Count support"
  11492. PJSIP_INV_SESSION_REF_OPTION=pjsip
  11493. PJSIP_INV_SESSION_REF_DIR=${PJPROJECT_DIR}
  11494. PBX_PJSIP_INV_SESSION_REF=0
  11495. PJSIP_AUTH_CLT_DEINIT_DESCRIP="pjsip_auth_clt_deinit support"
  11496. PJSIP_AUTH_CLT_DEINIT_OPTION=pjsip
  11497. PJSIP_AUTH_CLT_DEINIT_DIR=${PJPROJECT_DIR}
  11498. PBX_PJSIP_AUTH_CLT_DEINIT=0
  11499. PJSIP_TSX_LAYER_FIND_TSX2_DESCRIP="pjsip_tsx_layer_find_tsx2 support"
  11500. PJSIP_TSX_LAYER_FIND_TSX2_OPTION=pjsip
  11501. PJSIP_TSX_LAYER_FIND_TSX2_DIR=${PJPROJECT_DIR}
  11502. PBX_PJSIP_TSX_LAYER_FIND_TSX2=0
  11503. PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_DESCRIP="PJSIP INVITE Accept Multiple SDP Answers"
  11504. PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_OPTION=pjsip
  11505. PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_DIR=${PJPROJECT_DIR}
  11506. PBX_PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS=0
  11507. PJSIP_ENDPOINT_COMPACT_FORM_DESCRIP="PJSIP Compact Form Support on Endpoint"
  11508. PJSIP_ENDPOINT_COMPACT_FORM_OPTION=pjsip
  11509. PJSIP_ENDPOINT_COMPACT_FORM_DIR=${PJPROJECT_DIR}
  11510. PBX_PJSIP_ENDPOINT_COMPACT_FORM=0
  11511. PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_DESCRIP="PJSIP Transport Connection Reuse Disabling"
  11512. PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_OPTION=pjsip
  11513. PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_DIR=${PJPROJECT_DIR}
  11514. PBX_PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE=0
  11515. PJSIP_OAUTH_AUTHENTICATION_DESCRIP="PJSIP OAuth Authentication Support"
  11516. PJSIP_OAUTH_AUTHENTICATION_OPTION=pjsip
  11517. PJSIP_OAUTH_AUTHENTICATION_DIR=${PJPROJECT_DIR}
  11518. PBX_PJSIP_OAUTH_AUTHENTICATION=0
  11519. PJSIP_TLS_TRANSPORT_RESTART_DESCRIP="PJSIP TLS Transport Restart Support"
  11520. PJSIP_TLS_TRANSPORT_RESTART_OPTION=pjsip
  11521. PJSIP_TLS_TRANSPORT_RESTART_DIR=${PJPROJECT_DIR}
  11522. PBX_PJSIP_TLS_TRANSPORT_RESTART=0
  11523. fi
  11524. POPT_DESCRIP="popt"
  11525. POPT_OPTION="popt"
  11526. PBX_POPT=0
  11527. # Check whether --with-popt was given.
  11528. if test ${with_popt+y}
  11529. then :
  11530. withval=$with_popt;
  11531. case ${withval} in
  11532. n|no)
  11533. USE_POPT=no
  11534. # -1 is a magic value used by menuselect to know that the package
  11535. # was disabled, other than 'not found'
  11536. PBX_POPT=-1
  11537. ;;
  11538. y|ye|yes)
  11539. ac_mandatory_list="${ac_mandatory_list} POPT"
  11540. ;;
  11541. *)
  11542. POPT_DIR="${withval}"
  11543. ac_mandatory_list="${ac_mandatory_list} POPT"
  11544. ;;
  11545. esac
  11546. fi
  11547. PORTAUDIO_DESCRIP="PortAudio"
  11548. PORTAUDIO_OPTION="portaudio"
  11549. PBX_PORTAUDIO=0
  11550. # Check whether --with-portaudio was given.
  11551. if test ${with_portaudio+y}
  11552. then :
  11553. withval=$with_portaudio;
  11554. case ${withval} in
  11555. n|no)
  11556. USE_PORTAUDIO=no
  11557. # -1 is a magic value used by menuselect to know that the package
  11558. # was disabled, other than 'not found'
  11559. PBX_PORTAUDIO=-1
  11560. ;;
  11561. y|ye|yes)
  11562. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  11563. ;;
  11564. *)
  11565. PORTAUDIO_DIR="${withval}"
  11566. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  11567. ;;
  11568. esac
  11569. fi
  11570. PRI_DESCRIP="ISDN PRI"
  11571. PRI_OPTION="pri"
  11572. PBX_PRI=0
  11573. # Check whether --with-pri was given.
  11574. if test ${with_pri+y}
  11575. then :
  11576. withval=$with_pri;
  11577. case ${withval} in
  11578. n|no)
  11579. USE_PRI=no
  11580. # -1 is a magic value used by menuselect to know that the package
  11581. # was disabled, other than 'not found'
  11582. PBX_PRI=-1
  11583. ;;
  11584. y|ye|yes)
  11585. ac_mandatory_list="${ac_mandatory_list} PRI"
  11586. ;;
  11587. *)
  11588. PRI_DIR="${withval}"
  11589. ac_mandatory_list="${ac_mandatory_list} PRI"
  11590. ;;
  11591. esac
  11592. fi
  11593. PRI_SETUP_ACK_INBAND_DESCRIP="ISDN PRI progress inband ie in SETUP ACK"
  11594. PRI_SETUP_ACK_INBAND_OPTION=pri
  11595. PRI_SETUP_ACK_INBAND_DIR=${PRI_DIR}
  11596. PBX_PRI_SETUP_ACK_INBAND=0
  11597. PRI_L2_PERSISTENCE_DESCRIP="ISDN Layer 2 persistence option"
  11598. PRI_L2_PERSISTENCE_OPTION=pri
  11599. PRI_L2_PERSISTENCE_DIR=${PRI_DIR}
  11600. PBX_PRI_L2_PERSISTENCE=0
  11601. PRI_DATETIME_SEND_DESCRIP="ISDN PRI Date/time ie send policy"
  11602. PRI_DATETIME_SEND_OPTION=pri
  11603. PRI_DATETIME_SEND_DIR=${PRI_DIR}
  11604. PBX_PRI_DATETIME_SEND=0
  11605. PRI_MWI_V2_DESCRIP="ISDN PRI Message Waiting Indication (Fixed)"
  11606. PRI_MWI_V2_OPTION=pri
  11607. PRI_MWI_V2_DIR=${PRI_DIR}
  11608. PBX_PRI_MWI_V2=0
  11609. PRI_DISPLAY_TEXT_DESCRIP="ISDN PRI user display text IE contents during call"
  11610. PRI_DISPLAY_TEXT_OPTION=pri
  11611. PRI_DISPLAY_TEXT_DIR=${PRI_DIR}
  11612. PBX_PRI_DISPLAY_TEXT=0
  11613. PRI_MWI_DESCRIP="ISDN PRI Message Waiting Indication"
  11614. PRI_MWI_OPTION=pri
  11615. PRI_MWI_DIR=${PRI_DIR}
  11616. PBX_PRI_MWI=0
  11617. PRI_MCID_DESCRIP="ISDN PRI Malicious Call ID"
  11618. PRI_MCID_OPTION=pri
  11619. PRI_MCID_DIR=${PRI_DIR}
  11620. PBX_PRI_MCID=0
  11621. PRI_CALL_WAITING_DESCRIP="ISDN PRI call waiting supplementary service"
  11622. PRI_CALL_WAITING_OPTION=pri
  11623. PRI_CALL_WAITING_DIR=${PRI_DIR}
  11624. PBX_PRI_CALL_WAITING=0
  11625. PRI_AOC_EVENTS_DESCRIP="ISDN PRI advice of charge supplementary service events"
  11626. PRI_AOC_EVENTS_OPTION=pri
  11627. PRI_AOC_EVENTS_DIR=${PRI_DIR}
  11628. PBX_PRI_AOC_EVENTS=0
  11629. PRI_TRANSFER_DESCRIP="ISDN PRI call transfer supplementary service"
  11630. PRI_TRANSFER_OPTION=pri
  11631. PRI_TRANSFER_DIR=${PRI_DIR}
  11632. PBX_PRI_TRANSFER=0
  11633. PRI_CCSS_DESCRIP="ISDN PRI call completion supplementary service"
  11634. PRI_CCSS_OPTION=pri
  11635. PRI_CCSS_DIR=${PRI_DIR}
  11636. PBX_PRI_CCSS=0
  11637. PRI_HANGUP_FIX_DESCRIP="ISDN PRI hangup fix"
  11638. PRI_HANGUP_FIX_OPTION=pri
  11639. PRI_HANGUP_FIX_DIR=${PRI_DIR}
  11640. PBX_PRI_HANGUP_FIX=0
  11641. PRI_SUBADDR_DESCRIP="ISDN PRI subaddressing"
  11642. PRI_SUBADDR_OPTION=pri
  11643. PRI_SUBADDR_DIR=${PRI_DIR}
  11644. PBX_PRI_SUBADDR=0
  11645. PRI_CALL_HOLD_DESCRIP="ISDN PRI call hold"
  11646. PRI_CALL_HOLD_OPTION=pri
  11647. PRI_CALL_HOLD_DIR=${PRI_DIR}
  11648. PBX_PRI_CALL_HOLD=0
  11649. PRI_CALL_REROUTING_DESCRIP="ISDN PRI call rerouting and call deflection"
  11650. PRI_CALL_REROUTING_OPTION=pri
  11651. PRI_CALL_REROUTING_DIR=${PRI_DIR}
  11652. PBX_PRI_CALL_REROUTING=0
  11653. PRI_SETUP_KEYPAD_DESCRIP="ISDN PRI keypad facility in SETUP"
  11654. PRI_SETUP_KEYPAD_OPTION=pri
  11655. PRI_SETUP_KEYPAD_DIR=${PRI_DIR}
  11656. PBX_PRI_SETUP_KEYPAD=0
  11657. # ------------------------------------v
  11658. # TODO: The code can be changed to always include these features now.
  11659. # These features will always be present if pri_connected_line_update is available.
  11660. PRI_INBANDDISCONNECT_DESCRIP="ISDN PRI set_inbanddisconnect"
  11661. PRI_INBANDDISCONNECT_OPTION=pri
  11662. PRI_INBANDDISCONNECT_DIR=${PRI_DIR}
  11663. PBX_PRI_INBANDDISCONNECT=0
  11664. PRI_PROG_W_CAUSE_DESCRIP="ISDN progress with cause"
  11665. PRI_PROG_W_CAUSE_OPTION=pri
  11666. PRI_PROG_W_CAUSE_DIR=${PRI_DIR}
  11667. PBX_PRI_PROG_W_CAUSE=0
  11668. PRI_SERVICE_MESSAGES_DESCRIP="ISDN service messages"
  11669. PRI_SERVICE_MESSAGES_OPTION=pri
  11670. PRI_SERVICE_MESSAGES_DIR=${PRI_DIR}
  11671. PBX_PRI_SERVICE_MESSAGES=0
  11672. PRI_REVERSE_CHARGE_DESCRIP="ISDN reverse charge"
  11673. PRI_REVERSE_CHARGE_OPTION=pri
  11674. PRI_REVERSE_CHARGE_DIR=${PRI_DIR}
  11675. PBX_PRI_REVERSE_CHARGE=0
  11676. # ------------------------------------^
  11677. RADIUS_DESCRIP="Radius Client"
  11678. RADIUS_OPTION="radius"
  11679. PBX_RADIUS=0
  11680. # Check whether --with-radius was given.
  11681. if test ${with_radius+y}
  11682. then :
  11683. withval=$with_radius;
  11684. case ${withval} in
  11685. n|no)
  11686. USE_RADIUS=no
  11687. # -1 is a magic value used by menuselect to know that the package
  11688. # was disabled, other than 'not found'
  11689. PBX_RADIUS=-1
  11690. ;;
  11691. y|ye|yes)
  11692. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  11693. ;;
  11694. *)
  11695. RADIUS_DIR="${withval}"
  11696. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  11697. ;;
  11698. esac
  11699. fi
  11700. FFTW3_DESCRIP="LIBFFTW3"
  11701. FFTW3_OPTION="fftw3"
  11702. PBX_FFTW3=0
  11703. # Check whether --with-fftw3 was given.
  11704. if test ${with_fftw3+y}
  11705. then :
  11706. withval=$with_fftw3;
  11707. case ${withval} in
  11708. n|no)
  11709. USE_FFTW3=no
  11710. # -1 is a magic value used by menuselect to know that the package
  11711. # was disabled, other than 'not found'
  11712. PBX_FFTW3=-1
  11713. ;;
  11714. y|ye|yes)
  11715. ac_mandatory_list="${ac_mandatory_list} FFTW3"
  11716. ;;
  11717. *)
  11718. FFTW3_DIR="${withval}"
  11719. ac_mandatory_list="${ac_mandatory_list} FFTW3"
  11720. ;;
  11721. esac
  11722. fi
  11723. RESAMPLE_DESCRIP="LIBRESAMPLE"
  11724. RESAMPLE_OPTION="resample"
  11725. PBX_RESAMPLE=0
  11726. # Check whether --with-resample was given.
  11727. if test ${with_resample+y}
  11728. then :
  11729. withval=$with_resample;
  11730. case ${withval} in
  11731. n|no)
  11732. USE_RESAMPLE=no
  11733. # -1 is a magic value used by menuselect to know that the package
  11734. # was disabled, other than 'not found'
  11735. PBX_RESAMPLE=-1
  11736. ;;
  11737. y|ye|yes)
  11738. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  11739. ;;
  11740. *)
  11741. RESAMPLE_DIR="${withval}"
  11742. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  11743. ;;
  11744. esac
  11745. fi
  11746. SNDFILE_DESCRIP="libsndfile"
  11747. SNDFILE_OPTION="sndfile"
  11748. PBX_SNDFILE=0
  11749. # Check whether --with-sndfile was given.
  11750. if test ${with_sndfile+y}
  11751. then :
  11752. withval=$with_sndfile;
  11753. case ${withval} in
  11754. n|no)
  11755. USE_SNDFILE=no
  11756. # -1 is a magic value used by menuselect to know that the package
  11757. # was disabled, other than 'not found'
  11758. PBX_SNDFILE=-1
  11759. ;;
  11760. y|ye|yes)
  11761. ac_mandatory_list="${ac_mandatory_list} SNDFILE"
  11762. ;;
  11763. *)
  11764. SNDFILE_DIR="${withval}"
  11765. ac_mandatory_list="${ac_mandatory_list} SNDFILE"
  11766. ;;
  11767. esac
  11768. fi
  11769. SDL_DESCRIP="Sdl"
  11770. SDL_OPTION="sdl"
  11771. PBX_SDL=0
  11772. # Check whether --with-sdl was given.
  11773. if test ${with_sdl+y}
  11774. then :
  11775. withval=$with_sdl;
  11776. case ${withval} in
  11777. n|no)
  11778. USE_SDL=no
  11779. # -1 is a magic value used by menuselect to know that the package
  11780. # was disabled, other than 'not found'
  11781. PBX_SDL=-1
  11782. ;;
  11783. y|ye|yes)
  11784. ac_mandatory_list="${ac_mandatory_list} SDL"
  11785. ;;
  11786. *)
  11787. SDL_DIR="${withval}"
  11788. ac_mandatory_list="${ac_mandatory_list} SDL"
  11789. ;;
  11790. esac
  11791. fi
  11792. SDL_IMAGE_DESCRIP="Sdl Image"
  11793. SDL_IMAGE_OPTION="SDL_image"
  11794. PBX_SDL_IMAGE=0
  11795. # Check whether --with-SDL_image was given.
  11796. if test ${with_SDL_image+y}
  11797. then :
  11798. withval=$with_SDL_image;
  11799. case ${withval} in
  11800. n|no)
  11801. USE_SDL_IMAGE=no
  11802. # -1 is a magic value used by menuselect to know that the package
  11803. # was disabled, other than 'not found'
  11804. PBX_SDL_IMAGE=-1
  11805. ;;
  11806. y|ye|yes)
  11807. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  11808. ;;
  11809. *)
  11810. SDL_IMAGE_DIR="${withval}"
  11811. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  11812. ;;
  11813. esac
  11814. fi
  11815. SPANDSP_DESCRIP="SPANDSP"
  11816. SPANDSP_OPTION="spandsp"
  11817. PBX_SPANDSP=0
  11818. # Check whether --with-spandsp was given.
  11819. if test ${with_spandsp+y}
  11820. then :
  11821. withval=$with_spandsp;
  11822. case ${withval} in
  11823. n|no)
  11824. USE_SPANDSP=no
  11825. # -1 is a magic value used by menuselect to know that the package
  11826. # was disabled, other than 'not found'
  11827. PBX_SPANDSP=-1
  11828. ;;
  11829. y|ye|yes)
  11830. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  11831. ;;
  11832. *)
  11833. SPANDSP_DIR="${withval}"
  11834. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  11835. ;;
  11836. esac
  11837. fi
  11838. SS7_DESCRIP="ISDN SS7"
  11839. SS7_OPTION="ss7"
  11840. PBX_SS7=0
  11841. # Check whether --with-ss7 was given.
  11842. if test ${with_ss7+y}
  11843. then :
  11844. withval=$with_ss7;
  11845. case ${withval} in
  11846. n|no)
  11847. USE_SS7=no
  11848. # -1 is a magic value used by menuselect to know that the package
  11849. # was disabled, other than 'not found'
  11850. PBX_SS7=-1
  11851. ;;
  11852. y|ye|yes)
  11853. ac_mandatory_list="${ac_mandatory_list} SS7"
  11854. ;;
  11855. *)
  11856. SS7_DIR="${withval}"
  11857. ac_mandatory_list="${ac_mandatory_list} SS7"
  11858. ;;
  11859. esac
  11860. fi
  11861. SPEEX_DESCRIP="Speex"
  11862. SPEEX_OPTION="speex"
  11863. PBX_SPEEX=0
  11864. # Check whether --with-speex was given.
  11865. if test ${with_speex+y}
  11866. then :
  11867. withval=$with_speex;
  11868. case ${withval} in
  11869. n|no)
  11870. USE_SPEEX=no
  11871. # -1 is a magic value used by menuselect to know that the package
  11872. # was disabled, other than 'not found'
  11873. PBX_SPEEX=-1
  11874. ;;
  11875. y|ye|yes)
  11876. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  11877. ;;
  11878. *)
  11879. SPEEX_DIR="${withval}"
  11880. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  11881. ;;
  11882. esac
  11883. fi
  11884. SPEEX_PREPROCESS_DESCRIP="Speex preprocess routines"
  11885. SPEEX_PREPROCESS_OPTION="speex"
  11886. PBX_SPEEX_PREPROCESS=0
  11887. # Check whether --with-speex was given.
  11888. if test ${with_speex+y}
  11889. then :
  11890. withval=$with_speex;
  11891. case ${withval} in
  11892. n|no)
  11893. USE_SPEEX_PREPROCESS=no
  11894. # -1 is a magic value used by menuselect to know that the package
  11895. # was disabled, other than 'not found'
  11896. PBX_SPEEX_PREPROCESS=-1
  11897. ;;
  11898. y|ye|yes)
  11899. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  11900. ;;
  11901. *)
  11902. SPEEX_PREPROCESS_DIR="${withval}"
  11903. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  11904. ;;
  11905. esac
  11906. fi
  11907. SPEEXDSP_DESCRIP="SpeexDSP"
  11908. SPEEXDSP_OPTION="speexdsp"
  11909. PBX_SPEEXDSP=0
  11910. # Check whether --with-speexdsp was given.
  11911. if test ${with_speexdsp+y}
  11912. then :
  11913. withval=$with_speexdsp;
  11914. case ${withval} in
  11915. n|no)
  11916. USE_SPEEXDSP=no
  11917. # -1 is a magic value used by menuselect to know that the package
  11918. # was disabled, other than 'not found'
  11919. PBX_SPEEXDSP=-1
  11920. ;;
  11921. y|ye|yes)
  11922. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  11923. ;;
  11924. *)
  11925. SPEEXDSP_DIR="${withval}"
  11926. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  11927. ;;
  11928. esac
  11929. fi
  11930. SPEEX_PREPROCESS_DESCRIP="speex_preprocess_ctl"
  11931. SPEEX_PREPROCESS_OPTION=speex
  11932. PBX_SPEEX_PREPROCESS=0
  11933. SQLITE3_DESCRIP="SQLite"
  11934. SQLITE3_OPTION="sqlite3"
  11935. PBX_SQLITE3=0
  11936. # Check whether --with-sqlite3 was given.
  11937. if test ${with_sqlite3+y}
  11938. then :
  11939. withval=$with_sqlite3;
  11940. case ${withval} in
  11941. n|no)
  11942. USE_SQLITE3=no
  11943. # -1 is a magic value used by menuselect to know that the package
  11944. # was disabled, other than 'not found'
  11945. PBX_SQLITE3=-1
  11946. ;;
  11947. y|ye|yes)
  11948. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  11949. ;;
  11950. *)
  11951. SQLITE3_DIR="${withval}"
  11952. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  11953. ;;
  11954. esac
  11955. fi
  11956. SRTP_DESCRIP="Secure RTP"
  11957. SRTP_OPTION="srtp"
  11958. PBX_SRTP=0
  11959. # Check whether --with-srtp was given.
  11960. if test ${with_srtp+y}
  11961. then :
  11962. withval=$with_srtp;
  11963. case ${withval} in
  11964. n|no)
  11965. USE_SRTP=no
  11966. # -1 is a magic value used by menuselect to know that the package
  11967. # was disabled, other than 'not found'
  11968. PBX_SRTP=-1
  11969. ;;
  11970. y|ye|yes)
  11971. ac_mandatory_list="${ac_mandatory_list} SRTP"
  11972. ;;
  11973. *)
  11974. SRTP_DIR="${withval}"
  11975. ac_mandatory_list="${ac_mandatory_list} SRTP"
  11976. ;;
  11977. esac
  11978. fi
  11979. SRTP_256_DESCRIP="SRTP Library AES-256 (ICM)"
  11980. SRTP_256_OPTION=srtp
  11981. SRTP_256_DIR=${SRTP_DIR}
  11982. PBX_SRTP_256=0
  11983. SRTP_192_DESCRIP="SRTP Library AES-192 (ICM)"
  11984. SRTP_192_OPTION=srtp
  11985. SRTP_192_DIR=${SRTP_DIR}
  11986. PBX_SRTP_192=0
  11987. SRTP_GCM_DESCRIP="SRTP Library AES-128 (GCM) and AES-256 (GCM)"
  11988. SRTP_GCM_OPTION=srtp
  11989. SRTP_GCM_DIR=${SRTP_DIR}
  11990. PBX_SRTP_GCM=0
  11991. SRTP_SHUTDOWN_DESCRIP="SRTP Library Shutdown Function"
  11992. SRTP_SHUTDOWN_OPTION=srtp
  11993. SRTP_SHUTDOWN_DIR=${SRTP_DIR}
  11994. PBX_SRTP_SHUTDOWN=0
  11995. SRTP_GET_VERSION_DESCRIP="SRTP Library Version Function"
  11996. SRTP_GET_VERSION_OPTION=srtp
  11997. SRTP_GET_VERSION_DIR=${SRTP_DIR}
  11998. PBX_SRTP_GET_VERSION=0
  11999. RT_DESCRIP="Realtime functions"
  12000. RT_DIR=${rt_DIR}
  12001. PBX_RT=0
  12002. FREETDS_DESCRIP="FreeTDS"
  12003. FREETDS_OPTION="tds"
  12004. PBX_FREETDS=0
  12005. # Check whether --with-tds was given.
  12006. if test ${with_tds+y}
  12007. then :
  12008. withval=$with_tds;
  12009. case ${withval} in
  12010. n|no)
  12011. USE_FREETDS=no
  12012. # -1 is a magic value used by menuselect to know that the package
  12013. # was disabled, other than 'not found'
  12014. PBX_FREETDS=-1
  12015. ;;
  12016. y|ye|yes)
  12017. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  12018. ;;
  12019. *)
  12020. FREETDS_DIR="${withval}"
  12021. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  12022. ;;
  12023. esac
  12024. fi
  12025. TIMERFD_DESCRIP="timerfd"
  12026. TIMERFD_OPTION="timerfd"
  12027. PBX_TIMERFD=0
  12028. # Check whether --with-timerfd was given.
  12029. if test ${with_timerfd+y}
  12030. then :
  12031. withval=$with_timerfd;
  12032. case ${withval} in
  12033. n|no)
  12034. USE_TIMERFD=no
  12035. # -1 is a magic value used by menuselect to know that the package
  12036. # was disabled, other than 'not found'
  12037. PBX_TIMERFD=-1
  12038. ;;
  12039. y|ye|yes)
  12040. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  12041. ;;
  12042. *)
  12043. TIMERFD_DIR="${withval}"
  12044. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  12045. ;;
  12046. esac
  12047. fi
  12048. TONEZONE_DESCRIP="tonezone"
  12049. TONEZONE_OPTION="tonezone"
  12050. PBX_TONEZONE=0
  12051. # Check whether --with-tonezone was given.
  12052. if test ${with_tonezone+y}
  12053. then :
  12054. withval=$with_tonezone;
  12055. case ${withval} in
  12056. n|no)
  12057. USE_TONEZONE=no
  12058. # -1 is a magic value used by menuselect to know that the package
  12059. # was disabled, other than 'not found'
  12060. PBX_TONEZONE=-1
  12061. ;;
  12062. y|ye|yes)
  12063. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  12064. ;;
  12065. *)
  12066. TONEZONE_DIR="${withval}"
  12067. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  12068. ;;
  12069. esac
  12070. fi
  12071. UNBOUND_DESCRIP="unbound"
  12072. UNBOUND_OPTION="unbound"
  12073. PBX_UNBOUND=0
  12074. # Check whether --with-unbound was given.
  12075. if test ${with_unbound+y}
  12076. then :
  12077. withval=$with_unbound;
  12078. case ${withval} in
  12079. n|no)
  12080. USE_UNBOUND=no
  12081. # -1 is a magic value used by menuselect to know that the package
  12082. # was disabled, other than 'not found'
  12083. PBX_UNBOUND=-1
  12084. ;;
  12085. y|ye|yes)
  12086. ac_mandatory_list="${ac_mandatory_list} UNBOUND"
  12087. ;;
  12088. *)
  12089. UNBOUND_DIR="${withval}"
  12090. ac_mandatory_list="${ac_mandatory_list} UNBOUND"
  12091. ;;
  12092. esac
  12093. fi
  12094. UNIXODBC_DESCRIP="unixODBC"
  12095. UNIXODBC_OPTION="unixodbc"
  12096. PBX_UNIXODBC=0
  12097. # Check whether --with-unixodbc was given.
  12098. if test ${with_unixodbc+y}
  12099. then :
  12100. withval=$with_unixodbc;
  12101. case ${withval} in
  12102. n|no)
  12103. USE_UNIXODBC=no
  12104. # -1 is a magic value used by menuselect to know that the package
  12105. # was disabled, other than 'not found'
  12106. PBX_UNIXODBC=-1
  12107. ;;
  12108. y|ye|yes)
  12109. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  12110. ;;
  12111. *)
  12112. UNIXODBC_DIR="${withval}"
  12113. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  12114. ;;
  12115. esac
  12116. fi
  12117. VORBIS_DESCRIP="Vorbis"
  12118. VORBIS_OPTION="vorbis"
  12119. PBX_VORBIS=0
  12120. # Check whether --with-vorbis was given.
  12121. if test ${with_vorbis+y}
  12122. then :
  12123. withval=$with_vorbis;
  12124. case ${withval} in
  12125. n|no)
  12126. USE_VORBIS=no
  12127. # -1 is a magic value used by menuselect to know that the package
  12128. # was disabled, other than 'not found'
  12129. PBX_VORBIS=-1
  12130. ;;
  12131. y|ye|yes)
  12132. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  12133. ;;
  12134. *)
  12135. VORBIS_DIR="${withval}"
  12136. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  12137. ;;
  12138. esac
  12139. fi
  12140. X11_DESCRIP="X11"
  12141. X11_OPTION="x11"
  12142. PBX_X11=0
  12143. # Check whether --with-x11 was given.
  12144. if test ${with_x11+y}
  12145. then :
  12146. withval=$with_x11;
  12147. case ${withval} in
  12148. n|no)
  12149. USE_X11=no
  12150. # -1 is a magic value used by menuselect to know that the package
  12151. # was disabled, other than 'not found'
  12152. PBX_X11=-1
  12153. ;;
  12154. y|ye|yes)
  12155. ac_mandatory_list="${ac_mandatory_list} X11"
  12156. ;;
  12157. *)
  12158. X11_DIR="${withval}"
  12159. ac_mandatory_list="${ac_mandatory_list} X11"
  12160. ;;
  12161. esac
  12162. fi
  12163. ZLIB_DESCRIP="zlib compression"
  12164. ZLIB_OPTION="z"
  12165. PBX_ZLIB=0
  12166. # Check whether --with-z was given.
  12167. if test ${with_z+y}
  12168. then :
  12169. withval=$with_z;
  12170. case ${withval} in
  12171. n|no)
  12172. USE_ZLIB=no
  12173. # -1 is a magic value used by menuselect to know that the package
  12174. # was disabled, other than 'not found'
  12175. PBX_ZLIB=-1
  12176. ;;
  12177. y|ye|yes)
  12178. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  12179. ;;
  12180. *)
  12181. ZLIB_DIR="${withval}"
  12182. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  12183. ;;
  12184. esac
  12185. fi
  12186. # check for basic system features and functionality before
  12187. # checking for package libraries
  12188. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  12189. if test "x$ac_cv_type_size_t" = xyes
  12190. then :
  12191. else $as_nop
  12192. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  12193. fi
  12194. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  12195. # for constant arguments. Useless!
  12196. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  12197. printf %s "checking for working alloca.h... " >&6; }
  12198. if test ${ac_cv_working_alloca_h+y}
  12199. then :
  12200. printf %s "(cached) " >&6
  12201. else $as_nop
  12202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12203. /* end confdefs.h. */
  12204. #include <alloca.h>
  12205. int
  12206. main (void)
  12207. {
  12208. char *p = (char *) alloca (2 * sizeof (int));
  12209. if (p) return 0;
  12210. ;
  12211. return 0;
  12212. }
  12213. _ACEOF
  12214. if ac_fn_c_try_link "$LINENO"
  12215. then :
  12216. ac_cv_working_alloca_h=yes
  12217. else $as_nop
  12218. ac_cv_working_alloca_h=no
  12219. fi
  12220. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12221. conftest$ac_exeext conftest.$ac_ext
  12222. fi
  12223. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  12224. printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
  12225. if test $ac_cv_working_alloca_h = yes; then
  12226. printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
  12227. fi
  12228. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  12229. printf %s "checking for alloca... " >&6; }
  12230. if test ${ac_cv_func_alloca_works+y}
  12231. then :
  12232. printf %s "(cached) " >&6
  12233. else $as_nop
  12234. if test $ac_cv_working_alloca_h = yes; then
  12235. ac_cv_func_alloca_works=yes
  12236. else
  12237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12238. /* end confdefs.h. */
  12239. #include <stdlib.h>
  12240. #include <stddef.h>
  12241. #ifndef alloca
  12242. # ifdef __GNUC__
  12243. # define alloca __builtin_alloca
  12244. # elif defined _MSC_VER
  12245. # include <malloc.h>
  12246. # define alloca _alloca
  12247. # else
  12248. # ifdef __cplusplus
  12249. extern "C"
  12250. # endif
  12251. void *alloca (size_t);
  12252. # endif
  12253. #endif
  12254. int
  12255. main (void)
  12256. {
  12257. char *p = (char *) alloca (1);
  12258. if (p) return 0;
  12259. ;
  12260. return 0;
  12261. }
  12262. _ACEOF
  12263. if ac_fn_c_try_link "$LINENO"
  12264. then :
  12265. ac_cv_func_alloca_works=yes
  12266. else $as_nop
  12267. ac_cv_func_alloca_works=no
  12268. fi
  12269. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12270. conftest$ac_exeext conftest.$ac_ext
  12271. fi
  12272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  12273. printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
  12274. fi
  12275. if test $ac_cv_func_alloca_works = yes; then
  12276. printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
  12277. else
  12278. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  12279. # that cause trouble. Some versions do not even contain alloca or
  12280. # contain a buggy version. If you still want to use their alloca,
  12281. # use ar to extract alloca.o from them instead of compiling alloca.c.
  12282. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  12283. printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
  12284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  12285. printf %s "checking stack direction for C alloca... " >&6; }
  12286. if test ${ac_cv_c_stack_direction+y}
  12287. then :
  12288. printf %s "(cached) " >&6
  12289. else $as_nop
  12290. if test "$cross_compiling" = yes
  12291. then :
  12292. ac_cv_c_stack_direction=0
  12293. else $as_nop
  12294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12295. /* end confdefs.h. */
  12296. $ac_includes_default
  12297. int
  12298. find_stack_direction (int *addr, int depth)
  12299. {
  12300. int dir, dummy = 0;
  12301. if (! addr)
  12302. addr = &dummy;
  12303. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  12304. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  12305. return dir + dummy;
  12306. }
  12307. int
  12308. main (int argc, char **argv)
  12309. {
  12310. return find_stack_direction (0, argc + !argv + 20) < 0;
  12311. }
  12312. _ACEOF
  12313. if ac_fn_c_try_run "$LINENO"
  12314. then :
  12315. ac_cv_c_stack_direction=1
  12316. else $as_nop
  12317. ac_cv_c_stack_direction=-1
  12318. fi
  12319. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12320. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12321. fi
  12322. fi
  12323. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  12324. printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
  12325. printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
  12326. fi
  12327. ac_header_dirent=no
  12328. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  12329. as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  12330. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  12331. printf %s "checking for $ac_hdr that defines DIR... " >&6; }
  12332. if eval test \${$as_ac_Header+y}
  12333. then :
  12334. printf %s "(cached) " >&6
  12335. else $as_nop
  12336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12337. /* end confdefs.h. */
  12338. #include <sys/types.h>
  12339. #include <$ac_hdr>
  12340. int
  12341. main (void)
  12342. {
  12343. if ((DIR *) 0)
  12344. return 0;
  12345. ;
  12346. return 0;
  12347. }
  12348. _ACEOF
  12349. if ac_fn_c_try_compile "$LINENO"
  12350. then :
  12351. eval "$as_ac_Header=yes"
  12352. else $as_nop
  12353. eval "$as_ac_Header=no"
  12354. fi
  12355. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12356. fi
  12357. eval ac_res=\$$as_ac_Header
  12358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12359. printf "%s\n" "$ac_res" >&6; }
  12360. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  12361. then :
  12362. cat >>confdefs.h <<_ACEOF
  12363. #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
  12364. _ACEOF
  12365. ac_header_dirent=$ac_hdr; break
  12366. fi
  12367. done
  12368. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  12369. if test $ac_header_dirent = dirent.h; then
  12370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  12371. printf %s "checking for library containing opendir... " >&6; }
  12372. if test ${ac_cv_search_opendir+y}
  12373. then :
  12374. printf %s "(cached) " >&6
  12375. else $as_nop
  12376. ac_func_search_save_LIBS=$LIBS
  12377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12378. /* end confdefs.h. */
  12379. /* Override any GCC internal prototype to avoid an error.
  12380. Use char because int might match the return type of a GCC
  12381. builtin and then its argument prototype would still apply. */
  12382. char opendir ();
  12383. int
  12384. main (void)
  12385. {
  12386. return opendir ();
  12387. ;
  12388. return 0;
  12389. }
  12390. _ACEOF
  12391. for ac_lib in '' dir
  12392. do
  12393. if test -z "$ac_lib"; then
  12394. ac_res="none required"
  12395. else
  12396. ac_res=-l$ac_lib
  12397. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12398. fi
  12399. if ac_fn_c_try_link "$LINENO"
  12400. then :
  12401. ac_cv_search_opendir=$ac_res
  12402. fi
  12403. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12404. conftest$ac_exeext
  12405. if test ${ac_cv_search_opendir+y}
  12406. then :
  12407. break
  12408. fi
  12409. done
  12410. if test ${ac_cv_search_opendir+y}
  12411. then :
  12412. else $as_nop
  12413. ac_cv_search_opendir=no
  12414. fi
  12415. rm conftest.$ac_ext
  12416. LIBS=$ac_func_search_save_LIBS
  12417. fi
  12418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  12419. printf "%s\n" "$ac_cv_search_opendir" >&6; }
  12420. ac_res=$ac_cv_search_opendir
  12421. if test "$ac_res" != no
  12422. then :
  12423. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12424. fi
  12425. else
  12426. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  12427. printf %s "checking for library containing opendir... " >&6; }
  12428. if test ${ac_cv_search_opendir+y}
  12429. then :
  12430. printf %s "(cached) " >&6
  12431. else $as_nop
  12432. ac_func_search_save_LIBS=$LIBS
  12433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12434. /* end confdefs.h. */
  12435. /* Override any GCC internal prototype to avoid an error.
  12436. Use char because int might match the return type of a GCC
  12437. builtin and then its argument prototype would still apply. */
  12438. char opendir ();
  12439. int
  12440. main (void)
  12441. {
  12442. return opendir ();
  12443. ;
  12444. return 0;
  12445. }
  12446. _ACEOF
  12447. for ac_lib in '' x
  12448. do
  12449. if test -z "$ac_lib"; then
  12450. ac_res="none required"
  12451. else
  12452. ac_res=-l$ac_lib
  12453. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12454. fi
  12455. if ac_fn_c_try_link "$LINENO"
  12456. then :
  12457. ac_cv_search_opendir=$ac_res
  12458. fi
  12459. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12460. conftest$ac_exeext
  12461. if test ${ac_cv_search_opendir+y}
  12462. then :
  12463. break
  12464. fi
  12465. done
  12466. if test ${ac_cv_search_opendir+y}
  12467. then :
  12468. else $as_nop
  12469. ac_cv_search_opendir=no
  12470. fi
  12471. rm conftest.$ac_ext
  12472. LIBS=$ac_func_search_save_LIBS
  12473. fi
  12474. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  12475. printf "%s\n" "$ac_cv_search_opendir" >&6; }
  12476. ac_res=$ac_cv_search_opendir
  12477. if test "$ac_res" != no
  12478. then :
  12479. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12480. fi
  12481. fi
  12482. if test -z $ac_header_dirent -o "$ac_header_dirent" = "no"; then
  12483. as_fn_error $? "*** Could not find dirent header that defines 'DIR'." "$LINENO" 5
  12484. fi
  12485. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  12486. printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  12487. if test ${ac_cv_header_sys_wait_h+y}
  12488. then :
  12489. printf %s "(cached) " >&6
  12490. else $as_nop
  12491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12492. /* end confdefs.h. */
  12493. #include <sys/types.h>
  12494. #include <sys/wait.h>
  12495. #ifndef WEXITSTATUS
  12496. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  12497. #endif
  12498. #ifndef WIFEXITED
  12499. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  12500. #endif
  12501. int
  12502. main (void)
  12503. {
  12504. int s;
  12505. wait (&s);
  12506. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  12507. ;
  12508. return 0;
  12509. }
  12510. _ACEOF
  12511. if ac_fn_c_try_compile "$LINENO"
  12512. then :
  12513. ac_cv_header_sys_wait_h=yes
  12514. else $as_nop
  12515. ac_cv_header_sys_wait_h=no
  12516. fi
  12517. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12518. fi
  12519. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  12520. printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
  12521. if test $ac_cv_header_sys_wait_h = yes; then
  12522. printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  12523. fi
  12524. if test "$ac_cv_header_sys_wait_h" != "yes"; then
  12525. as_fn_error $? "*** POSIX.1 compatible sys/wait.h is required." "$LINENO" 5
  12526. fi
  12527. ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "#ifdef HAVE_SYS_TYPES_H
  12528. # include <sys/types.h>
  12529. #endif
  12530. #ifdef HAVE_NETINET_IN_H
  12531. # include <netinet/in.h> /* inet_ functions / structs */
  12532. #endif
  12533. #ifdef HAVE_ARPA_NAMESER_H
  12534. # include <arpa/nameser.h> /* DNS HEADER struct */
  12535. #endif
  12536. #ifdef HAVE_NETDB_H
  12537. # include <netdb.h>
  12538. #endif
  12539. "
  12540. if test "x$ac_cv_header_sys_types_h" = xyes
  12541. then :
  12542. printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
  12543. fi
  12544. ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#ifdef HAVE_SYS_TYPES_H
  12545. # include <sys/types.h>
  12546. #endif
  12547. #ifdef HAVE_NETINET_IN_H
  12548. # include <netinet/in.h> /* inet_ functions / structs */
  12549. #endif
  12550. #ifdef HAVE_ARPA_NAMESER_H
  12551. # include <arpa/nameser.h> /* DNS HEADER struct */
  12552. #endif
  12553. #ifdef HAVE_NETDB_H
  12554. # include <netdb.h>
  12555. #endif
  12556. "
  12557. if test "x$ac_cv_header_netinet_in_h" = xyes
  12558. then :
  12559. printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
  12560. fi
  12561. ac_fn_c_check_header_compile "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "#ifdef HAVE_SYS_TYPES_H
  12562. # include <sys/types.h>
  12563. #endif
  12564. #ifdef HAVE_NETINET_IN_H
  12565. # include <netinet/in.h> /* inet_ functions / structs */
  12566. #endif
  12567. #ifdef HAVE_ARPA_NAMESER_H
  12568. # include <arpa/nameser.h> /* DNS HEADER struct */
  12569. #endif
  12570. #ifdef HAVE_NETDB_H
  12571. # include <netdb.h>
  12572. #endif
  12573. "
  12574. if test "x$ac_cv_header_arpa_nameser_h" = xyes
  12575. then :
  12576. printf "%s\n" "#define HAVE_ARPA_NAMESER_H 1" >>confdefs.h
  12577. fi
  12578. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "#ifdef HAVE_SYS_TYPES_H
  12579. # include <sys/types.h>
  12580. #endif
  12581. #ifdef HAVE_NETINET_IN_H
  12582. # include <netinet/in.h> /* inet_ functions / structs */
  12583. #endif
  12584. #ifdef HAVE_ARPA_NAMESER_H
  12585. # include <arpa/nameser.h> /* DNS HEADER struct */
  12586. #endif
  12587. #ifdef HAVE_NETDB_H
  12588. # include <netdb.h>
  12589. #endif
  12590. "
  12591. if test "x$ac_cv_header_netdb_h" = xyes
  12592. then :
  12593. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  12594. fi
  12595. ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#ifdef HAVE_SYS_TYPES_H
  12596. # include <sys/types.h>
  12597. #endif
  12598. #ifdef HAVE_NETINET_IN_H
  12599. # include <netinet/in.h> /* inet_ functions / structs */
  12600. #endif
  12601. #ifdef HAVE_ARPA_NAMESER_H
  12602. # include <arpa/nameser.h> /* DNS HEADER struct */
  12603. #endif
  12604. #ifdef HAVE_NETDB_H
  12605. # include <netdb.h>
  12606. #endif
  12607. "
  12608. if test "x$ac_cv_header_resolv_h" = xyes
  12609. then :
  12610. printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h
  12611. fi
  12612. if test "$ac_cv_header_resolv_h" != "yes"; then
  12613. as_fn_error $? "*** resolv.h is required." "$LINENO" 5
  12614. fi
  12615. # Check for headers that are unconditionally required on all platforms. Do not use
  12616. # this to check for headers that are only needed by modules.
  12617. for ac_header in arpa/nameser.h assert.h ctype.h dlfcn.h errno.h fcntl.h float.h grp.h inttypes.h limits.h locale.h math.h pwd.h netinet/in.h regex.h sched.h stdarg.h stdint.h stdio.h stdlib.h string.h syslog.h sys/file.h sys/ioctl.h sys/param.h sys/resource.h sys/socket.h sys/stat.h sys/time.h sys/types.h sys/un.h termios.h time.h unistd.h
  12618. do :
  12619. as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
  12620. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12621. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  12622. then :
  12623. cat >>confdefs.h <<_ACEOF
  12624. #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
  12625. _ACEOF
  12626. else $as_nop
  12627. as_fn_error $? "*** A required header was not found." "$LINENO" 5
  12628. fi
  12629. done
  12630. ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
  12631. if test "x$ac_cv_header_arpa_inet_h" = xyes
  12632. then :
  12633. printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
  12634. fi
  12635. ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
  12636. if test "x$ac_cv_header_libintl_h" = xyes
  12637. then :
  12638. printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
  12639. fi
  12640. ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
  12641. if test "x$ac_cv_header_malloc_h" = xyes
  12642. then :
  12643. printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
  12644. fi
  12645. ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
  12646. if test "x$ac_cv_header_netdb_h" = xyes
  12647. then :
  12648. printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
  12649. fi
  12650. ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
  12651. if test "x$ac_cv_header_stddef_h" = xyes
  12652. then :
  12653. printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
  12654. fi
  12655. ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  12656. if test "x$ac_cv_header_strings_h" = xyes
  12657. then :
  12658. printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
  12659. fi
  12660. ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
  12661. if test "x$ac_cv_header_sys_event_h" = xyes
  12662. then :
  12663. printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
  12664. fi
  12665. ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
  12666. if test "x$ac_cv_header_utime_h" = xyes
  12667. then :
  12668. printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
  12669. fi
  12670. # Find required NetBSD Editline library (libedit).
  12671. if test "x${PBX_LIBEDIT}" != "x1" -a "${USE_LIBEDIT}" != "no"; then
  12672. pkg_failed=no
  12673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
  12674. printf %s "checking for libedit... " >&6; }
  12675. if test -n "$LIBEDIT_CFLAGS"; then
  12676. pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
  12677. elif test -n "$PKG_CONFIG"; then
  12678. if test -n "$PKG_CONFIG" && \
  12679. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
  12680. ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
  12681. ac_status=$?
  12682. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12683. test $ac_status = 0; }; then
  12684. pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
  12685. test "x$?" != "x0" && pkg_failed=yes
  12686. else
  12687. pkg_failed=yes
  12688. fi
  12689. else
  12690. pkg_failed=untried
  12691. fi
  12692. if test -n "$LIBEDIT_LIBS"; then
  12693. pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
  12694. elif test -n "$PKG_CONFIG"; then
  12695. if test -n "$PKG_CONFIG" && \
  12696. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
  12697. ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
  12698. ac_status=$?
  12699. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12700. test $ac_status = 0; }; then
  12701. pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
  12702. test "x$?" != "x0" && pkg_failed=yes
  12703. else
  12704. pkg_failed=yes
  12705. fi
  12706. else
  12707. pkg_failed=untried
  12708. fi
  12709. if test $pkg_failed = yes; then
  12710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12711. printf "%s\n" "no" >&6; }
  12712. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12713. _pkg_short_errors_supported=yes
  12714. else
  12715. _pkg_short_errors_supported=no
  12716. fi
  12717. if test $_pkg_short_errors_supported = yes; then
  12718. LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
  12719. else
  12720. LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
  12721. fi
  12722. # Put the nasty error message in config.log where it belongs
  12723. echo "$LIBEDIT_PKG_ERRORS" >&5
  12724. PBX_LIBEDIT=0
  12725. elif test $pkg_failed = untried; then
  12726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12727. printf "%s\n" "no" >&6; }
  12728. PBX_LIBEDIT=0
  12729. else
  12730. LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
  12731. LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
  12732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12733. printf "%s\n" "yes" >&6; }
  12734. PBX_LIBEDIT=1
  12735. LIBEDIT_INCLUDE=$(echo ${LIBEDIT_CFLAGS} | $SED -e "s|-std=c99||g")
  12736. LIBEDIT_LIB="$LIBEDIT_LIBS"
  12737. printf "%s\n" "#define HAVE_LIBEDIT 1" >>confdefs.h
  12738. fi
  12739. fi
  12740. # some platforms do not list libedit via pkg-config, for example OpenBSD 6.2
  12741. if test "x${PBX_LIBEDIT}" != "x1" -a "${USE_LIBEDIT}" != "no"; then
  12742. pbxlibdir=""
  12743. # if --with-LIBEDIT=DIR has been specified, use it.
  12744. if test "x${LIBEDIT_DIR}" != "x"; then
  12745. if test -d ${LIBEDIT_DIR}/lib; then
  12746. pbxlibdir="-L${LIBEDIT_DIR}/lib"
  12747. else
  12748. pbxlibdir="-L${LIBEDIT_DIR}"
  12749. fi
  12750. fi
  12751. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  12752. CFLAGS="${CFLAGS} "
  12753. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for history_init in -ledit" >&5
  12754. printf %s "checking for history_init in -ledit... " >&6; }
  12755. if test ${ac_cv_lib_edit_history_init+y}
  12756. then :
  12757. printf %s "(cached) " >&6
  12758. else $as_nop
  12759. ac_check_lib_save_LIBS=$LIBS
  12760. LIBS="-ledit ${pbxlibdir} -ltermcap $LIBS"
  12761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12762. /* end confdefs.h. */
  12763. /* Override any GCC internal prototype to avoid an error.
  12764. Use char because int might match the return type of a GCC
  12765. builtin and then its argument prototype would still apply. */
  12766. char history_init ();
  12767. int
  12768. main (void)
  12769. {
  12770. return history_init ();
  12771. ;
  12772. return 0;
  12773. }
  12774. _ACEOF
  12775. if ac_fn_c_try_link "$LINENO"
  12776. then :
  12777. ac_cv_lib_edit_history_init=yes
  12778. else $as_nop
  12779. ac_cv_lib_edit_history_init=no
  12780. fi
  12781. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12782. conftest$ac_exeext conftest.$ac_ext
  12783. LIBS=$ac_check_lib_save_LIBS
  12784. fi
  12785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_history_init" >&5
  12786. printf "%s\n" "$ac_cv_lib_edit_history_init" >&6; }
  12787. if test "x$ac_cv_lib_edit_history_init" = xyes
  12788. then :
  12789. AST_LIBEDIT_FOUND=yes
  12790. else $as_nop
  12791. AST_LIBEDIT_FOUND=no
  12792. fi
  12793. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  12794. # now check for the header.
  12795. if test "${AST_LIBEDIT_FOUND}" = "yes"; then
  12796. LIBEDIT_LIB="${pbxlibdir} -ledit -ltermcap"
  12797. # if --with-LIBEDIT=DIR has been specified, use it.
  12798. if test "x${LIBEDIT_DIR}" != "x"; then
  12799. LIBEDIT_INCLUDE="-I${LIBEDIT_DIR}/include"
  12800. fi
  12801. LIBEDIT_INCLUDE="${LIBEDIT_INCLUDE} "
  12802. # check for the header
  12803. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  12804. CPPFLAGS="${CPPFLAGS} ${LIBEDIT_INCLUDE}"
  12805. ac_fn_c_check_header_compile "$LINENO" "histedit.h" "ac_cv_header_histedit_h" "$ac_includes_default"
  12806. if test "x$ac_cv_header_histedit_h" = xyes
  12807. then :
  12808. LIBEDIT_HEADER_FOUND=1
  12809. else $as_nop
  12810. LIBEDIT_HEADER_FOUND=0
  12811. fi
  12812. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  12813. if test "x${LIBEDIT_HEADER_FOUND}" = "x0" ; then
  12814. LIBEDIT_LIB=""
  12815. LIBEDIT_INCLUDE=""
  12816. else
  12817. PBX_LIBEDIT=1
  12818. cat >>confdefs.h <<_ACEOF
  12819. #define HAVE_LIBEDIT 1
  12820. _ACEOF
  12821. fi
  12822. fi
  12823. fi
  12824. if test "${PBX_LIBEDIT}" != 1; then
  12825. as_fn_error $? "*** Please install the 'libedit' development package." "$LINENO" 5
  12826. exit 1
  12827. fi
  12828. if test "x${PBX_LIBEDIT_IS_UNICODE}" != "x1" -a "${USE_LIBEDIT_IS_UNICODE}" != "no"; then
  12829. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Testing for libedit unicode support" >&5
  12830. printf %s "checking for Testing for libedit unicode support... " >&6; }
  12831. saved_cppflags="${CPPFLAGS}"
  12832. if test "x${LIBEDIT_IS_UNICODE_DIR}" != "x"; then
  12833. LIBEDIT_IS_UNICODE_INCLUDE="-I${LIBEDIT_IS_UNICODE_DIR}/include"
  12834. fi
  12835. CPPFLAGS="${CPPFLAGS} ${LIBEDIT_IS_UNICODE_INCLUDE}"
  12836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12837. /* end confdefs.h. */
  12838. #include <histedit.h>
  12839. int
  12840. main (void)
  12841. {
  12842. el_rfunc_t *callback;;
  12843. ;
  12844. return 0;
  12845. }
  12846. _ACEOF
  12847. if ac_fn_c_try_compile "$LINENO"
  12848. then :
  12849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12850. printf "%s\n" "yes" >&6; }
  12851. PBX_LIBEDIT_IS_UNICODE=1
  12852. printf "%s\n" "#define HAVE_LIBEDIT_IS_UNICODE 1" >>confdefs.h
  12853. else $as_nop
  12854. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12855. printf "%s\n" "no" >&6; }
  12856. fi
  12857. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  12858. CPPFLAGS="${saved_cppflags}"
  12859. fi
  12860. # Find required UUID support.
  12861. # * -luuid on Linux
  12862. # * -le2fs-uuid on OpenBSD
  12863. # * in libsystem on OS X
  12864. if test "x${PBX_LIBUUID}" != "x1" -a "${USE_LIBUUID}" != "no"; then
  12865. pbxlibdir=""
  12866. # if --with-LIBUUID=DIR has been specified, use it.
  12867. if test "x${LIBUUID_DIR}" != "x"; then
  12868. if test -d ${LIBUUID_DIR}/lib; then
  12869. pbxlibdir="-L${LIBUUID_DIR}/lib"
  12870. else
  12871. pbxlibdir="-L${LIBUUID_DIR}"
  12872. fi
  12873. fi
  12874. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  12875. CFLAGS="${CFLAGS} "
  12876. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_random in -luuid" >&5
  12877. printf %s "checking for uuid_generate_random in -luuid... " >&6; }
  12878. if test ${ac_cv_lib_uuid_uuid_generate_random+y}
  12879. then :
  12880. printf %s "(cached) " >&6
  12881. else $as_nop
  12882. ac_check_lib_save_LIBS=$LIBS
  12883. LIBS="-luuid ${pbxlibdir} $LIBS"
  12884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12885. /* end confdefs.h. */
  12886. /* Override any GCC internal prototype to avoid an error.
  12887. Use char because int might match the return type of a GCC
  12888. builtin and then its argument prototype would still apply. */
  12889. char uuid_generate_random ();
  12890. int
  12891. main (void)
  12892. {
  12893. return uuid_generate_random ();
  12894. ;
  12895. return 0;
  12896. }
  12897. _ACEOF
  12898. if ac_fn_c_try_link "$LINENO"
  12899. then :
  12900. ac_cv_lib_uuid_uuid_generate_random=yes
  12901. else $as_nop
  12902. ac_cv_lib_uuid_uuid_generate_random=no
  12903. fi
  12904. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12905. conftest$ac_exeext conftest.$ac_ext
  12906. LIBS=$ac_check_lib_save_LIBS
  12907. fi
  12908. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_random" >&5
  12909. printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_random" >&6; }
  12910. if test "x$ac_cv_lib_uuid_uuid_generate_random" = xyes
  12911. then :
  12912. AST_LIBUUID_FOUND=yes
  12913. else $as_nop
  12914. AST_LIBUUID_FOUND=no
  12915. fi
  12916. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  12917. # now check for the header.
  12918. if test "${AST_LIBUUID_FOUND}" = "yes"; then
  12919. LIBUUID_LIB="${pbxlibdir} -luuid "
  12920. # if --with-LIBUUID=DIR has been specified, use it.
  12921. if test "x${LIBUUID_DIR}" != "x"; then
  12922. LIBUUID_INCLUDE="-I${LIBUUID_DIR}/include"
  12923. fi
  12924. LIBUUID_INCLUDE="${LIBUUID_INCLUDE} "
  12925. # check for the header
  12926. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  12927. CPPFLAGS="${CPPFLAGS} ${LIBUUID_INCLUDE}"
  12928. ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
  12929. if test "x$ac_cv_header_uuid_uuid_h" = xyes
  12930. then :
  12931. LIBUUID_HEADER_FOUND=1
  12932. else $as_nop
  12933. LIBUUID_HEADER_FOUND=0
  12934. fi
  12935. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  12936. if test "x${LIBUUID_HEADER_FOUND}" = "x0" ; then
  12937. LIBUUID_LIB=""
  12938. LIBUUID_INCLUDE=""
  12939. else
  12940. PBX_LIBUUID=1
  12941. cat >>confdefs.h <<_ACEOF
  12942. #define HAVE_LIBUUID 1
  12943. _ACEOF
  12944. fi
  12945. fi
  12946. fi
  12947. if test "x$LIBUUID_LIB" != "x" ; then
  12948. UUID_INCLUDE="$LIBUUID_INCLUDE"
  12949. UUID_LIB="$LIBUUID_LIB"
  12950. else
  12951. if test "x${PBX_E2FSUUID}" != "x1" -a "${USE_E2FSUUID}" != "no"; then
  12952. pbxlibdir=""
  12953. # if --with-E2FSUUID=DIR has been specified, use it.
  12954. if test "x${E2FSUUID_DIR}" != "x"; then
  12955. if test -d ${E2FSUUID_DIR}/lib; then
  12956. pbxlibdir="-L${E2FSUUID_DIR}/lib"
  12957. else
  12958. pbxlibdir="-L${E2FSUUID_DIR}"
  12959. fi
  12960. fi
  12961. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  12962. CFLAGS="${CFLAGS} "
  12963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_random in -le2fs-uuid" >&5
  12964. printf %s "checking for uuid_generate_random in -le2fs-uuid... " >&6; }
  12965. if test ${ac_cv_lib_e2fs_uuid_uuid_generate_random+y}
  12966. then :
  12967. printf %s "(cached) " >&6
  12968. else $as_nop
  12969. ac_check_lib_save_LIBS=$LIBS
  12970. LIBS="-le2fs-uuid ${pbxlibdir} $LIBS"
  12971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12972. /* end confdefs.h. */
  12973. /* Override any GCC internal prototype to avoid an error.
  12974. Use char because int might match the return type of a GCC
  12975. builtin and then its argument prototype would still apply. */
  12976. char uuid_generate_random ();
  12977. int
  12978. main (void)
  12979. {
  12980. return uuid_generate_random ();
  12981. ;
  12982. return 0;
  12983. }
  12984. _ACEOF
  12985. if ac_fn_c_try_link "$LINENO"
  12986. then :
  12987. ac_cv_lib_e2fs_uuid_uuid_generate_random=yes
  12988. else $as_nop
  12989. ac_cv_lib_e2fs_uuid_uuid_generate_random=no
  12990. fi
  12991. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  12992. conftest$ac_exeext conftest.$ac_ext
  12993. LIBS=$ac_check_lib_save_LIBS
  12994. fi
  12995. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_e2fs_uuid_uuid_generate_random" >&5
  12996. printf "%s\n" "$ac_cv_lib_e2fs_uuid_uuid_generate_random" >&6; }
  12997. if test "x$ac_cv_lib_e2fs_uuid_uuid_generate_random" = xyes
  12998. then :
  12999. AST_E2FSUUID_FOUND=yes
  13000. else $as_nop
  13001. AST_E2FSUUID_FOUND=no
  13002. fi
  13003. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  13004. # now check for the header.
  13005. if test "${AST_E2FSUUID_FOUND}" = "yes"; then
  13006. E2FSUUID_LIB="${pbxlibdir} -le2fs-uuid "
  13007. # if --with-E2FSUUID=DIR has been specified, use it.
  13008. if test "x${E2FSUUID_DIR}" != "x"; then
  13009. E2FSUUID_INCLUDE="-I${E2FSUUID_DIR}/include"
  13010. fi
  13011. E2FSUUID_INCLUDE="${E2FSUUID_INCLUDE} "
  13012. # check for the header
  13013. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  13014. CPPFLAGS="${CPPFLAGS} ${E2FSUUID_INCLUDE}"
  13015. ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
  13016. if test "x$ac_cv_header_uuid_uuid_h" = xyes
  13017. then :
  13018. E2FSUUID_HEADER_FOUND=1
  13019. else $as_nop
  13020. E2FSUUID_HEADER_FOUND=0
  13021. fi
  13022. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  13023. if test "x${E2FSUUID_HEADER_FOUND}" = "x0" ; then
  13024. E2FSUUID_LIB=""
  13025. E2FSUUID_INCLUDE=""
  13026. else
  13027. PBX_E2FSUUID=1
  13028. cat >>confdefs.h <<_ACEOF
  13029. #define HAVE_E2FSUUID 1
  13030. _ACEOF
  13031. fi
  13032. fi
  13033. fi
  13034. if test "x$E2FSUUID_LIB" != "x" ; then
  13035. UUID_INCLUDE="$E2FSUUID_INCLUDE"
  13036. UUID_LIB="$E2FSUUID_LIB"
  13037. else
  13038. for ac_func in uuid_generate_random
  13039. do :
  13040. ac_fn_c_check_func "$LINENO" "uuid_generate_random" "ac_cv_func_uuid_generate_random"
  13041. if test "x$ac_cv_func_uuid_generate_random" = xyes
  13042. then :
  13043. printf "%s\n" "#define HAVE_UUID_GENERATE_RANDOM 1" >>confdefs.h
  13044. SYSUUID=true
  13045. else $as_nop
  13046. SYSUUID=""
  13047. fi
  13048. done
  13049. if test "x$SYSUUID" != "x" ; then
  13050. UUID_INCLUDE=""
  13051. UUID_LIB=""
  13052. else
  13053. as_fn_error $? "*** uuid support not found (this typically means the uuid development package is missing)" "$LINENO" 5
  13054. fi
  13055. fi
  13056. fi
  13057. # Find required JSON support if bundled is not enabled.
  13058. if test "$JANSSON_BUNDLED" = "no" ; then
  13059. if test "x${PBX_JANSSON}" != "x1" -a "${USE_JANSSON}" != "no"; then
  13060. pkg_failed=no
  13061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jansson >= 2.11" >&5
  13062. printf %s "checking for jansson >= 2.11... " >&6; }
  13063. if test -n "$JANSSON_CFLAGS"; then
  13064. pkg_cv_JANSSON_CFLAGS="$JANSSON_CFLAGS"
  13065. elif test -n "$PKG_CONFIG"; then
  13066. if test -n "$PKG_CONFIG" && \
  13067. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.11\""; } >&5
  13068. ($PKG_CONFIG --exists --print-errors "jansson >= 2.11") 2>&5
  13069. ac_status=$?
  13070. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13071. test $ac_status = 0; }; then
  13072. pkg_cv_JANSSON_CFLAGS=`$PKG_CONFIG --cflags "jansson >= 2.11" 2>/dev/null`
  13073. test "x$?" != "x0" && pkg_failed=yes
  13074. else
  13075. pkg_failed=yes
  13076. fi
  13077. else
  13078. pkg_failed=untried
  13079. fi
  13080. if test -n "$JANSSON_LIBS"; then
  13081. pkg_cv_JANSSON_LIBS="$JANSSON_LIBS"
  13082. elif test -n "$PKG_CONFIG"; then
  13083. if test -n "$PKG_CONFIG" && \
  13084. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson >= 2.11\""; } >&5
  13085. ($PKG_CONFIG --exists --print-errors "jansson >= 2.11") 2>&5
  13086. ac_status=$?
  13087. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13088. test $ac_status = 0; }; then
  13089. pkg_cv_JANSSON_LIBS=`$PKG_CONFIG --libs "jansson >= 2.11" 2>/dev/null`
  13090. test "x$?" != "x0" && pkg_failed=yes
  13091. else
  13092. pkg_failed=yes
  13093. fi
  13094. else
  13095. pkg_failed=untried
  13096. fi
  13097. if test $pkg_failed = yes; then
  13098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13099. printf "%s\n" "no" >&6; }
  13100. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13101. _pkg_short_errors_supported=yes
  13102. else
  13103. _pkg_short_errors_supported=no
  13104. fi
  13105. if test $_pkg_short_errors_supported = yes; then
  13106. JANSSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson >= 2.11" 2>&1`
  13107. else
  13108. JANSSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "jansson >= 2.11" 2>&1`
  13109. fi
  13110. # Put the nasty error message in config.log where it belongs
  13111. echo "$JANSSON_PKG_ERRORS" >&5
  13112. PBX_JANSSON=0
  13113. elif test $pkg_failed = untried; then
  13114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13115. printf "%s\n" "no" >&6; }
  13116. PBX_JANSSON=0
  13117. else
  13118. JANSSON_CFLAGS=$pkg_cv_JANSSON_CFLAGS
  13119. JANSSON_LIBS=$pkg_cv_JANSSON_LIBS
  13120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13121. printf "%s\n" "yes" >&6; }
  13122. PBX_JANSSON=1
  13123. JANSSON_INCLUDE=$(echo ${JANSSON_CFLAGS} | $SED -e "s|-std=c99||g")
  13124. JANSSON_LIB="$JANSSON_LIBS"
  13125. printf "%s\n" "#define HAVE_JANSSON 1" >>confdefs.h
  13126. fi
  13127. fi
  13128. # json_sprintf is available in 2.11+
  13129. if test "x${PBX_JANSSON}" != "x1" -a "${USE_JANSSON}" != "no"; then
  13130. pbxlibdir=""
  13131. # if --with-JANSSON=DIR has been specified, use it.
  13132. if test "x${JANSSON_DIR}" != "x"; then
  13133. if test -d ${JANSSON_DIR}/lib; then
  13134. pbxlibdir="-L${JANSSON_DIR}/lib"
  13135. else
  13136. pbxlibdir="-L${JANSSON_DIR}"
  13137. fi
  13138. fi
  13139. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  13140. CFLAGS="${CFLAGS} "
  13141. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json_sprintf in -ljansson" >&5
  13142. printf %s "checking for json_sprintf in -ljansson... " >&6; }
  13143. if test ${ac_cv_lib_jansson_json_sprintf+y}
  13144. then :
  13145. printf %s "(cached) " >&6
  13146. else $as_nop
  13147. ac_check_lib_save_LIBS=$LIBS
  13148. LIBS="-ljansson ${pbxlibdir} $LIBS"
  13149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13150. /* end confdefs.h. */
  13151. /* Override any GCC internal prototype to avoid an error.
  13152. Use char because int might match the return type of a GCC
  13153. builtin and then its argument prototype would still apply. */
  13154. char json_sprintf ();
  13155. int
  13156. main (void)
  13157. {
  13158. return json_sprintf ();
  13159. ;
  13160. return 0;
  13161. }
  13162. _ACEOF
  13163. if ac_fn_c_try_link "$LINENO"
  13164. then :
  13165. ac_cv_lib_jansson_json_sprintf=yes
  13166. else $as_nop
  13167. ac_cv_lib_jansson_json_sprintf=no
  13168. fi
  13169. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13170. conftest$ac_exeext conftest.$ac_ext
  13171. LIBS=$ac_check_lib_save_LIBS
  13172. fi
  13173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jansson_json_sprintf" >&5
  13174. printf "%s\n" "$ac_cv_lib_jansson_json_sprintf" >&6; }
  13175. if test "x$ac_cv_lib_jansson_json_sprintf" = xyes
  13176. then :
  13177. AST_JANSSON_FOUND=yes
  13178. else $as_nop
  13179. AST_JANSSON_FOUND=no
  13180. fi
  13181. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  13182. # now check for the header.
  13183. if test "${AST_JANSSON_FOUND}" = "yes"; then
  13184. JANSSON_LIB="${pbxlibdir} -ljansson "
  13185. # if --with-JANSSON=DIR has been specified, use it.
  13186. if test "x${JANSSON_DIR}" != "x"; then
  13187. JANSSON_INCLUDE="-I${JANSSON_DIR}/include"
  13188. fi
  13189. JANSSON_INCLUDE="${JANSSON_INCLUDE} "
  13190. # check for the header
  13191. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  13192. CPPFLAGS="${CPPFLAGS} ${JANSSON_INCLUDE}"
  13193. ac_fn_c_check_header_compile "$LINENO" "jansson.h" "ac_cv_header_jansson_h" "$ac_includes_default"
  13194. if test "x$ac_cv_header_jansson_h" = xyes
  13195. then :
  13196. JANSSON_HEADER_FOUND=1
  13197. else $as_nop
  13198. JANSSON_HEADER_FOUND=0
  13199. fi
  13200. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  13201. if test "x${JANSSON_HEADER_FOUND}" = "x0" ; then
  13202. JANSSON_LIB=""
  13203. JANSSON_INCLUDE=""
  13204. else
  13205. PBX_JANSSON=1
  13206. cat >>confdefs.h <<_ACEOF
  13207. #define HAVE_JANSSON 1
  13208. _ACEOF
  13209. fi
  13210. fi
  13211. fi
  13212. if test "${PBX_JANSSON}" != 1; then
  13213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Asterisk requires libjansson >= 2.11 and no system copy was found." >&5
  13214. printf "%s\n" "$as_me: *** Asterisk requires libjansson >= 2.11 and no system copy was found." >&6;}
  13215. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Please install the 'libjansson' development package or" >&5
  13216. printf "%s\n" "$as_me: *** Please install the 'libjansson' development package or" >&6;}
  13217. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** use './configure --with-jansson-bundled'" >&5
  13218. printf "%s\n" "$as_me: *** use './configure --with-jansson-bundled'" >&6;}
  13219. exit 1
  13220. fi
  13221. # Define the ast_json_int_t (large integer type) to match jansson's
  13222. saved_cppflags="${CPPFLAGS}"
  13223. CPPFLAGS="${CPPFLAGS} ${JANSSON_INCLUDE}"
  13224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13225. /* end confdefs.h. */
  13226. #include <jansson.h>
  13227. int
  13228. main (void)
  13229. {
  13230. #if !JSON_INTEGER_IS_LONG_LONG
  13231. #error "not long long"
  13232. #endif
  13233. ;
  13234. return 0;
  13235. }
  13236. _ACEOF
  13237. if ac_fn_c_try_compile "$LINENO"
  13238. then :
  13239. printf "%s\n" "#define AST_JSON_INT_T long long" >>confdefs.h
  13240. else $as_nop
  13241. printf "%s\n" "#define AST_JSON_INT_T long" >>confdefs.h
  13242. fi
  13243. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  13244. CPPFLAGS="${saved_cppflags}"
  13245. else
  13246. PBX_JANSSON=1
  13247. fi
  13248. . ./third-party/versions.mak
  13249. # Find required JWT support if bundled is not enabled.
  13250. if test "$LIBJWT_BUNDLED" = "no" ; then
  13251. if test "x${PBX_LIBJWT}" != "x1" -a "${USE_LIBJWT}" != "no"; then
  13252. pkg_failed=no
  13253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libjwt >= $LIBJWT_VERSION" >&5
  13254. printf %s "checking for libjwt >= $LIBJWT_VERSION... " >&6; }
  13255. if test -n "$LIBJWT_CFLAGS"; then
  13256. pkg_cv_LIBJWT_CFLAGS="$LIBJWT_CFLAGS"
  13257. elif test -n "$PKG_CONFIG"; then
  13258. if test -n "$PKG_CONFIG" && \
  13259. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjwt >= \$LIBJWT_VERSION\""; } >&5
  13260. ($PKG_CONFIG --exists --print-errors "libjwt >= $LIBJWT_VERSION") 2>&5
  13261. ac_status=$?
  13262. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13263. test $ac_status = 0; }; then
  13264. pkg_cv_LIBJWT_CFLAGS=`$PKG_CONFIG --cflags "libjwt >= $LIBJWT_VERSION" 2>/dev/null`
  13265. test "x$?" != "x0" && pkg_failed=yes
  13266. else
  13267. pkg_failed=yes
  13268. fi
  13269. else
  13270. pkg_failed=untried
  13271. fi
  13272. if test -n "$LIBJWT_LIBS"; then
  13273. pkg_cv_LIBJWT_LIBS="$LIBJWT_LIBS"
  13274. elif test -n "$PKG_CONFIG"; then
  13275. if test -n "$PKG_CONFIG" && \
  13276. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjwt >= \$LIBJWT_VERSION\""; } >&5
  13277. ($PKG_CONFIG --exists --print-errors "libjwt >= $LIBJWT_VERSION") 2>&5
  13278. ac_status=$?
  13279. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13280. test $ac_status = 0; }; then
  13281. pkg_cv_LIBJWT_LIBS=`$PKG_CONFIG --libs "libjwt >= $LIBJWT_VERSION" 2>/dev/null`
  13282. test "x$?" != "x0" && pkg_failed=yes
  13283. else
  13284. pkg_failed=yes
  13285. fi
  13286. else
  13287. pkg_failed=untried
  13288. fi
  13289. if test $pkg_failed = yes; then
  13290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13291. printf "%s\n" "no" >&6; }
  13292. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13293. _pkg_short_errors_supported=yes
  13294. else
  13295. _pkg_short_errors_supported=no
  13296. fi
  13297. if test $_pkg_short_errors_supported = yes; then
  13298. LIBJWT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjwt >= $LIBJWT_VERSION" 2>&1`
  13299. else
  13300. LIBJWT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjwt >= $LIBJWT_VERSION" 2>&1`
  13301. fi
  13302. # Put the nasty error message in config.log where it belongs
  13303. echo "$LIBJWT_PKG_ERRORS" >&5
  13304. PBX_LIBJWT=0
  13305. elif test $pkg_failed = untried; then
  13306. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13307. printf "%s\n" "no" >&6; }
  13308. PBX_LIBJWT=0
  13309. else
  13310. LIBJWT_CFLAGS=$pkg_cv_LIBJWT_CFLAGS
  13311. LIBJWT_LIBS=$pkg_cv_LIBJWT_LIBS
  13312. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13313. printf "%s\n" "yes" >&6; }
  13314. PBX_LIBJWT=1
  13315. LIBJWT_INCLUDE=$(echo ${LIBJWT_CFLAGS} | $SED -e "s|-std=c99||g")
  13316. LIBJWT_LIB="$LIBJWT_LIBS"
  13317. printf "%s\n" "#define HAVE_LIBJWT 1" >>confdefs.h
  13318. fi
  13319. fi
  13320. else
  13321. PBX_LIBJWT=1
  13322. fi
  13323. # See if clock_gettime is in librt
  13324. if test "x${PBX_RT}" != "x1" -a "${USE_RT}" != "no"; then
  13325. pbxlibdir=""
  13326. # if --with-RT=DIR has been specified, use it.
  13327. if test "x${RT_DIR}" != "x"; then
  13328. if test -d ${RT_DIR}/lib; then
  13329. pbxlibdir="-L${RT_DIR}/lib"
  13330. else
  13331. pbxlibdir="-L${RT_DIR}"
  13332. fi
  13333. fi
  13334. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  13335. CFLAGS="${CFLAGS} "
  13336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  13337. printf %s "checking for clock_gettime in -lrt... " >&6; }
  13338. if test ${ac_cv_lib_rt_clock_gettime+y}
  13339. then :
  13340. printf %s "(cached) " >&6
  13341. else $as_nop
  13342. ac_check_lib_save_LIBS=$LIBS
  13343. LIBS="-lrt ${pbxlibdir} $LIBS"
  13344. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13345. /* end confdefs.h. */
  13346. /* Override any GCC internal prototype to avoid an error.
  13347. Use char because int might match the return type of a GCC
  13348. builtin and then its argument prototype would still apply. */
  13349. char clock_gettime ();
  13350. int
  13351. main (void)
  13352. {
  13353. return clock_gettime ();
  13354. ;
  13355. return 0;
  13356. }
  13357. _ACEOF
  13358. if ac_fn_c_try_link "$LINENO"
  13359. then :
  13360. ac_cv_lib_rt_clock_gettime=yes
  13361. else $as_nop
  13362. ac_cv_lib_rt_clock_gettime=no
  13363. fi
  13364. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13365. conftest$ac_exeext conftest.$ac_ext
  13366. LIBS=$ac_check_lib_save_LIBS
  13367. fi
  13368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13369. printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
  13370. if test "x$ac_cv_lib_rt_clock_gettime" = xyes
  13371. then :
  13372. AST_RT_FOUND=yes
  13373. else $as_nop
  13374. AST_RT_FOUND=no
  13375. fi
  13376. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  13377. # now check for the header.
  13378. if test "${AST_RT_FOUND}" = "yes"; then
  13379. RT_LIB="${pbxlibdir} -lrt "
  13380. # if --with-RT=DIR has been specified, use it.
  13381. if test "x${RT_DIR}" != "x"; then
  13382. RT_INCLUDE="-I${RT_DIR}/include"
  13383. fi
  13384. RT_INCLUDE="${RT_INCLUDE} "
  13385. # no header, assume found
  13386. RT_HEADER_FOUND="1"
  13387. if test "x${RT_HEADER_FOUND}" = "x0" ; then
  13388. RT_LIB=""
  13389. RT_INCLUDE=""
  13390. else
  13391. PBX_RT=1
  13392. cat >>confdefs.h <<_ACEOF
  13393. #define HAVE_RT 1
  13394. _ACEOF
  13395. fi
  13396. fi
  13397. fi
  13398. if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then
  13399. pkg_failed=no
  13400. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5
  13401. printf %s "checking for libxml-2.0... " >&6; }
  13402. if test -n "$LIBXML2_CFLAGS"; then
  13403. pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
  13404. elif test -n "$PKG_CONFIG"; then
  13405. if test -n "$PKG_CONFIG" && \
  13406. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
  13407. ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  13408. ac_status=$?
  13409. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13410. test $ac_status = 0; }; then
  13411. pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
  13412. test "x$?" != "x0" && pkg_failed=yes
  13413. else
  13414. pkg_failed=yes
  13415. fi
  13416. else
  13417. pkg_failed=untried
  13418. fi
  13419. if test -n "$LIBXML2_LIBS"; then
  13420. pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
  13421. elif test -n "$PKG_CONFIG"; then
  13422. if test -n "$PKG_CONFIG" && \
  13423. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
  13424. ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
  13425. ac_status=$?
  13426. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13427. test $ac_status = 0; }; then
  13428. pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
  13429. test "x$?" != "x0" && pkg_failed=yes
  13430. else
  13431. pkg_failed=yes
  13432. fi
  13433. else
  13434. pkg_failed=untried
  13435. fi
  13436. if test $pkg_failed = yes; then
  13437. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13438. printf "%s\n" "no" >&6; }
  13439. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13440. _pkg_short_errors_supported=yes
  13441. else
  13442. _pkg_short_errors_supported=no
  13443. fi
  13444. if test $_pkg_short_errors_supported = yes; then
  13445. LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
  13446. else
  13447. LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
  13448. fi
  13449. # Put the nasty error message in config.log where it belongs
  13450. echo "$LIBXML2_PKG_ERRORS" >&5
  13451. PBX_LIBXML2=0
  13452. elif test $pkg_failed = untried; then
  13453. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13454. printf "%s\n" "no" >&6; }
  13455. PBX_LIBXML2=0
  13456. else
  13457. LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
  13458. LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
  13459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13460. printf "%s\n" "yes" >&6; }
  13461. PBX_LIBXML2=1
  13462. LIBXML2_INCLUDE=$(echo ${LIBXML2_CFLAGS} | $SED -e "s|-std=c99||g")
  13463. LIBXML2_LIB="$LIBXML2_LIBS"
  13464. printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
  13465. fi
  13466. fi
  13467. if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then
  13468. PBX_LIBXML2=0
  13469. if test -n "$ac_tool_prefix"; then
  13470. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  13471. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  13472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13473. printf %s "checking for $ac_word... " >&6; }
  13474. if test ${ac_cv_path_CONFIG_LIBXML2+y}
  13475. then :
  13476. printf %s "(cached) " >&6
  13477. else $as_nop
  13478. case $CONFIG_LIBXML2 in
  13479. [\\/]* | ?:[\\/]*)
  13480. ac_cv_path_CONFIG_LIBXML2="$CONFIG_LIBXML2" # Let the user override the test with a path.
  13481. ;;
  13482. *)
  13483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13484. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  13485. for as_dir in $as_dummy
  13486. do
  13487. IFS=$as_save_IFS
  13488. case $as_dir in #(((
  13489. '') as_dir=./ ;;
  13490. */) ;;
  13491. *) as_dir=$as_dir/ ;;
  13492. esac
  13493. for ac_exec_ext in '' $ac_executable_extensions; do
  13494. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13495. ac_cv_path_CONFIG_LIBXML2="$as_dir$ac_word$ac_exec_ext"
  13496. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13497. break 2
  13498. fi
  13499. done
  13500. done
  13501. IFS=$as_save_IFS
  13502. ;;
  13503. esac
  13504. fi
  13505. CONFIG_LIBXML2=$ac_cv_path_CONFIG_LIBXML2
  13506. if test -n "$CONFIG_LIBXML2"; then
  13507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONFIG_LIBXML2" >&5
  13508. printf "%s\n" "$CONFIG_LIBXML2" >&6; }
  13509. else
  13510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13511. printf "%s\n" "no" >&6; }
  13512. fi
  13513. fi
  13514. if test -z "$ac_cv_path_CONFIG_LIBXML2"; then
  13515. ac_pt_CONFIG_LIBXML2=$CONFIG_LIBXML2
  13516. # Extract the first word of "xml2-config", so it can be a program name with args.
  13517. set dummy xml2-config; ac_word=$2
  13518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13519. printf %s "checking for $ac_word... " >&6; }
  13520. if test ${ac_cv_path_ac_pt_CONFIG_LIBXML2+y}
  13521. then :
  13522. printf %s "(cached) " >&6
  13523. else $as_nop
  13524. case $ac_pt_CONFIG_LIBXML2 in
  13525. [\\/]* | ?:[\\/]*)
  13526. ac_cv_path_ac_pt_CONFIG_LIBXML2="$ac_pt_CONFIG_LIBXML2" # Let the user override the test with a path.
  13527. ;;
  13528. *)
  13529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13530. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  13531. for as_dir in $as_dummy
  13532. do
  13533. IFS=$as_save_IFS
  13534. case $as_dir in #(((
  13535. '') as_dir=./ ;;
  13536. */) ;;
  13537. *) as_dir=$as_dir/ ;;
  13538. esac
  13539. for ac_exec_ext in '' $ac_executable_extensions; do
  13540. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  13541. ac_cv_path_ac_pt_CONFIG_LIBXML2="$as_dir$ac_word$ac_exec_ext"
  13542. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  13543. break 2
  13544. fi
  13545. done
  13546. done
  13547. IFS=$as_save_IFS
  13548. ;;
  13549. esac
  13550. fi
  13551. ac_pt_CONFIG_LIBXML2=$ac_cv_path_ac_pt_CONFIG_LIBXML2
  13552. if test -n "$ac_pt_CONFIG_LIBXML2"; then
  13553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_LIBXML2" >&5
  13554. printf "%s\n" "$ac_pt_CONFIG_LIBXML2" >&6; }
  13555. else
  13556. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13557. printf "%s\n" "no" >&6; }
  13558. fi
  13559. if test "x$ac_pt_CONFIG_LIBXML2" = x; then
  13560. CONFIG_LIBXML2="No"
  13561. else
  13562. case $cross_compiling:$ac_tool_warned in
  13563. yes:)
  13564. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13565. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13566. ac_tool_warned=yes ;;
  13567. esac
  13568. CONFIG_LIBXML2=$ac_pt_CONFIG_LIBXML2
  13569. fi
  13570. else
  13571. CONFIG_LIBXML2="$ac_cv_path_CONFIG_LIBXML2"
  13572. fi
  13573. if test ! "x${CONFIG_LIBXML2}" = xNo; then
  13574. LIBXML2_INCLUDE=$(${CONFIG_LIBXML2} --cflags)
  13575. LIBXML2_INCLUDE=$(echo ${LIBXML2_INCLUDE} | $SED -e "s|-I|-I${LIBXML2_DIR}|g" -e "s|-std=c99||g")
  13576. LIBXML2_LIB=$(${CONFIG_LIBXML2} --libs)
  13577. LIBXML2_LIB=$(echo ${LIBXML2_LIB} | $SED -e "s|-L|-L${LIBXML2_DIR}|g")
  13578. saved_cppflags="${CPPFLAGS}"
  13579. CPPFLAGS="${CPPFLAGS} ${LIBXML2_INCLUDE}"
  13580. saved_libs="${LIBS}"
  13581. LIBS=${LIBXML2_LIB}
  13582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13583. /* end confdefs.h. */
  13584. #include <libxml/tree.h>
  13585. #include <libxml/parser.h>
  13586. int
  13587. main (void)
  13588. {
  13589. LIBXML_TEST_VERSION;
  13590. ;
  13591. return 0;
  13592. }
  13593. _ACEOF
  13594. if ac_fn_c_try_link "$LINENO"
  13595. then :
  13596. PBX_LIBXML2=1
  13597. printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
  13598. fi
  13599. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13600. conftest$ac_exeext conftest.$ac_ext
  13601. CPPFLAGS="${saved_cppflags}"
  13602. LIBS="${saved_libs}"
  13603. fi
  13604. fi
  13605. if test "${PBX_LIBXML2}" != 1; then
  13606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** The Asterisk menuselect tool requires the 'libxml2' development package." >&5
  13607. printf "%s\n" "$as_me: *** The Asterisk menuselect tool requires the 'libxml2' development package." >&6;}
  13608. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Please install the 'libxml2' development package." >&5
  13609. printf "%s\n" "$as_me: *** Please install the 'libxml2' development package." >&6;}
  13610. exit 1
  13611. fi
  13612. if test "x${PBX_URIPARSER}" != "x1" -a "${USE_URIPARSER}" != "no"; then
  13613. pbxlibdir=""
  13614. # if --with-URIPARSER=DIR has been specified, use it.
  13615. if test "x${URIPARSER_DIR}" != "x"; then
  13616. if test -d ${URIPARSER_DIR}/lib; then
  13617. pbxlibdir="-L${URIPARSER_DIR}/lib"
  13618. else
  13619. pbxlibdir="-L${URIPARSER_DIR}"
  13620. fi
  13621. fi
  13622. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  13623. CFLAGS="${CFLAGS} "
  13624. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uriParseUriA in -luriparser" >&5
  13625. printf %s "checking for uriParseUriA in -luriparser... " >&6; }
  13626. if test ${ac_cv_lib_uriparser_uriParseUriA+y}
  13627. then :
  13628. printf %s "(cached) " >&6
  13629. else $as_nop
  13630. ac_check_lib_save_LIBS=$LIBS
  13631. LIBS="-luriparser ${pbxlibdir} $LIBS"
  13632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13633. /* end confdefs.h. */
  13634. /* Override any GCC internal prototype to avoid an error.
  13635. Use char because int might match the return type of a GCC
  13636. builtin and then its argument prototype would still apply. */
  13637. char uriParseUriA ();
  13638. int
  13639. main (void)
  13640. {
  13641. return uriParseUriA ();
  13642. ;
  13643. return 0;
  13644. }
  13645. _ACEOF
  13646. if ac_fn_c_try_link "$LINENO"
  13647. then :
  13648. ac_cv_lib_uriparser_uriParseUriA=yes
  13649. else $as_nop
  13650. ac_cv_lib_uriparser_uriParseUriA=no
  13651. fi
  13652. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13653. conftest$ac_exeext conftest.$ac_ext
  13654. LIBS=$ac_check_lib_save_LIBS
  13655. fi
  13656. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uriparser_uriParseUriA" >&5
  13657. printf "%s\n" "$ac_cv_lib_uriparser_uriParseUriA" >&6; }
  13658. if test "x$ac_cv_lib_uriparser_uriParseUriA" = xyes
  13659. then :
  13660. AST_URIPARSER_FOUND=yes
  13661. else $as_nop
  13662. AST_URIPARSER_FOUND=no
  13663. fi
  13664. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  13665. # now check for the header.
  13666. if test "${AST_URIPARSER_FOUND}" = "yes"; then
  13667. URIPARSER_LIB="${pbxlibdir} -luriparser "
  13668. # if --with-URIPARSER=DIR has been specified, use it.
  13669. if test "x${URIPARSER_DIR}" != "x"; then
  13670. URIPARSER_INCLUDE="-I${URIPARSER_DIR}/include"
  13671. fi
  13672. URIPARSER_INCLUDE="${URIPARSER_INCLUDE} "
  13673. # check for the header
  13674. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  13675. CPPFLAGS="${CPPFLAGS} ${URIPARSER_INCLUDE}"
  13676. ac_fn_c_check_header_compile "$LINENO" "uriparser/Uri.h" "ac_cv_header_uriparser_Uri_h" "$ac_includes_default"
  13677. if test "x$ac_cv_header_uriparser_Uri_h" = xyes
  13678. then :
  13679. URIPARSER_HEADER_FOUND=1
  13680. else $as_nop
  13681. URIPARSER_HEADER_FOUND=0
  13682. fi
  13683. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  13684. if test "x${URIPARSER_HEADER_FOUND}" = "x0" ; then
  13685. URIPARSER_LIB=""
  13686. URIPARSER_INCLUDE=""
  13687. else
  13688. PBX_URIPARSER=1
  13689. cat >>confdefs.h <<_ACEOF
  13690. #define HAVE_URIPARSER 1
  13691. _ACEOF
  13692. fi
  13693. fi
  13694. fi
  13695. # Another mandatory item (unless it's explicitly disabled)
  13696. # Check whether --enable-xmldoc was given.
  13697. if test ${enable_xmldoc+y}
  13698. then :
  13699. enableval=$enable_xmldoc; case "${enableval}" in
  13700. y|ye|yes) DISABLE_XMLDOC=no ;;
  13701. n|no) DISABLE_XMLDOC=yes ;;
  13702. *) as_fn_error $? "bad value ${enableval} for --disable-xmldoc" "$LINENO" 5 ;;
  13703. esac
  13704. else $as_nop
  13705. DISABLE_XMLDOC=no
  13706. fi
  13707. if test "${DISABLE_XMLDOC}" != "yes"; then
  13708. printf "%s\n" "#define AST_XML_DOCS 1" >>confdefs.h
  13709. fi
  13710. if test "x${PBX_LIBXSLT}" != "x1" -a "${USE_LIBXSLT}" != "no"; then
  13711. pbxlibdir=""
  13712. # if --with-LIBXSLT=DIR has been specified, use it.
  13713. if test "x${LIBXSLT_DIR}" != "x"; then
  13714. if test -d ${LIBXSLT_DIR}/lib; then
  13715. pbxlibdir="-L${LIBXSLT_DIR}/lib"
  13716. else
  13717. pbxlibdir="-L${LIBXSLT_DIR}"
  13718. fi
  13719. fi
  13720. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  13721. CFLAGS="${CFLAGS} ${LIBXML2_INCLUDE}"
  13722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xsltLoadStylesheetPI in -lxslt" >&5
  13723. printf %s "checking for xsltLoadStylesheetPI in -lxslt... " >&6; }
  13724. if test ${ac_cv_lib_xslt_xsltLoadStylesheetPI+y}
  13725. then :
  13726. printf %s "(cached) " >&6
  13727. else $as_nop
  13728. ac_check_lib_save_LIBS=$LIBS
  13729. LIBS="-lxslt ${pbxlibdir} ${LIBXML2_LIB} $LIBS"
  13730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13731. /* end confdefs.h. */
  13732. /* Override any GCC internal prototype to avoid an error.
  13733. Use char because int might match the return type of a GCC
  13734. builtin and then its argument prototype would still apply. */
  13735. char xsltLoadStylesheetPI ();
  13736. int
  13737. main (void)
  13738. {
  13739. return xsltLoadStylesheetPI ();
  13740. ;
  13741. return 0;
  13742. }
  13743. _ACEOF
  13744. if ac_fn_c_try_link "$LINENO"
  13745. then :
  13746. ac_cv_lib_xslt_xsltLoadStylesheetPI=yes
  13747. else $as_nop
  13748. ac_cv_lib_xslt_xsltLoadStylesheetPI=no
  13749. fi
  13750. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13751. conftest$ac_exeext conftest.$ac_ext
  13752. LIBS=$ac_check_lib_save_LIBS
  13753. fi
  13754. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltLoadStylesheetPI" >&5
  13755. printf "%s\n" "$ac_cv_lib_xslt_xsltLoadStylesheetPI" >&6; }
  13756. if test "x$ac_cv_lib_xslt_xsltLoadStylesheetPI" = xyes
  13757. then :
  13758. AST_LIBXSLT_FOUND=yes
  13759. else $as_nop
  13760. AST_LIBXSLT_FOUND=no
  13761. fi
  13762. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  13763. # now check for the header.
  13764. if test "${AST_LIBXSLT_FOUND}" = "yes"; then
  13765. LIBXSLT_LIB="${pbxlibdir} -lxslt ${LIBXML2_LIB}"
  13766. # if --with-LIBXSLT=DIR has been specified, use it.
  13767. if test "x${LIBXSLT_DIR}" != "x"; then
  13768. LIBXSLT_INCLUDE="-I${LIBXSLT_DIR}/include"
  13769. fi
  13770. LIBXSLT_INCLUDE="${LIBXSLT_INCLUDE} ${LIBXML2_INCLUDE}"
  13771. # check for the header
  13772. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  13773. CPPFLAGS="${CPPFLAGS} ${LIBXSLT_INCLUDE}"
  13774. ac_fn_c_check_header_compile "$LINENO" "libxslt/xsltInternals.h" "ac_cv_header_libxslt_xsltInternals_h" "$ac_includes_default"
  13775. if test "x$ac_cv_header_libxslt_xsltInternals_h" = xyes
  13776. then :
  13777. LIBXSLT_HEADER_FOUND=1
  13778. else $as_nop
  13779. LIBXSLT_HEADER_FOUND=0
  13780. fi
  13781. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  13782. if test "x${LIBXSLT_HEADER_FOUND}" = "x0" ; then
  13783. LIBXSLT_LIB=""
  13784. LIBXSLT_INCLUDE=""
  13785. else
  13786. PBX_LIBXSLT=1
  13787. cat >>confdefs.h <<_ACEOF
  13788. #define HAVE_LIBXSLT 1
  13789. _ACEOF
  13790. fi
  13791. fi
  13792. fi
  13793. if test "x${PBX_LIBXSLT_CLEANUP}" != "x1" -a "${USE_LIBXSLT_CLEANUP}" != "no"; then
  13794. pbxlibdir=""
  13795. # if --with-LIBXSLT_CLEANUP=DIR has been specified, use it.
  13796. if test "x${LIBXSLT_CLEANUP_DIR}" != "x"; then
  13797. if test -d ${LIBXSLT_CLEANUP_DIR}/lib; then
  13798. pbxlibdir="-L${LIBXSLT_CLEANUP_DIR}/lib"
  13799. else
  13800. pbxlibdir="-L${LIBXSLT_CLEANUP_DIR}"
  13801. fi
  13802. fi
  13803. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  13804. CFLAGS="${CFLAGS} ${LIBXML2_INCLUDE}"
  13805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
  13806. printf %s "checking for xsltCleanupGlobals in -lxslt... " >&6; }
  13807. if test ${ac_cv_lib_xslt_xsltCleanupGlobals+y}
  13808. then :
  13809. printf %s "(cached) " >&6
  13810. else $as_nop
  13811. ac_check_lib_save_LIBS=$LIBS
  13812. LIBS="-lxslt ${pbxlibdir} ${LIBXML2_LIB} $LIBS"
  13813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13814. /* end confdefs.h. */
  13815. /* Override any GCC internal prototype to avoid an error.
  13816. Use char because int might match the return type of a GCC
  13817. builtin and then its argument prototype would still apply. */
  13818. char xsltCleanupGlobals ();
  13819. int
  13820. main (void)
  13821. {
  13822. return xsltCleanupGlobals ();
  13823. ;
  13824. return 0;
  13825. }
  13826. _ACEOF
  13827. if ac_fn_c_try_link "$LINENO"
  13828. then :
  13829. ac_cv_lib_xslt_xsltCleanupGlobals=yes
  13830. else $as_nop
  13831. ac_cv_lib_xslt_xsltCleanupGlobals=no
  13832. fi
  13833. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  13834. conftest$ac_exeext conftest.$ac_ext
  13835. LIBS=$ac_check_lib_save_LIBS
  13836. fi
  13837. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
  13838. printf "%s\n" "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
  13839. if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes
  13840. then :
  13841. AST_LIBXSLT_CLEANUP_FOUND=yes
  13842. else $as_nop
  13843. AST_LIBXSLT_CLEANUP_FOUND=no
  13844. fi
  13845. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  13846. # now check for the header.
  13847. if test "${AST_LIBXSLT_CLEANUP_FOUND}" = "yes"; then
  13848. LIBXSLT_CLEANUP_LIB="${pbxlibdir} -lxslt ${LIBXML2_LIB}"
  13849. # if --with-LIBXSLT_CLEANUP=DIR has been specified, use it.
  13850. if test "x${LIBXSLT_CLEANUP_DIR}" != "x"; then
  13851. LIBXSLT_CLEANUP_INCLUDE="-I${LIBXSLT_CLEANUP_DIR}/include"
  13852. fi
  13853. LIBXSLT_CLEANUP_INCLUDE="${LIBXSLT_CLEANUP_INCLUDE} ${LIBXML2_INCLUDE}"
  13854. # check for the header
  13855. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  13856. CPPFLAGS="${CPPFLAGS} ${LIBXSLT_CLEANUP_INCLUDE}"
  13857. ac_fn_c_check_header_compile "$LINENO" "libxslt/xsltInternals.h" "ac_cv_header_libxslt_xsltInternals_h" "$ac_includes_default"
  13858. if test "x$ac_cv_header_libxslt_xsltInternals_h" = xyes
  13859. then :
  13860. LIBXSLT_CLEANUP_HEADER_FOUND=1
  13861. else $as_nop
  13862. LIBXSLT_CLEANUP_HEADER_FOUND=0
  13863. fi
  13864. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  13865. if test "x${LIBXSLT_CLEANUP_HEADER_FOUND}" = "x0" ; then
  13866. LIBXSLT_CLEANUP_LIB=""
  13867. LIBXSLT_CLEANUP_INCLUDE=""
  13868. else
  13869. PBX_LIBXSLT_CLEANUP=1
  13870. cat >>confdefs.h <<_ACEOF
  13871. #define HAVE_LIBXSLT_CLEANUP 1
  13872. _ACEOF
  13873. fi
  13874. fi
  13875. fi
  13876. # Check whether --enable-permanent-dlopen was given.
  13877. if test ${enable_permanent_dlopen+y}
  13878. then :
  13879. enableval=$enable_permanent_dlopen; case "${enableval}" in
  13880. y|ye|yes) PERMANENT_DLOPEN=yes ;;
  13881. n|no) PERMANENT_DLOPEN=no ;;
  13882. *) as_fn_error $? "bad value ${enableval} for --enable-permanent-dlopen" "$LINENO" 5 ;;
  13883. esac
  13884. else $as_nop
  13885. PERMANENT_DLOPEN=no
  13886. fi
  13887. if test "${PERMANENT_DLOPEN}" = "yes"; then
  13888. printf "%s\n" "#define HAVE_PERMANENT_DLOPEN 1" >>confdefs.h
  13889. fi
  13890. # some embedded systems omit internationalization (locale) support
  13891. ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  13892. if test "x$ac_cv_header_xlocale_h" = xyes
  13893. then :
  13894. printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
  13895. fi
  13896. ac_fn_c_check_header_compile "$LINENO" "winsock.h" "ac_cv_header_winsock_h" "$ac_includes_default"
  13897. if test "x$ac_cv_header_winsock_h" = xyes
  13898. then :
  13899. printf "%s\n" "#define HAVE_WINSOCK_H 1" >>confdefs.h
  13900. fi
  13901. ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
  13902. if test "x$ac_cv_header_winsock2_h" = xyes
  13903. then :
  13904. printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
  13905. fi
  13906. ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  13907. if test "x$ac_cv_header_sys_poll_h" = xyes
  13908. then :
  13909. else $as_nop
  13910. printf "%s\n" "#define AST_POLL_COMPAT 1" >>confdefs.h
  13911. fi
  13912. # Check whether --enable-largefile was given.
  13913. if test ${enable_largefile+y}
  13914. then :
  13915. enableval=$enable_largefile;
  13916. fi
  13917. if test "$enable_largefile" != no; then
  13918. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  13919. printf %s "checking for special C compiler options needed for large files... " >&6; }
  13920. if test ${ac_cv_sys_largefile_CC+y}
  13921. then :
  13922. printf %s "(cached) " >&6
  13923. else $as_nop
  13924. ac_cv_sys_largefile_CC=no
  13925. if test "$GCC" != yes; then
  13926. ac_save_CC=$CC
  13927. while :; do
  13928. # IRIX 6.2 and later do not support large files by default,
  13929. # so use the C compiler's -n32 option if that helps.
  13930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13931. /* end confdefs.h. */
  13932. #include <sys/types.h>
  13933. /* Check that off_t can represent 2**63 - 1 correctly.
  13934. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13935. since some C++ compilers masquerading as C compilers
  13936. incorrectly reject 9223372036854775807. */
  13937. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  13938. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13939. && LARGE_OFF_T % 2147483647 == 1)
  13940. ? 1 : -1];
  13941. int
  13942. main (void)
  13943. {
  13944. ;
  13945. return 0;
  13946. }
  13947. _ACEOF
  13948. if ac_fn_c_try_compile "$LINENO"
  13949. then :
  13950. break
  13951. fi
  13952. rm -f core conftest.err conftest.$ac_objext conftest.beam
  13953. CC="$CC -n32"
  13954. if ac_fn_c_try_compile "$LINENO"
  13955. then :
  13956. ac_cv_sys_largefile_CC=' -n32'; break
  13957. fi
  13958. rm -f core conftest.err conftest.$ac_objext conftest.beam
  13959. break
  13960. done
  13961. CC=$ac_save_CC
  13962. rm -f conftest.$ac_ext
  13963. fi
  13964. fi
  13965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  13966. printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
  13967. if test "$ac_cv_sys_largefile_CC" != no; then
  13968. CC=$CC$ac_cv_sys_largefile_CC
  13969. fi
  13970. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  13971. printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  13972. if test ${ac_cv_sys_file_offset_bits+y}
  13973. then :
  13974. printf %s "(cached) " >&6
  13975. else $as_nop
  13976. while :; do
  13977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13978. /* end confdefs.h. */
  13979. #include <sys/types.h>
  13980. /* Check that off_t can represent 2**63 - 1 correctly.
  13981. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  13982. since some C++ compilers masquerading as C compilers
  13983. incorrectly reject 9223372036854775807. */
  13984. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  13985. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  13986. && LARGE_OFF_T % 2147483647 == 1)
  13987. ? 1 : -1];
  13988. int
  13989. main (void)
  13990. {
  13991. ;
  13992. return 0;
  13993. }
  13994. _ACEOF
  13995. if ac_fn_c_try_compile "$LINENO"
  13996. then :
  13997. ac_cv_sys_file_offset_bits=no; break
  13998. fi
  13999. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14001. /* end confdefs.h. */
  14002. #define _FILE_OFFSET_BITS 64
  14003. #include <sys/types.h>
  14004. /* Check that off_t can represent 2**63 - 1 correctly.
  14005. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14006. since some C++ compilers masquerading as C compilers
  14007. incorrectly reject 9223372036854775807. */
  14008. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  14009. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14010. && LARGE_OFF_T % 2147483647 == 1)
  14011. ? 1 : -1];
  14012. int
  14013. main (void)
  14014. {
  14015. ;
  14016. return 0;
  14017. }
  14018. _ACEOF
  14019. if ac_fn_c_try_compile "$LINENO"
  14020. then :
  14021. ac_cv_sys_file_offset_bits=64; break
  14022. fi
  14023. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14024. ac_cv_sys_file_offset_bits=unknown
  14025. break
  14026. done
  14027. fi
  14028. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  14029. printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
  14030. case $ac_cv_sys_file_offset_bits in #(
  14031. no | unknown) ;;
  14032. *)
  14033. printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
  14034. ;;
  14035. esac
  14036. rm -rf conftest*
  14037. if test $ac_cv_sys_file_offset_bits = unknown; then
  14038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  14039. printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
  14040. if test ${ac_cv_sys_large_files+y}
  14041. then :
  14042. printf %s "(cached) " >&6
  14043. else $as_nop
  14044. while :; do
  14045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14046. /* end confdefs.h. */
  14047. #include <sys/types.h>
  14048. /* Check that off_t can represent 2**63 - 1 correctly.
  14049. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14050. since some C++ compilers masquerading as C compilers
  14051. incorrectly reject 9223372036854775807. */
  14052. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  14053. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14054. && LARGE_OFF_T % 2147483647 == 1)
  14055. ? 1 : -1];
  14056. int
  14057. main (void)
  14058. {
  14059. ;
  14060. return 0;
  14061. }
  14062. _ACEOF
  14063. if ac_fn_c_try_compile "$LINENO"
  14064. then :
  14065. ac_cv_sys_large_files=no; break
  14066. fi
  14067. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14069. /* end confdefs.h. */
  14070. #define _LARGE_FILES 1
  14071. #include <sys/types.h>
  14072. /* Check that off_t can represent 2**63 - 1 correctly.
  14073. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  14074. since some C++ compilers masquerading as C compilers
  14075. incorrectly reject 9223372036854775807. */
  14076. #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
  14077. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  14078. && LARGE_OFF_T % 2147483647 == 1)
  14079. ? 1 : -1];
  14080. int
  14081. main (void)
  14082. {
  14083. ;
  14084. return 0;
  14085. }
  14086. _ACEOF
  14087. if ac_fn_c_try_compile "$LINENO"
  14088. then :
  14089. ac_cv_sys_large_files=1; break
  14090. fi
  14091. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14092. ac_cv_sys_large_files=unknown
  14093. break
  14094. done
  14095. fi
  14096. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  14097. printf "%s\n" "$ac_cv_sys_large_files" >&6; }
  14098. case $ac_cv_sys_large_files in #(
  14099. no | unknown) ;;
  14100. *)
  14101. printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
  14102. ;;
  14103. esac
  14104. rm -rf conftest*
  14105. fi
  14106. fi
  14107. # Checks for typedefs, structures, and compiler characteristics.
  14108. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14109. if test "x$ac_cv_type__Bool" = xyes
  14110. then :
  14111. printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
  14112. fi
  14113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  14114. printf %s "checking for stdbool.h that conforms to C99... " >&6; }
  14115. if test ${ac_cv_header_stdbool_h+y}
  14116. then :
  14117. printf %s "(cached) " >&6
  14118. else $as_nop
  14119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14120. /* end confdefs.h. */
  14121. #include <stdbool.h>
  14122. #ifndef __bool_true_false_are_defined
  14123. #error "__bool_true_false_are_defined is not defined"
  14124. #endif
  14125. char a[__bool_true_false_are_defined == 1 ? 1 : -1];
  14126. /* Regardless of whether this is C++ or "_Bool" is a
  14127. valid type name, "true" and "false" should be usable
  14128. in #if expressions and integer constant expressions,
  14129. and "bool" should be a valid type name. */
  14130. #if !true
  14131. #error "'true' is not true"
  14132. #endif
  14133. #if true != 1
  14134. #error "'true' is not equal to 1"
  14135. #endif
  14136. char b[true == 1 ? 1 : -1];
  14137. char c[true];
  14138. #if false
  14139. #error "'false' is not false"
  14140. #endif
  14141. #if false != 0
  14142. #error "'false' is not equal to 0"
  14143. #endif
  14144. char d[false == 0 ? 1 : -1];
  14145. enum { e = false, f = true, g = false * true, h = true * 256 };
  14146. char i[(bool) 0.5 == true ? 1 : -1];
  14147. char j[(bool) 0.0 == false ? 1 : -1];
  14148. char k[sizeof (bool) > 0 ? 1 : -1];
  14149. struct sb { bool s: 1; bool t; } s;
  14150. char l[sizeof s.t > 0 ? 1 : -1];
  14151. /* The following fails for
  14152. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14153. bool m[h];
  14154. char n[sizeof m == h * sizeof m[0] ? 1 : -1];
  14155. char o[-1 - (bool) 0 < 0 ? 1 : -1];
  14156. /* Catch a bug in an HP-UX C compiler. See
  14157. https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14158. https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14159. */
  14160. bool p = true;
  14161. bool *pp = &p;
  14162. /* C 1999 specifies that bool, true, and false are to be
  14163. macros, but C++ 2011 and later overrule this. */
  14164. #if __cplusplus < 201103
  14165. #ifndef bool
  14166. #error "bool is not defined"
  14167. #endif
  14168. #ifndef false
  14169. #error "false is not defined"
  14170. #endif
  14171. #ifndef true
  14172. #error "true is not defined"
  14173. #endif
  14174. #endif
  14175. /* If _Bool is available, repeat with it all the tests
  14176. above that used bool. */
  14177. #ifdef HAVE__BOOL
  14178. struct sB { _Bool s: 1; _Bool t; } t;
  14179. char q[(_Bool) 0.5 == true ? 1 : -1];
  14180. char r[(_Bool) 0.0 == false ? 1 : -1];
  14181. char u[sizeof (_Bool) > 0 ? 1 : -1];
  14182. char v[sizeof t.t > 0 ? 1 : -1];
  14183. _Bool w[h];
  14184. char x[sizeof m == h * sizeof m[0] ? 1 : -1];
  14185. char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
  14186. _Bool z = true;
  14187. _Bool *pz = &p;
  14188. #endif
  14189. int
  14190. main (void)
  14191. {
  14192. bool ps = &s;
  14193. *pp |= p;
  14194. *pp |= ! p;
  14195. #ifdef HAVE__BOOL
  14196. _Bool pt = &t;
  14197. *pz |= z;
  14198. *pz |= ! z;
  14199. #endif
  14200. /* Refer to every declared value, so they cannot be
  14201. discarded as unused. */
  14202. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
  14203. + !l + !m + !n + !o + !p + !pp + !ps
  14204. #ifdef HAVE__BOOL
  14205. + !q + !r + !u + !v + !w + !x + !y + !z + !pt
  14206. #endif
  14207. );
  14208. ;
  14209. return 0;
  14210. }
  14211. _ACEOF
  14212. if ac_fn_c_try_compile "$LINENO"
  14213. then :
  14214. ac_cv_header_stdbool_h=yes
  14215. else $as_nop
  14216. ac_cv_header_stdbool_h=no
  14217. fi
  14218. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14219. fi
  14220. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14221. printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
  14222. if test $ac_cv_header_stdbool_h = yes; then
  14223. printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
  14224. fi
  14225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  14226. printf %s "checking for an ANSI C-conforming const... " >&6; }
  14227. if test ${ac_cv_c_const+y}
  14228. then :
  14229. printf %s "(cached) " >&6
  14230. else $as_nop
  14231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14232. /* end confdefs.h. */
  14233. int
  14234. main (void)
  14235. {
  14236. #ifndef __cplusplus
  14237. /* Ultrix mips cc rejects this sort of thing. */
  14238. typedef int charset[2];
  14239. const charset cs = { 0, 0 };
  14240. /* SunOS 4.1.1 cc rejects this. */
  14241. char const *const *pcpcc;
  14242. char **ppc;
  14243. /* NEC SVR4.0.2 mips cc rejects this. */
  14244. struct point {int x, y;};
  14245. static struct point const zero = {0,0};
  14246. /* IBM XL C 1.02.0.0 rejects this.
  14247. It does not let you subtract one const X* pointer from another in
  14248. an arm of an if-expression whose if-part is not a constant
  14249. expression */
  14250. const char *g = "string";
  14251. pcpcc = &g + (g ? g-g : 0);
  14252. /* HPUX 7.0 cc rejects these. */
  14253. ++pcpcc;
  14254. ppc = (char**) pcpcc;
  14255. pcpcc = (char const *const *) ppc;
  14256. { /* SCO 3.2v4 cc rejects this sort of thing. */
  14257. char tx;
  14258. char *t = &tx;
  14259. char const *s = 0 ? (char *) 0 : (char const *) 0;
  14260. *t++ = 0;
  14261. if (s) return 0;
  14262. }
  14263. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  14264. int x[] = {25, 17};
  14265. const int *foo = &x[0];
  14266. ++foo;
  14267. }
  14268. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  14269. typedef const int *iptr;
  14270. iptr p = 0;
  14271. ++p;
  14272. }
  14273. { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
  14274. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  14275. struct s { int j; const int *ap[3]; } bx;
  14276. struct s *b = &bx; b->j = 5;
  14277. }
  14278. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  14279. const int foo = 10;
  14280. if (!foo) return 0;
  14281. }
  14282. return !cs[0] && !zero.x;
  14283. #endif
  14284. ;
  14285. return 0;
  14286. }
  14287. _ACEOF
  14288. if ac_fn_c_try_compile "$LINENO"
  14289. then :
  14290. ac_cv_c_const=yes
  14291. else $as_nop
  14292. ac_cv_c_const=no
  14293. fi
  14294. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14295. fi
  14296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  14297. printf "%s\n" "$ac_cv_c_const" >&6; }
  14298. if test $ac_cv_c_const = no; then
  14299. printf "%s\n" "#define const /**/" >>confdefs.h
  14300. fi
  14301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  14302. printf %s "checking for uid_t in sys/types.h... " >&6; }
  14303. if test ${ac_cv_type_uid_t+y}
  14304. then :
  14305. printf %s "(cached) " >&6
  14306. else $as_nop
  14307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14308. /* end confdefs.h. */
  14309. #include <sys/types.h>
  14310. _ACEOF
  14311. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14312. $EGREP "uid_t" >/dev/null 2>&1
  14313. then :
  14314. ac_cv_type_uid_t=yes
  14315. else $as_nop
  14316. ac_cv_type_uid_t=no
  14317. fi
  14318. rm -rf conftest*
  14319. fi
  14320. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  14321. printf "%s\n" "$ac_cv_type_uid_t" >&6; }
  14322. if test $ac_cv_type_uid_t = no; then
  14323. printf "%s\n" "#define uid_t int" >>confdefs.h
  14324. printf "%s\n" "#define gid_t int" >>confdefs.h
  14325. fi
  14326. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14327. printf %s "checking for inline... " >&6; }
  14328. if test ${ac_cv_c_inline+y}
  14329. then :
  14330. printf %s "(cached) " >&6
  14331. else $as_nop
  14332. ac_cv_c_inline=no
  14333. for ac_kw in inline __inline__ __inline; do
  14334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14335. /* end confdefs.h. */
  14336. #ifndef __cplusplus
  14337. typedef int foo_t;
  14338. static $ac_kw foo_t static_foo (void) {return 0; }
  14339. $ac_kw foo_t foo (void) {return 0; }
  14340. #endif
  14341. _ACEOF
  14342. if ac_fn_c_try_compile "$LINENO"
  14343. then :
  14344. ac_cv_c_inline=$ac_kw
  14345. fi
  14346. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14347. test "$ac_cv_c_inline" != no && break
  14348. done
  14349. fi
  14350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14351. printf "%s\n" "$ac_cv_c_inline" >&6; }
  14352. case $ac_cv_c_inline in
  14353. inline | yes) ;;
  14354. *)
  14355. case $ac_cv_c_inline in
  14356. no) ac_val=;;
  14357. *) ac_val=$ac_cv_c_inline;;
  14358. esac
  14359. cat >>confdefs.h <<_ACEOF
  14360. #ifndef __cplusplus
  14361. #define inline $ac_val
  14362. #endif
  14363. _ACEOF
  14364. ;;
  14365. esac
  14366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
  14367. printf %s "checking for long double with more range or precision than double... " >&6; }
  14368. if test ${ac_cv_type_long_double_wider+y}
  14369. then :
  14370. printf %s "(cached) " >&6
  14371. else $as_nop
  14372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14373. /* end confdefs.h. */
  14374. #include <float.h>
  14375. long double const a[] =
  14376. {
  14377. 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
  14378. LDBL_MIN, LDBL_MAX, LDBL_EPSILON
  14379. };
  14380. long double
  14381. f (long double x)
  14382. {
  14383. return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
  14384. + (x ? f (x) : 'c'));
  14385. }
  14386. int
  14387. main (void)
  14388. {
  14389. static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
  14390. + (DBL_MANT_DIG < LDBL_MANT_DIG)
  14391. - (LDBL_MAX_EXP < DBL_MAX_EXP)
  14392. - (LDBL_MANT_DIG < DBL_MANT_DIG)))
  14393. && (int) LDBL_EPSILON == 0
  14394. )];
  14395. test_array [0] = 0;
  14396. return test_array [0];
  14397. ;
  14398. return 0;
  14399. }
  14400. _ACEOF
  14401. if ac_fn_c_try_compile "$LINENO"
  14402. then :
  14403. ac_cv_type_long_double_wider=yes
  14404. else $as_nop
  14405. ac_cv_type_long_double_wider=no
  14406. fi
  14407. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14408. fi
  14409. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
  14410. printf "%s\n" "$ac_cv_type_long_double_wider" >&6; }
  14411. if test $ac_cv_type_long_double_wider = yes; then
  14412. printf "%s\n" "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
  14413. fi
  14414. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  14415. if test "x$ac_cv_type_mode_t" = xyes
  14416. then :
  14417. else $as_nop
  14418. printf "%s\n" "#define mode_t int" >>confdefs.h
  14419. fi
  14420. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  14421. if test "x$ac_cv_type_off_t" = xyes
  14422. then :
  14423. else $as_nop
  14424. printf "%s\n" "#define off_t long int" >>confdefs.h
  14425. fi
  14426. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
  14427. "
  14428. if test "x$ac_cv_type_pid_t" = xyes
  14429. then :
  14430. else $as_nop
  14431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14432. /* end confdefs.h. */
  14433. #if defined _WIN64 && !defined __CYGWIN__
  14434. LLP64
  14435. #endif
  14436. int
  14437. main (void)
  14438. {
  14439. ;
  14440. return 0;
  14441. }
  14442. _ACEOF
  14443. if ac_fn_c_try_compile "$LINENO"
  14444. then :
  14445. ac_pid_type='int'
  14446. else $as_nop
  14447. ac_pid_type='__int64'
  14448. fi
  14449. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14450. printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
  14451. fi
  14452. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14453. if test "x$ac_cv_type_size_t" = xyes
  14454. then :
  14455. else $as_nop
  14456. printf "%s\n" "#define size_t unsigned int" >>confdefs.h
  14457. fi
  14458. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  14459. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
  14460. then :
  14461. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
  14462. fi
  14463. ac_fn_c_check_member "$LINENO" "struct ucred" "uid" "ac_cv_member_struct_ucred_uid" "#include <sys/types.h>
  14464. #include <sys/socket.h>
  14465. "
  14466. if test "x$ac_cv_member_struct_ucred_uid" = xyes
  14467. then :
  14468. printf "%s\n" "#define HAVE_STRUCT_UCRED_UID 1" >>confdefs.h
  14469. fi
  14470. ac_fn_c_check_member "$LINENO" "struct ucred" "cr_uid" "ac_cv_member_struct_ucred_cr_uid" "#include <sys/types.h>
  14471. #include <sys/socket.h>
  14472. "
  14473. if test "x$ac_cv_member_struct_ucred_cr_uid" = xyes
  14474. then :
  14475. printf "%s\n" "#define HAVE_STRUCT_UCRED_CR_UID 1" >>confdefs.h
  14476. fi
  14477. ac_fn_c_check_member "$LINENO" "struct sockpeercred" "uid" "ac_cv_member_struct_sockpeercred_uid" "#include <sys/types.h>
  14478. #include <sys/socket.h>
  14479. "
  14480. if test "x$ac_cv_member_struct_sockpeercred_uid" = xyes
  14481. then :
  14482. printf "%s\n" "#define HAVE_STRUCT_SOCKPEERCRED_UID 1" >>confdefs.h
  14483. fi
  14484. 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>
  14485. "
  14486. if test "x$ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" = xyes
  14487. then :
  14488. printf "%s\n" "#define HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR 1" >>confdefs.h
  14489. fi
  14490. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  14491. printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  14492. if test ${ac_cv_struct_tm+y}
  14493. then :
  14494. printf %s "(cached) " >&6
  14495. else $as_nop
  14496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14497. /* end confdefs.h. */
  14498. #include <sys/types.h>
  14499. #include <time.h>
  14500. int
  14501. main (void)
  14502. {
  14503. struct tm tm;
  14504. int *p = &tm.tm_sec;
  14505. return !p;
  14506. ;
  14507. return 0;
  14508. }
  14509. _ACEOF
  14510. if ac_fn_c_try_compile "$LINENO"
  14511. then :
  14512. ac_cv_struct_tm=time.h
  14513. else $as_nop
  14514. ac_cv_struct_tm=sys/time.h
  14515. fi
  14516. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14517. fi
  14518. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  14519. printf "%s\n" "$ac_cv_struct_tm" >&6; }
  14520. if test $ac_cv_struct_tm = sys/time.h; then
  14521. printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
  14522. fi
  14523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14524. printf %s "checking for working volatile... " >&6; }
  14525. if test ${ac_cv_c_volatile+y}
  14526. then :
  14527. printf %s "(cached) " >&6
  14528. else $as_nop
  14529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14530. /* end confdefs.h. */
  14531. int
  14532. main (void)
  14533. {
  14534. volatile int x;
  14535. int * volatile y = (int *) 0;
  14536. return !x && !y;
  14537. ;
  14538. return 0;
  14539. }
  14540. _ACEOF
  14541. if ac_fn_c_try_compile "$LINENO"
  14542. then :
  14543. ac_cv_c_volatile=yes
  14544. else $as_nop
  14545. ac_cv_c_volatile=no
  14546. fi
  14547. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14548. fi
  14549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14550. printf "%s\n" "$ac_cv_c_volatile" >&6; }
  14551. if test $ac_cv_c_volatile = no; then
  14552. printf "%s\n" "#define volatile /**/" >>confdefs.h
  14553. fi
  14554. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  14555. if test "x$ac_cv_type_ptrdiff_t" = xyes
  14556. then :
  14557. printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
  14558. fi
  14559. stat_nsec_found=no
  14560. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
  14561. "
  14562. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes
  14563. then :
  14564. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h
  14565. stat_nsec_found=yes
  14566. fi
  14567. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
  14568. "
  14569. if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes
  14570. then :
  14571. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h
  14572. stat_nsec_found=yes
  14573. fi
  14574. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "#include <sys/stat.h>
  14575. "
  14576. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes
  14577. then :
  14578. printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1" >>confdefs.h
  14579. stat_nsec_found=yes
  14580. fi
  14581. if test "${stat_nsec_found}" != yes; then
  14582. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine nanosecond field of struct stat" >&5
  14583. printf "%s\n" "$as_me: WARNING: Cannot determine nanosecond field of struct stat" >&2;}
  14584. fi
  14585. # Checks for library functions.
  14586. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  14587. printf %s "checking for working chown... " >&6; }
  14588. if test ${ac_cv_func_chown_works+y}
  14589. then :
  14590. printf %s "(cached) " >&6
  14591. else $as_nop
  14592. if test "$cross_compiling" = yes
  14593. then :
  14594. case "$host_os" in # ((
  14595. # Guess yes on glibc systems.
  14596. *-gnu*) ac_cv_func_chown_works=yes ;;
  14597. # If we don't know, assume the worst.
  14598. *) ac_cv_func_chown_works=no ;;
  14599. esac
  14600. else $as_nop
  14601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14602. /* end confdefs.h. */
  14603. $ac_includes_default
  14604. #include <fcntl.h>
  14605. int
  14606. main (void)
  14607. {
  14608. char *f = "conftest.chown";
  14609. struct stat before, after;
  14610. if (creat (f, 0600) < 0)
  14611. return 1;
  14612. if (stat (f, &before) < 0)
  14613. return 1;
  14614. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  14615. return 1;
  14616. if (stat (f, &after) < 0)
  14617. return 1;
  14618. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  14619. ;
  14620. return 0;
  14621. }
  14622. _ACEOF
  14623. if ac_fn_c_try_run "$LINENO"
  14624. then :
  14625. ac_cv_func_chown_works=yes
  14626. else $as_nop
  14627. ac_cv_func_chown_works=no
  14628. fi
  14629. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14630. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14631. fi
  14632. rm -f conftest.chown
  14633. fi
  14634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  14635. printf "%s\n" "$ac_cv_func_chown_works" >&6; }
  14636. if test $ac_cv_func_chown_works = yes; then
  14637. printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
  14638. fi
  14639. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  14640. printf %s "checking whether closedir returns void... " >&6; }
  14641. if test ${ac_cv_func_closedir_void+y}
  14642. then :
  14643. printf %s "(cached) " >&6
  14644. else $as_nop
  14645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14646. /* end confdefs.h. */
  14647. #include <$ac_header_dirent>
  14648. int
  14649. main (void)
  14650. {
  14651. return closedir(0);
  14652. ;
  14653. return 0;
  14654. }
  14655. _ACEOF
  14656. if ac_fn_c_try_compile "$LINENO"
  14657. then :
  14658. ac_cv_func_closedir_void=no
  14659. else $as_nop
  14660. ac_cv_func_closedir_void=yes
  14661. fi
  14662. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  14663. fi
  14664. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  14665. printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
  14666. if test $ac_cv_func_closedir_void = yes; then
  14667. printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
  14668. fi
  14669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  14670. printf %s "checking for error_at_line... " >&6; }
  14671. if test ${ac_cv_lib_error_at_line+y}
  14672. then :
  14673. printf %s "(cached) " >&6
  14674. else $as_nop
  14675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14676. /* end confdefs.h. */
  14677. #include <error.h>
  14678. int
  14679. main (void)
  14680. {
  14681. error_at_line (0, 0, "", 0, "an error occurred");
  14682. ;
  14683. return 0;
  14684. }
  14685. _ACEOF
  14686. if ac_fn_c_try_link "$LINENO"
  14687. then :
  14688. ac_cv_lib_error_at_line=yes
  14689. else $as_nop
  14690. ac_cv_lib_error_at_line=no
  14691. fi
  14692. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14693. conftest$ac_exeext conftest.$ac_ext
  14694. fi
  14695. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  14696. printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
  14697. if test $ac_cv_lib_error_at_line = no; then
  14698. case " $LIBOBJS " in
  14699. *" error.$ac_objext "* ) ;;
  14700. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14701. ;;
  14702. esac
  14703. fi
  14704. ac_fn_c_check_header_compile "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  14705. if test "x$ac_cv_header_vfork_h" = xyes
  14706. then :
  14707. printf "%s\n" "#define HAVE_VFORK_H 1" >>confdefs.h
  14708. fi
  14709. ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
  14710. if test "x$ac_cv_func_fork" = xyes
  14711. then :
  14712. printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
  14713. fi
  14714. ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
  14715. if test "x$ac_cv_func_vfork" = xyes
  14716. then :
  14717. printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
  14718. fi
  14719. if test "x$ac_cv_func_fork" = xyes; then
  14720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  14721. printf %s "checking for working fork... " >&6; }
  14722. if test ${ac_cv_func_fork_works+y}
  14723. then :
  14724. printf %s "(cached) " >&6
  14725. else $as_nop
  14726. if test "$cross_compiling" = yes
  14727. then :
  14728. ac_cv_func_fork_works=cross
  14729. else $as_nop
  14730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14731. /* end confdefs.h. */
  14732. $ac_includes_default
  14733. int
  14734. main (void)
  14735. {
  14736. /* By Ruediger Kuhlmann. */
  14737. return fork () < 0;
  14738. ;
  14739. return 0;
  14740. }
  14741. _ACEOF
  14742. if ac_fn_c_try_run "$LINENO"
  14743. then :
  14744. ac_cv_func_fork_works=yes
  14745. else $as_nop
  14746. ac_cv_func_fork_works=no
  14747. fi
  14748. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14749. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14750. fi
  14751. fi
  14752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  14753. printf "%s\n" "$ac_cv_func_fork_works" >&6; }
  14754. else
  14755. ac_cv_func_fork_works=$ac_cv_func_fork
  14756. fi
  14757. if test "x$ac_cv_func_fork_works" = xcross; then
  14758. case $host in
  14759. *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
  14760. # Override, as these systems have only a dummy fork() stub
  14761. ac_cv_func_fork_works=no
  14762. ;;
  14763. *)
  14764. ac_cv_func_fork_works=yes
  14765. ;;
  14766. esac
  14767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  14768. printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  14769. fi
  14770. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14771. if test "x$ac_cv_func_vfork" = xyes; then
  14772. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  14773. printf %s "checking for working vfork... " >&6; }
  14774. if test ${ac_cv_func_vfork_works+y}
  14775. then :
  14776. printf %s "(cached) " >&6
  14777. else $as_nop
  14778. if test "$cross_compiling" = yes
  14779. then :
  14780. ac_cv_func_vfork_works=cross
  14781. else $as_nop
  14782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14783. /* end confdefs.h. */
  14784. /* Thanks to Paul Eggert for this test. */
  14785. $ac_includes_default
  14786. #include <signal.h>
  14787. #include <sys/wait.h>
  14788. #ifdef HAVE_VFORK_H
  14789. # include <vfork.h>
  14790. #endif
  14791. static void
  14792. do_nothing (int sig)
  14793. {
  14794. (void) sig;
  14795. }
  14796. /* On some sparc systems, changes by the child to local and incoming
  14797. argument registers are propagated back to the parent. The compiler
  14798. is told about this with #include <vfork.h>, but some compilers
  14799. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  14800. static variable whose address is put into a register that is
  14801. clobbered by the vfork. */
  14802. static void
  14803. sparc_address_test (int arg)
  14804. {
  14805. static pid_t child;
  14806. if (!child) {
  14807. child = vfork ();
  14808. if (child < 0) {
  14809. perror ("vfork");
  14810. _exit(2);
  14811. }
  14812. if (!child) {
  14813. arg = getpid();
  14814. write(-1, "", 0);
  14815. _exit (arg);
  14816. }
  14817. }
  14818. }
  14819. int
  14820. main (void)
  14821. {
  14822. pid_t parent = getpid ();
  14823. pid_t child;
  14824. sparc_address_test (0);
  14825. /* On Solaris 2.4, changes by the child to the signal handler
  14826. also munge signal handlers in the parent. To detect this,
  14827. start by putting the parent's handler in a known state. */
  14828. signal (SIGTERM, SIG_DFL);
  14829. child = vfork ();
  14830. if (child == 0) {
  14831. /* Here is another test for sparc vfork register problems. This
  14832. test uses lots of local variables, at least as many local
  14833. variables as main has allocated so far including compiler
  14834. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  14835. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  14836. reuse the register of parent for one of the local variables,
  14837. since it will think that parent can't possibly be used any more
  14838. in this routine. Assigning to the local variable will thus
  14839. munge parent in the parent process. */
  14840. pid_t
  14841. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  14842. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  14843. /* Convince the compiler that p..p7 are live; otherwise, it might
  14844. use the same hardware register for all 8 local variables. */
  14845. if (p != p1 || p != p2 || p != p3 || p != p4
  14846. || p != p5 || p != p6 || p != p7)
  14847. _exit(1);
  14848. /* Alter the child's signal handler. */
  14849. if (signal (SIGTERM, do_nothing) != SIG_DFL)
  14850. _exit(1);
  14851. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  14852. from child file descriptors. If the child closes a descriptor
  14853. before it execs or exits, this munges the parent's descriptor
  14854. as well. Test for this by closing stdout in the child. */
  14855. _exit(close(fileno(stdout)) != 0);
  14856. } else {
  14857. int status;
  14858. struct stat st;
  14859. while (wait(&status) != child)
  14860. ;
  14861. return (
  14862. /* Was there some problem with vforking? */
  14863. child < 0
  14864. /* Did the child munge the parent's signal handler? */
  14865. || signal (SIGTERM, SIG_DFL) != SIG_DFL
  14866. /* Did the child fail? (This shouldn't happen.) */
  14867. || status
  14868. /* Did the vfork/compiler bug occur? */
  14869. || parent != getpid()
  14870. /* Did the file descriptor bug occur? */
  14871. || fstat(fileno(stdout), &st) != 0
  14872. );
  14873. }
  14874. }
  14875. _ACEOF
  14876. if ac_fn_c_try_run "$LINENO"
  14877. then :
  14878. ac_cv_func_vfork_works=yes
  14879. else $as_nop
  14880. ac_cv_func_vfork_works=no
  14881. fi
  14882. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14883. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14884. fi
  14885. fi
  14886. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  14887. printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
  14888. fi;
  14889. if test "x$ac_cv_func_fork_works" = xcross; then
  14890. ac_cv_func_vfork_works=$ac_cv_func_vfork
  14891. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  14892. printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  14893. fi
  14894. if test "x$ac_cv_func_vfork_works" = xyes; then
  14895. printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  14896. else
  14897. printf "%s\n" "#define vfork fork" >>confdefs.h
  14898. fi
  14899. if test "x$ac_cv_func_fork_works" = xyes; then
  14900. printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
  14901. PBX_WORKING_FORK=1
  14902. fi
  14903. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  14904. printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  14905. if test ${ac_cv_sys_largefile_source+y}
  14906. then :
  14907. printf %s "(cached) " >&6
  14908. else $as_nop
  14909. while :; do
  14910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14911. /* end confdefs.h. */
  14912. #include <sys/types.h> /* for off_t */
  14913. #include <stdio.h>
  14914. int
  14915. main (void)
  14916. {
  14917. int (*fp) (FILE *, off_t, int) = fseeko;
  14918. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  14919. ;
  14920. return 0;
  14921. }
  14922. _ACEOF
  14923. if ac_fn_c_try_link "$LINENO"
  14924. then :
  14925. ac_cv_sys_largefile_source=no; break
  14926. fi
  14927. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14928. conftest$ac_exeext conftest.$ac_ext
  14929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14930. /* end confdefs.h. */
  14931. #define _LARGEFILE_SOURCE 1
  14932. #include <sys/types.h> /* for off_t */
  14933. #include <stdio.h>
  14934. int
  14935. main (void)
  14936. {
  14937. int (*fp) (FILE *, off_t, int) = fseeko;
  14938. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  14939. ;
  14940. return 0;
  14941. }
  14942. _ACEOF
  14943. if ac_fn_c_try_link "$LINENO"
  14944. then :
  14945. ac_cv_sys_largefile_source=1; break
  14946. fi
  14947. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  14948. conftest$ac_exeext conftest.$ac_ext
  14949. ac_cv_sys_largefile_source=unknown
  14950. break
  14951. done
  14952. fi
  14953. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  14954. printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
  14955. case $ac_cv_sys_largefile_source in #(
  14956. no | unknown) ;;
  14957. *)
  14958. printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
  14959. ;;
  14960. esac
  14961. rm -rf conftest*
  14962. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  14963. # in glibc 2.1.3, but that breaks too many other things.
  14964. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  14965. if test $ac_cv_sys_largefile_source != unknown; then
  14966. printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
  14967. fi
  14968. if test $ac_cv_c_compiler_gnu = yes; then
  14969. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  14970. printf %s "checking whether $CC needs -traditional... " >&6; }
  14971. if test ${ac_cv_prog_gcc_traditional+y}
  14972. then :
  14973. printf %s "(cached) " >&6
  14974. else $as_nop
  14975. ac_pattern="Autoconf.*'x'"
  14976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14977. /* end confdefs.h. */
  14978. #include <sgtty.h>
  14979. Autoconf TIOCGETP
  14980. _ACEOF
  14981. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14982. $EGREP "$ac_pattern" >/dev/null 2>&1
  14983. then :
  14984. ac_cv_prog_gcc_traditional=yes
  14985. else $as_nop
  14986. ac_cv_prog_gcc_traditional=no
  14987. fi
  14988. rm -rf conftest*
  14989. if test $ac_cv_prog_gcc_traditional = no; then
  14990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14991. /* end confdefs.h. */
  14992. #include <termio.h>
  14993. Autoconf TCGETA
  14994. _ACEOF
  14995. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14996. $EGREP "$ac_pattern" >/dev/null 2>&1
  14997. then :
  14998. ac_cv_prog_gcc_traditional=yes
  14999. fi
  15000. rm -rf conftest*
  15001. fi
  15002. fi
  15003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  15004. printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
  15005. if test $ac_cv_prog_gcc_traditional = yes; then
  15006. CC="$CC -traditional"
  15007. fi
  15008. fi
  15009. # XXX: these are commented out until we determine whether it matters if our malloc()
  15010. # acts exactly like glibc's or not
  15011. # AC_FUNC_MALLOC
  15012. # AC_FUNC_REALLOC
  15013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  15014. printf %s "checking for working memcmp... " >&6; }
  15015. if test ${ac_cv_func_memcmp_working+y}
  15016. then :
  15017. printf %s "(cached) " >&6
  15018. else $as_nop
  15019. if test "$cross_compiling" = yes
  15020. then :
  15021. ac_cv_func_memcmp_working=no
  15022. else $as_nop
  15023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15024. /* end confdefs.h. */
  15025. $ac_includes_default
  15026. int
  15027. main (void)
  15028. {
  15029. /* Some versions of memcmp are not 8-bit clean. */
  15030. char c0 = '\100', c1 = '\200', c2 = '\201';
  15031. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  15032. return 1;
  15033. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  15034. or more and with at least one buffer not starting on a 4-byte boundary.
  15035. William Lewis provided this test program. */
  15036. {
  15037. char foo[21];
  15038. char bar[21];
  15039. int i;
  15040. for (i = 0; i < 4; i++)
  15041. {
  15042. char *a = foo + i;
  15043. char *b = bar + i;
  15044. strcpy (a, "--------01111111");
  15045. strcpy (b, "--------10000000");
  15046. if (memcmp (a, b, 16) >= 0)
  15047. return 1;
  15048. }
  15049. return 0;
  15050. }
  15051. ;
  15052. return 0;
  15053. }
  15054. _ACEOF
  15055. if ac_fn_c_try_run "$LINENO"
  15056. then :
  15057. ac_cv_func_memcmp_working=yes
  15058. else $as_nop
  15059. ac_cv_func_memcmp_working=no
  15060. fi
  15061. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15062. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15063. fi
  15064. fi
  15065. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  15066. printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
  15067. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  15068. *" memcmp.$ac_objext "* ) ;;
  15069. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  15070. ;;
  15071. esac
  15072. ac_func=
  15073. for ac_item in $ac_func_c_list
  15074. do
  15075. if test $ac_func; then
  15076. ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
  15077. if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
  15078. echo "#define $ac_item 1" >> confdefs.h
  15079. fi
  15080. ac_func=
  15081. else
  15082. ac_func=$ac_item
  15083. fi
  15084. done
  15085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  15086. printf %s "checking for working mmap... " >&6; }
  15087. if test ${ac_cv_func_mmap_fixed_mapped+y}
  15088. then :
  15089. printf %s "(cached) " >&6
  15090. else $as_nop
  15091. if test "$cross_compiling" = yes
  15092. then :
  15093. case "$host_os" in # ((
  15094. # Guess yes on platforms where we know the result.
  15095. linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
  15096. # If we don't know, assume the worst.
  15097. *) ac_cv_func_mmap_fixed_mapped=no ;;
  15098. esac
  15099. else $as_nop
  15100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15101. /* end confdefs.h. */
  15102. $ac_includes_default
  15103. /* malloc might have been renamed as rpl_malloc. */
  15104. #undef malloc
  15105. /* Thanks to Mike Haertel and Jim Avera for this test.
  15106. Here is a matrix of mmap possibilities:
  15107. mmap private not fixed
  15108. mmap private fixed at somewhere currently unmapped
  15109. mmap private fixed at somewhere already mapped
  15110. mmap shared not fixed
  15111. mmap shared fixed at somewhere currently unmapped
  15112. mmap shared fixed at somewhere already mapped
  15113. For private mappings, we should verify that changes cannot be read()
  15114. back from the file, nor mmap's back from the file at a different
  15115. address. (There have been systems where private was not correctly
  15116. implemented like the infamous i386 svr4.0, and systems where the
  15117. VM page cache was not coherent with the file system buffer cache
  15118. like early versions of FreeBSD and possibly contemporary NetBSD.)
  15119. For shared mappings, we should conversely verify that changes get
  15120. propagated back to all the places they're supposed to be.
  15121. Grep wants private fixed already mapped.
  15122. The main things grep needs to know about mmap are:
  15123. * does it exist and is it safe to write into the mmap'd area
  15124. * how to use it (BSD variants) */
  15125. #include <fcntl.h>
  15126. #include <sys/mman.h>
  15127. /* This mess was copied from the GNU getpagesize.h. */
  15128. #ifndef HAVE_GETPAGESIZE
  15129. # ifdef _SC_PAGESIZE
  15130. # define getpagesize() sysconf(_SC_PAGESIZE)
  15131. # else /* no _SC_PAGESIZE */
  15132. # ifdef HAVE_SYS_PARAM_H
  15133. # include <sys/param.h>
  15134. # ifdef EXEC_PAGESIZE
  15135. # define getpagesize() EXEC_PAGESIZE
  15136. # else /* no EXEC_PAGESIZE */
  15137. # ifdef NBPG
  15138. # define getpagesize() NBPG * CLSIZE
  15139. # ifndef CLSIZE
  15140. # define CLSIZE 1
  15141. # endif /* no CLSIZE */
  15142. # else /* no NBPG */
  15143. # ifdef NBPC
  15144. # define getpagesize() NBPC
  15145. # else /* no NBPC */
  15146. # ifdef PAGESIZE
  15147. # define getpagesize() PAGESIZE
  15148. # endif /* PAGESIZE */
  15149. # endif /* no NBPC */
  15150. # endif /* no NBPG */
  15151. # endif /* no EXEC_PAGESIZE */
  15152. # else /* no HAVE_SYS_PARAM_H */
  15153. # define getpagesize() 8192 /* punt totally */
  15154. # endif /* no HAVE_SYS_PARAM_H */
  15155. # endif /* no _SC_PAGESIZE */
  15156. #endif /* no HAVE_GETPAGESIZE */
  15157. int
  15158. main (void)
  15159. {
  15160. char *data, *data2, *data3;
  15161. const char *cdata2;
  15162. int i, pagesize;
  15163. int fd, fd2;
  15164. pagesize = getpagesize ();
  15165. /* First, make a file with some known garbage in it. */
  15166. data = (char *) malloc (pagesize);
  15167. if (!data)
  15168. return 1;
  15169. for (i = 0; i < pagesize; ++i)
  15170. *(data + i) = rand ();
  15171. umask (0);
  15172. fd = creat ("conftest.mmap", 0600);
  15173. if (fd < 0)
  15174. return 2;
  15175. if (write (fd, data, pagesize) != pagesize)
  15176. return 3;
  15177. close (fd);
  15178. /* Next, check that the tail of a page is zero-filled. File must have
  15179. non-zero length, otherwise we risk SIGBUS for entire page. */
  15180. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  15181. if (fd2 < 0)
  15182. return 4;
  15183. cdata2 = "";
  15184. if (write (fd2, cdata2, 1) != 1)
  15185. return 5;
  15186. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  15187. if (data2 == MAP_FAILED)
  15188. return 6;
  15189. for (i = 0; i < pagesize; ++i)
  15190. if (*(data2 + i))
  15191. return 7;
  15192. close (fd2);
  15193. if (munmap (data2, pagesize))
  15194. return 8;
  15195. /* Next, try to mmap the file at a fixed address which already has
  15196. something else allocated at it. If we can, also make sure that
  15197. we see the same garbage. */
  15198. fd = open ("conftest.mmap", O_RDWR);
  15199. if (fd < 0)
  15200. return 9;
  15201. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  15202. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  15203. return 10;
  15204. for (i = 0; i < pagesize; ++i)
  15205. if (*(data + i) != *(data2 + i))
  15206. return 11;
  15207. /* Finally, make sure that changes to the mapped area do not
  15208. percolate back to the file as seen by read(). (This is a bug on
  15209. some variants of i386 svr4.0.) */
  15210. for (i = 0; i < pagesize; ++i)
  15211. *(data2 + i) = *(data2 + i) + 1;
  15212. data3 = (char *) malloc (pagesize);
  15213. if (!data3)
  15214. return 12;
  15215. if (read (fd, data3, pagesize) != pagesize)
  15216. return 13;
  15217. for (i = 0; i < pagesize; ++i)
  15218. if (*(data + i) != *(data3 + i))
  15219. return 14;
  15220. close (fd);
  15221. free (data);
  15222. free (data3);
  15223. return 0;
  15224. }
  15225. _ACEOF
  15226. if ac_fn_c_try_run "$LINENO"
  15227. then :
  15228. ac_cv_func_mmap_fixed_mapped=yes
  15229. else $as_nop
  15230. ac_cv_func_mmap_fixed_mapped=no
  15231. fi
  15232. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15233. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15234. fi
  15235. fi
  15236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15237. printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
  15238. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15239. printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
  15240. fi
  15241. rm -f conftest.mmap conftest.txt
  15242. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  15243. printf %s "checking types of arguments for select... " >&6; }
  15244. if test ${ac_cv_func_select_args+y}
  15245. then :
  15246. printf %s "(cached) " >&6
  15247. else $as_nop
  15248. ac_cv_func_select_args='int,int *,struct timeval *'
  15249. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  15250. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  15251. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  15252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15253. /* end confdefs.h. */
  15254. $ac_includes_default
  15255. #ifdef HAVE_SYS_SELECT_H
  15256. # include <sys/select.h>
  15257. #endif
  15258. #ifdef HAVE_SYS_SOCKET_H
  15259. # include <sys/socket.h>
  15260. #endif
  15261. int
  15262. main (void)
  15263. {
  15264. extern int select ($ac_arg1,
  15265. $ac_arg234, $ac_arg234, $ac_arg234,
  15266. $ac_arg5);
  15267. ;
  15268. return 0;
  15269. }
  15270. _ACEOF
  15271. if ac_fn_c_try_compile "$LINENO"
  15272. then :
  15273. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  15274. fi
  15275. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  15276. done
  15277. done
  15278. done
  15279. fi
  15280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  15281. printf "%s\n" "$ac_cv_func_select_args" >&6; }
  15282. ac_save_IFS=$IFS; IFS=','
  15283. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  15284. IFS=$ac_save_IFS
  15285. shift
  15286. printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
  15287. printf "%s\n" "#define SELECT_TYPE_ARG234 ($2)" >>confdefs.h
  15288. printf "%s\n" "#define SELECT_TYPE_ARG5 ($3)" >>confdefs.h
  15289. rm -rf conftest*
  15290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  15291. printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
  15292. if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
  15293. then :
  15294. printf %s "(cached) " >&6
  15295. else $as_nop
  15296. rm -f conftest.sym conftest.file
  15297. echo >conftest.file
  15298. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15299. if test "$cross_compiling" = yes
  15300. then :
  15301. case "$host_os" in # ((
  15302. # Guess yes on glibc systems.
  15303. *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
  15304. # If we don't know, assume the worst.
  15305. *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
  15306. esac
  15307. else $as_nop
  15308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15309. /* end confdefs.h. */
  15310. $ac_includes_default
  15311. int
  15312. main (void)
  15313. {
  15314. struct stat sbuf;
  15315. /* Linux will dereference the symlink and fail, as required by POSIX.
  15316. That is better in the sense that it means we will not
  15317. have to compile and use the lstat wrapper. */
  15318. return lstat ("conftest.sym/", &sbuf) == 0;
  15319. ;
  15320. return 0;
  15321. }
  15322. _ACEOF
  15323. if ac_fn_c_try_run "$LINENO"
  15324. then :
  15325. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15326. else $as_nop
  15327. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15328. fi
  15329. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15330. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15331. fi
  15332. else
  15333. # If the `ln -s' command failed, then we probably don't even
  15334. # have an lstat function.
  15335. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15336. fi
  15337. rm -f conftest.sym conftest.file
  15338. fi
  15339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  15340. printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  15341. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  15342. printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
  15343. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  15344. case " $LIBOBJS " in
  15345. *" lstat.$ac_objext "* ) ;;
  15346. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15347. ;;
  15348. esac
  15349. fi
  15350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  15351. printf %s "checking whether stat accepts an empty string... " >&6; }
  15352. if test ${ac_cv_func_stat_empty_string_bug+y}
  15353. then :
  15354. printf %s "(cached) " >&6
  15355. else $as_nop
  15356. if test "$cross_compiling" = yes
  15357. then :
  15358. ac_cv_func_stat_empty_string_bug=yes
  15359. else $as_nop
  15360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15361. /* end confdefs.h. */
  15362. $ac_includes_default
  15363. int
  15364. main (void)
  15365. {
  15366. struct stat sbuf;
  15367. return stat ("", &sbuf) == 0;
  15368. ;
  15369. return 0;
  15370. }
  15371. _ACEOF
  15372. if ac_fn_c_try_run "$LINENO"
  15373. then :
  15374. ac_cv_func_stat_empty_string_bug=no
  15375. else $as_nop
  15376. ac_cv_func_stat_empty_string_bug=yes
  15377. fi
  15378. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15379. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15380. fi
  15381. fi
  15382. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  15383. printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }
  15384. if test $ac_cv_func_stat_empty_string_bug = yes; then
  15385. case " $LIBOBJS " in
  15386. *" stat.$ac_objext "* ) ;;
  15387. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15388. ;;
  15389. esac
  15390. printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
  15391. fi
  15392. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
  15393. printf %s "checking for working strcoll... " >&6; }
  15394. if test ${ac_cv_func_strcoll_works+y}
  15395. then :
  15396. printf %s "(cached) " >&6
  15397. else $as_nop
  15398. if test "$cross_compiling" = yes
  15399. then :
  15400. case "$host_os" in # ((
  15401. # Guess yes on glibc systems.
  15402. *-gnu*) ac_cv_func_strcoll_works=yes ;;
  15403. # If we don't know, assume the worst.
  15404. *) ac_cv_func_strcoll_works=no ;;
  15405. esac
  15406. else $as_nop
  15407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15408. /* end confdefs.h. */
  15409. $ac_includes_default
  15410. int
  15411. main (void)
  15412. {
  15413. return (strcoll ("abc", "def") >= 0 ||
  15414. strcoll ("ABC", "DEF") >= 0 ||
  15415. strcoll ("123", "456") >= 0)
  15416. ;
  15417. return 0;
  15418. }
  15419. _ACEOF
  15420. if ac_fn_c_try_run "$LINENO"
  15421. then :
  15422. ac_cv_func_strcoll_works=yes
  15423. else $as_nop
  15424. ac_cv_func_strcoll_works=no
  15425. fi
  15426. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15427. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15428. fi
  15429. fi
  15430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
  15431. printf "%s\n" "$ac_cv_func_strcoll_works" >&6; }
  15432. if test $ac_cv_func_strcoll_works = yes; then
  15433. printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h
  15434. fi
  15435. for ac_func in strftime
  15436. do :
  15437. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  15438. if test "x$ac_cv_func_strftime" = xyes
  15439. then :
  15440. printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
  15441. else $as_nop
  15442. # strftime is in -lintl on SCO UNIX.
  15443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  15444. printf %s "checking for strftime in -lintl... " >&6; }
  15445. if test ${ac_cv_lib_intl_strftime+y}
  15446. then :
  15447. printf %s "(cached) " >&6
  15448. else $as_nop
  15449. ac_check_lib_save_LIBS=$LIBS
  15450. LIBS="-lintl $LIBS"
  15451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15452. /* end confdefs.h. */
  15453. /* Override any GCC internal prototype to avoid an error.
  15454. Use char because int might match the return type of a GCC
  15455. builtin and then its argument prototype would still apply. */
  15456. char strftime ();
  15457. int
  15458. main (void)
  15459. {
  15460. return strftime ();
  15461. ;
  15462. return 0;
  15463. }
  15464. _ACEOF
  15465. if ac_fn_c_try_link "$LINENO"
  15466. then :
  15467. ac_cv_lib_intl_strftime=yes
  15468. else $as_nop
  15469. ac_cv_lib_intl_strftime=no
  15470. fi
  15471. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15472. conftest$ac_exeext conftest.$ac_ext
  15473. LIBS=$ac_check_lib_save_LIBS
  15474. fi
  15475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  15476. printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }
  15477. if test "x$ac_cv_lib_intl_strftime" = xyes
  15478. then :
  15479. printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
  15480. LIBS="-lintl $LIBS"
  15481. fi
  15482. fi
  15483. done
  15484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
  15485. printf %s "checking for working strnlen... " >&6; }
  15486. if test ${ac_cv_func_strnlen_working+y}
  15487. then :
  15488. printf %s "(cached) " >&6
  15489. else $as_nop
  15490. if test "$cross_compiling" = yes
  15491. then :
  15492. # Guess no on AIX systems, yes otherwise.
  15493. case "$host_os" in
  15494. aix*) ac_cv_func_strnlen_working=no;;
  15495. *) ac_cv_func_strnlen_working=yes;;
  15496. esac
  15497. else $as_nop
  15498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15499. /* end confdefs.h. */
  15500. $ac_includes_default
  15501. int
  15502. main (void)
  15503. {
  15504. #define S "foobar"
  15505. #define S_LEN (sizeof S - 1)
  15506. /* At least one implementation is buggy: that of AIX 4.3 would
  15507. give strnlen (S, 1) == 3. */
  15508. int i;
  15509. for (i = 0; i < S_LEN + 1; ++i)
  15510. {
  15511. int expected = i <= S_LEN ? i : S_LEN;
  15512. if (strnlen (S, i) != expected)
  15513. return 1;
  15514. }
  15515. return 0;
  15516. ;
  15517. return 0;
  15518. }
  15519. _ACEOF
  15520. if ac_fn_c_try_run "$LINENO"
  15521. then :
  15522. ac_cv_func_strnlen_working=yes
  15523. else $as_nop
  15524. ac_cv_func_strnlen_working=no
  15525. fi
  15526. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15527. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15528. fi
  15529. fi
  15530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
  15531. printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
  15532. test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
  15533. *" strnlen.$ac_objext "* ) ;;
  15534. *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
  15535. ;;
  15536. esac
  15537. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  15538. printf %s "checking for working strtod... " >&6; }
  15539. if test ${ac_cv_func_strtod+y}
  15540. then :
  15541. printf %s "(cached) " >&6
  15542. else $as_nop
  15543. if test "$cross_compiling" = yes
  15544. then :
  15545. ac_cv_func_strtod=no
  15546. else $as_nop
  15547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15548. /* end confdefs.h. */
  15549. $ac_includes_default
  15550. #ifndef strtod
  15551. double strtod ();
  15552. #endif
  15553. int
  15554. main (void)
  15555. {
  15556. {
  15557. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  15558. char *string = " +69";
  15559. char *term;
  15560. double value;
  15561. value = strtod (string, &term);
  15562. if (value != 69 || term != (string + 4))
  15563. return 1;
  15564. }
  15565. {
  15566. /* Under Solaris 2.4, strtod returns the wrong value for the
  15567. terminating character under some conditions. */
  15568. char *string = "NaN";
  15569. char *term;
  15570. strtod (string, &term);
  15571. if (term != string && *(term - 1) == 0)
  15572. return 1;
  15573. }
  15574. return 0;
  15575. }
  15576. _ACEOF
  15577. if ac_fn_c_try_run "$LINENO"
  15578. then :
  15579. ac_cv_func_strtod=yes
  15580. else $as_nop
  15581. ac_cv_func_strtod=no
  15582. fi
  15583. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15584. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15585. fi
  15586. fi
  15587. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  15588. printf "%s\n" "$ac_cv_func_strtod" >&6; }
  15589. if test $ac_cv_func_strtod = no; then
  15590. case " $LIBOBJS " in
  15591. *" strtod.$ac_objext "* ) ;;
  15592. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  15593. ;;
  15594. esac
  15595. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  15596. if test "x$ac_cv_func_pow" = xyes
  15597. then :
  15598. fi
  15599. if test $ac_cv_func_pow = no; then
  15600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  15601. printf %s "checking for pow in -lm... " >&6; }
  15602. if test ${ac_cv_lib_m_pow+y}
  15603. then :
  15604. printf %s "(cached) " >&6
  15605. else $as_nop
  15606. ac_check_lib_save_LIBS=$LIBS
  15607. LIBS="-lm $LIBS"
  15608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15609. /* end confdefs.h. */
  15610. /* Override any GCC internal prototype to avoid an error.
  15611. Use char because int might match the return type of a GCC
  15612. builtin and then its argument prototype would still apply. */
  15613. char pow ();
  15614. int
  15615. main (void)
  15616. {
  15617. return pow ();
  15618. ;
  15619. return 0;
  15620. }
  15621. _ACEOF
  15622. if ac_fn_c_try_link "$LINENO"
  15623. then :
  15624. ac_cv_lib_m_pow=yes
  15625. else $as_nop
  15626. ac_cv_lib_m_pow=no
  15627. fi
  15628. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  15629. conftest$ac_exeext conftest.$ac_ext
  15630. LIBS=$ac_check_lib_save_LIBS
  15631. fi
  15632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  15633. printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
  15634. if test "x$ac_cv_lib_m_pow" = xyes
  15635. then :
  15636. POW_LIB=-lm
  15637. else $as_nop
  15638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  15639. printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  15640. fi
  15641. fi
  15642. fi
  15643. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
  15644. printf %s "checking whether utime accepts a null argument... " >&6; }
  15645. if test ${ac_cv_func_utime_null+y}
  15646. then :
  15647. printf %s "(cached) " >&6
  15648. else $as_nop
  15649. rm -f conftest.data; >conftest.data
  15650. # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
  15651. if test "$cross_compiling" = yes
  15652. then :
  15653. ac_cv_func_utime_null='guessing yes'
  15654. else $as_nop
  15655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15656. /* end confdefs.h. */
  15657. $ac_includes_default
  15658. #ifdef HAVE_UTIME_H
  15659. # include <utime.h>
  15660. #endif
  15661. int
  15662. main (void)
  15663. {
  15664. struct stat s, t;
  15665. return ! (stat ("conftest.data", &s) == 0
  15666. && utime ("conftest.data", 0) == 0
  15667. && stat ("conftest.data", &t) == 0
  15668. && t.st_mtime >= s.st_mtime
  15669. && t.st_mtime - s.st_mtime < 120);
  15670. ;
  15671. return 0;
  15672. }
  15673. _ACEOF
  15674. if ac_fn_c_try_run "$LINENO"
  15675. then :
  15676. ac_cv_func_utime_null=yes
  15677. else $as_nop
  15678. ac_cv_func_utime_null=no
  15679. fi
  15680. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15681. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15682. fi
  15683. fi
  15684. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
  15685. printf "%s\n" "$ac_cv_func_utime_null" >&6; }
  15686. if test "x$ac_cv_func_utime_null" != xno; then
  15687. ac_cv_func_utime_null=yes
  15688. printf "%s\n" "#define HAVE_UTIME_NULL 1" >>confdefs.h
  15689. fi
  15690. rm -f conftest.data
  15691. if test "x$ac_cv_func_vprintf" = xno
  15692. then :
  15693. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  15694. if test "x$ac_cv_func__doprnt" = xyes
  15695. then :
  15696. printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
  15697. fi
  15698. fi
  15699. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  15700. if test "x$ac_cv_func_asprintf" = xyes
  15701. then :
  15702. printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
  15703. fi
  15704. ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
  15705. if test "x$ac_cv_func_atexit" = xyes
  15706. then :
  15707. printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
  15708. fi
  15709. ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
  15710. if test "x$ac_cv_func_closefrom" = xyes
  15711. then :
  15712. printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
  15713. fi
  15714. ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
  15715. if test "x$ac_cv_func_dup2" = xyes
  15716. then :
  15717. printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
  15718. fi
  15719. ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
  15720. if test "x$ac_cv_func_eaccess" = xyes
  15721. then :
  15722. printf "%s\n" "#define HAVE_EACCESS 1" >>confdefs.h
  15723. fi
  15724. ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent"
  15725. if test "x$ac_cv_func_endpwent" = xyes
  15726. then :
  15727. printf "%s\n" "#define HAVE_ENDPWENT 1" >>confdefs.h
  15728. fi
  15729. ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess"
  15730. if test "x$ac_cv_func_euidaccess" = xyes
  15731. then :
  15732. printf "%s\n" "#define HAVE_EUIDACCESS 1" >>confdefs.h
  15733. fi
  15734. ac_fn_c_check_func "$LINENO" "ffsll" "ac_cv_func_ffsll"
  15735. if test "x$ac_cv_func_ffsll" = xyes
  15736. then :
  15737. printf "%s\n" "#define HAVE_FFSLL 1" >>confdefs.h
  15738. fi
  15739. ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
  15740. if test "x$ac_cv_func_ftruncate" = xyes
  15741. then :
  15742. printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
  15743. fi
  15744. ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
  15745. if test "x$ac_cv_func_getcwd" = xyes
  15746. then :
  15747. printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
  15748. fi
  15749. ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
  15750. if test "x$ac_cv_func_gethostbyname" = xyes
  15751. then :
  15752. printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
  15753. fi
  15754. ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
  15755. if test "x$ac_cv_func_gethostname" = xyes
  15756. then :
  15757. printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
  15758. fi
  15759. ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
  15760. if test "x$ac_cv_func_getloadavg" = xyes
  15761. then :
  15762. printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
  15763. fi
  15764. ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  15765. if test "x$ac_cv_func_gettimeofday" = xyes
  15766. then :
  15767. printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
  15768. fi
  15769. ac_fn_c_check_func "$LINENO" "glob" "ac_cv_func_glob"
  15770. if test "x$ac_cv_func_glob" = xyes
  15771. then :
  15772. printf "%s\n" "#define HAVE_GLOB 1" >>confdefs.h
  15773. fi
  15774. ac_fn_c_check_func "$LINENO" "ioperm" "ac_cv_func_ioperm"
  15775. if test "x$ac_cv_func_ioperm" = xyes
  15776. then :
  15777. printf "%s\n" "#define HAVE_IOPERM 1" >>confdefs.h
  15778. fi
  15779. ac_fn_c_check_func "$LINENO" "inet_ntoa" "ac_cv_func_inet_ntoa"
  15780. if test "x$ac_cv_func_inet_ntoa" = xyes
  15781. then :
  15782. printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h
  15783. fi
  15784. ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
  15785. if test "x$ac_cv_func_isascii" = xyes
  15786. then :
  15787. printf "%s\n" "#define HAVE_ISASCII 1" >>confdefs.h
  15788. fi
  15789. ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
  15790. if test "x$ac_cv_func_memchr" = xyes
  15791. then :
  15792. printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h
  15793. fi
  15794. ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
  15795. if test "x$ac_cv_func_memmove" = xyes
  15796. then :
  15797. printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
  15798. fi
  15799. ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
  15800. if test "x$ac_cv_func_memset" = xyes
  15801. then :
  15802. printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
  15803. fi
  15804. ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
  15805. if test "x$ac_cv_func_mkdir" = xyes
  15806. then :
  15807. printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
  15808. fi
  15809. ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
  15810. if test "x$ac_cv_func_mkdtemp" = xyes
  15811. then :
  15812. printf "%s\n" "#define HAVE_MKDTEMP 1" >>confdefs.h
  15813. fi
  15814. ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
  15815. if test "x$ac_cv_func_munmap" = xyes
  15816. then :
  15817. printf "%s\n" "#define HAVE_MUNMAP 1" >>confdefs.h
  15818. fi
  15819. ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
  15820. if test "x$ac_cv_func_newlocale" = xyes
  15821. then :
  15822. printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
  15823. fi
  15824. ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
  15825. if test "x$ac_cv_func_pipe2" = xyes
  15826. then :
  15827. printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
  15828. fi
  15829. ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
  15830. if test "x$ac_cv_func_ppoll" = xyes
  15831. then :
  15832. printf "%s\n" "#define HAVE_PPOLL 1" >>confdefs.h
  15833. fi
  15834. ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
  15835. if test "x$ac_cv_func_putenv" = xyes
  15836. then :
  15837. printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
  15838. fi
  15839. ac_fn_c_check_func "$LINENO" "re_comp" "ac_cv_func_re_comp"
  15840. if test "x$ac_cv_func_re_comp" = xyes
  15841. then :
  15842. printf "%s\n" "#define HAVE_RE_COMP 1" >>confdefs.h
  15843. fi
  15844. ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
  15845. if test "x$ac_cv_func_regcomp" = xyes
  15846. then :
  15847. printf "%s\n" "#define HAVE_REGCOMP 1" >>confdefs.h
  15848. fi
  15849. ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
  15850. if test "x$ac_cv_func_select" = xyes
  15851. then :
  15852. printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
  15853. fi
  15854. ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
  15855. if test "x$ac_cv_func_setenv" = xyes
  15856. then :
  15857. printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
  15858. fi
  15859. ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
  15860. if test "x$ac_cv_func_socket" = xyes
  15861. then :
  15862. printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
  15863. fi
  15864. ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
  15865. if test "x$ac_cv_func_strcasecmp" = xyes
  15866. then :
  15867. printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
  15868. fi
  15869. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  15870. if test "x$ac_cv_func_strcasestr" = xyes
  15871. then :
  15872. printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
  15873. fi
  15874. ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
  15875. if test "x$ac_cv_func_strchr" = xyes
  15876. then :
  15877. printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
  15878. fi
  15879. ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
  15880. if test "x$ac_cv_func_strcspn" = xyes
  15881. then :
  15882. printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
  15883. fi
  15884. ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
  15885. if test "x$ac_cv_func_strdup" = xyes
  15886. then :
  15887. printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
  15888. fi
  15889. ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
  15890. if test "x$ac_cv_func_strerror" = xyes
  15891. then :
  15892. printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
  15893. fi
  15894. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  15895. if test "x$ac_cv_func_strlcat" = xyes
  15896. then :
  15897. printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
  15898. fi
  15899. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  15900. if test "x$ac_cv_func_strlcpy" = xyes
  15901. then :
  15902. printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
  15903. fi
  15904. ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
  15905. if test "x$ac_cv_func_strncasecmp" = xyes
  15906. then :
  15907. printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
  15908. fi
  15909. ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
  15910. if test "x$ac_cv_func_strndup" = xyes
  15911. then :
  15912. printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
  15913. fi
  15914. ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
  15915. if test "x$ac_cv_func_strnlen" = xyes
  15916. then :
  15917. printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
  15918. fi
  15919. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  15920. if test "x$ac_cv_func_strrchr" = xyes
  15921. then :
  15922. printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
  15923. fi
  15924. ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
  15925. if test "x$ac_cv_func_strsep" = xyes
  15926. then :
  15927. printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
  15928. fi
  15929. ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
  15930. if test "x$ac_cv_func_strspn" = xyes
  15931. then :
  15932. printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
  15933. fi
  15934. ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
  15935. if test "x$ac_cv_func_strstr" = xyes
  15936. then :
  15937. printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
  15938. fi
  15939. ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
  15940. if test "x$ac_cv_func_strtod" = xyes
  15941. then :
  15942. printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
  15943. fi
  15944. ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
  15945. if test "x$ac_cv_func_strtol" = xyes
  15946. then :
  15947. printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h
  15948. fi
  15949. ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
  15950. if test "x$ac_cv_func_strtold" = xyes
  15951. then :
  15952. printf "%s\n" "#define HAVE_STRTOLD 1" >>confdefs.h
  15953. fi
  15954. ac_fn_c_check_func "$LINENO" "strtoq" "ac_cv_func_strtoq"
  15955. if test "x$ac_cv_func_strtoq" = xyes
  15956. then :
  15957. printf "%s\n" "#define HAVE_STRTOQ 1" >>confdefs.h
  15958. fi
  15959. ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
  15960. if test "x$ac_cv_func_unsetenv" = xyes
  15961. then :
  15962. printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
  15963. fi
  15964. ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
  15965. if test "x$ac_cv_func_uselocale" = xyes
  15966. then :
  15967. printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
  15968. fi
  15969. ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
  15970. if test "x$ac_cv_func_utime" = xyes
  15971. then :
  15972. printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
  15973. fi
  15974. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  15975. if test "x$ac_cv_func_vasprintf" = xyes
  15976. then :
  15977. printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
  15978. fi
  15979. ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
  15980. if test "x$ac_cv_func_getpeereid" = xyes
  15981. then :
  15982. printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h
  15983. fi
  15984. ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
  15985. if test "x$ac_cv_func_sysctl" = xyes
  15986. then :
  15987. printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h
  15988. fi
  15989. ac_fn_c_check_func "$LINENO" "swapctl" "ac_cv_func_swapctl"
  15990. if test "x$ac_cv_func_swapctl" = xyes
  15991. then :
  15992. printf "%s\n" "#define HAVE_SWAPCTL 1" >>confdefs.h
  15993. fi
  15994. ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
  15995. if test "x$ac_cv_func_malloc_trim" = xyes
  15996. then :
  15997. printf "%s\n" "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
  15998. fi
  15999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htonll" >&5
  16000. printf %s "checking for htonll... " >&6; }
  16001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16002. /* end confdefs.h. */
  16003. #include <arpa/inet.h>
  16004. int
  16005. main (void)
  16006. {
  16007. return htonll(0);
  16008. ;
  16009. return 0;
  16010. }
  16011. _ACEOF
  16012. if ac_fn_c_try_link "$LINENO"
  16013. then :
  16014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16015. printf "%s\n" "yes" >&6; }
  16016. printf "%s\n" "#define HAVE_HTONLL 1" >>confdefs.h
  16017. else $as_nop
  16018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16019. printf "%s\n" "no" >&6; }
  16020. fi
  16021. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16022. conftest$ac_exeext conftest.$ac_ext
  16023. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ntohll" >&5
  16024. printf %s "checking for ntohll... " >&6; }
  16025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16026. /* end confdefs.h. */
  16027. #include <arpa/inet.h>
  16028. int
  16029. main (void)
  16030. {
  16031. return ntohll(0);
  16032. ;
  16033. return 0;
  16034. }
  16035. _ACEOF
  16036. if ac_fn_c_try_link "$LINENO"
  16037. then :
  16038. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16039. printf "%s\n" "yes" >&6; }
  16040. printf "%s\n" "#define HAVE_NTOHLL 1" >>confdefs.h
  16041. else $as_nop
  16042. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16043. printf "%s\n" "no" >&6; }
  16044. fi
  16045. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16046. conftest$ac_exeext conftest.$ac_ext
  16047. # NOTE: we use AC_CHECK_LIB to get -lm into the arguments for later checks,
  16048. # so that AC_CHECK_FUNCS can detect functions in that library.
  16049. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  16050. printf %s "checking for sqrt in -lm... " >&6; }
  16051. if test ${ac_cv_lib_m_sqrt+y}
  16052. then :
  16053. printf %s "(cached) " >&6
  16054. else $as_nop
  16055. ac_check_lib_save_LIBS=$LIBS
  16056. LIBS="-lm $LIBS"
  16057. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16058. /* end confdefs.h. */
  16059. /* Override any GCC internal prototype to avoid an error.
  16060. Use char because int might match the return type of a GCC
  16061. builtin and then its argument prototype would still apply. */
  16062. char sqrt ();
  16063. int
  16064. main (void)
  16065. {
  16066. return sqrt ();
  16067. ;
  16068. return 0;
  16069. }
  16070. _ACEOF
  16071. if ac_fn_c_try_link "$LINENO"
  16072. then :
  16073. ac_cv_lib_m_sqrt=yes
  16074. else $as_nop
  16075. ac_cv_lib_m_sqrt=no
  16076. fi
  16077. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16078. conftest$ac_exeext conftest.$ac_ext
  16079. LIBS=$ac_check_lib_save_LIBS
  16080. fi
  16081. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  16082. printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
  16083. if test "x$ac_cv_lib_m_sqrt" = xyes
  16084. then :
  16085. printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
  16086. LIBS="-lm $LIBS"
  16087. fi
  16088. # BSD might not have exp2, and/or log2
  16089. ac_fn_c_check_func "$LINENO" "exp2" "ac_cv_func_exp2"
  16090. if test "x$ac_cv_func_exp2" = xyes
  16091. then :
  16092. printf "%s\n" "#define HAVE_EXP2 1" >>confdefs.h
  16093. fi
  16094. ac_fn_c_check_func "$LINENO" "log2" "ac_cv_func_log2"
  16095. if test "x$ac_cv_func_log2" = xyes
  16096. then :
  16097. printf "%s\n" "#define HAVE_LOG2 1" >>confdefs.h
  16098. fi
  16099. ac_fn_c_check_func "$LINENO" "exp10" "ac_cv_func_exp10"
  16100. if test "x$ac_cv_func_exp10" = xyes
  16101. then :
  16102. printf "%s\n" "#define HAVE_EXP10 1" >>confdefs.h
  16103. fi
  16104. ac_fn_c_check_func "$LINENO" "log10" "ac_cv_func_log10"
  16105. if test "x$ac_cv_func_log10" = xyes
  16106. then :
  16107. printf "%s\n" "#define HAVE_LOG10 1" >>confdefs.h
  16108. fi
  16109. ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin"
  16110. if test "x$ac_cv_func_sin" = xyes
  16111. then :
  16112. printf "%s\n" "#define HAVE_SIN 1" >>confdefs.h
  16113. fi
  16114. ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos"
  16115. if test "x$ac_cv_func_cos" = xyes
  16116. then :
  16117. printf "%s\n" "#define HAVE_COS 1" >>confdefs.h
  16118. fi
  16119. ac_fn_c_check_func "$LINENO" "tan" "ac_cv_func_tan"
  16120. if test "x$ac_cv_func_tan" = xyes
  16121. then :
  16122. printf "%s\n" "#define HAVE_TAN 1" >>confdefs.h
  16123. fi
  16124. ac_fn_c_check_func "$LINENO" "asin" "ac_cv_func_asin"
  16125. if test "x$ac_cv_func_asin" = xyes
  16126. then :
  16127. printf "%s\n" "#define HAVE_ASIN 1" >>confdefs.h
  16128. fi
  16129. ac_fn_c_check_func "$LINENO" "acos" "ac_cv_func_acos"
  16130. if test "x$ac_cv_func_acos" = xyes
  16131. then :
  16132. printf "%s\n" "#define HAVE_ACOS 1" >>confdefs.h
  16133. fi
  16134. ac_fn_c_check_func "$LINENO" "atan" "ac_cv_func_atan"
  16135. if test "x$ac_cv_func_atan" = xyes
  16136. then :
  16137. printf "%s\n" "#define HAVE_ATAN 1" >>confdefs.h
  16138. fi
  16139. ac_fn_c_check_func "$LINENO" "atan2" "ac_cv_func_atan2"
  16140. if test "x$ac_cv_func_atan2" = xyes
  16141. then :
  16142. printf "%s\n" "#define HAVE_ATAN2 1" >>confdefs.h
  16143. fi
  16144. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  16145. if test "x$ac_cv_func_pow" = xyes
  16146. then :
  16147. printf "%s\n" "#define HAVE_POW 1" >>confdefs.h
  16148. fi
  16149. ac_fn_c_check_func "$LINENO" "rint" "ac_cv_func_rint"
  16150. if test "x$ac_cv_func_rint" = xyes
  16151. then :
  16152. printf "%s\n" "#define HAVE_RINT 1" >>confdefs.h
  16153. fi
  16154. ac_fn_c_check_func "$LINENO" "exp" "ac_cv_func_exp"
  16155. if test "x$ac_cv_func_exp" = xyes
  16156. then :
  16157. printf "%s\n" "#define HAVE_EXP 1" >>confdefs.h
  16158. fi
  16159. ac_fn_c_check_func "$LINENO" "log" "ac_cv_func_log"
  16160. if test "x$ac_cv_func_log" = xyes
  16161. then :
  16162. printf "%s\n" "#define HAVE_LOG 1" >>confdefs.h
  16163. fi
  16164. ac_fn_c_check_func "$LINENO" "remainder" "ac_cv_func_remainder"
  16165. if test "x$ac_cv_func_remainder" = xyes
  16166. then :
  16167. printf "%s\n" "#define HAVE_REMAINDER 1" >>confdefs.h
  16168. fi
  16169. ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
  16170. if test "x$ac_cv_func_fmod" = xyes
  16171. then :
  16172. printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
  16173. fi
  16174. ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round"
  16175. if test "x$ac_cv_func_round" = xyes
  16176. then :
  16177. printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h
  16178. fi
  16179. ac_fn_c_check_func "$LINENO" "roundf" "ac_cv_func_roundf"
  16180. if test "x$ac_cv_func_roundf" = xyes
  16181. then :
  16182. printf "%s\n" "#define HAVE_ROUNDF 1" >>confdefs.h
  16183. fi
  16184. ac_fn_c_check_func "$LINENO" "trunc" "ac_cv_func_trunc"
  16185. if test "x$ac_cv_func_trunc" = xyes
  16186. then :
  16187. printf "%s\n" "#define HAVE_TRUNC 1" >>confdefs.h
  16188. fi
  16189. ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
  16190. if test "x$ac_cv_func_floor" = xyes
  16191. then :
  16192. printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
  16193. fi
  16194. ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
  16195. if test "x$ac_cv_func_ceil" = xyes
  16196. then :
  16197. printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
  16198. fi
  16199. # Certain architectures don't really have long double, even though
  16200. # AC_CHECK_FUNCS would otherwise find the following functions.
  16201. if test "x${ac_cv_type_long_double_wider}" = "xyes" ; then
  16202. ac_fn_c_check_func "$LINENO" "exp2l" "ac_cv_func_exp2l"
  16203. if test "x$ac_cv_func_exp2l" = xyes
  16204. then :
  16205. printf "%s\n" "#define HAVE_EXP2L 1" >>confdefs.h
  16206. fi
  16207. ac_fn_c_check_func "$LINENO" "log2l" "ac_cv_func_log2l"
  16208. if test "x$ac_cv_func_log2l" = xyes
  16209. then :
  16210. printf "%s\n" "#define HAVE_LOG2L 1" >>confdefs.h
  16211. fi
  16212. ac_fn_c_check_func "$LINENO" "exp10l" "ac_cv_func_exp10l"
  16213. if test "x$ac_cv_func_exp10l" = xyes
  16214. then :
  16215. printf "%s\n" "#define HAVE_EXP10L 1" >>confdefs.h
  16216. fi
  16217. ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
  16218. if test "x$ac_cv_func_log10l" = xyes
  16219. then :
  16220. printf "%s\n" "#define HAVE_LOG10L 1" >>confdefs.h
  16221. fi
  16222. ac_fn_c_check_func "$LINENO" "sinl" "ac_cv_func_sinl"
  16223. if test "x$ac_cv_func_sinl" = xyes
  16224. then :
  16225. printf "%s\n" "#define HAVE_SINL 1" >>confdefs.h
  16226. fi
  16227. ac_fn_c_check_func "$LINENO" "cosl" "ac_cv_func_cosl"
  16228. if test "x$ac_cv_func_cosl" = xyes
  16229. then :
  16230. printf "%s\n" "#define HAVE_COSL 1" >>confdefs.h
  16231. fi
  16232. ac_fn_c_check_func "$LINENO" "tanl" "ac_cv_func_tanl"
  16233. if test "x$ac_cv_func_tanl" = xyes
  16234. then :
  16235. printf "%s\n" "#define HAVE_TANL 1" >>confdefs.h
  16236. fi
  16237. ac_fn_c_check_func "$LINENO" "asinl" "ac_cv_func_asinl"
  16238. if test "x$ac_cv_func_asinl" = xyes
  16239. then :
  16240. printf "%s\n" "#define HAVE_ASINL 1" >>confdefs.h
  16241. fi
  16242. ac_fn_c_check_func "$LINENO" "acosl" "ac_cv_func_acosl"
  16243. if test "x$ac_cv_func_acosl" = xyes
  16244. then :
  16245. printf "%s\n" "#define HAVE_ACOSL 1" >>confdefs.h
  16246. fi
  16247. ac_fn_c_check_func "$LINENO" "atanl" "ac_cv_func_atanl"
  16248. if test "x$ac_cv_func_atanl" = xyes
  16249. then :
  16250. printf "%s\n" "#define HAVE_ATANL 1" >>confdefs.h
  16251. fi
  16252. ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
  16253. if test "x$ac_cv_func_atan2l" = xyes
  16254. then :
  16255. printf "%s\n" "#define HAVE_ATAN2L 1" >>confdefs.h
  16256. fi
  16257. ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
  16258. if test "x$ac_cv_func_powl" = xyes
  16259. then :
  16260. printf "%s\n" "#define HAVE_POWL 1" >>confdefs.h
  16261. fi
  16262. ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
  16263. if test "x$ac_cv_func_sqrtl" = xyes
  16264. then :
  16265. printf "%s\n" "#define HAVE_SQRTL 1" >>confdefs.h
  16266. fi
  16267. ac_fn_c_check_func "$LINENO" "rintl" "ac_cv_func_rintl"
  16268. if test "x$ac_cv_func_rintl" = xyes
  16269. then :
  16270. printf "%s\n" "#define HAVE_RINTL 1" >>confdefs.h
  16271. fi
  16272. ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
  16273. if test "x$ac_cv_func_expl" = xyes
  16274. then :
  16275. printf "%s\n" "#define HAVE_EXPL 1" >>confdefs.h
  16276. fi
  16277. ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
  16278. if test "x$ac_cv_func_logl" = xyes
  16279. then :
  16280. printf "%s\n" "#define HAVE_LOGL 1" >>confdefs.h
  16281. fi
  16282. ac_fn_c_check_func "$LINENO" "remainderl" "ac_cv_func_remainderl"
  16283. if test "x$ac_cv_func_remainderl" = xyes
  16284. then :
  16285. printf "%s\n" "#define HAVE_REMAINDERL 1" >>confdefs.h
  16286. fi
  16287. ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
  16288. if test "x$ac_cv_func_fmodl" = xyes
  16289. then :
  16290. printf "%s\n" "#define HAVE_FMODL 1" >>confdefs.h
  16291. fi
  16292. ac_fn_c_check_func "$LINENO" "roundl" "ac_cv_func_roundl"
  16293. if test "x$ac_cv_func_roundl" = xyes
  16294. then :
  16295. printf "%s\n" "#define HAVE_ROUNDL 1" >>confdefs.h
  16296. fi
  16297. ac_fn_c_check_func "$LINENO" "truncl" "ac_cv_func_truncl"
  16298. if test "x$ac_cv_func_truncl" = xyes
  16299. then :
  16300. printf "%s\n" "#define HAVE_TRUNCL 1" >>confdefs.h
  16301. fi
  16302. ac_fn_c_check_func "$LINENO" "floorl" "ac_cv_func_floorl"
  16303. if test "x$ac_cv_func_floorl" = xyes
  16304. then :
  16305. printf "%s\n" "#define HAVE_FLOORL 1" >>confdefs.h
  16306. fi
  16307. ac_fn_c_check_func "$LINENO" "ceill" "ac_cv_func_ceill"
  16308. if test "x$ac_cv_func_ceill" = xyes
  16309. then :
  16310. printf "%s\n" "#define HAVE_CEILL 1" >>confdefs.h
  16311. fi
  16312. fi
  16313. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LLONG_MAX in limits.h" >&5
  16314. printf %s "checking for LLONG_MAX in limits.h... " >&6; }
  16315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16316. /* end confdefs.h. */
  16317. #include <limits.h>
  16318. int
  16319. main (void)
  16320. {
  16321. long long foo = LLONG_MAX
  16322. ;
  16323. return 0;
  16324. }
  16325. _ACEOF
  16326. if ac_fn_c_try_link "$LINENO"
  16327. then :
  16328. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16329. printf "%s\n" "yes" >&6; }
  16330. printf "%s\n" "#define HAVE_LLONG_MAX 1" >>confdefs.h
  16331. else $as_nop
  16332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16333. printf "%s\n" "no" >&6; }
  16334. fi
  16335. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16336. conftest$ac_exeext conftest.$ac_ext
  16337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timersub in time.h" >&5
  16338. printf %s "checking for timersub in time.h... " >&6; }
  16339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16340. /* end confdefs.h. */
  16341. #include <sys/time.h>
  16342. int
  16343. main (void)
  16344. {
  16345. struct timeval *a; timersub(a, a, a);
  16346. ;
  16347. return 0;
  16348. }
  16349. _ACEOF
  16350. if ac_fn_c_try_link "$LINENO"
  16351. then :
  16352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16353. printf "%s\n" "yes" >&6; }
  16354. printf "%s\n" "#define HAVE_TIMERSUB 1" >>confdefs.h
  16355. else $as_nop
  16356. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16357. printf "%s\n" "no" >&6; }
  16358. fi
  16359. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16360. conftest$ac_exeext conftest.$ac_ext
  16361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a version of GNU ld that supports the --dynamic-list flag" >&5
  16362. printf %s "checking for a version of GNU ld that supports the --dynamic-list flag... " >&6; }
  16363. old_LDFLAGS=${LDFLAGS}
  16364. cat >conftest.dynamics <<_ACEOF
  16365. {
  16366. *ast_*;
  16367. };
  16368. _ACEOF
  16369. LDFLAGS="${LDFLAGS} -Wl,--dynamic-list,conftest.dynamics"
  16370. PBX_DYNAMIC_LIST=0
  16371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16372. /* end confdefs.h. */
  16373. int
  16374. main (void)
  16375. {
  16376. ;
  16377. return 0;
  16378. }
  16379. _ACEOF
  16380. if ac_fn_c_try_link "$LINENO"
  16381. then :
  16382. PBX_DYNAMIC_LIST=1
  16383. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16384. printf "%s\n" "yes" >&6; }
  16385. else $as_nop
  16386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16387. printf "%s\n" "no" >&6; }
  16388. fi
  16389. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16390. conftest$ac_exeext conftest.$ac_ext
  16391. LDFLAGS=${old_LDFLAGS}
  16392. rm -f conftest.dynamics
  16393. ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  16394. if test "x$ac_cv_header_sys_poll_h" = xyes
  16395. then :
  16396. HAS_POLL=1
  16397. printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  16398. fi
  16399. # Check whether --enable-internal-poll was given.
  16400. if test ${enable_internal_poll+y}
  16401. then :
  16402. enableval=$enable_internal_poll; case "${enableval}" in
  16403. y|ye|yes) HAS_POLL="";;
  16404. n|no) HAS_POLL="${HAS_POLL}" ;;
  16405. *) as_fn_error $? "bad value ${enableval} for --enable-internal-poll" "$LINENO" 5 ;;
  16406. esac
  16407. fi
  16408. # Check whether --enable-asteriskssl was given.
  16409. if test ${enable_asteriskssl+y}
  16410. then :
  16411. enableval=$enable_asteriskssl; case "${enableval}" in
  16412. y|ye|yes) AST_ASTERISKSSL=yes ;;
  16413. n|no) AST_ASTERISKSSL=no ;;
  16414. *) as_fn_error $? "bad value ${enableval} for --disable-asteriskssl" "$LINENO" 5 ;;
  16415. esac
  16416. else $as_nop
  16417. AST_ASTERISKSSL=yes
  16418. fi
  16419. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  16420. if test "x$ac_cv_func_inet_aton" = xyes
  16421. then :
  16422. printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
  16423. fi
  16424. # check if we have IP_PKTINFO constant defined
  16425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IP_PKTINFO" >&5
  16426. printf %s "checking for IP_PKTINFO... " >&6; }
  16427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16428. /* end confdefs.h. */
  16429. #include <netinet/in.h>
  16430. int
  16431. main (void)
  16432. {
  16433. int pi = IP_PKTINFO;
  16434. ;
  16435. return 0;
  16436. }
  16437. _ACEOF
  16438. if ac_fn_c_try_link "$LINENO"
  16439. then :
  16440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16441. printf "%s\n" "yes" >&6; }
  16442. printf "%s\n" "#define HAVE_PKTINFO 1" >>confdefs.h
  16443. else $as_nop
  16444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16445. printf "%s\n" "no" >&6; }
  16446. fi
  16447. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16448. conftest$ac_exeext conftest.$ac_ext
  16449. # NetBSD libc ships with an internal-only incompatible symbol gethostbyname_r
  16450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
  16451. printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
  16452. if test ${ac_cv_c_undeclared_builtin_options+y}
  16453. then :
  16454. printf %s "(cached) " >&6
  16455. else $as_nop
  16456. ac_save_CFLAGS=$CFLAGS
  16457. ac_cv_c_undeclared_builtin_options='cannot detect'
  16458. for ac_arg in '' -fno-builtin; do
  16459. CFLAGS="$ac_save_CFLAGS $ac_arg"
  16460. # This test program should *not* compile successfully.
  16461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16462. /* end confdefs.h. */
  16463. int
  16464. main (void)
  16465. {
  16466. (void) strchr;
  16467. ;
  16468. return 0;
  16469. }
  16470. _ACEOF
  16471. if ac_fn_c_try_compile "$LINENO"
  16472. then :
  16473. else $as_nop
  16474. # This test program should compile successfully.
  16475. # No library function is consistently available on
  16476. # freestanding implementations, so test against a dummy
  16477. # declaration. Include always-available headers on the
  16478. # off chance that they somehow elicit warnings.
  16479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16480. /* end confdefs.h. */
  16481. #include <float.h>
  16482. #include <limits.h>
  16483. #include <stdarg.h>
  16484. #include <stddef.h>
  16485. extern void ac_decl (int, char *);
  16486. int
  16487. main (void)
  16488. {
  16489. (void) ac_decl (0, (char *) 0);
  16490. (void) ac_decl;
  16491. ;
  16492. return 0;
  16493. }
  16494. _ACEOF
  16495. if ac_fn_c_try_compile "$LINENO"
  16496. then :
  16497. if test x"$ac_arg" = x
  16498. then :
  16499. ac_cv_c_undeclared_builtin_options='none needed'
  16500. else $as_nop
  16501. ac_cv_c_undeclared_builtin_options=$ac_arg
  16502. fi
  16503. break
  16504. fi
  16505. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16506. fi
  16507. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16508. done
  16509. CFLAGS=$ac_save_CFLAGS
  16510. fi
  16511. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
  16512. printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
  16513. case $ac_cv_c_undeclared_builtin_options in #(
  16514. 'cannot detect') :
  16515. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16516. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  16517. as_fn_error $? "cannot make $CC report undeclared builtins
  16518. See \`config.log' for more details" "$LINENO" 5; } ;; #(
  16519. 'none needed') :
  16520. ac_c_undeclared_builtin_options='' ;; #(
  16521. *) :
  16522. ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
  16523. esac
  16524. ac_fn_check_decl "$LINENO" "gethostbyname_r" "ac_cv_have_decl_gethostbyname_r" "#include <stdlib.h>
  16525. #include <netdb.h>
  16526. " "$ac_c_undeclared_builtin_options" "CFLAGS"
  16527. if test "x$ac_cv_have_decl_gethostbyname_r" = xyes
  16528. then :
  16529. ac_have_decl=1
  16530. else $as_nop
  16531. ac_have_decl=0
  16532. fi
  16533. printf "%s\n" "#define HAVE_DECL_GETHOSTBYNAME_R $ac_have_decl" >>confdefs.h
  16534. if test $ac_have_decl = 1
  16535. then :
  16536. have_gethostbyname_r_public_declaration=yes
  16537. else $as_nop
  16538. have_gethostbyname_r_public_declaration=no
  16539. fi
  16540. if test "x$have_gethostbyname_r_public_declaration" = "xyes"; then
  16541. # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
  16542. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
  16543. printf %s "checking for library containing gethostbyname_r... " >&6; }
  16544. if test ${ac_cv_search_gethostbyname_r+y}
  16545. then :
  16546. printf %s "(cached) " >&6
  16547. else $as_nop
  16548. ac_func_search_save_LIBS=$LIBS
  16549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16550. /* end confdefs.h. */
  16551. /* Override any GCC internal prototype to avoid an error.
  16552. Use char because int might match the return type of a GCC
  16553. builtin and then its argument prototype would still apply. */
  16554. char gethostbyname_r ();
  16555. int
  16556. main (void)
  16557. {
  16558. return gethostbyname_r ();
  16559. ;
  16560. return 0;
  16561. }
  16562. _ACEOF
  16563. for ac_lib in '' socket nsl
  16564. do
  16565. if test -z "$ac_lib"; then
  16566. ac_res="none required"
  16567. else
  16568. ac_res=-l$ac_lib
  16569. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  16570. fi
  16571. if ac_fn_c_try_link "$LINENO"
  16572. then :
  16573. ac_cv_search_gethostbyname_r=$ac_res
  16574. fi
  16575. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16576. conftest$ac_exeext
  16577. if test ${ac_cv_search_gethostbyname_r+y}
  16578. then :
  16579. break
  16580. fi
  16581. done
  16582. if test ${ac_cv_search_gethostbyname_r+y}
  16583. then :
  16584. else $as_nop
  16585. ac_cv_search_gethostbyname_r=no
  16586. fi
  16587. rm conftest.$ac_ext
  16588. LIBS=$ac_func_search_save_LIBS
  16589. fi
  16590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
  16591. printf "%s\n" "$ac_cv_search_gethostbyname_r" >&6; }
  16592. ac_res=$ac_cv_search_gethostbyname_r
  16593. if test "$ac_res" != no
  16594. then :
  16595. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  16596. fi
  16597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 6 arguments" >&5
  16598. printf %s "checking for gethostbyname_r with 6 arguments... " >&6; }
  16599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16600. /* end confdefs.h. */
  16601. #include <stdlib.h>
  16602. #include <netdb.h>
  16603. int
  16604. main (void)
  16605. {
  16606. int r = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
  16607. ;
  16608. return 0;
  16609. }
  16610. _ACEOF
  16611. if ac_fn_c_try_link "$LINENO"
  16612. then :
  16613. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16614. printf "%s\n" "yes" >&6; }
  16615. printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
  16616. else $as_nop
  16617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16618. printf "%s\n" "no" >&6; }
  16619. fi
  16620. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16621. conftest$ac_exeext conftest.$ac_ext
  16622. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 5 arguments" >&5
  16623. printf %s "checking for gethostbyname_r with 5 arguments... " >&6; }
  16624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16625. /* end confdefs.h. */
  16626. #include <stdlib.h>
  16627. #include <netdb.h>
  16628. int
  16629. main (void)
  16630. {
  16631. int r = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
  16632. ;
  16633. return 0;
  16634. }
  16635. _ACEOF
  16636. if ac_fn_c_try_link "$LINENO"
  16637. then :
  16638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16639. printf "%s\n" "yes" >&6; }
  16640. printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
  16641. else $as_nop
  16642. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16643. printf "%s\n" "no" >&6; }
  16644. fi
  16645. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16646. conftest$ac_exeext conftest.$ac_ext
  16647. fi
  16648. ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
  16649. if test "x$ac_cv_header_byteswap_h" = xyes
  16650. then :
  16651. printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
  16652. fi
  16653. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
  16654. printf %s "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  16655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16656. /* end confdefs.h. */
  16657. #include <sys/endian.h>
  16658. int
  16659. main (void)
  16660. {
  16661. int a = 1; int b = __swap16(a);
  16662. ;
  16663. return 0;
  16664. }
  16665. _ACEOF
  16666. if ac_fn_c_try_link "$LINENO"
  16667. then :
  16668. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16669. printf "%s\n" "yes" >&6; }
  16670. printf "%s\n" "#define HAVE_SYS_ENDIAN_SWAP16 1" >>confdefs.h
  16671. else $as_nop
  16672. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16673. printf "%s\n" "no" >&6; }
  16674. fi
  16675. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16676. conftest$ac_exeext conftest.$ac_ext
  16677. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
  16678. printf %s "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  16679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16680. /* end confdefs.h. */
  16681. #include <sys/endian.h>
  16682. int
  16683. main (void)
  16684. {
  16685. int a = 1; int b = bswap16(a);
  16686. ;
  16687. return 0;
  16688. }
  16689. _ACEOF
  16690. if ac_fn_c_try_link "$LINENO"
  16691. then :
  16692. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16693. printf "%s\n" "yes" >&6; }
  16694. printf "%s\n" "#define HAVE_SYS_ENDIAN_BSWAP16 1" >>confdefs.h
  16695. else $as_nop
  16696. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16697. printf "%s\n" "no" >&6; }
  16698. fi
  16699. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16700. conftest$ac_exeext conftest.$ac_ext
  16701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for locale_t in locale.h" >&5
  16702. printf %s "checking for locale_t in locale.h... " >&6; }
  16703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16704. /* end confdefs.h. */
  16705. #include <locale.h>
  16706. int
  16707. main (void)
  16708. {
  16709. locale_t lt = NULL
  16710. ;
  16711. return 0;
  16712. }
  16713. _ACEOF
  16714. if ac_fn_c_try_link "$LINENO"
  16715. then :
  16716. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16717. printf "%s\n" "yes" >&6; }
  16718. printf "%s\n" "#define HAVE_LOCALE_T_IN_LOCALE_H 1" >>confdefs.h
  16719. else $as_nop
  16720. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16721. printf "%s\n" "no" >&6; }
  16722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for locale_t in xlocale.h" >&5
  16723. printf %s "checking for locale_t in xlocale.h... " >&6; }
  16724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16725. /* end confdefs.h. */
  16726. #include <xlocale.h>
  16727. int
  16728. main (void)
  16729. {
  16730. locale_t lt = NULL
  16731. ;
  16732. return 0;
  16733. }
  16734. _ACEOF
  16735. if ac_fn_c_try_link "$LINENO"
  16736. then :
  16737. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16738. printf "%s\n" "yes" >&6; }
  16739. printf "%s\n" "#define HAVE_LOCALE_T_IN_XLOCALE_H 1" >>confdefs.h
  16740. else $as_nop
  16741. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16742. printf "%s\n" "no" >&6; }
  16743. fi
  16744. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16745. conftest$ac_exeext conftest.$ac_ext
  16746. fi
  16747. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16748. conftest$ac_exeext conftest.$ac_ext
  16749. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_EVTONLY in fcntl.h" >&5
  16750. printf %s "checking for O_EVTONLY in fcntl.h... " >&6; }
  16751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16752. /* end confdefs.h. */
  16753. #include <fcntl.h>
  16754. int
  16755. main (void)
  16756. {
  16757. int a = O_EVTONLY;
  16758. ;
  16759. return 0;
  16760. }
  16761. _ACEOF
  16762. if ac_fn_c_try_link "$LINENO"
  16763. then :
  16764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16765. printf "%s\n" "yes" >&6; }
  16766. printf "%s\n" "#define HAVE_O_EVTONLY 1" >>confdefs.h
  16767. else $as_nop
  16768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16769. printf "%s\n" "no" >&6; }
  16770. fi
  16771. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16772. conftest$ac_exeext conftest.$ac_ext
  16773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_SYMLINK in fcntl.h" >&5
  16774. printf %s "checking for O_SYMLINK in fcntl.h... " >&6; }
  16775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16776. /* end confdefs.h. */
  16777. #include <fcntl.h>
  16778. int
  16779. main (void)
  16780. {
  16781. int a = O_SYMLINK;
  16782. ;
  16783. return 0;
  16784. }
  16785. _ACEOF
  16786. if ac_fn_c_try_link "$LINENO"
  16787. then :
  16788. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16789. printf "%s\n" "yes" >&6; }
  16790. printf "%s\n" "#define HAVE_O_SYMLINK 1" >>confdefs.h
  16791. else $as_nop
  16792. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16793. printf "%s\n" "no" >&6; }
  16794. fi
  16795. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16796. conftest$ac_exeext conftest.$ac_ext
  16797. if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
  16798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
  16799. printf %s "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... " >&6; }
  16800. saved_cppflags="${CPPFLAGS}"
  16801. if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
  16802. PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
  16803. fi
  16804. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
  16805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16806. /* end confdefs.h. */
  16807. #include <pthread.h>
  16808. int
  16809. main (void)
  16810. {
  16811. #if defined(PTHREAD_RWLOCK_INITIALIZER)
  16812. int foo = 0;
  16813. #else
  16814. int foo = bar;
  16815. #endif
  16816. 0
  16817. ;
  16818. return 0;
  16819. }
  16820. _ACEOF
  16821. if ac_fn_c_try_compile "$LINENO"
  16822. then :
  16823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16824. printf "%s\n" "yes" >&6; }
  16825. PBX_PTHREAD_RWLOCK_INITIALIZER=1
  16826. printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_INITIALIZER 1" >>confdefs.h
  16827. else $as_nop
  16828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16829. printf "%s\n" "no" >&6; }
  16830. fi
  16831. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  16832. CPPFLAGS="${saved_cppflags}"
  16833. fi
  16834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
  16835. printf %s "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... " >&6; }
  16836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16837. /* end confdefs.h. */
  16838. #include <pthread.h>
  16839. int
  16840. main (void)
  16841. {
  16842. int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
  16843. ;
  16844. return 0;
  16845. }
  16846. _ACEOF
  16847. if ac_fn_c_try_link "$LINENO"
  16848. then :
  16849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16850. printf "%s\n" "yes" >&6; }
  16851. printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1" >>confdefs.h
  16852. else $as_nop
  16853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16854. printf "%s\n" "no" >&6; }
  16855. fi
  16856. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16857. conftest$ac_exeext conftest.$ac_ext
  16858. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
  16859. printf %s "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... " >&6; }
  16860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16861. /* end confdefs.h. */
  16862. #include <pthread.h>
  16863. int
  16864. main (void)
  16865. {
  16866. int a = PTHREAD_MUTEX_RECURSIVE_NP;
  16867. ;
  16868. return 0;
  16869. }
  16870. _ACEOF
  16871. if ac_fn_c_try_link "$LINENO"
  16872. then :
  16873. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16874. printf "%s\n" "yes" >&6; }
  16875. printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
  16876. else $as_nop
  16877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16878. printf "%s\n" "no" >&6; }
  16879. fi
  16880. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16881. conftest$ac_exeext conftest.$ac_ext
  16882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP in pthread.h" >&5
  16883. printf %s "checking for PTHREAD_MUTEX_ADAPTIVE_NP in pthread.h... " >&6; }
  16884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16885. /* end confdefs.h. */
  16886. #include <pthread.h>
  16887. int
  16888. main (void)
  16889. {
  16890. int a = PTHREAD_MUTEX_ADAPTIVE_NP;
  16891. ;
  16892. return 0;
  16893. }
  16894. _ACEOF
  16895. if ac_fn_c_try_link "$LINENO"
  16896. then :
  16897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16898. printf "%s\n" "yes" >&6; }
  16899. printf "%s\n" "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
  16900. else $as_nop
  16901. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16902. printf "%s\n" "no" >&6; }
  16903. fi
  16904. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16905. conftest$ac_exeext conftest.$ac_ext
  16906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_spinlock_t in pthread.h" >&5
  16907. printf %s "checking for pthread_spinlock_t in pthread.h... " >&6; }
  16908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16909. /* end confdefs.h. */
  16910. #include <pthread.h>
  16911. int
  16912. main (void)
  16913. {
  16914. pthread_spinlock_t spin;
  16915. ;
  16916. return 0;
  16917. }
  16918. _ACEOF
  16919. if ac_fn_c_try_link "$LINENO"
  16920. then :
  16921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16922. printf "%s\n" "yes" >&6; }
  16923. printf "%s\n" "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h
  16924. else $as_nop
  16925. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16926. printf "%s\n" "no" >&6; }
  16927. fi
  16928. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16929. conftest$ac_exeext conftest.$ac_ext
  16930. save_LIBS="$LIBS"
  16931. save_CFLAGS="$CFLAGS"
  16932. LIBS="$PTHREAD_LIBS $LIBS"
  16933. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  16934. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_timedwrlock() in pthread.h" >&5
  16935. printf %s "checking for pthread_rwlock_timedwrlock() in pthread.h... " >&6; }
  16936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16937. /* end confdefs.h. */
  16938. #include <pthread.h>
  16939. #include <time.h>
  16940. int
  16941. main (void)
  16942. {
  16943. pthread_rwlock_t foo; struct timespec bar; pthread_rwlock_timedwrlock(&foo, &bar)
  16944. ;
  16945. return 0;
  16946. }
  16947. _ACEOF
  16948. if ac_fn_c_try_link "$LINENO"
  16949. then :
  16950. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16951. printf "%s\n" "yes" >&6; }
  16952. ac_cv_pthread_rwlock_timedwrlock="yes"
  16953. else $as_nop
  16954. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16955. printf "%s\n" "no" >&6; }
  16956. ac_cv_pthread_rwlock_timedwrlock="no"
  16957. fi
  16958. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  16959. conftest$ac_exeext conftest.$ac_ext
  16960. # Some platforms define sem_init(), but only support sem_open(). joyous.
  16961. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working unnamed semaphores" >&5
  16962. printf %s "checking for working unnamed semaphores... " >&6; }
  16963. if test "$cross_compiling" = yes
  16964. then :
  16965. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
  16966. printf "%s\n" "cross-compile" >&6; }
  16967. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result yes guessed because of cross compilation" >&5
  16968. printf "%s\n" "$as_me: WARNING: result yes guessed because of cross compilation" >&6;}
  16969. printf "%s\n" "#define HAS_WORKING_SEMAPHORE 1" >>confdefs.h
  16970. else $as_nop
  16971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16972. /* end confdefs.h. */
  16973. #include <semaphore.h>
  16974. int
  16975. main (void)
  16976. {
  16977. sem_t sem; return sem_init(&sem, 0, 0);
  16978. ;
  16979. return 0;
  16980. }
  16981. _ACEOF
  16982. if ac_fn_c_try_run "$LINENO"
  16983. then :
  16984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16985. printf "%s\n" "yes" >&6; }
  16986. printf "%s\n" "#define HAS_WORKING_SEMAPHORE 1" >>confdefs.h
  16987. else $as_nop
  16988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16989. printf "%s\n" "no" >&6; }
  16990. fi
  16991. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16992. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16993. fi
  16994. LIBS="$save_LIBS"
  16995. CFLAGS="$save_CFLAGS"
  16996. if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then
  16997. printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 1" >>confdefs.h
  16998. fi
  16999. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_ONCE_INIT needs braces" >&5
  17000. printf %s "checking if PTHREAD_ONCE_INIT needs braces... " >&6; }
  17001. saved_CFLAGS="${CFLAGS}"
  17002. CFLAGS="${CFLAGS} -Werror -Wmissing-braces"
  17003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17004. /* end confdefs.h. */
  17005. #include <pthread.h>
  17006. void empty(){}
  17007. int
  17008. main (void)
  17009. {
  17010. pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);
  17011. ;
  17012. return 0;
  17013. }
  17014. _ACEOF
  17015. if ac_fn_c_try_compile "$LINENO"
  17016. then :
  17017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17018. printf "%s\n" "no" >&6; }
  17019. ac_cv_pthread_once_needsbraces="no"
  17020. else $as_nop
  17021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17022. printf "%s\n" "yes" >&6; }
  17023. ac_cv_pthread_once_needsbraces="yes"
  17024. fi
  17025. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17026. CFLAGS="${saved_CFLAGS}"
  17027. if test "${ac_cv_pthread_once_needsbraces}" = "yes"; then
  17028. printf "%s\n" "#define PTHREAD_ONCE_INIT_NEEDS_BRACES 1" >>confdefs.h
  17029. fi
  17030. if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
  17031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
  17032. printf %s "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... " >&6; }
  17033. saved_cppflags="${CPPFLAGS}"
  17034. if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
  17035. PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
  17036. fi
  17037. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
  17038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17039. /* end confdefs.h. */
  17040. #include <pthread.h>
  17041. int
  17042. main (void)
  17043. {
  17044. #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
  17045. int foo = 0;
  17046. #else
  17047. int foo = bar;
  17048. #endif
  17049. 0
  17050. ;
  17051. return 0;
  17052. }
  17053. _ACEOF
  17054. if ac_fn_c_try_compile "$LINENO"
  17055. then :
  17056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17057. printf "%s\n" "yes" >&6; }
  17058. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
  17059. printf "%s\n" "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
  17060. else $as_nop
  17061. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17062. printf "%s\n" "no" >&6; }
  17063. fi
  17064. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17065. CPPFLAGS="${saved_cppflags}"
  17066. fi
  17067. # Can we compare a mutex to its initial value?
  17068. # Generally yes on OpenBSD/FreeBSD and no on Mac OS X.
  17069. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can compare a mutex to its initial value" >&5
  17070. printf %s "checking whether we can compare a mutex to its initial value... " >&6; }
  17071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17072. /* end confdefs.h. */
  17073. #include <pthread.h>
  17074. int
  17075. main (void)
  17076. {
  17077. pthread_mutex_t lock;
  17078. if ((lock) != ((pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER)) {
  17079. return 0;
  17080. }
  17081. return 0
  17082. ;
  17083. return 0;
  17084. }
  17085. _ACEOF
  17086. if ac_fn_c_try_link "$LINENO"
  17087. then :
  17088. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17089. printf "%s\n" "yes" >&6; }
  17090. printf "%s\n" "#define CAN_COMPARE_MUTEX_TO_INIT_VALUE 1" >>confdefs.h
  17091. else $as_nop
  17092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17093. printf "%s\n" "no" >&6; }
  17094. fi
  17095. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17096. conftest$ac_exeext conftest.$ac_ext
  17097. #if test "${cross_compiling}" = "no";
  17098. #then
  17099. #AC_MSG_CHECKING(for working epoll support)
  17100. #AC_LINK_IFELSE(
  17101. #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
  17102. # if (res < 0)
  17103. # return 1;
  17104. # close (res);
  17105. # return 0;]),
  17106. #AC_MSG_RESULT(yes)
  17107. #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
  17108. #AC_MSG_RESULT(no)
  17109. #)
  17110. #fi
  17111. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler sync operations" >&5
  17112. printf %s "checking for compiler sync operations... " >&6; }
  17113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17114. /* end confdefs.h. */
  17115. int
  17116. main (void)
  17117. {
  17118. int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
  17119. ;
  17120. return 0;
  17121. }
  17122. _ACEOF
  17123. if ac_fn_c_try_link "$LINENO"
  17124. then :
  17125. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17126. printf "%s\n" "yes" >&6; }
  17127. ax_cv_have_gcc_atomics=1
  17128. printf "%s\n" "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  17129. else $as_nop
  17130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17131. printf "%s\n" "no" >&6; }
  17132. fi
  17133. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17134. conftest$ac_exeext conftest.$ac_ext
  17135. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler atomic operations" >&5
  17136. printf %s "checking for compiler atomic operations... " >&6; }
  17137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17138. /* end confdefs.h. */
  17139. int
  17140. main (void)
  17141. {
  17142. int foo1; int foo2 = __atomic_fetch_add(&foo1, 1, __ATOMIC_RELAXED);
  17143. ;
  17144. return 0;
  17145. }
  17146. _ACEOF
  17147. if ac_fn_c_try_link "$LINENO"
  17148. then :
  17149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17150. printf "%s\n" "yes" >&6; }
  17151. ax_cv_have_c_atomics=1
  17152. printf "%s\n" "#define HAVE_C_ATOMICS 1" >>confdefs.h
  17153. else $as_nop
  17154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17155. printf "%s\n" "no" >&6; }
  17156. fi
  17157. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17158. conftest$ac_exeext conftest.$ac_ext
  17159. if test -z $ax_cv_have_c_atomics$ax_cv_have_gcc_atomics; then
  17160. as_fn_error $? "*** Atomic operations are not supported by your compiler." "$LINENO" 5
  17161. fi
  17162. # glibc, AFAIK, is the only C library that makes printing a NULL to a string safe.
  17163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if your system printf is NULL-safe." >&5
  17164. printf %s "checking if your system printf is NULL-safe.... " >&6; }
  17165. if test "$cross_compiling" = yes
  17166. then :
  17167. # It's unlikely an embedded system will have this.
  17168. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  17169. printf "%s\n" "unknown" >&6; }
  17170. else $as_nop
  17171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17172. /* end confdefs.h. */
  17173. #include <stdio.h>
  17174. int
  17175. main (void)
  17176. {
  17177. printf("%s", NULL)
  17178. ;
  17179. return 0;
  17180. }
  17181. _ACEOF
  17182. if ac_fn_c_try_run "$LINENO"
  17183. then :
  17184. printf "%s\n" "#define HAVE_NULLSAFE_PRINTF 1" >>confdefs.h
  17185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17186. printf "%s\n" "yes" >&6; }
  17187. else $as_nop
  17188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17189. printf "%s\n" "no" >&6; }
  17190. fi
  17191. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17192. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17193. fi
  17194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket() accepts SOCK_NONBLOCK" >&5
  17195. printf %s "checking if socket() accepts SOCK_NONBLOCK... " >&6; }
  17196. if test "$cross_compiling" = yes
  17197. then :
  17198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
  17199. printf "%s\n" "cross-compile" >&6; }
  17200. else $as_nop
  17201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17202. /* end confdefs.h. */
  17203. #ifdef HAVE_SYS_TYPES_H
  17204. # include <sys/types.h>
  17205. #endif
  17206. #ifdef HAVE_SYS_SOCKET_H
  17207. # include <sys/socket.h>
  17208. #endif
  17209. int
  17210. main (void)
  17211. {
  17212. if (socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0) < 0) {
  17213. return 1;
  17214. }
  17215. return 0;
  17216. ;
  17217. return 0;
  17218. }
  17219. _ACEOF
  17220. if ac_fn_c_try_run "$LINENO"
  17221. then :
  17222. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17223. printf "%s\n" "yes" >&6; }
  17224. printf "%s\n" "#define HAVE_SOCK_NONBLOCK 1" >>confdefs.h
  17225. else $as_nop
  17226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17227. printf "%s\n" "no" >&6; }
  17228. fi
  17229. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17230. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17231. fi
  17232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can increase the maximum select-able file descriptor" >&5
  17233. printf %s "checking if we can increase the maximum select-able file descriptor... " >&6; }
  17234. if test "$cross_compiling" = yes
  17235. then :
  17236. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
  17237. printf "%s\n" "cross-compile" >&6; }
  17238. else $as_nop
  17239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17240. /* end confdefs.h. */
  17241. #include <stdio.h>
  17242. #include <sys/select.h>
  17243. #include <sys/time.h>
  17244. #include <sys/resource.h>
  17245. #include <string.h>
  17246. #include <errno.h>
  17247. #include <stdlib.h>
  17248. #include <sys/types.h>
  17249. #include <sys/stat.h>
  17250. #include <fcntl.h>
  17251. #include <unistd.h>
  17252. int
  17253. main (void)
  17254. {
  17255. struct rlimit rlim = { FD_SETSIZE * 2, FD_SETSIZE * 2 };
  17256. int fd0, fd1;
  17257. struct timeval tv = { 0, };
  17258. struct ast_fdset { long fds_bits[[1024]]; } fds = { { 0, } };
  17259. if (setrlimit(RLIMIT_NOFILE, &rlim)) { exit(1); }
  17260. if ((fd0 = open("/dev/null", O_RDONLY)) < 0) { exit(1); }
  17261. if (dup2(fd0, (fd1 = FD_SETSIZE + 1)) < 0) { exit(1); }
  17262. FD_SET(fd0, (fd_set *) &fds);
  17263. FD_SET(fd1, (fd_set *) &fds);
  17264. if (select(FD_SETSIZE + 2, (fd_set *) &fds, NULL, NULL, &tv) < 0) { exit(1); }
  17265. exit(0)
  17266. ;
  17267. return 0;
  17268. }
  17269. _ACEOF
  17270. if ac_fn_c_try_run "$LINENO"
  17271. then :
  17272. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17273. printf "%s\n" "yes" >&6; }
  17274. printf "%s\n" "#define HAVE_VARIABLE_FDSET 1" >>confdefs.h
  17275. else $as_nop
  17276. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17277. printf "%s\n" "no" >&6; }
  17278. fi
  17279. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17280. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17281. fi
  17282. if test "${ac_cv_have_variable_fdset}x" = "0x"; then
  17283. if test "$cross_compiling" = yes
  17284. then :
  17285. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17286. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  17287. as_fn_error $? "cannot run test program while cross compiling
  17288. See \`config.log' for more details" "$LINENO" 5; }
  17289. else $as_nop
  17290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17291. /* end confdefs.h. */
  17292. #include <unistd.h>
  17293. #include <sys/types.h>
  17294. #include <stdlib.h>
  17295. int
  17296. main (void)
  17297. {
  17298. if (getuid() != 0) { exit(1); }
  17299. ;
  17300. return 0;
  17301. }
  17302. _ACEOF
  17303. if ac_fn_c_try_run "$LINENO"
  17304. then :
  17305. printf "%s\n" "#define CONFIGURE_RAN_AS_ROOT 1" >>confdefs.h
  17306. fi
  17307. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17308. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17309. fi
  17310. fi
  17311. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have usable eventfd support" >&5
  17312. printf %s "checking if we have usable eventfd support... " >&6; }
  17313. if test "$cross_compiling" = yes
  17314. then :
  17315. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
  17316. printf "%s\n" "cross-compile" >&6; }
  17317. else $as_nop
  17318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17319. /* end confdefs.h. */
  17320. #include <sys/eventfd.h>
  17321. int
  17322. main (void)
  17323. {
  17324. return eventfd(0, EFD_NONBLOCK | EFD_SEMAPHORE) == -1;
  17325. ;
  17326. return 0;
  17327. }
  17328. _ACEOF
  17329. if ac_fn_c_try_run "$LINENO"
  17330. then :
  17331. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17332. printf "%s\n" "yes" >&6; }
  17333. printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
  17334. else $as_nop
  17335. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17336. printf "%s\n" "no" >&6; }
  17337. fi
  17338. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  17339. conftest.$ac_objext conftest.beam conftest.$ac_ext
  17340. fi
  17341. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute pure' support" >&5
  17342. printf %s "checking for compiler 'attribute pure' support... " >&6; }
  17343. saved_CFLAGS="$CFLAGS"
  17344. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  17345. ax_cv_have_func_attribute_pure=0
  17346. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17347. /* end confdefs.h. */
  17348. void __attribute__((pure)) *test(void *muffin, ...) {return (void *) 0;}
  17349. int
  17350. main (void)
  17351. {
  17352. ;
  17353. return 0;
  17354. }
  17355. _ACEOF
  17356. if ac_fn_c_try_compile "$LINENO"
  17357. then :
  17358. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17359. printf "%s\n" "yes" >&6; }
  17360. ax_cv_have_func_attribute_pure=1
  17361. printf "%s\n" "#define HAVE_ATTRIBUTE_pure 1" >>confdefs.h
  17362. else $as_nop
  17363. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17364. printf "%s\n" "no" >&6; }
  17365. fi
  17366. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17367. CFLAGS="$saved_CFLAGS"
  17368. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute malloc' support" >&5
  17369. printf %s "checking for compiler 'attribute malloc' support... " >&6; }
  17370. saved_CFLAGS="$CFLAGS"
  17371. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  17372. ax_cv_have_func_attribute_malloc=0
  17373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17374. /* end confdefs.h. */
  17375. void __attribute__((malloc)) *test(void *muffin, ...) {return (void *) 0;}
  17376. int
  17377. main (void)
  17378. {
  17379. ;
  17380. return 0;
  17381. }
  17382. _ACEOF
  17383. if ac_fn_c_try_compile "$LINENO"
  17384. then :
  17385. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17386. printf "%s\n" "yes" >&6; }
  17387. ax_cv_have_func_attribute_malloc=1
  17388. printf "%s\n" "#define HAVE_ATTRIBUTE_malloc 1" >>confdefs.h
  17389. else $as_nop
  17390. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17391. printf "%s\n" "no" >&6; }
  17392. fi
  17393. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17394. CFLAGS="$saved_CFLAGS"
  17395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute const' support" >&5
  17396. printf %s "checking for compiler 'attribute const' support... " >&6; }
  17397. saved_CFLAGS="$CFLAGS"
  17398. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  17399. ax_cv_have_func_attribute_const=0
  17400. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17401. /* end confdefs.h. */
  17402. void __attribute__((const)) *test(void *muffin, ...) {return (void *) 0;}
  17403. int
  17404. main (void)
  17405. {
  17406. ;
  17407. return 0;
  17408. }
  17409. _ACEOF
  17410. if ac_fn_c_try_compile "$LINENO"
  17411. then :
  17412. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17413. printf "%s\n" "yes" >&6; }
  17414. ax_cv_have_func_attribute_const=1
  17415. printf "%s\n" "#define HAVE_ATTRIBUTE_const 1" >>confdefs.h
  17416. else $as_nop
  17417. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17418. printf "%s\n" "no" >&6; }
  17419. fi
  17420. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17421. CFLAGS="$saved_CFLAGS"
  17422. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute unused' support" >&5
  17423. printf %s "checking for compiler 'attribute unused' support... " >&6; }
  17424. saved_CFLAGS="$CFLAGS"
  17425. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  17426. ax_cv_have_func_attribute_unused=0
  17427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17428. /* end confdefs.h. */
  17429. void __attribute__((unused)) *test(void *muffin, ...) {return (void *) 0;}
  17430. int
  17431. main (void)
  17432. {
  17433. ;
  17434. return 0;
  17435. }
  17436. _ACEOF
  17437. if ac_fn_c_try_compile "$LINENO"
  17438. then :
  17439. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17440. printf "%s\n" "yes" >&6; }
  17441. ax_cv_have_func_attribute_unused=1
  17442. printf "%s\n" "#define HAVE_ATTRIBUTE_unused 1" >>confdefs.h
  17443. else $as_nop
  17444. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17445. printf "%s\n" "no" >&6; }
  17446. fi
  17447. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17448. CFLAGS="$saved_CFLAGS"
  17449. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute always_inline' support" >&5
  17450. printf %s "checking for compiler 'attribute always_inline' support... " >&6; }
  17451. saved_CFLAGS="$CFLAGS"
  17452. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  17453. ax_cv_have_func_attribute_always_inline=0
  17454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17455. /* end confdefs.h. */
  17456. void __attribute__((always_inline)) *test(void *muffin, ...) {return (void *) 0;}
  17457. int
  17458. main (void)
  17459. {
  17460. ;
  17461. return 0;
  17462. }
  17463. _ACEOF
  17464. if ac_fn_c_try_compile "$LINENO"
  17465. then :
  17466. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17467. printf "%s\n" "yes" >&6; }
  17468. ax_cv_have_func_attribute_always_inline=1
  17469. printf "%s\n" "#define HAVE_ATTRIBUTE_always_inline 1" >>confdefs.h
  17470. else $as_nop
  17471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17472. printf "%s\n" "no" >&6; }
  17473. fi
  17474. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17475. CFLAGS="$saved_CFLAGS"
  17476. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute deprecated' support" >&5
  17477. printf %s "checking for compiler 'attribute deprecated' support... " >&6; }
  17478. saved_CFLAGS="$CFLAGS"
  17479. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  17480. ax_cv_have_func_attribute_deprecated=0
  17481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17482. /* end confdefs.h. */
  17483. void __attribute__((deprecated)) *test(void *muffin, ...) {return (void *) 0;}
  17484. int
  17485. main (void)
  17486. {
  17487. ;
  17488. return 0;
  17489. }
  17490. _ACEOF
  17491. if ac_fn_c_try_compile "$LINENO"
  17492. then :
  17493. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17494. printf "%s\n" "yes" >&6; }
  17495. ax_cv_have_func_attribute_deprecated=1
  17496. printf "%s\n" "#define HAVE_ATTRIBUTE_deprecated 1" >>confdefs.h
  17497. else $as_nop
  17498. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17499. printf "%s\n" "no" >&6; }
  17500. fi
  17501. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17502. CFLAGS="$saved_CFLAGS"
  17503. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute sentinel' support" >&5
  17504. printf %s "checking for compiler 'attribute sentinel' support... " >&6; }
  17505. saved_CFLAGS="$CFLAGS"
  17506. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  17507. ax_cv_have_func_attribute_sentinel=0
  17508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17509. /* end confdefs.h. */
  17510. void __attribute__((sentinel)) *test(void *muffin, ...) {return (void *) 0;}
  17511. int
  17512. main (void)
  17513. {
  17514. ;
  17515. return 0;
  17516. }
  17517. _ACEOF
  17518. if ac_fn_c_try_compile "$LINENO"
  17519. then :
  17520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17521. printf "%s\n" "yes" >&6; }
  17522. ax_cv_have_func_attribute_sentinel=1
  17523. printf "%s\n" "#define HAVE_ATTRIBUTE_sentinel 1" >>confdefs.h
  17524. else $as_nop
  17525. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17526. printf "%s\n" "no" >&6; }
  17527. fi
  17528. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17529. CFLAGS="$saved_CFLAGS"
  17530. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute warn_unused_result' support" >&5
  17531. printf %s "checking for compiler 'attribute warn_unused_result' support... " >&6; }
  17532. saved_CFLAGS="$CFLAGS"
  17533. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  17534. ax_cv_have_func_attribute_warn_unused_result=0
  17535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17536. /* end confdefs.h. */
  17537. void __attribute__((warn_unused_result)) *test(void *muffin, ...) {return (void *) 0;}
  17538. int
  17539. main (void)
  17540. {
  17541. ;
  17542. return 0;
  17543. }
  17544. _ACEOF
  17545. if ac_fn_c_try_compile "$LINENO"
  17546. then :
  17547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17548. printf "%s\n" "yes" >&6; }
  17549. ax_cv_have_func_attribute_warn_unused_result=1
  17550. printf "%s\n" "#define HAVE_ATTRIBUTE_warn_unused_result 1" >>confdefs.h
  17551. else $as_nop
  17552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17553. printf "%s\n" "no" >&6; }
  17554. fi
  17555. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17556. CFLAGS="$saved_CFLAGS"
  17557. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute may_alias' support" >&5
  17558. printf %s "checking for compiler 'attribute may_alias' support... " >&6; }
  17559. saved_CFLAGS="$CFLAGS"
  17560. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  17561. ax_cv_have_func_attribute_may_alias=0
  17562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17563. /* end confdefs.h. */
  17564. void __attribute__((may_alias)) *test(void *muffin, ...) {return (void *) 0;}
  17565. int
  17566. main (void)
  17567. {
  17568. ;
  17569. return 0;
  17570. }
  17571. _ACEOF
  17572. if ac_fn_c_try_compile "$LINENO"
  17573. then :
  17574. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17575. printf "%s\n" "yes" >&6; }
  17576. ax_cv_have_func_attribute_may_alias=1
  17577. printf "%s\n" "#define HAVE_ATTRIBUTE_may_alias 1" >>confdefs.h
  17578. else $as_nop
  17579. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17580. printf "%s\n" "no" >&6; }
  17581. fi
  17582. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17583. CFLAGS="$saved_CFLAGS"
  17584. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute constructor' support" >&5
  17585. printf %s "checking for compiler 'attribute constructor' support... " >&6; }
  17586. saved_CFLAGS="$CFLAGS"
  17587. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  17588. ax_cv_have_func_attribute_constructor=0
  17589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17590. /* end confdefs.h. */
  17591. void __attribute__((constructor)) *test(void *muffin, ...) {return (void *) 0;}
  17592. int
  17593. main (void)
  17594. {
  17595. ;
  17596. return 0;
  17597. }
  17598. _ACEOF
  17599. if ac_fn_c_try_compile "$LINENO"
  17600. then :
  17601. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17602. printf "%s\n" "yes" >&6; }
  17603. ax_cv_have_func_attribute_constructor=1
  17604. printf "%s\n" "#define HAVE_ATTRIBUTE_constructor 1" >>confdefs.h
  17605. else $as_nop
  17606. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17607. printf "%s\n" "no" >&6; }
  17608. fi
  17609. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17610. CFLAGS="$saved_CFLAGS"
  17611. if test "$ax_cv_have_func_attribute_constructor" != "1"; then
  17612. as_fn_error $? "*** Function constructor attribute is not supported by your compiler." "$LINENO" 5
  17613. fi
  17614. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute destructor' support" >&5
  17615. printf %s "checking for compiler 'attribute destructor' support... " >&6; }
  17616. saved_CFLAGS="$CFLAGS"
  17617. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  17618. ax_cv_have_func_attribute_destructor=0
  17619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17620. /* end confdefs.h. */
  17621. void __attribute__((destructor)) *test(void *muffin, ...) {return (void *) 0;}
  17622. int
  17623. main (void)
  17624. {
  17625. ;
  17626. return 0;
  17627. }
  17628. _ACEOF
  17629. if ac_fn_c_try_compile "$LINENO"
  17630. then :
  17631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17632. printf "%s\n" "yes" >&6; }
  17633. ax_cv_have_func_attribute_destructor=1
  17634. printf "%s\n" "#define HAVE_ATTRIBUTE_destructor 1" >>confdefs.h
  17635. else $as_nop
  17636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17637. printf "%s\n" "no" >&6; }
  17638. fi
  17639. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17640. CFLAGS="$saved_CFLAGS"
  17641. if test "$ax_cv_have_func_attribute_destructor" != "1"; then
  17642. as_fn_error $? "*** Function destructor attribute is not supported by your compiler." "$LINENO" 5
  17643. fi
  17644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute noreturn' support" >&5
  17645. printf %s "checking for compiler 'attribute noreturn' support... " >&6; }
  17646. saved_CFLAGS="$CFLAGS"
  17647. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  17648. ax_cv_have_func_attribute_noreturn=0
  17649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17650. /* end confdefs.h. */
  17651. void __attribute__((noreturn)) *test(void *muffin, ...) ;
  17652. int
  17653. main (void)
  17654. {
  17655. ;
  17656. return 0;
  17657. }
  17658. _ACEOF
  17659. if ac_fn_c_try_compile "$LINENO"
  17660. then :
  17661. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17662. printf "%s\n" "yes" >&6; }
  17663. ax_cv_have_func_attribute_noreturn=1
  17664. printf "%s\n" "#define HAVE_ATTRIBUTE_noreturn 1" >>confdefs.h
  17665. else $as_nop
  17666. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17667. printf "%s\n" "no" >&6; }
  17668. fi
  17669. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17670. CFLAGS="$saved_CFLAGS"
  17671. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fsanitize=address support" >&5
  17672. printf %s "checking for -fsanitize=address support... " >&6; }
  17673. saved_sanitize_CFLAGS="${CFLAGS}"
  17674. saved_sanitize_LDFLAGS="${LDFLAGS}"
  17675. CFLAGS="-fsanitize=address -fno-omit-frame-pointer"
  17676. LDFLAGS="-fsanitize=address"
  17677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17678. /* end confdefs.h. */
  17679. int
  17680. main (void)
  17681. {
  17682. int x = 1;
  17683. ;
  17684. return 0;
  17685. }
  17686. _ACEOF
  17687. if ac_fn_c_try_compile "$LINENO"
  17688. then :
  17689. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17690. printf "%s\n" "yes" >&6; }
  17691. AST_ADDRESS_SANITIZER=1
  17692. else $as_nop
  17693. AST_ADDRESS_SANITIZER=0
  17694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17695. printf "%s\n" "no" >&6; }
  17696. fi
  17697. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17698. CFLAGS="${saved_sanitize_CFLAGS}"
  17699. LDFLAGS="${saved_sanitize_LDFLAGS}"
  17700. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fsanitize=thread support" >&5
  17701. printf %s "checking for -fsanitize=thread support... " >&6; }
  17702. saved_sanitize_CFLAGS="${CFLAGS}"
  17703. saved_sanitize_LDFLAGS="${LDFLAGS}"
  17704. CFLAGS="-fno-omit-frame-pointer -pie -fPIE -fsanitize=thread"
  17705. LDFLAGS="-fsanitize=thread -pie -fPIE"
  17706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17707. /* end confdefs.h. */
  17708. int
  17709. main (void)
  17710. {
  17711. int x = 1;
  17712. ;
  17713. return 0;
  17714. }
  17715. _ACEOF
  17716. if ac_fn_c_try_compile "$LINENO"
  17717. then :
  17718. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17719. printf "%s\n" "yes" >&6; }
  17720. AST_THREAD_SANITIZER=1
  17721. else $as_nop
  17722. AST_THREAD_SANITIZER=0
  17723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17724. printf "%s\n" "no" >&6; }
  17725. fi
  17726. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17727. CFLAGS="${saved_sanitize_CFLAGS}"
  17728. LDFLAGS="${saved_sanitize_LDFLAGS}"
  17729. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fsanitize=leak support" >&5
  17730. printf %s "checking for -fsanitize=leak support... " >&6; }
  17731. saved_sanitize_CFLAGS="${CFLAGS}"
  17732. saved_sanitize_LDFLAGS="${LDFLAGS}"
  17733. CFLAGS="-fno-omit-frame-pointer -fsanitize=leak"
  17734. LDFLAGS="-fsanitize=leak"
  17735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17736. /* end confdefs.h. */
  17737. int
  17738. main (void)
  17739. {
  17740. int x = 1;
  17741. ;
  17742. return 0;
  17743. }
  17744. _ACEOF
  17745. if ac_fn_c_try_compile "$LINENO"
  17746. then :
  17747. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17748. printf "%s\n" "yes" >&6; }
  17749. AST_LEAK_SANITIZER=1
  17750. else $as_nop
  17751. AST_LEAK_SANITIZER=0
  17752. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17753. printf "%s\n" "no" >&6; }
  17754. fi
  17755. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17756. CFLAGS="${saved_sanitize_CFLAGS}"
  17757. LDFLAGS="${saved_sanitize_LDFLAGS}"
  17758. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fsanitize=undefined support" >&5
  17759. printf %s "checking for -fsanitize=undefined support... " >&6; }
  17760. saved_sanitize_CFLAGS="${CFLAGS}"
  17761. saved_sanitize_LDFLAGS="${LDFLAGS}"
  17762. CFLAGS="-fno-omit-frame-pointer -fsanitize=undefined"
  17763. LDFLAGS="-fsanitize=undefined"
  17764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17765. /* end confdefs.h. */
  17766. int
  17767. main (void)
  17768. {
  17769. int x = 1;
  17770. ;
  17771. return 0;
  17772. }
  17773. _ACEOF
  17774. if ac_fn_c_try_compile "$LINENO"
  17775. then :
  17776. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17777. printf "%s\n" "yes" >&6; }
  17778. AST_UNDEFINED_SANITIZER=1
  17779. else $as_nop
  17780. AST_UNDEFINED_SANITIZER=0
  17781. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17782. printf "%s\n" "no" >&6; }
  17783. fi
  17784. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  17785. CFLAGS="${saved_sanitize_CFLAGS}"
  17786. LDFLAGS="${saved_sanitize_LDFLAGS}"
  17787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wdeclaration-after-statement support" >&5
  17788. printf %s "checking for -Wdeclaration-after-statement support... " >&6; }
  17789. if $(${CC} -Wdeclaration-after-statement -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  17790. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17791. printf "%s\n" "yes" >&6; }
  17792. AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
  17793. else
  17794. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17795. printf "%s\n" "no" >&6; }
  17796. AST_DECLARATION_AFTER_STATEMENT=
  17797. fi
  17798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wtrampolines support" >&5
  17799. printf %s "checking for -Wtrampolines support... " >&6; }
  17800. if $(${CC} -Wtrampolines -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  17801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17802. printf "%s\n" "yes" >&6; }
  17803. AST_TRAMPOLINES=-Wtrampolines
  17804. else
  17805. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17806. printf "%s\n" "no" >&6; }
  17807. AST_TRAMPOLINES=
  17808. fi
  17809. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE support" >&5
  17810. printf %s "checking for _FORTIFY_SOURCE support... " >&6; }
  17811. if $(${CC} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  17812. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17813. printf "%s\n" "yes" >&6; }
  17814. AST_FORTIFY_SOURCE="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
  17815. else
  17816. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17817. printf "%s\n" "no" >&6; }
  17818. AST_FORTIFY_SOURCE=
  17819. fi
  17820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fno-strict-overflow" >&5
  17821. printf %s "checking for -fno-strict-overflow... " >&6; }
  17822. if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  17823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17824. printf "%s\n" "yes" >&6; }
  17825. AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
  17826. else
  17827. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17828. printf "%s\n" "no" >&6; }
  17829. AST_NO_STRICT_OVERFLOW=
  17830. fi
  17831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation" >&5
  17832. printf %s "checking for -Wno-format-truncation... " >&6; }
  17833. if $(${CC} -Wno-format-truncation -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  17834. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17835. printf "%s\n" "yes" >&6; }
  17836. AST_NO_FORMAT_TRUNCATION=-Wno-format-truncation
  17837. else
  17838. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17839. printf "%s\n" "no" >&6; }
  17840. AST_NO_FORMAT_TRUNCATION=
  17841. fi
  17842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-y2k" >&5
  17843. printf %s "checking for -Wno-format-y2k... " >&6; }
  17844. if $(${CC} -Wno-format-y2k -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  17845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17846. printf "%s\n" "yes" >&6; }
  17847. AST_NO_FORMAT_Y2K=-Wno-format-y2k
  17848. else
  17849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17850. printf "%s\n" "no" >&6; }
  17851. AST_NO_FORMAT_Y2K=
  17852. fi
  17853. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wno-stringop-truncation" >&5
  17854. printf %s "checking for -Wno-stringop-truncation... " >&6; }
  17855. if $(${CC} -Wno-stringop-truncation -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  17856. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17857. printf "%s\n" "yes" >&6; }
  17858. AST_NO_STRINGOP_TRUNCATION=-Wno-stringop-truncation
  17859. else
  17860. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17861. printf "%s\n" "no" >&6; }
  17862. AST_NO_STRINGOP_TRUNCATION=
  17863. fi
  17864. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wshadow" >&5
  17865. printf %s "checking for -Wshadow... " >&6; }
  17866. if $(${CC} -Wshadow -Werror -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  17867. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17868. printf "%s\n" "yes" >&6; }
  17869. AST_SHADOW_WARNINGS=-Wshadow
  17870. else
  17871. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17872. printf "%s\n" "no" >&6; }
  17873. AST_SHADOW_WARNINGS=
  17874. fi
  17875. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -march=native support" >&5
  17876. printf %s "checking for -march=native support... " >&6; }
  17877. if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  17878. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17879. printf "%s\n" "yes" >&6; }
  17880. AST_NATIVE_ARCH=1
  17881. else
  17882. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17883. printf "%s\n" "no" >&6; }
  17884. AST_NATIVE_ARCH=0
  17885. fi
  17886. # Check whether --enable-rpath was given.
  17887. if test ${enable_rpath+y}
  17888. then :
  17889. enableval=$enable_rpath; case "${enableval}" in
  17890. y|ye|yes) check_rpath=yes ;;
  17891. n|no) check_rpath=no ;;
  17892. *) as_fn_error $? "bad value ${enableval} for --disable-rpath" "$LINENO" 5 ;;
  17893. esac
  17894. else $as_nop
  17895. check_rpath=yes
  17896. fi
  17897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
  17898. printf %s "checking whether to use rpath... " >&6; }
  17899. AST_RPATH=
  17900. if test "${OSARCH}" = "NetBSD"; then
  17901. AST_RPATH="-Wl,-rpath,/usr/pkg/lib"
  17902. fi
  17903. if test "${check_rpath}" != yes; then
  17904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
  17905. printf "%s\n" "skipped" >&6; }
  17906. elif test "${prefix}" = /usr || test "${prefix}" = NONE; then
  17907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
  17908. printf "%s\n" "not needed" >&6; }
  17909. else
  17910. AST_RPATH="-Wl,-rpath,${libdir}"
  17911. fi
  17912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
  17913. printf %s "checking for sysinfo... " >&6; }
  17914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17915. /* end confdefs.h. */
  17916. #include <sys/sysinfo.h>
  17917. int
  17918. main (void)
  17919. {
  17920. struct sysinfo sys_info; int uptime = sys_info.uptime
  17921. ;
  17922. return 0;
  17923. }
  17924. _ACEOF
  17925. if ac_fn_c_try_link "$LINENO"
  17926. then :
  17927. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17928. printf "%s\n" "yes" >&6; }
  17929. printf "%s\n" "#define HAVE_SYSINFO 1" >>confdefs.h
  17930. else $as_nop
  17931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17932. printf "%s\n" "no" >&6; }
  17933. fi
  17934. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17935. conftest$ac_exeext conftest.$ac_ext
  17936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ninit" >&5
  17937. printf %s "checking for library containing res_9_ninit... " >&6; }
  17938. if test ${ac_cv_search_res_9_ninit+y}
  17939. then :
  17940. printf %s "(cached) " >&6
  17941. else $as_nop
  17942. ac_func_search_save_LIBS=$LIBS
  17943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17944. /* end confdefs.h. */
  17945. /* Override any GCC internal prototype to avoid an error.
  17946. Use char because int might match the return type of a GCC
  17947. builtin and then its argument prototype would still apply. */
  17948. char res_9_ninit ();
  17949. int
  17950. main (void)
  17951. {
  17952. return res_9_ninit ();
  17953. ;
  17954. return 0;
  17955. }
  17956. _ACEOF
  17957. for ac_lib in '' resolv
  17958. do
  17959. if test -z "$ac_lib"; then
  17960. ac_res="none required"
  17961. else
  17962. ac_res=-l$ac_lib
  17963. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  17964. fi
  17965. if ac_fn_c_try_link "$LINENO"
  17966. then :
  17967. ac_cv_search_res_9_ninit=$ac_res
  17968. fi
  17969. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  17970. conftest$ac_exeext
  17971. if test ${ac_cv_search_res_9_ninit+y}
  17972. then :
  17973. break
  17974. fi
  17975. done
  17976. if test ${ac_cv_search_res_9_ninit+y}
  17977. then :
  17978. else $as_nop
  17979. ac_cv_search_res_9_ninit=no
  17980. fi
  17981. rm conftest.$ac_ext
  17982. LIBS=$ac_func_search_save_LIBS
  17983. fi
  17984. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ninit" >&5
  17985. printf "%s\n" "$ac_cv_search_res_9_ninit" >&6; }
  17986. ac_res=$ac_cv_search_res_9_ninit
  17987. if test "$ac_res" != no
  17988. then :
  17989. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  17990. fi
  17991. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_ninit" >&5
  17992. printf %s "checking for res_ninit... " >&6; }
  17993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17994. /* end confdefs.h. */
  17995. #ifdef HAVE_SYS_SOCKET_H
  17996. #include <sys/socket.h>
  17997. #endif
  17998. #ifdef HAVE_NETINET_IN_H
  17999. #include <netinet/in.h>
  18000. #endif
  18001. #ifdef HAVE_ARPA_NAMESER_H
  18002. #include <arpa/nameser.h>
  18003. #endif
  18004. #include <resolv.h>
  18005. int
  18006. main (void)
  18007. {
  18008. int foo;
  18009. foo = res_ninit(NULL);
  18010. foo = res_nsearch(NULL, NULL, 0, 0, NULL, 0);
  18011. ;
  18012. return 0;
  18013. }
  18014. _ACEOF
  18015. if ac_fn_c_try_link "$LINENO"
  18016. then :
  18017. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18018. printf "%s\n" "yes" >&6; }
  18019. printf "%s\n" "#define HAVE_RES_NINIT 1" >>confdefs.h
  18020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5
  18021. printf %s "checking for library containing res_9_ndestroy... " >&6; }
  18022. if test ${ac_cv_search_res_9_ndestroy+y}
  18023. then :
  18024. printf %s "(cached) " >&6
  18025. else $as_nop
  18026. ac_func_search_save_LIBS=$LIBS
  18027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18028. /* end confdefs.h. */
  18029. /* Override any GCC internal prototype to avoid an error.
  18030. Use char because int might match the return type of a GCC
  18031. builtin and then its argument prototype would still apply. */
  18032. char res_9_ndestroy ();
  18033. int
  18034. main (void)
  18035. {
  18036. return res_9_ndestroy ();
  18037. ;
  18038. return 0;
  18039. }
  18040. _ACEOF
  18041. for ac_lib in '' resolv
  18042. do
  18043. if test -z "$ac_lib"; then
  18044. ac_res="none required"
  18045. else
  18046. ac_res=-l$ac_lib
  18047. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18048. fi
  18049. if ac_fn_c_try_link "$LINENO"
  18050. then :
  18051. ac_cv_search_res_9_ndestroy=$ac_res
  18052. fi
  18053. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18054. conftest$ac_exeext
  18055. if test ${ac_cv_search_res_9_ndestroy+y}
  18056. then :
  18057. break
  18058. fi
  18059. done
  18060. if test ${ac_cv_search_res_9_ndestroy+y}
  18061. then :
  18062. else $as_nop
  18063. ac_cv_search_res_9_ndestroy=no
  18064. fi
  18065. rm conftest.$ac_ext
  18066. LIBS=$ac_func_search_save_LIBS
  18067. fi
  18068. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ndestroy" >&5
  18069. printf "%s\n" "$ac_cv_search_res_9_ndestroy" >&6; }
  18070. ac_res=$ac_cv_search_res_9_ndestroy
  18071. if test "$ac_res" != no
  18072. then :
  18073. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18074. fi
  18075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5
  18076. printf %s "checking for res_ndestroy... " >&6; }
  18077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18078. /* end confdefs.h. */
  18079. #ifdef HAVE_SYS_SOCKET_H
  18080. #include <sys/socket.h>
  18081. #endif
  18082. #ifdef HAVE_NETINET_IN_H
  18083. #include <netinet/in.h>
  18084. #endif
  18085. #ifdef HAVE_ARPA_NAMESER_H
  18086. #include <arpa/nameser.h>
  18087. #endif
  18088. #include <resolv.h>
  18089. int
  18090. main (void)
  18091. {
  18092. res_ndestroy(NULL);
  18093. ;
  18094. return 0;
  18095. }
  18096. _ACEOF
  18097. if ac_fn_c_try_link "$LINENO"
  18098. then :
  18099. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18100. printf "%s\n" "yes" >&6; }
  18101. printf "%s\n" "#define HAVE_RES_NDESTROY 1" >>confdefs.h
  18102. else $as_nop
  18103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18104. printf "%s\n" "no" >&6; }
  18105. fi
  18106. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18107. conftest$ac_exeext conftest.$ac_ext
  18108. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_close" >&5
  18109. printf %s "checking for library containing res_9_close... " >&6; }
  18110. if test ${ac_cv_search_res_9_close+y}
  18111. then :
  18112. printf %s "(cached) " >&6
  18113. else $as_nop
  18114. ac_func_search_save_LIBS=$LIBS
  18115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18116. /* end confdefs.h. */
  18117. /* Override any GCC internal prototype to avoid an error.
  18118. Use char because int might match the return type of a GCC
  18119. builtin and then its argument prototype would still apply. */
  18120. char res_9_close ();
  18121. int
  18122. main (void)
  18123. {
  18124. return res_9_close ();
  18125. ;
  18126. return 0;
  18127. }
  18128. _ACEOF
  18129. for ac_lib in '' resolv
  18130. do
  18131. if test -z "$ac_lib"; then
  18132. ac_res="none required"
  18133. else
  18134. ac_res=-l$ac_lib
  18135. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  18136. fi
  18137. if ac_fn_c_try_link "$LINENO"
  18138. then :
  18139. ac_cv_search_res_9_close=$ac_res
  18140. fi
  18141. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18142. conftest$ac_exeext
  18143. if test ${ac_cv_search_res_9_close+y}
  18144. then :
  18145. break
  18146. fi
  18147. done
  18148. if test ${ac_cv_search_res_9_close+y}
  18149. then :
  18150. else $as_nop
  18151. ac_cv_search_res_9_close=no
  18152. fi
  18153. rm conftest.$ac_ext
  18154. LIBS=$ac_func_search_save_LIBS
  18155. fi
  18156. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_close" >&5
  18157. printf "%s\n" "$ac_cv_search_res_9_close" >&6; }
  18158. ac_res=$ac_cv_search_res_9_close
  18159. if test "$ac_res" != no
  18160. then :
  18161. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  18162. fi
  18163. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_close" >&5
  18164. printf %s "checking for res_close... " >&6; }
  18165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18166. /* end confdefs.h. */
  18167. #ifdef HAVE_SYS_SOCKET_H
  18168. #include <sys/socket.h>
  18169. #endif
  18170. #ifdef HAVE_NETINET_IN_H
  18171. #include <netinet/in.h>
  18172. #endif
  18173. #ifdef HAVE_ARPA_NAMESER_H
  18174. #include <arpa/nameser.h>
  18175. #endif
  18176. #include <resolv.h>
  18177. int
  18178. main (void)
  18179. {
  18180. res_close();
  18181. ;
  18182. return 0;
  18183. }
  18184. _ACEOF
  18185. if ac_fn_c_try_link "$LINENO"
  18186. then :
  18187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18188. printf "%s\n" "yes" >&6; }
  18189. printf "%s\n" "#define HAVE_RES_CLOSE 1" >>confdefs.h
  18190. else $as_nop
  18191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18192. printf "%s\n" "no" >&6; }
  18193. fi
  18194. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18195. conftest$ac_exeext conftest.$ac_ext
  18196. ac_fn_c_check_member "$LINENO" "struct __res_state" "_u._ext.nsaddrs" "ac_cv_member_struct___res_state__u__ext_nsaddrs" "#include <resolv.h>
  18197. "
  18198. if test "x$ac_cv_member_struct___res_state__u__ext_nsaddrs" = xyes
  18199. then :
  18200. printf "%s\n" "#define HAVE_STRUCT___RES_STATE__U__EXT_NSADDRS 1" >>confdefs.h
  18201. fi
  18202. else $as_nop
  18203. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18204. printf "%s\n" "no" >&6; }
  18205. fi
  18206. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18207. conftest$ac_exeext conftest.$ac_ext
  18208. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BIND_8_COMPAT required" >&5
  18209. printf %s "checking for BIND_8_COMPAT required... " >&6; }
  18210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18211. /* end confdefs.h. */
  18212. #undef BIND_8_COMPAT
  18213. #include <arpa/nameser.h>
  18214. int
  18215. main (void)
  18216. {
  18217. int x = NXDOMAIN
  18218. ;
  18219. return 0;
  18220. }
  18221. _ACEOF
  18222. if ac_fn_c_try_compile "$LINENO"
  18223. then :
  18224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18225. printf "%s\n" "no" >&6; }
  18226. else $as_nop
  18227. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18228. printf "%s\n" "yes" >&6; }
  18229. BIND8_CFLAGS=-DBIND_8_COMPAT
  18230. fi
  18231. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18232. if test "x${PBX_GLOB_NOMAGIC}" != "x1"; then
  18233. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_NOMAGIC in glob.h" >&5
  18234. printf %s "checking for GLOB_NOMAGIC in glob.h... " >&6; }
  18235. saved_cppflags="${CPPFLAGS}"
  18236. if test "x${GLOB_NOMAGIC_DIR}" != "x"; then
  18237. GLOB_NOMAGIC_INCLUDE="-I${GLOB_NOMAGIC_DIR}/include"
  18238. fi
  18239. CPPFLAGS="${CPPFLAGS} ${GLOB_NOMAGIC_INCLUDE}"
  18240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18241. /* end confdefs.h. */
  18242. #include <glob.h>
  18243. int
  18244. main (void)
  18245. {
  18246. #if defined(GLOB_NOMAGIC)
  18247. int foo = 0;
  18248. #else
  18249. int foo = bar;
  18250. #endif
  18251. 0
  18252. ;
  18253. return 0;
  18254. }
  18255. _ACEOF
  18256. if ac_fn_c_try_compile "$LINENO"
  18257. then :
  18258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18259. printf "%s\n" "yes" >&6; }
  18260. PBX_GLOB_NOMAGIC=1
  18261. printf "%s\n" "#define HAVE_GLOB_NOMAGIC 1" >>confdefs.h
  18262. else $as_nop
  18263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18264. printf "%s\n" "no" >&6; }
  18265. fi
  18266. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18267. CPPFLAGS="${saved_cppflags}"
  18268. fi
  18269. if test "x${PBX_GLOB_BRACE}" != "x1"; then
  18270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE in glob.h" >&5
  18271. printf %s "checking for GLOB_BRACE in glob.h... " >&6; }
  18272. saved_cppflags="${CPPFLAGS}"
  18273. if test "x${GLOB_BRACE_DIR}" != "x"; then
  18274. GLOB_BRACE_INCLUDE="-I${GLOB_BRACE_DIR}/include"
  18275. fi
  18276. CPPFLAGS="${CPPFLAGS} ${GLOB_BRACE_INCLUDE}"
  18277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18278. /* end confdefs.h. */
  18279. #include <glob.h>
  18280. int
  18281. main (void)
  18282. {
  18283. #if defined(GLOB_BRACE)
  18284. int foo = 0;
  18285. #else
  18286. int foo = bar;
  18287. #endif
  18288. 0
  18289. ;
  18290. return 0;
  18291. }
  18292. _ACEOF
  18293. if ac_fn_c_try_compile "$LINENO"
  18294. then :
  18295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18296. printf "%s\n" "yes" >&6; }
  18297. PBX_GLOB_BRACE=1
  18298. printf "%s\n" "#define HAVE_GLOB_BRACE 1" >>confdefs.h
  18299. else $as_nop
  18300. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18301. printf "%s\n" "no" >&6; }
  18302. fi
  18303. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18304. CPPFLAGS="${saved_cppflags}"
  18305. fi
  18306. if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
  18307. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTLD_NOLOAD in dlfcn.h" >&5
  18308. printf %s "checking for RTLD_NOLOAD in dlfcn.h... " >&6; }
  18309. saved_cppflags="${CPPFLAGS}"
  18310. if test "x${RTLD_NOLOAD_DIR}" != "x"; then
  18311. RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
  18312. fi
  18313. CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
  18314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18315. /* end confdefs.h. */
  18316. #include <dlfcn.h>
  18317. int
  18318. main (void)
  18319. {
  18320. #if defined(RTLD_NOLOAD)
  18321. int foo = 0;
  18322. #else
  18323. int foo = bar;
  18324. #endif
  18325. 0
  18326. ;
  18327. return 0;
  18328. }
  18329. _ACEOF
  18330. if ac_fn_c_try_compile "$LINENO"
  18331. then :
  18332. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18333. printf "%s\n" "yes" >&6; }
  18334. PBX_RTLD_NOLOAD=1
  18335. printf "%s\n" "#define HAVE_RTLD_NOLOAD 1" >>confdefs.h
  18336. else $as_nop
  18337. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18338. printf "%s\n" "no" >&6; }
  18339. fi
  18340. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18341. CPPFLAGS="${saved_cppflags}"
  18342. fi
  18343. if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
  18344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
  18345. printf %s "checking for IP_MTU_DISCOVER in netinet/in.h... " >&6; }
  18346. saved_cppflags="${CPPFLAGS}"
  18347. if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
  18348. IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
  18349. fi
  18350. CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
  18351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18352. /* end confdefs.h. */
  18353. #include <netinet/in.h>
  18354. int
  18355. main (void)
  18356. {
  18357. #if defined(IP_MTU_DISCOVER)
  18358. int foo = 0;
  18359. #else
  18360. int foo = bar;
  18361. #endif
  18362. 0
  18363. ;
  18364. return 0;
  18365. }
  18366. _ACEOF
  18367. if ac_fn_c_try_compile "$LINENO"
  18368. then :
  18369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18370. printf "%s\n" "yes" >&6; }
  18371. PBX_IP_MTU_DISCOVER=1
  18372. printf "%s\n" "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h
  18373. else $as_nop
  18374. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18375. printf "%s\n" "no" >&6; }
  18376. fi
  18377. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  18378. CPPFLAGS="${saved_cppflags}"
  18379. fi
  18380. # The cast to long int works around a bug in the HP C Compiler
  18381. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18382. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18383. # This bug is HP SR number 8606223364.
  18384. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  18385. printf %s "checking size of int... " >&6; }
  18386. if test ${ac_cv_sizeof_int+y}
  18387. then :
  18388. printf %s "(cached) " >&6
  18389. else $as_nop
  18390. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
  18391. then :
  18392. else $as_nop
  18393. if test "$ac_cv_type_int" = yes; then
  18394. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18395. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18396. as_fn_error 77 "cannot compute sizeof (int)
  18397. See \`config.log' for more details" "$LINENO" 5; }
  18398. else
  18399. ac_cv_sizeof_int=0
  18400. fi
  18401. fi
  18402. fi
  18403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  18404. printf "%s\n" "$ac_cv_sizeof_int" >&6; }
  18405. printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
  18406. # The cast to long int works around a bug in the HP C Compiler
  18407. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18408. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18409. # This bug is HP SR number 8606223364.
  18410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  18411. printf %s "checking size of long... " >&6; }
  18412. if test ${ac_cv_sizeof_long+y}
  18413. then :
  18414. printf %s "(cached) " >&6
  18415. else $as_nop
  18416. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
  18417. then :
  18418. else $as_nop
  18419. if test "$ac_cv_type_long" = yes; then
  18420. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18421. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18422. as_fn_error 77 "cannot compute sizeof (long)
  18423. See \`config.log' for more details" "$LINENO" 5; }
  18424. else
  18425. ac_cv_sizeof_long=0
  18426. fi
  18427. fi
  18428. fi
  18429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  18430. printf "%s\n" "$ac_cv_sizeof_long" >&6; }
  18431. printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
  18432. # The cast to long int works around a bug in the HP C Compiler
  18433. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18434. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18435. # This bug is HP SR number 8606223364.
  18436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  18437. printf %s "checking size of long long... " >&6; }
  18438. if test ${ac_cv_sizeof_long_long+y}
  18439. then :
  18440. printf %s "(cached) " >&6
  18441. else $as_nop
  18442. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
  18443. then :
  18444. else $as_nop
  18445. if test "$ac_cv_type_long_long" = yes; then
  18446. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18447. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18448. as_fn_error 77 "cannot compute sizeof (long long)
  18449. See \`config.log' for more details" "$LINENO" 5; }
  18450. else
  18451. ac_cv_sizeof_long_long=0
  18452. fi
  18453. fi
  18454. fi
  18455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  18456. printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
  18457. printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
  18458. # The cast to long int works around a bug in the HP C Compiler
  18459. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18460. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18461. # This bug is HP SR number 8606223364.
  18462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  18463. printf %s "checking size of char *... " >&6; }
  18464. if test ${ac_cv_sizeof_char_p+y}
  18465. then :
  18466. printf %s "(cached) " >&6
  18467. else $as_nop
  18468. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"
  18469. then :
  18470. else $as_nop
  18471. if test "$ac_cv_type_char_p" = yes; then
  18472. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18473. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18474. as_fn_error 77 "cannot compute sizeof (char *)
  18475. See \`config.log' for more details" "$LINENO" 5; }
  18476. else
  18477. ac_cv_sizeof_char_p=0
  18478. fi
  18479. fi
  18480. fi
  18481. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  18482. printf "%s\n" "$ac_cv_sizeof_char_p" >&6; }
  18483. printf "%s\n" "#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p" >>confdefs.h
  18484. # The cast to long int works around a bug in the HP C Compiler
  18485. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18486. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18487. # This bug is HP SR number 8606223364.
  18488. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  18489. printf %s "checking size of long... " >&6; }
  18490. if test ${ac_cv_sizeof_long+y}
  18491. then :
  18492. printf %s "(cached) " >&6
  18493. else $as_nop
  18494. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
  18495. then :
  18496. else $as_nop
  18497. if test "$ac_cv_type_long" = yes; then
  18498. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18499. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18500. as_fn_error 77 "cannot compute sizeof (long)
  18501. See \`config.log' for more details" "$LINENO" 5; }
  18502. else
  18503. ac_cv_sizeof_long=0
  18504. fi
  18505. fi
  18506. fi
  18507. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  18508. printf "%s\n" "$ac_cv_sizeof_long" >&6; }
  18509. printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
  18510. # The cast to long int works around a bug in the HP C Compiler
  18511. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18512. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18513. # This bug is HP SR number 8606223364.
  18514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  18515. printf %s "checking size of long long... " >&6; }
  18516. if test ${ac_cv_sizeof_long_long+y}
  18517. then :
  18518. printf %s "(cached) " >&6
  18519. else $as_nop
  18520. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
  18521. then :
  18522. else $as_nop
  18523. if test "$ac_cv_type_long_long" = yes; then
  18524. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18525. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18526. as_fn_error 77 "cannot compute sizeof (long long)
  18527. See \`config.log' for more details" "$LINENO" 5; }
  18528. else
  18529. ac_cv_sizeof_long_long=0
  18530. fi
  18531. fi
  18532. fi
  18533. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  18534. printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
  18535. printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
  18536. if ac_fn_c_compute_int "$LINENO" "sizeof(foo.fds_bits[0])" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default
  18537. fd_set foo;"
  18538. then :
  18539. fi
  18540. # This doesn't actually work; what it does is to use the variable set in the
  18541. # previous test as a cached value to set the right output variables.
  18542. # The cast to long int works around a bug in the HP C Compiler
  18543. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18544. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18545. # This bug is HP SR number 8606223364.
  18546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of fd_set.fds_bits" >&5
  18547. printf %s "checking size of fd_set.fds_bits... " >&6; }
  18548. if test ${ac_cv_sizeof_fd_set_fds_bits+y}
  18549. then :
  18550. printf %s "(cached) " >&6
  18551. else $as_nop
  18552. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fd_set.fds_bits))" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default"
  18553. then :
  18554. else $as_nop
  18555. if test "$ac_cv_type_fd_set_fds_bits" = yes; then
  18556. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18557. printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
  18558. as_fn_error 77 "cannot compute sizeof (fd_set.fds_bits)
  18559. See \`config.log' for more details" "$LINENO" 5; }
  18560. else
  18561. ac_cv_sizeof_fd_set_fds_bits=0
  18562. fi
  18563. fi
  18564. fi
  18565. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fd_set_fds_bits" >&5
  18566. printf "%s\n" "$ac_cv_sizeof_fd_set_fds_bits" >&6; }
  18567. printf "%s\n" "#define SIZEOF_FD_SET_FDS_BITS $ac_cv_sizeof_fd_set_fds_bits" >>confdefs.h
  18568. # Set a type compatible with the previous. We cannot just use a generic type
  18569. # for these bits, because on big-endian systems, the bits won't match up
  18570. # correctly if the size is wrong.
  18571. if test $ac_cv_sizeof_int = $ac_cv_sizeof_fd_set_fds_bits; then
  18572. printf "%s\n" "#define TYPEOF_FD_SET_FDS_BITS int" >>confdefs.h
  18573. elif test $ac_cv_sizeof_long = $ac_cv_sizeof_fd_set_fds_bits; then
  18574. printf "%s\n" "#define TYPEOF_FD_SET_FDS_BITS long" >>confdefs.h
  18575. elif test $ac_cv_sizeof_long_long = $ac_cv_sizeof_fd_set_fds_bits; then
  18576. printf "%s\n" "#define TYPEOF_FD_SET_FDS_BITS long long" >>confdefs.h
  18577. fi
  18578. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dladdr in dlfcn.h" >&5
  18579. printf %s "checking for dladdr in dlfcn.h... " >&6; }
  18580. PBX_DLADDR=0
  18581. old_LIBS=${LIBS}
  18582. LIBS="${LIBS} -ldl"
  18583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18584. /* end confdefs.h. */
  18585. #define _GNU_SOURCE 1
  18586. #include <dlfcn.h>
  18587. int
  18588. main (void)
  18589. {
  18590. dladdr((void *)0, (void *)0)
  18591. ;
  18592. return 0;
  18593. }
  18594. _ACEOF
  18595. if ac_fn_c_try_link "$LINENO"
  18596. then :
  18597. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18598. printf "%s\n" "yes" >&6; }
  18599. PBX_DLADDR=1
  18600. printf "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h
  18601. else $as_nop
  18602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18603. printf "%s\n" "no" >&6; }
  18604. fi
  18605. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18606. conftest$ac_exeext conftest.$ac_ext
  18607. LIBS=${old_LIBS}
  18608. # re-check without -ldl
  18609. # Non-Linux platforms like FreeBSD and NetBSD do not need a library libdl.so.
  18610. if test "${PBX_DLADDR}" = "0"; then
  18611. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dladdr in dlfcn.h without -ldl" >&5
  18612. printf %s "checking for dladdr in dlfcn.h without -ldl... " >&6; }
  18613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18614. /* end confdefs.h. */
  18615. #define _GNU_SOURCE 1
  18616. #include <dlfcn.h>
  18617. int
  18618. main (void)
  18619. {
  18620. dladdr((void *)0, (void *)0)
  18621. ;
  18622. return 0;
  18623. }
  18624. _ACEOF
  18625. if ac_fn_c_try_link "$LINENO"
  18626. then :
  18627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18628. printf "%s\n" "yes" >&6; }
  18629. PBX_DLADDR=1
  18630. printf "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h
  18631. else $as_nop
  18632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18633. printf "%s\n" "no" >&6; }
  18634. fi
  18635. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18636. conftest$ac_exeext conftest.$ac_ext
  18637. fi
  18638. # do the package library checks now
  18639. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  18640. pbxlibdir=""
  18641. # if --with-BFD=DIR has been specified, use it.
  18642. if test "x${BFD_DIR}" != "x"; then
  18643. if test -d ${BFD_DIR}/lib; then
  18644. pbxlibdir="-L${BFD_DIR}/lib"
  18645. else
  18646. pbxlibdir="-L${BFD_DIR}"
  18647. fi
  18648. fi
  18649. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18650. CFLAGS="${CFLAGS} "
  18651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_openr in -lbfd" >&5
  18652. printf %s "checking for bfd_openr in -lbfd... " >&6; }
  18653. if test ${ac_cv_lib_bfd_bfd_openr+y}
  18654. then :
  18655. printf %s "(cached) " >&6
  18656. else $as_nop
  18657. ac_check_lib_save_LIBS=$LIBS
  18658. LIBS="-lbfd ${pbxlibdir} $LIBS"
  18659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18660. /* end confdefs.h. */
  18661. /* Override any GCC internal prototype to avoid an error.
  18662. Use char because int might match the return type of a GCC
  18663. builtin and then its argument prototype would still apply. */
  18664. char bfd_openr ();
  18665. int
  18666. main (void)
  18667. {
  18668. return bfd_openr ();
  18669. ;
  18670. return 0;
  18671. }
  18672. _ACEOF
  18673. if ac_fn_c_try_link "$LINENO"
  18674. then :
  18675. ac_cv_lib_bfd_bfd_openr=yes
  18676. else $as_nop
  18677. ac_cv_lib_bfd_bfd_openr=no
  18678. fi
  18679. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18680. conftest$ac_exeext conftest.$ac_ext
  18681. LIBS=$ac_check_lib_save_LIBS
  18682. fi
  18683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_openr" >&5
  18684. printf "%s\n" "$ac_cv_lib_bfd_bfd_openr" >&6; }
  18685. if test "x$ac_cv_lib_bfd_bfd_openr" = xyes
  18686. then :
  18687. AST_BFD_FOUND=yes
  18688. else $as_nop
  18689. AST_BFD_FOUND=no
  18690. fi
  18691. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18692. # now check for the header.
  18693. if test "${AST_BFD_FOUND}" = "yes"; then
  18694. BFD_LIB="${pbxlibdir} -lbfd "
  18695. # if --with-BFD=DIR has been specified, use it.
  18696. if test "x${BFD_DIR}" != "x"; then
  18697. BFD_INCLUDE="-I${BFD_DIR}/include"
  18698. fi
  18699. BFD_INCLUDE="${BFD_INCLUDE} "
  18700. # check for the header
  18701. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18702. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  18703. ac_fn_c_check_header_compile "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  18704. if test "x$ac_cv_header_bfd_h" = xyes
  18705. then :
  18706. BFD_HEADER_FOUND=1
  18707. else $as_nop
  18708. BFD_HEADER_FOUND=0
  18709. fi
  18710. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18711. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  18712. BFD_LIB=""
  18713. BFD_INCLUDE=""
  18714. else
  18715. PBX_BFD=1
  18716. cat >>confdefs.h <<_ACEOF
  18717. #define HAVE_BFD 1
  18718. _ACEOF
  18719. fi
  18720. fi
  18721. fi
  18722. # Fedora/RedHat/CentOS require extra libraries
  18723. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  18724. pbxlibdir=""
  18725. # if --with-BFD=DIR has been specified, use it.
  18726. if test "x${BFD_DIR}" != "x"; then
  18727. if test -d ${BFD_DIR}/lib; then
  18728. pbxlibdir="-L${BFD_DIR}/lib"
  18729. else
  18730. pbxlibdir="-L${BFD_DIR}"
  18731. fi
  18732. fi
  18733. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18734. CFLAGS="${CFLAGS} "
  18735. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_openr in -lbfd" >&5
  18736. printf %s "checking for bfd_openr in -lbfd... " >&6; }
  18737. if test ${ac_cv_lib_bfd_bfd_openr+y}
  18738. then :
  18739. printf %s "(cached) " >&6
  18740. else $as_nop
  18741. ac_check_lib_save_LIBS=$LIBS
  18742. LIBS="-lbfd ${pbxlibdir} -ldl -liberty $LIBS"
  18743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18744. /* end confdefs.h. */
  18745. /* Override any GCC internal prototype to avoid an error.
  18746. Use char because int might match the return type of a GCC
  18747. builtin and then its argument prototype would still apply. */
  18748. char bfd_openr ();
  18749. int
  18750. main (void)
  18751. {
  18752. return bfd_openr ();
  18753. ;
  18754. return 0;
  18755. }
  18756. _ACEOF
  18757. if ac_fn_c_try_link "$LINENO"
  18758. then :
  18759. ac_cv_lib_bfd_bfd_openr=yes
  18760. else $as_nop
  18761. ac_cv_lib_bfd_bfd_openr=no
  18762. fi
  18763. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18764. conftest$ac_exeext conftest.$ac_ext
  18765. LIBS=$ac_check_lib_save_LIBS
  18766. fi
  18767. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_openr" >&5
  18768. printf "%s\n" "$ac_cv_lib_bfd_bfd_openr" >&6; }
  18769. if test "x$ac_cv_lib_bfd_bfd_openr" = xyes
  18770. then :
  18771. AST_BFD_FOUND=yes
  18772. else $as_nop
  18773. AST_BFD_FOUND=no
  18774. fi
  18775. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18776. # now check for the header.
  18777. if test "${AST_BFD_FOUND}" = "yes"; then
  18778. BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty"
  18779. # if --with-BFD=DIR has been specified, use it.
  18780. if test "x${BFD_DIR}" != "x"; then
  18781. BFD_INCLUDE="-I${BFD_DIR}/include"
  18782. fi
  18783. BFD_INCLUDE="${BFD_INCLUDE} "
  18784. # check for the header
  18785. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18786. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  18787. ac_fn_c_check_header_compile "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  18788. if test "x$ac_cv_header_bfd_h" = xyes
  18789. then :
  18790. BFD_HEADER_FOUND=1
  18791. else $as_nop
  18792. BFD_HEADER_FOUND=0
  18793. fi
  18794. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18795. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  18796. BFD_LIB=""
  18797. BFD_INCLUDE=""
  18798. else
  18799. PBX_BFD=1
  18800. cat >>confdefs.h <<_ACEOF
  18801. #define HAVE_BFD 1
  18802. _ACEOF
  18803. fi
  18804. fi
  18805. fi
  18806. # openSUSE requires -lz
  18807. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  18808. pbxlibdir=""
  18809. # if --with-BFD=DIR has been specified, use it.
  18810. if test "x${BFD_DIR}" != "x"; then
  18811. if test -d ${BFD_DIR}/lib; then
  18812. pbxlibdir="-L${BFD_DIR}/lib"
  18813. else
  18814. pbxlibdir="-L${BFD_DIR}"
  18815. fi
  18816. fi
  18817. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18818. CFLAGS="${CFLAGS} "
  18819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bfd_openr in -lbfd" >&5
  18820. printf %s "checking for bfd_openr in -lbfd... " >&6; }
  18821. if test ${ac_cv_lib_bfd_bfd_openr+y}
  18822. then :
  18823. printf %s "(cached) " >&6
  18824. else $as_nop
  18825. ac_check_lib_save_LIBS=$LIBS
  18826. LIBS="-lbfd ${pbxlibdir} -ldl -liberty -lz $LIBS"
  18827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18828. /* end confdefs.h. */
  18829. /* Override any GCC internal prototype to avoid an error.
  18830. Use char because int might match the return type of a GCC
  18831. builtin and then its argument prototype would still apply. */
  18832. char bfd_openr ();
  18833. int
  18834. main (void)
  18835. {
  18836. return bfd_openr ();
  18837. ;
  18838. return 0;
  18839. }
  18840. _ACEOF
  18841. if ac_fn_c_try_link "$LINENO"
  18842. then :
  18843. ac_cv_lib_bfd_bfd_openr=yes
  18844. else $as_nop
  18845. ac_cv_lib_bfd_bfd_openr=no
  18846. fi
  18847. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18848. conftest$ac_exeext conftest.$ac_ext
  18849. LIBS=$ac_check_lib_save_LIBS
  18850. fi
  18851. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_openr" >&5
  18852. printf "%s\n" "$ac_cv_lib_bfd_bfd_openr" >&6; }
  18853. if test "x$ac_cv_lib_bfd_bfd_openr" = xyes
  18854. then :
  18855. AST_BFD_FOUND=yes
  18856. else $as_nop
  18857. AST_BFD_FOUND=no
  18858. fi
  18859. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18860. # now check for the header.
  18861. if test "${AST_BFD_FOUND}" = "yes"; then
  18862. BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty -lz"
  18863. # if --with-BFD=DIR has been specified, use it.
  18864. if test "x${BFD_DIR}" != "x"; then
  18865. BFD_INCLUDE="-I${BFD_DIR}/include"
  18866. fi
  18867. BFD_INCLUDE="${BFD_INCLUDE} "
  18868. # check for the header
  18869. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18870. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  18871. ac_fn_c_check_header_compile "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  18872. if test "x$ac_cv_header_bfd_h" = xyes
  18873. then :
  18874. BFD_HEADER_FOUND=1
  18875. else $as_nop
  18876. BFD_HEADER_FOUND=0
  18877. fi
  18878. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18879. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  18880. BFD_LIB=""
  18881. BFD_INCLUDE=""
  18882. else
  18883. PBX_BFD=1
  18884. cat >>confdefs.h <<_ACEOF
  18885. #define HAVE_BFD 1
  18886. _ACEOF
  18887. fi
  18888. fi
  18889. fi
  18890. case "${OSARCH}" in
  18891. linux*)
  18892. if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
  18893. pbxlibdir=""
  18894. # if --with-CAP=DIR has been specified, use it.
  18895. if test "x${CAP_DIR}" != "x"; then
  18896. if test -d ${CAP_DIR}/lib; then
  18897. pbxlibdir="-L${CAP_DIR}/lib"
  18898. else
  18899. pbxlibdir="-L${CAP_DIR}"
  18900. fi
  18901. fi
  18902. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18903. CFLAGS="${CFLAGS} "
  18904. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cap_from_text in -lcap" >&5
  18905. printf %s "checking for cap_from_text in -lcap... " >&6; }
  18906. if test ${ac_cv_lib_cap_cap_from_text+y}
  18907. then :
  18908. printf %s "(cached) " >&6
  18909. else $as_nop
  18910. ac_check_lib_save_LIBS=$LIBS
  18911. LIBS="-lcap ${pbxlibdir} $LIBS"
  18912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18913. /* end confdefs.h. */
  18914. /* Override any GCC internal prototype to avoid an error.
  18915. Use char because int might match the return type of a GCC
  18916. builtin and then its argument prototype would still apply. */
  18917. char cap_from_text ();
  18918. int
  18919. main (void)
  18920. {
  18921. return cap_from_text ();
  18922. ;
  18923. return 0;
  18924. }
  18925. _ACEOF
  18926. if ac_fn_c_try_link "$LINENO"
  18927. then :
  18928. ac_cv_lib_cap_cap_from_text=yes
  18929. else $as_nop
  18930. ac_cv_lib_cap_cap_from_text=no
  18931. fi
  18932. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  18933. conftest$ac_exeext conftest.$ac_ext
  18934. LIBS=$ac_check_lib_save_LIBS
  18935. fi
  18936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_from_text" >&5
  18937. printf "%s\n" "$ac_cv_lib_cap_cap_from_text" >&6; }
  18938. if test "x$ac_cv_lib_cap_cap_from_text" = xyes
  18939. then :
  18940. AST_CAP_FOUND=yes
  18941. else $as_nop
  18942. AST_CAP_FOUND=no
  18943. fi
  18944. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18945. # now check for the header.
  18946. if test "${AST_CAP_FOUND}" = "yes"; then
  18947. CAP_LIB="${pbxlibdir} -lcap "
  18948. # if --with-CAP=DIR has been specified, use it.
  18949. if test "x${CAP_DIR}" != "x"; then
  18950. CAP_INCLUDE="-I${CAP_DIR}/include"
  18951. fi
  18952. CAP_INCLUDE="${CAP_INCLUDE} "
  18953. # check for the header
  18954. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18955. CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
  18956. ac_fn_c_check_header_compile "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
  18957. if test "x$ac_cv_header_sys_capability_h" = xyes
  18958. then :
  18959. CAP_HEADER_FOUND=1
  18960. else $as_nop
  18961. CAP_HEADER_FOUND=0
  18962. fi
  18963. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18964. if test "x${CAP_HEADER_FOUND}" = "x0" ; then
  18965. CAP_LIB=""
  18966. CAP_INCLUDE=""
  18967. else
  18968. PBX_CAP=1
  18969. cat >>confdefs.h <<_ACEOF
  18970. #define HAVE_CAP 1
  18971. _ACEOF
  18972. fi
  18973. fi
  18974. fi
  18975. ;;
  18976. esac
  18977. if test "x${PBX_DAHDI}" != "x1"; then
  18978. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DAHDI_RESET_COUNTERS in dahdi/user.h" >&5
  18979. printf %s "checking for DAHDI_RESET_COUNTERS in dahdi/user.h... " >&6; }
  18980. saved_cppflags="${CPPFLAGS}"
  18981. if test "x${DAHDI_DIR}" != "x"; then
  18982. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  18983. fi
  18984. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  18985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18986. /* end confdefs.h. */
  18987. #include <dahdi/user.h>
  18988. int
  18989. main (void)
  18990. {
  18991. #if defined(DAHDI_RESET_COUNTERS)
  18992. int foo = 0;
  18993. #else
  18994. int foo = bar;
  18995. #endif
  18996. 0
  18997. ;
  18998. return 0;
  18999. }
  19000. _ACEOF
  19001. if ac_fn_c_try_compile "$LINENO"
  19002. then :
  19003. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19004. printf "%s\n" "yes" >&6; }
  19005. PBX_DAHDI=1
  19006. printf "%s\n" "#define HAVE_DAHDI 1" >>confdefs.h
  19007. printf "%s\n" "#define HAVE_DAHDI_VERSION 230" >>confdefs.h
  19008. else $as_nop
  19009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19010. printf "%s\n" "no" >&6; }
  19011. fi
  19012. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19013. CPPFLAGS="${saved_cppflags}"
  19014. fi
  19015. if test "x${PBX_DAHDI}" != "x1"; then
  19016. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h" >&5
  19017. printf %s "checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h... " >&6; }
  19018. saved_cppflags="${CPPFLAGS}"
  19019. if test "x${DAHDI_DIR}" != "x"; then
  19020. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  19021. fi
  19022. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  19023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19024. /* end confdefs.h. */
  19025. #include <dahdi/user.h>
  19026. int
  19027. main (void)
  19028. {
  19029. #if defined(DAHDI_DEFAULT_MTU_MRU)
  19030. int foo = 0;
  19031. #else
  19032. int foo = bar;
  19033. #endif
  19034. 0
  19035. ;
  19036. return 0;
  19037. }
  19038. _ACEOF
  19039. if ac_fn_c_try_compile "$LINENO"
  19040. then :
  19041. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19042. printf "%s\n" "yes" >&6; }
  19043. PBX_DAHDI=1
  19044. printf "%s\n" "#define HAVE_DAHDI 1" >>confdefs.h
  19045. printf "%s\n" "#define HAVE_DAHDI_VERSION 220" >>confdefs.h
  19046. else $as_nop
  19047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19048. printf "%s\n" "no" >&6; }
  19049. fi
  19050. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19051. CPPFLAGS="${saved_cppflags}"
  19052. fi
  19053. if test "x${PBX_DAHDI}" != "x1"; then
  19054. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DAHDI_CODE in dahdi/user.h" >&5
  19055. printf %s "checking for DAHDI_CODE in dahdi/user.h... " >&6; }
  19056. saved_cppflags="${CPPFLAGS}"
  19057. if test "x${DAHDI_DIR}" != "x"; then
  19058. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  19059. fi
  19060. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  19061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19062. /* end confdefs.h. */
  19063. #include <dahdi/user.h>
  19064. int
  19065. main (void)
  19066. {
  19067. #if defined(DAHDI_CODE)
  19068. int foo = 0;
  19069. #else
  19070. int foo = bar;
  19071. #endif
  19072. 0
  19073. ;
  19074. return 0;
  19075. }
  19076. _ACEOF
  19077. if ac_fn_c_try_compile "$LINENO"
  19078. then :
  19079. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19080. printf "%s\n" "yes" >&6; }
  19081. PBX_DAHDI=1
  19082. printf "%s\n" "#define HAVE_DAHDI 1" >>confdefs.h
  19083. printf "%s\n" "#define HAVE_DAHDI_VERSION 200" >>confdefs.h
  19084. else $as_nop
  19085. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19086. printf "%s\n" "no" >&6; }
  19087. fi
  19088. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19089. CPPFLAGS="${saved_cppflags}"
  19090. fi
  19091. if test "x${PBX_DAHDI_HALF_FULL}" != "x1"; then
  19092. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h" >&5
  19093. printf %s "checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h... " >&6; }
  19094. saved_cppflags="${CPPFLAGS}"
  19095. if test "x${DAHDI_HALF_FULL_DIR}" != "x"; then
  19096. DAHDI_HALF_FULL_INCLUDE="-I${DAHDI_HALF_FULL_DIR}/include"
  19097. fi
  19098. CPPFLAGS="${CPPFLAGS} ${DAHDI_HALF_FULL_INCLUDE}"
  19099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19100. /* end confdefs.h. */
  19101. #include <dahdi/user.h>
  19102. int
  19103. main (void)
  19104. {
  19105. #if defined(DAHDI_POLICY_HALF_FULL)
  19106. int foo = 0;
  19107. #else
  19108. int foo = bar;
  19109. #endif
  19110. 0
  19111. ;
  19112. return 0;
  19113. }
  19114. _ACEOF
  19115. if ac_fn_c_try_compile "$LINENO"
  19116. then :
  19117. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19118. printf "%s\n" "yes" >&6; }
  19119. PBX_DAHDI_HALF_FULL=1
  19120. printf "%s\n" "#define HAVE_DAHDI_HALF_FULL 1" >>confdefs.h
  19121. else $as_nop
  19122. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19123. printf "%s\n" "no" >&6; }
  19124. fi
  19125. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19126. CPPFLAGS="${saved_cppflags}"
  19127. fi
  19128. if test "x${PBX_DAHDI_LINEREVERSE_VMWI}" != "x1" -a "${USE_DAHDI_LINEREVERSE_VMWI}" != "no"; then
  19129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for enhanced dahdi vmwi support" >&5
  19130. printf %s "checking for enhanced dahdi vmwi support... " >&6; }
  19131. saved_cppflags="${CPPFLAGS}"
  19132. if test "x${DAHDI_LINEREVERSE_VMWI_DIR}" != "x"; then
  19133. DAHDI_LINEREVERSE_VMWI_INCLUDE="-I${DAHDI_LINEREVERSE_VMWI_DIR}/include"
  19134. fi
  19135. CPPFLAGS="${CPPFLAGS} ${DAHDI_LINEREVERSE_VMWI_INCLUDE}"
  19136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19137. /* end confdefs.h. */
  19138. #include <dahdi/user.h>
  19139. int
  19140. main (void)
  19141. {
  19142. struct dahdi_vmwi_info booger;
  19143. ;
  19144. return 0;
  19145. }
  19146. _ACEOF
  19147. if ac_fn_c_try_compile "$LINENO"
  19148. then :
  19149. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19150. printf "%s\n" "yes" >&6; }
  19151. PBX_DAHDI_LINEREVERSE_VMWI=1
  19152. printf "%s\n" "#define HAVE_DAHDI_LINEREVERSE_VMWI 1" >>confdefs.h
  19153. else $as_nop
  19154. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19155. printf "%s\n" "no" >&6; }
  19156. fi
  19157. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19158. CPPFLAGS="${saved_cppflags}"
  19159. fi
  19160. if test "x${PBX_DAHDI_ECHOCANCEL_FAX_MODE}" != "x1" -a "${USE_DAHDI_ECHOCANCEL_FAX_MODE}" != "no"; then
  19161. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h" >&5
  19162. printf %s "checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h... " >&6; }
  19163. saved_cppflags="${CPPFLAGS}"
  19164. if test "x${DAHDI_ECHOCANCEL_FAX_MODE_DIR}" != "x"; then
  19165. DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE="-I${DAHDI_ECHOCANCEL_FAX_MODE_DIR}/include"
  19166. fi
  19167. CPPFLAGS="${CPPFLAGS} ${DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE}"
  19168. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19169. /* end confdefs.h. */
  19170. #include <dahdi/user.h>
  19171. int
  19172. main (void)
  19173. {
  19174. int foo = DAHDI_ECHOCANCEL_FAX_MODE;
  19175. ;
  19176. return 0;
  19177. }
  19178. _ACEOF
  19179. if ac_fn_c_try_compile "$LINENO"
  19180. then :
  19181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19182. printf "%s\n" "yes" >&6; }
  19183. PBX_DAHDI_ECHOCANCEL_FAX_MODE=1
  19184. printf "%s\n" "#define HAVE_DAHDI_ECHOCANCEL_FAX_MODE 1" >>confdefs.h
  19185. else $as_nop
  19186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19187. printf "%s\n" "no" >&6; }
  19188. fi
  19189. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19190. CPPFLAGS="${saved_cppflags}"
  19191. fi
  19192. if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
  19193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getifaddrs() support" >&5
  19194. printf %s "checking for getifaddrs() support... " >&6; }
  19195. saved_cppflags="${CPPFLAGS}"
  19196. if test "x${GETIFADDRS_DIR}" != "x"; then
  19197. GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
  19198. fi
  19199. CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
  19200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19201. /* end confdefs.h. */
  19202. #include <ifaddrs.h>
  19203. int
  19204. main (void)
  19205. {
  19206. struct ifaddrs *p; getifaddrs(&p);
  19207. ;
  19208. return 0;
  19209. }
  19210. _ACEOF
  19211. if ac_fn_c_try_compile "$LINENO"
  19212. then :
  19213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19214. printf "%s\n" "yes" >&6; }
  19215. PBX_GETIFADDRS=1
  19216. printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
  19217. else $as_nop
  19218. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19219. printf "%s\n" "no" >&6; }
  19220. fi
  19221. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19222. CPPFLAGS="${saved_cppflags}"
  19223. fi
  19224. if test "x${PBX_TIMERFD}" != "x1" -a "${USE_TIMERFD}" != "no"; then
  19225. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd support" >&5
  19226. printf %s "checking for timerfd support... " >&6; }
  19227. saved_cppflags="${CPPFLAGS}"
  19228. if test "x${TIMERFD_DIR}" != "x"; then
  19229. TIMERFD_INCLUDE="-I${TIMERFD_DIR}/include"
  19230. fi
  19231. CPPFLAGS="${CPPFLAGS} ${TIMERFD_INCLUDE}"
  19232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19233. /* end confdefs.h. */
  19234. #include <sys/timerfd.h>
  19235. int
  19236. main (void)
  19237. {
  19238. timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);;
  19239. ;
  19240. return 0;
  19241. }
  19242. _ACEOF
  19243. if ac_fn_c_try_compile "$LINENO"
  19244. then :
  19245. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19246. printf "%s\n" "yes" >&6; }
  19247. PBX_TIMERFD=1
  19248. printf "%s\n" "#define HAVE_TIMERFD 1" >>confdefs.h
  19249. else $as_nop
  19250. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19251. printf "%s\n" "no" >&6; }
  19252. fi
  19253. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  19254. CPPFLAGS="${saved_cppflags}"
  19255. fi
  19256. GSM_INTERNAL="yes"
  19257. GSM_SYSTEM="yes"
  19258. if test "${USE_GSM}" != "no"; then
  19259. if test "${GSM_DIR}" = "internal"; then
  19260. GSM_SYSTEM="no"
  19261. elif test "${GSM_DIR}" != ""; then
  19262. GSM_INTERNAL="no"
  19263. fi
  19264. if test "${GSM_SYSTEM}" = "yes"; then
  19265. gsmlibdir=""
  19266. if test "x${GSM_DIR}" != "x"; then
  19267. if test -d ${GSM_DIR}/lib; then
  19268. gsmlibdir="-L${GSM_DIR}/lib"
  19269. else
  19270. gsmlibdir="-L${GSM_DIR}"
  19271. fi
  19272. fi
  19273. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5
  19274. printf %s "checking for gsm_create in -lgsm... " >&6; }
  19275. if test ${ac_cv_lib_gsm_gsm_create+y}
  19276. then :
  19277. printf %s "(cached) " >&6
  19278. else $as_nop
  19279. ac_check_lib_save_LIBS=$LIBS
  19280. LIBS="-lgsm ${gsmlibdir} $LIBS"
  19281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19282. /* end confdefs.h. */
  19283. /* Override any GCC internal prototype to avoid an error.
  19284. Use char because int might match the return type of a GCC
  19285. builtin and then its argument prototype would still apply. */
  19286. char gsm_create ();
  19287. int
  19288. main (void)
  19289. {
  19290. return gsm_create ();
  19291. ;
  19292. return 0;
  19293. }
  19294. _ACEOF
  19295. if ac_fn_c_try_link "$LINENO"
  19296. then :
  19297. ac_cv_lib_gsm_gsm_create=yes
  19298. else $as_nop
  19299. ac_cv_lib_gsm_gsm_create=no
  19300. fi
  19301. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19302. conftest$ac_exeext conftest.$ac_ext
  19303. LIBS=$ac_check_lib_save_LIBS
  19304. fi
  19305. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_create" >&5
  19306. printf "%s\n" "$ac_cv_lib_gsm_gsm_create" >&6; }
  19307. if test "x$ac_cv_lib_gsm_gsm_create" = xyes
  19308. then :
  19309. printf "%s\n" "#define HAVE_GSM 1" >>confdefs.h
  19310. fi
  19311. if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
  19312. if test "x${GSM_DIR}" != "x" ; then
  19313. as_ac_Header=`printf "%s\n" "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
  19314. ac_fn_c_check_header_compile "$LINENO" "${GSM_DIR}/include/gsm.h" "$as_ac_Header" "$ac_includes_default"
  19315. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  19316. then :
  19317. GSM_HEADER_FOUND=1
  19318. else $as_nop
  19319. GSM_HEADER_FOUND=0
  19320. fi
  19321. as_ac_Header=`printf "%s\n" "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
  19322. ac_fn_c_check_header_compile "$LINENO" "${GSM_DIR}/include/gsm/gsm.h" "$as_ac_Header" "$ac_includes_default"
  19323. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  19324. then :
  19325. GSM_GSM_HEADER_FOUND=1
  19326. else $as_nop
  19327. GSM_GSM_HEADER_FOUND=0
  19328. fi
  19329. else
  19330. ac_fn_c_check_header_compile "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default"
  19331. if test "x$ac_cv_header_gsm_h" = xyes
  19332. then :
  19333. GSM_HEADER_FOUND=1
  19334. else $as_nop
  19335. GSM_HEADER_FOUND=0
  19336. fi
  19337. ac_fn_c_check_header_compile "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
  19338. if test "x$ac_cv_header_gsm_gsm_h" = xyes
  19339. then :
  19340. GSM_GSM_HEADER_FOUND=1
  19341. else $as_nop
  19342. GSM_GSM_HEADER_FOUND=0
  19343. fi
  19344. fi
  19345. if test "${GSM_HEADER_FOUND}" = "0" ; then
  19346. if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
  19347. if test "x${GSM_MANDATORY}" = "xyes" ; then
  19348. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***" >&5
  19349. printf "%s\n" "$as_me: ***" >&6;}
  19350. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the gsm development package installed." >&5
  19351. printf "%s\n" "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
  19352. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
  19353. printf "%s\n" "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
  19354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${GSM_OPTION}" >&5
  19355. printf "%s\n" "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
  19356. exit 1
  19357. fi
  19358. fi
  19359. fi
  19360. GSM_OK=0
  19361. if test "${GSM_HEADER_FOUND}" = "1" ; then
  19362. printf "%s\n" "#define HAVE_GSM_HEADER 1" >>confdefs.h
  19363. GSM_OK=1
  19364. elif test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
  19365. printf "%s\n" "#define HAVE_GSM_GSM_HEADER 1" >>confdefs.h
  19366. GSM_OK=1
  19367. fi
  19368. if test "${GSM_OK}" = "1" ; then
  19369. GSM_LIB="-lgsm"
  19370. if test "x${GSM_DIR}" != "x"; then
  19371. GSM_LIB="${gsmlibdir} ${GSM_LIB}"
  19372. GSM_INCLUDE="-I${GSM_DIR}/include"
  19373. fi
  19374. PBX_GSM=1
  19375. GSM_INTERNAL="no"
  19376. fi
  19377. fi
  19378. fi
  19379. if test "${GSM_INTERNAL}" = "yes"; then
  19380. PBX_GSM=1
  19381. printf "%s\n" "#define HAVE_GSM_HEADER 1" >>confdefs.h
  19382. fi
  19383. fi
  19384. ILBC_INTERNAL="yes"
  19385. ILBC_SYSTEM="yes"
  19386. if test "${USE_ILBC}" != "no"; then
  19387. if test "${ILBC_DIR}" = "internal"; then
  19388. ILBC_SYSTEM="no"
  19389. elif test "${ILBC_DIR}" != ""; then
  19390. ILBC_INTERNAL="no"
  19391. fi
  19392. if test "${ILBC_SYSTEM}" = "yes"; then
  19393. if test "x${PBX_ILBC}" != "x1" -a "${USE_ILBC}" != "no"; then
  19394. pkg_failed=no
  19395. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libilbc < 3" >&5
  19396. printf %s "checking for libilbc < 3... " >&6; }
  19397. if test -n "$ILBC_CFLAGS"; then
  19398. pkg_cv_ILBC_CFLAGS="$ILBC_CFLAGS"
  19399. elif test -n "$PKG_CONFIG"; then
  19400. if test -n "$PKG_CONFIG" && \
  19401. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc < 3\""; } >&5
  19402. ($PKG_CONFIG --exists --print-errors "libilbc < 3") 2>&5
  19403. ac_status=$?
  19404. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19405. test $ac_status = 0; }; then
  19406. pkg_cv_ILBC_CFLAGS=`$PKG_CONFIG --cflags "libilbc < 3" 2>/dev/null`
  19407. test "x$?" != "x0" && pkg_failed=yes
  19408. else
  19409. pkg_failed=yes
  19410. fi
  19411. else
  19412. pkg_failed=untried
  19413. fi
  19414. if test -n "$ILBC_LIBS"; then
  19415. pkg_cv_ILBC_LIBS="$ILBC_LIBS"
  19416. elif test -n "$PKG_CONFIG"; then
  19417. if test -n "$PKG_CONFIG" && \
  19418. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc < 3\""; } >&5
  19419. ($PKG_CONFIG --exists --print-errors "libilbc < 3") 2>&5
  19420. ac_status=$?
  19421. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19422. test $ac_status = 0; }; then
  19423. pkg_cv_ILBC_LIBS=`$PKG_CONFIG --libs "libilbc < 3" 2>/dev/null`
  19424. test "x$?" != "x0" && pkg_failed=yes
  19425. else
  19426. pkg_failed=yes
  19427. fi
  19428. else
  19429. pkg_failed=untried
  19430. fi
  19431. if test $pkg_failed = yes; then
  19432. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19433. printf "%s\n" "no" >&6; }
  19434. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  19435. _pkg_short_errors_supported=yes
  19436. else
  19437. _pkg_short_errors_supported=no
  19438. fi
  19439. if test $_pkg_short_errors_supported = yes; then
  19440. ILBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libilbc < 3" 2>&1`
  19441. else
  19442. ILBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libilbc < 3" 2>&1`
  19443. fi
  19444. # Put the nasty error message in config.log where it belongs
  19445. echo "$ILBC_PKG_ERRORS" >&5
  19446. PBX_ILBC=0
  19447. elif test $pkg_failed = untried; then
  19448. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19449. printf "%s\n" "no" >&6; }
  19450. PBX_ILBC=0
  19451. else
  19452. ILBC_CFLAGS=$pkg_cv_ILBC_CFLAGS
  19453. ILBC_LIBS=$pkg_cv_ILBC_LIBS
  19454. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19455. printf "%s\n" "yes" >&6; }
  19456. PBX_ILBC=1
  19457. ILBC_INCLUDE=$(echo ${ILBC_CFLAGS} | $SED -e "s|-std=c99||g")
  19458. ILBC_LIB="$ILBC_LIBS"
  19459. printf "%s\n" "#define HAVE_ILBC 1" >>confdefs.h
  19460. fi
  19461. fi
  19462. if test "$PBX_ILBC" = "1"; then
  19463. ILBC_INTERNAL="no"
  19464. fi
  19465. fi
  19466. if test "${ILBC_INTERNAL}" = "yes"; then
  19467. PBX_ILBC=1
  19468. fi
  19469. fi
  19470. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  19471. pbxlibdir=""
  19472. # if --with-ICONV=DIR has been specified, use it.
  19473. if test "x${ICONV_DIR}" != "x"; then
  19474. if test -d ${ICONV_DIR}/lib; then
  19475. pbxlibdir="-L${ICONV_DIR}/lib"
  19476. else
  19477. pbxlibdir="-L${ICONV_DIR}"
  19478. fi
  19479. fi
  19480. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19481. CFLAGS="${CFLAGS} "
  19482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
  19483. printf %s "checking for iconv_open in -liconv... " >&6; }
  19484. if test ${ac_cv_lib_iconv_iconv_open+y}
  19485. then :
  19486. printf %s "(cached) " >&6
  19487. else $as_nop
  19488. ac_check_lib_save_LIBS=$LIBS
  19489. LIBS="-liconv ${pbxlibdir} $LIBS"
  19490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19491. /* end confdefs.h. */
  19492. /* Override any GCC internal prototype to avoid an error.
  19493. Use char because int might match the return type of a GCC
  19494. builtin and then its argument prototype would still apply. */
  19495. char iconv_open ();
  19496. int
  19497. main (void)
  19498. {
  19499. return iconv_open ();
  19500. ;
  19501. return 0;
  19502. }
  19503. _ACEOF
  19504. if ac_fn_c_try_link "$LINENO"
  19505. then :
  19506. ac_cv_lib_iconv_iconv_open=yes
  19507. else $as_nop
  19508. ac_cv_lib_iconv_iconv_open=no
  19509. fi
  19510. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19511. conftest$ac_exeext conftest.$ac_ext
  19512. LIBS=$ac_check_lib_save_LIBS
  19513. fi
  19514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
  19515. printf "%s\n" "$ac_cv_lib_iconv_iconv_open" >&6; }
  19516. if test "x$ac_cv_lib_iconv_iconv_open" = xyes
  19517. then :
  19518. AST_ICONV_FOUND=yes
  19519. else $as_nop
  19520. AST_ICONV_FOUND=no
  19521. fi
  19522. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19523. # now check for the header.
  19524. if test "${AST_ICONV_FOUND}" = "yes"; then
  19525. ICONV_LIB="${pbxlibdir} -liconv "
  19526. # if --with-ICONV=DIR has been specified, use it.
  19527. if test "x${ICONV_DIR}" != "x"; then
  19528. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  19529. fi
  19530. ICONV_INCLUDE="${ICONV_INCLUDE} "
  19531. # check for the header
  19532. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19533. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  19534. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  19535. if test "x$ac_cv_header_iconv_h" = xyes
  19536. then :
  19537. ICONV_HEADER_FOUND=1
  19538. else $as_nop
  19539. ICONV_HEADER_FOUND=0
  19540. fi
  19541. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19542. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  19543. ICONV_LIB=""
  19544. ICONV_INCLUDE=""
  19545. else
  19546. PBX_ICONV=1
  19547. cat >>confdefs.h <<_ACEOF
  19548. #define HAVE_ICONV 1
  19549. _ACEOF
  19550. fi
  19551. fi
  19552. fi
  19553. # GNU libiconv #define's iconv_open to libiconv_open, so we need to search for that symbol
  19554. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  19555. pbxlibdir=""
  19556. # if --with-ICONV=DIR has been specified, use it.
  19557. if test "x${ICONV_DIR}" != "x"; then
  19558. if test -d ${ICONV_DIR}/lib; then
  19559. pbxlibdir="-L${ICONV_DIR}/lib"
  19560. else
  19561. pbxlibdir="-L${ICONV_DIR}"
  19562. fi
  19563. fi
  19564. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19565. CFLAGS="${CFLAGS} "
  19566. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
  19567. printf %s "checking for libiconv_open in -liconv... " >&6; }
  19568. if test ${ac_cv_lib_iconv_libiconv_open+y}
  19569. then :
  19570. printf %s "(cached) " >&6
  19571. else $as_nop
  19572. ac_check_lib_save_LIBS=$LIBS
  19573. LIBS="-liconv ${pbxlibdir} $LIBS"
  19574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19575. /* end confdefs.h. */
  19576. /* Override any GCC internal prototype to avoid an error.
  19577. Use char because int might match the return type of a GCC
  19578. builtin and then its argument prototype would still apply. */
  19579. char libiconv_open ();
  19580. int
  19581. main (void)
  19582. {
  19583. return libiconv_open ();
  19584. ;
  19585. return 0;
  19586. }
  19587. _ACEOF
  19588. if ac_fn_c_try_link "$LINENO"
  19589. then :
  19590. ac_cv_lib_iconv_libiconv_open=yes
  19591. else $as_nop
  19592. ac_cv_lib_iconv_libiconv_open=no
  19593. fi
  19594. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19595. conftest$ac_exeext conftest.$ac_ext
  19596. LIBS=$ac_check_lib_save_LIBS
  19597. fi
  19598. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
  19599. printf "%s\n" "$ac_cv_lib_iconv_libiconv_open" >&6; }
  19600. if test "x$ac_cv_lib_iconv_libiconv_open" = xyes
  19601. then :
  19602. AST_ICONV_FOUND=yes
  19603. else $as_nop
  19604. AST_ICONV_FOUND=no
  19605. fi
  19606. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19607. # now check for the header.
  19608. if test "${AST_ICONV_FOUND}" = "yes"; then
  19609. ICONV_LIB="${pbxlibdir} -liconv "
  19610. # if --with-ICONV=DIR has been specified, use it.
  19611. if test "x${ICONV_DIR}" != "x"; then
  19612. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  19613. fi
  19614. ICONV_INCLUDE="${ICONV_INCLUDE} "
  19615. # check for the header
  19616. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19617. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  19618. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  19619. if test "x$ac_cv_header_iconv_h" = xyes
  19620. then :
  19621. ICONV_HEADER_FOUND=1
  19622. else $as_nop
  19623. ICONV_HEADER_FOUND=0
  19624. fi
  19625. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19626. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  19627. ICONV_LIB=""
  19628. ICONV_INCLUDE=""
  19629. else
  19630. PBX_ICONV=1
  19631. cat >>confdefs.h <<_ACEOF
  19632. #define HAVE_ICONV 1
  19633. _ACEOF
  19634. fi
  19635. fi
  19636. fi
  19637. # Some versions of Linux package iconv in glibc
  19638. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  19639. pbxlibdir=""
  19640. # if --with-ICONV=DIR has been specified, use it.
  19641. if test "x${ICONV_DIR}" != "x"; then
  19642. if test -d ${ICONV_DIR}/lib; then
  19643. pbxlibdir="-L${ICONV_DIR}/lib"
  19644. else
  19645. pbxlibdir="-L${ICONV_DIR}"
  19646. fi
  19647. fi
  19648. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19649. CFLAGS="${CFLAGS} "
  19650. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv_close in -lc" >&5
  19651. printf %s "checking for iconv_close in -lc... " >&6; }
  19652. if test ${ac_cv_lib_c_iconv_close+y}
  19653. then :
  19654. printf %s "(cached) " >&6
  19655. else $as_nop
  19656. ac_check_lib_save_LIBS=$LIBS
  19657. LIBS="-lc ${pbxlibdir} $LIBS"
  19658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19659. /* end confdefs.h. */
  19660. /* Override any GCC internal prototype to avoid an error.
  19661. Use char because int might match the return type of a GCC
  19662. builtin and then its argument prototype would still apply. */
  19663. char iconv_close ();
  19664. int
  19665. main (void)
  19666. {
  19667. return iconv_close ();
  19668. ;
  19669. return 0;
  19670. }
  19671. _ACEOF
  19672. if ac_fn_c_try_link "$LINENO"
  19673. then :
  19674. ac_cv_lib_c_iconv_close=yes
  19675. else $as_nop
  19676. ac_cv_lib_c_iconv_close=no
  19677. fi
  19678. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19679. conftest$ac_exeext conftest.$ac_ext
  19680. LIBS=$ac_check_lib_save_LIBS
  19681. fi
  19682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_iconv_close" >&5
  19683. printf "%s\n" "$ac_cv_lib_c_iconv_close" >&6; }
  19684. if test "x$ac_cv_lib_c_iconv_close" = xyes
  19685. then :
  19686. AST_ICONV_FOUND=yes
  19687. else $as_nop
  19688. AST_ICONV_FOUND=no
  19689. fi
  19690. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19691. # now check for the header.
  19692. if test "${AST_ICONV_FOUND}" = "yes"; then
  19693. ICONV_LIB="${pbxlibdir} -lc "
  19694. # if --with-ICONV=DIR has been specified, use it.
  19695. if test "x${ICONV_DIR}" != "x"; then
  19696. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  19697. fi
  19698. ICONV_INCLUDE="${ICONV_INCLUDE} "
  19699. # check for the header
  19700. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19701. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  19702. ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  19703. if test "x$ac_cv_header_iconv_h" = xyes
  19704. then :
  19705. ICONV_HEADER_FOUND=1
  19706. else $as_nop
  19707. ICONV_HEADER_FOUND=0
  19708. fi
  19709. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19710. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  19711. ICONV_LIB=""
  19712. ICONV_INCLUDE=""
  19713. else
  19714. PBX_ICONV=1
  19715. cat >>confdefs.h <<_ACEOF
  19716. #define HAVE_ICONV 1
  19717. _ACEOF
  19718. fi
  19719. fi
  19720. fi
  19721. # If ical.h is NOT in the libical directory, then it is of a version insufficient for us.
  19722. if test "x${PBX_ICAL}" != "x1" -a "${USE_ICAL}" != "no"; then
  19723. pbxlibdir=""
  19724. # if --with-ICAL=DIR has been specified, use it.
  19725. if test "x${ICAL_DIR}" != "x"; then
  19726. if test -d ${ICAL_DIR}/lib; then
  19727. pbxlibdir="-L${ICAL_DIR}/lib"
  19728. else
  19729. pbxlibdir="-L${ICAL_DIR}"
  19730. fi
  19731. fi
  19732. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19733. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  19734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icaltimezone_get_utc_timezone in -lical" >&5
  19735. printf %s "checking for icaltimezone_get_utc_timezone in -lical... " >&6; }
  19736. if test ${ac_cv_lib_ical_icaltimezone_get_utc_timezone+y}
  19737. then :
  19738. printf %s "(cached) " >&6
  19739. else $as_nop
  19740. ac_check_lib_save_LIBS=$LIBS
  19741. LIBS="-lical ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  19742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19743. /* end confdefs.h. */
  19744. /* Override any GCC internal prototype to avoid an error.
  19745. Use char because int might match the return type of a GCC
  19746. builtin and then its argument prototype would still apply. */
  19747. char icaltimezone_get_utc_timezone ();
  19748. int
  19749. main (void)
  19750. {
  19751. return icaltimezone_get_utc_timezone ();
  19752. ;
  19753. return 0;
  19754. }
  19755. _ACEOF
  19756. if ac_fn_c_try_link "$LINENO"
  19757. then :
  19758. ac_cv_lib_ical_icaltimezone_get_utc_timezone=yes
  19759. else $as_nop
  19760. ac_cv_lib_ical_icaltimezone_get_utc_timezone=no
  19761. fi
  19762. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19763. conftest$ac_exeext conftest.$ac_ext
  19764. LIBS=$ac_check_lib_save_LIBS
  19765. fi
  19766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ical_icaltimezone_get_utc_timezone" >&5
  19767. printf "%s\n" "$ac_cv_lib_ical_icaltimezone_get_utc_timezone" >&6; }
  19768. if test "x$ac_cv_lib_ical_icaltimezone_get_utc_timezone" = xyes
  19769. then :
  19770. AST_ICAL_FOUND=yes
  19771. else $as_nop
  19772. AST_ICAL_FOUND=no
  19773. fi
  19774. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19775. # now check for the header.
  19776. if test "${AST_ICAL_FOUND}" = "yes"; then
  19777. ICAL_LIB="${pbxlibdir} -lical ${PTHREAD_LIBS}"
  19778. # if --with-ICAL=DIR has been specified, use it.
  19779. if test "x${ICAL_DIR}" != "x"; then
  19780. ICAL_INCLUDE="-I${ICAL_DIR}/include"
  19781. fi
  19782. ICAL_INCLUDE="${ICAL_INCLUDE} ${PTHREAD_CFLAGS}"
  19783. # check for the header
  19784. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19785. CPPFLAGS="${CPPFLAGS} ${ICAL_INCLUDE}"
  19786. ac_fn_c_check_header_compile "$LINENO" "libical/ical.h" "ac_cv_header_libical_ical_h" "$ac_includes_default"
  19787. if test "x$ac_cv_header_libical_ical_h" = xyes
  19788. then :
  19789. ICAL_HEADER_FOUND=1
  19790. else $as_nop
  19791. ICAL_HEADER_FOUND=0
  19792. fi
  19793. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19794. if test "x${ICAL_HEADER_FOUND}" = "x0" ; then
  19795. ICAL_LIB=""
  19796. ICAL_INCLUDE=""
  19797. else
  19798. PBX_ICAL=1
  19799. cat >>confdefs.h <<_ACEOF
  19800. #define HAVE_ICAL 1
  19801. _ACEOF
  19802. fi
  19803. fi
  19804. fi
  19805. if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
  19806. pbxlibdir=""
  19807. # if --with-IKSEMEL=DIR has been specified, use it.
  19808. if test "x${IKSEMEL_DIR}" != "x"; then
  19809. if test -d ${IKSEMEL_DIR}/lib; then
  19810. pbxlibdir="-L${IKSEMEL_DIR}/lib"
  19811. else
  19812. pbxlibdir="-L${IKSEMEL_DIR}"
  19813. fi
  19814. fi
  19815. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19816. CFLAGS="${CFLAGS} "
  19817. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iks_start_sasl in -liksemel" >&5
  19818. printf %s "checking for iks_start_sasl in -liksemel... " >&6; }
  19819. if test ${ac_cv_lib_iksemel_iks_start_sasl+y}
  19820. then :
  19821. printf %s "(cached) " >&6
  19822. else $as_nop
  19823. ac_check_lib_save_LIBS=$LIBS
  19824. LIBS="-liksemel ${pbxlibdir} $LIBS"
  19825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19826. /* end confdefs.h. */
  19827. /* Override any GCC internal prototype to avoid an error.
  19828. Use char because int might match the return type of a GCC
  19829. builtin and then its argument prototype would still apply. */
  19830. char iks_start_sasl ();
  19831. int
  19832. main (void)
  19833. {
  19834. return iks_start_sasl ();
  19835. ;
  19836. return 0;
  19837. }
  19838. _ACEOF
  19839. if ac_fn_c_try_link "$LINENO"
  19840. then :
  19841. ac_cv_lib_iksemel_iks_start_sasl=yes
  19842. else $as_nop
  19843. ac_cv_lib_iksemel_iks_start_sasl=no
  19844. fi
  19845. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19846. conftest$ac_exeext conftest.$ac_ext
  19847. LIBS=$ac_check_lib_save_LIBS
  19848. fi
  19849. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iksemel_iks_start_sasl" >&5
  19850. printf "%s\n" "$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
  19851. if test "x$ac_cv_lib_iksemel_iks_start_sasl" = xyes
  19852. then :
  19853. AST_IKSEMEL_FOUND=yes
  19854. else $as_nop
  19855. AST_IKSEMEL_FOUND=no
  19856. fi
  19857. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19858. # now check for the header.
  19859. if test "${AST_IKSEMEL_FOUND}" = "yes"; then
  19860. IKSEMEL_LIB="${pbxlibdir} -liksemel "
  19861. # if --with-IKSEMEL=DIR has been specified, use it.
  19862. if test "x${IKSEMEL_DIR}" != "x"; then
  19863. IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
  19864. fi
  19865. IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
  19866. # check for the header
  19867. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19868. CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
  19869. ac_fn_c_check_header_compile "$LINENO" "iksemel.h" "ac_cv_header_iksemel_h" "$ac_includes_default"
  19870. if test "x$ac_cv_header_iksemel_h" = xyes
  19871. then :
  19872. IKSEMEL_HEADER_FOUND=1
  19873. else $as_nop
  19874. IKSEMEL_HEADER_FOUND=0
  19875. fi
  19876. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19877. if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
  19878. IKSEMEL_LIB=""
  19879. IKSEMEL_INCLUDE=""
  19880. else
  19881. PBX_IKSEMEL=1
  19882. cat >>confdefs.h <<_ACEOF
  19883. #define HAVE_IKSEMEL 1
  19884. _ACEOF
  19885. fi
  19886. fi
  19887. fi
  19888. if test "${USE_IMAP_TK}" != "no"; then
  19889. saved_cppflags="${CPPFLAGS}"
  19890. saved_libs="${LIBS}"
  19891. switch_to_system_on_failure="no"
  19892. if test "${IMAP_TK_DIR}" = ""; then
  19893. IMAP_TK_DIR="`pwd`/../imap-2004g"
  19894. switch_to_system_on_failure="yes"
  19895. fi
  19896. if test "${IMAP_TK_DIR}" != "system"; then
  19897. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UW IMAP Toolkit c-client library" >&5
  19898. printf %s "checking for UW IMAP Toolkit c-client library... " >&6; }
  19899. if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
  19900. imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
  19901. fi
  19902. imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
  19903. imap_include="-I${IMAP_TK_DIR}/c-client"
  19904. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  19905. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  19906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19907. /* end confdefs.h. */
  19908. #include "c-client.h"
  19909. void mm_searched (MAILSTREAM *stream,unsigned long number)
  19910. {
  19911. }
  19912. void mm_exists (MAILSTREAM *stream,unsigned long number)
  19913. {
  19914. }
  19915. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  19916. {
  19917. }
  19918. void mm_flags (MAILSTREAM *stream,unsigned long number)
  19919. {
  19920. }
  19921. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  19922. {
  19923. }
  19924. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  19925. {
  19926. }
  19927. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  19928. {
  19929. }
  19930. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  19931. {
  19932. }
  19933. void mm_log (char *string,long errflg)
  19934. {
  19935. }
  19936. void mm_dlog (char *string)
  19937. {
  19938. }
  19939. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  19940. {
  19941. }
  19942. void mm_critical (MAILSTREAM *stream)
  19943. {
  19944. }
  19945. void mm_nocritical (MAILSTREAM *stream)
  19946. {
  19947. }
  19948. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  19949. {
  19950. }
  19951. void mm_fatal (char *string)
  19952. {
  19953. }
  19954. int
  19955. main (void)
  19956. {
  19957. MAILSTREAM *foo = mail_open(NULL, "", 0);
  19958. ;
  19959. return 0;
  19960. }
  19961. _ACEOF
  19962. if ac_fn_c_try_link "$LINENO"
  19963. then :
  19964. ac_cv_imap_tk="yes"
  19965. else $as_nop
  19966. ac_cv_imap_tk="no"
  19967. fi
  19968. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  19969. conftest$ac_exeext conftest.$ac_ext
  19970. if test "${ac_cv_imap_tk}" = "yes"; then
  19971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19972. /* end confdefs.h. */
  19973. #include "c-client.h"
  19974. void mm_searched (MAILSTREAM *stream,unsigned long number)
  19975. {
  19976. }
  19977. void mm_exists (MAILSTREAM *stream,unsigned long number)
  19978. {
  19979. }
  19980. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  19981. {
  19982. }
  19983. void mm_flags (MAILSTREAM *stream,unsigned long number)
  19984. {
  19985. }
  19986. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  19987. {
  19988. }
  19989. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  19990. {
  19991. }
  19992. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  19993. {
  19994. }
  19995. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  19996. {
  19997. }
  19998. void mm_log (char *string,long errflg)
  19999. {
  20000. }
  20001. void mm_dlog (char *string)
  20002. {
  20003. }
  20004. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  20005. {
  20006. }
  20007. void mm_critical (MAILSTREAM *stream)
  20008. {
  20009. }
  20010. void mm_nocritical (MAILSTREAM *stream)
  20011. {
  20012. }
  20013. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  20014. {
  20015. }
  20016. void mm_fatal (char *string)
  20017. {
  20018. }
  20019. int
  20020. main (void)
  20021. {
  20022. long check = mail_expunge_full(NULL, "", 0);
  20023. ;
  20024. return 0;
  20025. }
  20026. _ACEOF
  20027. if ac_fn_c_try_link "$LINENO"
  20028. then :
  20029. ac_cv_imap_tk2006="yes"
  20030. else $as_nop
  20031. ac_cv_imap_tk2006="no"
  20032. fi
  20033. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20034. conftest$ac_exeext conftest.$ac_ext
  20035. fi
  20036. CPPFLAGS="${saved_cppflags}"
  20037. LIBS="${saved_libs}"
  20038. if test "${ac_cv_imap_tk}" = "no"; then
  20039. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20040. printf "%s\n" "no" >&6; }
  20041. if test "${switch_to_system_on_failure}" = "yes"; then
  20042. IMAP_TK_DIR="system"
  20043. else #This means they specified a directory. Search for a package installation there too
  20044. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  20045. printf %s "checking for system c-client library...... " >&6; }
  20046. CPPFLAGS="${saved_cppflags}"
  20047. LIBS="${saved_libs}"
  20048. imap_include="-I${IMAP_TK_DIR}/include"
  20049. imap_ldflags="-L${IMAP_TK_DIR}/lib"
  20050. imap_libs="-lc-client"
  20051. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  20052. LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
  20053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20054. /* end confdefs.h. */
  20055. #include "c-client.h"
  20056. void mm_searched (MAILSTREAM *stream,unsigned long number)
  20057. {
  20058. }
  20059. void mm_exists (MAILSTREAM *stream,unsigned long number)
  20060. {
  20061. }
  20062. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  20063. {
  20064. }
  20065. void mm_flags (MAILSTREAM *stream,unsigned long number)
  20066. {
  20067. }
  20068. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  20069. {
  20070. }
  20071. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20072. {
  20073. }
  20074. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20075. {
  20076. }
  20077. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  20078. {
  20079. }
  20080. void mm_log (char *string,long errflg)
  20081. {
  20082. }
  20083. void mm_dlog (char *string)
  20084. {
  20085. }
  20086. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  20087. {
  20088. }
  20089. void mm_critical (MAILSTREAM *stream)
  20090. {
  20091. }
  20092. void mm_nocritical (MAILSTREAM *stream)
  20093. {
  20094. }
  20095. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  20096. {
  20097. }
  20098. void mm_fatal (char *string)
  20099. {
  20100. }
  20101. int
  20102. main (void)
  20103. {
  20104. MAILSTREAM *foo = mail_open(NULL, "", 0);
  20105. ;
  20106. return 0;
  20107. }
  20108. _ACEOF
  20109. if ac_fn_c_try_link "$LINENO"
  20110. then :
  20111. ac_cv_imap_tk="yes"
  20112. else $as_nop
  20113. ac_cv_imap_tk="no"
  20114. fi
  20115. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20116. conftest$ac_exeext conftest.$ac_ext
  20117. if test "${ac_cv_imap_tk}" = "yes"; then
  20118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20119. /* end confdefs.h. */
  20120. #include "c-client.h"
  20121. void mm_searched (MAILSTREAM *stream,unsigned long number)
  20122. {
  20123. }
  20124. void mm_exists (MAILSTREAM *stream,unsigned long number)
  20125. {
  20126. }
  20127. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  20128. {
  20129. }
  20130. void mm_flags (MAILSTREAM *stream,unsigned long number)
  20131. {
  20132. }
  20133. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  20134. {
  20135. }
  20136. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20137. {
  20138. }
  20139. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20140. {
  20141. }
  20142. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  20143. {
  20144. }
  20145. void mm_log (char *string,long errflg)
  20146. {
  20147. }
  20148. void mm_dlog (char *string)
  20149. {
  20150. }
  20151. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  20152. {
  20153. }
  20154. void mm_critical (MAILSTREAM *stream)
  20155. {
  20156. }
  20157. void mm_nocritical (MAILSTREAM *stream)
  20158. {
  20159. }
  20160. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  20161. {
  20162. }
  20163. void mm_fatal (char *string)
  20164. {
  20165. }
  20166. int
  20167. main (void)
  20168. {
  20169. long check = mail_expunge_full(NULL, "", 0);
  20170. ;
  20171. return 0;
  20172. }
  20173. _ACEOF
  20174. if ac_fn_c_try_link "$LINENO"
  20175. then :
  20176. ac_cv_imap_tk2006="yes"
  20177. else $as_nop
  20178. ac_cv_imap_tk2006="no"
  20179. fi
  20180. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20181. conftest$ac_exeext conftest.$ac_ext
  20182. fi
  20183. fi
  20184. fi
  20185. fi
  20186. if test "${IMAP_TK_DIR}" = "system"; then
  20187. #We will enter here if user specified "system" or if any of above checks failed
  20188. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  20189. printf %s "checking for system c-client library...... " >&6; }
  20190. CPPFLAGS="${saved_cppflags}"
  20191. LIBS="${saved_libs}"
  20192. imap_ldflags=""
  20193. imap_libs="-lcrypto -lssl -lc-client"
  20194. imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
  20195. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  20196. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  20197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20198. /* end confdefs.h. */
  20199. #include <stdio.h>
  20200. #include <imap/c-client.h>
  20201. void mm_searched (MAILSTREAM *stream,unsigned long number)
  20202. {
  20203. }
  20204. void mm_exists (MAILSTREAM *stream,unsigned long number)
  20205. {
  20206. }
  20207. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  20208. {
  20209. }
  20210. void mm_flags (MAILSTREAM *stream,unsigned long number)
  20211. {
  20212. }
  20213. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  20214. {
  20215. }
  20216. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20217. {
  20218. }
  20219. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20220. {
  20221. }
  20222. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  20223. {
  20224. }
  20225. void mm_log (char *string,long errflg)
  20226. {
  20227. }
  20228. void mm_dlog (char *string)
  20229. {
  20230. }
  20231. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  20232. {
  20233. }
  20234. void mm_critical (MAILSTREAM *stream)
  20235. {
  20236. }
  20237. void mm_nocritical (MAILSTREAM *stream)
  20238. {
  20239. }
  20240. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  20241. {
  20242. }
  20243. void mm_fatal (char *string)
  20244. {
  20245. }
  20246. int
  20247. main (void)
  20248. {
  20249. MAILSTREAM *foo = mail_open(NULL, "", 0);
  20250. ;
  20251. return 0;
  20252. }
  20253. _ACEOF
  20254. if ac_fn_c_try_link "$LINENO"
  20255. then :
  20256. ac_cv_imap_tk="yes"
  20257. else $as_nop
  20258. ac_cv_imap_tk="no"
  20259. fi
  20260. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20261. conftest$ac_exeext conftest.$ac_ext
  20262. if test "${ac_cv_imap_tk}" = "yes"; then
  20263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20264. /* end confdefs.h. */
  20265. #include <stdio.h>
  20266. #include <imap/c-client.h>
  20267. void mm_searched (MAILSTREAM *stream,unsigned long number)
  20268. {
  20269. }
  20270. void mm_exists (MAILSTREAM *stream,unsigned long number)
  20271. {
  20272. }
  20273. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  20274. {
  20275. }
  20276. void mm_flags (MAILSTREAM *stream,unsigned long number)
  20277. {
  20278. }
  20279. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  20280. {
  20281. }
  20282. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20283. {
  20284. }
  20285. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20286. {
  20287. }
  20288. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  20289. {
  20290. }
  20291. void mm_log (char *string,long errflg)
  20292. {
  20293. }
  20294. void mm_dlog (char *string)
  20295. {
  20296. }
  20297. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  20298. {
  20299. }
  20300. void mm_critical (MAILSTREAM *stream)
  20301. {
  20302. }
  20303. void mm_nocritical (MAILSTREAM *stream)
  20304. {
  20305. }
  20306. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  20307. {
  20308. }
  20309. void mm_fatal (char *string)
  20310. {
  20311. }
  20312. int
  20313. main (void)
  20314. {
  20315. long check = mail_expunge_full(NULL, "", 0);
  20316. ;
  20317. return 0;
  20318. }
  20319. _ACEOF
  20320. if ac_fn_c_try_link "$LINENO"
  20321. then :
  20322. ac_cv_imap_tk2006="yes"
  20323. else $as_nop
  20324. ac_cv_imap_tk2006="no"
  20325. fi
  20326. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20327. conftest$ac_exeext conftest.$ac_ext
  20328. else #looking in imap directory didn't work, try c-client
  20329. imap_ldflags=""
  20330. imap_libs="-lcrypto -lssl -lc-client"
  20331. imap_include="-DUSE_SYSTEM_CCLIENT"
  20332. CPPFLAGS="${saved_cppflags}"
  20333. LIBS="${saved_libs}"
  20334. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  20335. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  20336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20337. /* end confdefs.h. */
  20338. #include <stdio.h>
  20339. #include <c-client/c-client.h>
  20340. void mm_searched (MAILSTREAM *stream,unsigned long number)
  20341. {
  20342. }
  20343. void mm_exists (MAILSTREAM *stream,unsigned long number)
  20344. {
  20345. }
  20346. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  20347. {
  20348. }
  20349. void mm_flags (MAILSTREAM *stream,unsigned long number)
  20350. {
  20351. }
  20352. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  20353. {
  20354. }
  20355. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20356. {
  20357. }
  20358. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20359. {
  20360. }
  20361. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  20362. {
  20363. }
  20364. void mm_log (char *string,long errflg)
  20365. {
  20366. }
  20367. void mm_dlog (char *string)
  20368. {
  20369. }
  20370. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  20371. {
  20372. }
  20373. void mm_critical (MAILSTREAM *stream)
  20374. {
  20375. }
  20376. void mm_nocritical (MAILSTREAM *stream)
  20377. {
  20378. }
  20379. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  20380. {
  20381. }
  20382. void mm_fatal (char *string)
  20383. {
  20384. }
  20385. int
  20386. main (void)
  20387. {
  20388. MAILSTREAM *foo = mail_open(NULL, "", 0);
  20389. ;
  20390. return 0;
  20391. }
  20392. _ACEOF
  20393. if ac_fn_c_try_link "$LINENO"
  20394. then :
  20395. ac_cv_imap_tk="yes"
  20396. else $as_nop
  20397. ac_cv_imap_tk="no"
  20398. fi
  20399. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20400. conftest$ac_exeext conftest.$ac_ext
  20401. if test "${ac_cv_imap_tk}" = "no"; then
  20402. imap_libs="-lcrypto -lssl -lc-client4"
  20403. LIBS="${saved_libs} ${imap_libs} "`echo ${imap_ldflags}`
  20404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20405. /* end confdefs.h. */
  20406. #include <stdio.h>
  20407. #include <c-client/c-client.h>
  20408. void mm_searched (MAILSTREAM *stream,unsigned long number)
  20409. {
  20410. }
  20411. void mm_exists (MAILSTREAM *stream,unsigned long number)
  20412. {
  20413. }
  20414. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  20415. {
  20416. }
  20417. void mm_flags (MAILSTREAM *stream,unsigned long number)
  20418. {
  20419. }
  20420. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  20421. {
  20422. }
  20423. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20424. {
  20425. }
  20426. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20427. {
  20428. }
  20429. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  20430. {
  20431. }
  20432. void mm_log (char *string,long errflg)
  20433. {
  20434. }
  20435. void mm_dlog (char *string)
  20436. {
  20437. }
  20438. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  20439. {
  20440. }
  20441. void mm_critical (MAILSTREAM *stream)
  20442. {
  20443. }
  20444. void mm_nocritical (MAILSTREAM *stream)
  20445. {
  20446. }
  20447. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  20448. {
  20449. }
  20450. void mm_fatal (char *string)
  20451. {
  20452. }
  20453. int
  20454. main (void)
  20455. {
  20456. MAILSTREAM *foo = mail_open(NULL, "", 0);
  20457. ;
  20458. return 0;
  20459. }
  20460. _ACEOF
  20461. if ac_fn_c_try_link "$LINENO"
  20462. then :
  20463. ac_cv_imap_tk="yes"
  20464. else $as_nop
  20465. ac_cv_imap_tk="no"
  20466. fi
  20467. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20468. conftest$ac_exeext conftest.$ac_ext
  20469. fi
  20470. if test "${ac_cv_imap_tk}" = "yes"; then
  20471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20472. /* end confdefs.h. */
  20473. #include <stdio.h>
  20474. #include <c-client/c-client.h>
  20475. void mm_searched (MAILSTREAM *stream,unsigned long number)
  20476. {
  20477. }
  20478. void mm_exists (MAILSTREAM *stream,unsigned long number)
  20479. {
  20480. }
  20481. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  20482. {
  20483. }
  20484. void mm_flags (MAILSTREAM *stream,unsigned long number)
  20485. {
  20486. }
  20487. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  20488. {
  20489. }
  20490. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20491. {
  20492. }
  20493. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  20494. {
  20495. }
  20496. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  20497. {
  20498. }
  20499. void mm_log (char *string,long errflg)
  20500. {
  20501. }
  20502. void mm_dlog (char *string)
  20503. {
  20504. }
  20505. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  20506. {
  20507. }
  20508. void mm_critical (MAILSTREAM *stream)
  20509. {
  20510. }
  20511. void mm_nocritical (MAILSTREAM *stream)
  20512. {
  20513. }
  20514. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  20515. {
  20516. }
  20517. void mm_fatal (char *string)
  20518. {
  20519. }
  20520. int
  20521. main (void)
  20522. {
  20523. long check = mail_expunge_full(NULL, "", 0);
  20524. ;
  20525. return 0;
  20526. }
  20527. _ACEOF
  20528. if ac_fn_c_try_link "$LINENO"
  20529. then :
  20530. ac_cv_imap_tk2006="yes"
  20531. else $as_nop
  20532. ac_cv_imap_tk2006="no"
  20533. fi
  20534. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20535. conftest$ac_exeext conftest.$ac_ext
  20536. fi
  20537. fi
  20538. fi
  20539. if test "${ac_cv_imap_tk}" = "yes"; then
  20540. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20541. printf "%s\n" "yes" >&6; }
  20542. IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
  20543. IMAP_TK_INCLUDE="${imap_include}"
  20544. PBX_IMAP_TK=1
  20545. printf "%s\n" "#define HAVE_IMAP_TK 1" >>confdefs.h
  20546. if test "${ac_cv_imap_tk2006}" = "yes"; then
  20547. printf "%s\n" "#define HAVE_IMAP_TK2006 1" >>confdefs.h
  20548. fi
  20549. else
  20550. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20551. printf "%s\n" "no" >&6; }
  20552. fi
  20553. CPPFLAGS="${saved_cppflags}"
  20554. LIBS="${saved_libs}"
  20555. fi
  20556. if test "x${PBX_IODBC}" != "x1" -a "${USE_IODBC}" != "no"; then
  20557. pbxlibdir=""
  20558. # if --with-IODBC=DIR has been specified, use it.
  20559. if test "x${IODBC_DIR}" != "x"; then
  20560. if test -d ${IODBC_DIR}/lib; then
  20561. pbxlibdir="-L${IODBC_DIR}/lib"
  20562. else
  20563. pbxlibdir="-L${IODBC_DIR}"
  20564. fi
  20565. fi
  20566. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20567. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  20568. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -liodbc" >&5
  20569. printf %s "checking for SQLConnect in -liodbc... " >&6; }
  20570. if test ${ac_cv_lib_iodbc_SQLConnect+y}
  20571. then :
  20572. printf %s "(cached) " >&6
  20573. else $as_nop
  20574. ac_check_lib_save_LIBS=$LIBS
  20575. LIBS="-liodbc ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  20576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20577. /* end confdefs.h. */
  20578. /* Override any GCC internal prototype to avoid an error.
  20579. Use char because int might match the return type of a GCC
  20580. builtin and then its argument prototype would still apply. */
  20581. char SQLConnect ();
  20582. int
  20583. main (void)
  20584. {
  20585. return SQLConnect ();
  20586. ;
  20587. return 0;
  20588. }
  20589. _ACEOF
  20590. if ac_fn_c_try_link "$LINENO"
  20591. then :
  20592. ac_cv_lib_iodbc_SQLConnect=yes
  20593. else $as_nop
  20594. ac_cv_lib_iodbc_SQLConnect=no
  20595. fi
  20596. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20597. conftest$ac_exeext conftest.$ac_ext
  20598. LIBS=$ac_check_lib_save_LIBS
  20599. fi
  20600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLConnect" >&5
  20601. printf "%s\n" "$ac_cv_lib_iodbc_SQLConnect" >&6; }
  20602. if test "x$ac_cv_lib_iodbc_SQLConnect" = xyes
  20603. then :
  20604. AST_IODBC_FOUND=yes
  20605. else $as_nop
  20606. AST_IODBC_FOUND=no
  20607. fi
  20608. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20609. # now check for the header.
  20610. if test "${AST_IODBC_FOUND}" = "yes"; then
  20611. IODBC_LIB="${pbxlibdir} -liodbc ${PTHREAD_LIBS}"
  20612. # if --with-IODBC=DIR has been specified, use it.
  20613. if test "x${IODBC_DIR}" != "x"; then
  20614. IODBC_INCLUDE="-I${IODBC_DIR}/include"
  20615. fi
  20616. IODBC_INCLUDE="${IODBC_INCLUDE} ${PTHREAD_CFLAGS}"
  20617. # check for the header
  20618. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20619. CPPFLAGS="${CPPFLAGS} ${IODBC_INCLUDE}"
  20620. ac_fn_c_check_header_compile "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  20621. if test "x$ac_cv_header_sql_h" = xyes
  20622. then :
  20623. IODBC_HEADER_FOUND=1
  20624. else $as_nop
  20625. IODBC_HEADER_FOUND=0
  20626. fi
  20627. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20628. if test "x${IODBC_HEADER_FOUND}" = "x0" ; then
  20629. IODBC_LIB=""
  20630. IODBC_INCLUDE=""
  20631. else
  20632. PBX_IODBC=1
  20633. cat >>confdefs.h <<_ACEOF
  20634. #define HAVE_IODBC 1
  20635. _ACEOF
  20636. fi
  20637. fi
  20638. fi
  20639. if test "x${PBX_INOTIFY}" != "x1" -a "${USE_INOTIFY}" != "no"; then
  20640. pbxlibdir=""
  20641. # if --with-INOTIFY=DIR has been specified, use it.
  20642. if test "x${INOTIFY_DIR}" != "x"; then
  20643. if test -d ${INOTIFY_DIR}/lib; then
  20644. pbxlibdir="-L${INOTIFY_DIR}/lib"
  20645. else
  20646. pbxlibdir="-L${INOTIFY_DIR}"
  20647. fi
  20648. fi
  20649. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20650. CFLAGS="${CFLAGS} "
  20651. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inotify_init in -lc" >&5
  20652. printf %s "checking for inotify_init in -lc... " >&6; }
  20653. if test ${ac_cv_lib_c_inotify_init+y}
  20654. then :
  20655. printf %s "(cached) " >&6
  20656. else $as_nop
  20657. ac_check_lib_save_LIBS=$LIBS
  20658. LIBS="-lc ${pbxlibdir} $LIBS"
  20659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20660. /* end confdefs.h. */
  20661. /* Override any GCC internal prototype to avoid an error.
  20662. Use char because int might match the return type of a GCC
  20663. builtin and then its argument prototype would still apply. */
  20664. char inotify_init ();
  20665. int
  20666. main (void)
  20667. {
  20668. return inotify_init ();
  20669. ;
  20670. return 0;
  20671. }
  20672. _ACEOF
  20673. if ac_fn_c_try_link "$LINENO"
  20674. then :
  20675. ac_cv_lib_c_inotify_init=yes
  20676. else $as_nop
  20677. ac_cv_lib_c_inotify_init=no
  20678. fi
  20679. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20680. conftest$ac_exeext conftest.$ac_ext
  20681. LIBS=$ac_check_lib_save_LIBS
  20682. fi
  20683. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inotify_init" >&5
  20684. printf "%s\n" "$ac_cv_lib_c_inotify_init" >&6; }
  20685. if test "x$ac_cv_lib_c_inotify_init" = xyes
  20686. then :
  20687. AST_INOTIFY_FOUND=yes
  20688. else $as_nop
  20689. AST_INOTIFY_FOUND=no
  20690. fi
  20691. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20692. # now check for the header.
  20693. if test "${AST_INOTIFY_FOUND}" = "yes"; then
  20694. INOTIFY_LIB="${pbxlibdir} -lc "
  20695. # if --with-INOTIFY=DIR has been specified, use it.
  20696. if test "x${INOTIFY_DIR}" != "x"; then
  20697. INOTIFY_INCLUDE="-I${INOTIFY_DIR}/include"
  20698. fi
  20699. INOTIFY_INCLUDE="${INOTIFY_INCLUDE} "
  20700. # check for the header
  20701. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20702. CPPFLAGS="${CPPFLAGS} ${INOTIFY_INCLUDE}"
  20703. ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  20704. if test "x$ac_cv_header_sys_inotify_h" = xyes
  20705. then :
  20706. INOTIFY_HEADER_FOUND=1
  20707. else $as_nop
  20708. INOTIFY_HEADER_FOUND=0
  20709. fi
  20710. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20711. if test "x${INOTIFY_HEADER_FOUND}" = "x0" ; then
  20712. INOTIFY_LIB=""
  20713. INOTIFY_INCLUDE=""
  20714. else
  20715. PBX_INOTIFY=1
  20716. cat >>confdefs.h <<_ACEOF
  20717. #define HAVE_INOTIFY 1
  20718. _ACEOF
  20719. fi
  20720. fi
  20721. fi
  20722. if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
  20723. pbxlibdir=""
  20724. # if --with-JACK=DIR has been specified, use it.
  20725. if test "x${JACK_DIR}" != "x"; then
  20726. if test -d ${JACK_DIR}/lib; then
  20727. pbxlibdir="-L${JACK_DIR}/lib"
  20728. else
  20729. pbxlibdir="-L${JACK_DIR}"
  20730. fi
  20731. fi
  20732. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20733. CFLAGS="${CFLAGS} "
  20734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jack_activate in -ljack" >&5
  20735. printf %s "checking for jack_activate in -ljack... " >&6; }
  20736. if test ${ac_cv_lib_jack_jack_activate+y}
  20737. then :
  20738. printf %s "(cached) " >&6
  20739. else $as_nop
  20740. ac_check_lib_save_LIBS=$LIBS
  20741. LIBS="-ljack ${pbxlibdir} $LIBS"
  20742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20743. /* end confdefs.h. */
  20744. /* Override any GCC internal prototype to avoid an error.
  20745. Use char because int might match the return type of a GCC
  20746. builtin and then its argument prototype would still apply. */
  20747. char jack_activate ();
  20748. int
  20749. main (void)
  20750. {
  20751. return jack_activate ();
  20752. ;
  20753. return 0;
  20754. }
  20755. _ACEOF
  20756. if ac_fn_c_try_link "$LINENO"
  20757. then :
  20758. ac_cv_lib_jack_jack_activate=yes
  20759. else $as_nop
  20760. ac_cv_lib_jack_jack_activate=no
  20761. fi
  20762. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20763. conftest$ac_exeext conftest.$ac_ext
  20764. LIBS=$ac_check_lib_save_LIBS
  20765. fi
  20766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jack_jack_activate" >&5
  20767. printf "%s\n" "$ac_cv_lib_jack_jack_activate" >&6; }
  20768. if test "x$ac_cv_lib_jack_jack_activate" = xyes
  20769. then :
  20770. AST_JACK_FOUND=yes
  20771. else $as_nop
  20772. AST_JACK_FOUND=no
  20773. fi
  20774. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20775. # now check for the header.
  20776. if test "${AST_JACK_FOUND}" = "yes"; then
  20777. JACK_LIB="${pbxlibdir} -ljack "
  20778. # if --with-JACK=DIR has been specified, use it.
  20779. if test "x${JACK_DIR}" != "x"; then
  20780. JACK_INCLUDE="-I${JACK_DIR}/include"
  20781. fi
  20782. JACK_INCLUDE="${JACK_INCLUDE} "
  20783. # check for the header
  20784. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20785. CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE}"
  20786. ac_fn_c_check_header_compile "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
  20787. if test "x$ac_cv_header_jack_jack_h" = xyes
  20788. then :
  20789. JACK_HEADER_FOUND=1
  20790. else $as_nop
  20791. JACK_HEADER_FOUND=0
  20792. fi
  20793. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20794. if test "x${JACK_HEADER_FOUND}" = "x0" ; then
  20795. JACK_LIB=""
  20796. JACK_INCLUDE=""
  20797. else
  20798. PBX_JACK=1
  20799. cat >>confdefs.h <<_ACEOF
  20800. #define HAVE_JACK 1
  20801. _ACEOF
  20802. fi
  20803. fi
  20804. fi
  20805. # BSD (and OS X) equivalent of inotify
  20806. if test "x${PBX_KQUEUE}" != "x1" -a "${USE_KQUEUE}" != "no"; then
  20807. pbxlibdir=""
  20808. # if --with-KQUEUE=DIR has been specified, use it.
  20809. if test "x${KQUEUE_DIR}" != "x"; then
  20810. if test -d ${KQUEUE_DIR}/lib; then
  20811. pbxlibdir="-L${KQUEUE_DIR}/lib"
  20812. else
  20813. pbxlibdir="-L${KQUEUE_DIR}"
  20814. fi
  20815. fi
  20816. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20817. CFLAGS="${CFLAGS} "
  20818. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue in -lc" >&5
  20819. printf %s "checking for kqueue in -lc... " >&6; }
  20820. if test ${ac_cv_lib_c_kqueue+y}
  20821. then :
  20822. printf %s "(cached) " >&6
  20823. else $as_nop
  20824. ac_check_lib_save_LIBS=$LIBS
  20825. LIBS="-lc ${pbxlibdir} $LIBS"
  20826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20827. /* end confdefs.h. */
  20828. /* Override any GCC internal prototype to avoid an error.
  20829. Use char because int might match the return type of a GCC
  20830. builtin and then its argument prototype would still apply. */
  20831. char kqueue ();
  20832. int
  20833. main (void)
  20834. {
  20835. return kqueue ();
  20836. ;
  20837. return 0;
  20838. }
  20839. _ACEOF
  20840. if ac_fn_c_try_link "$LINENO"
  20841. then :
  20842. ac_cv_lib_c_kqueue=yes
  20843. else $as_nop
  20844. ac_cv_lib_c_kqueue=no
  20845. fi
  20846. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20847. conftest$ac_exeext conftest.$ac_ext
  20848. LIBS=$ac_check_lib_save_LIBS
  20849. fi
  20850. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_kqueue" >&5
  20851. printf "%s\n" "$ac_cv_lib_c_kqueue" >&6; }
  20852. if test "x$ac_cv_lib_c_kqueue" = xyes
  20853. then :
  20854. AST_KQUEUE_FOUND=yes
  20855. else $as_nop
  20856. AST_KQUEUE_FOUND=no
  20857. fi
  20858. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20859. # now check for the header.
  20860. if test "${AST_KQUEUE_FOUND}" = "yes"; then
  20861. KQUEUE_LIB="${pbxlibdir} -lc "
  20862. # if --with-KQUEUE=DIR has been specified, use it.
  20863. if test "x${KQUEUE_DIR}" != "x"; then
  20864. KQUEUE_INCLUDE="-I${KQUEUE_DIR}/include"
  20865. fi
  20866. KQUEUE_INCLUDE="${KQUEUE_INCLUDE} "
  20867. # check for the header
  20868. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20869. CPPFLAGS="${CPPFLAGS} ${KQUEUE_INCLUDE}"
  20870. ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
  20871. if test "x$ac_cv_header_sys_event_h" = xyes
  20872. then :
  20873. KQUEUE_HEADER_FOUND=1
  20874. else $as_nop
  20875. KQUEUE_HEADER_FOUND=0
  20876. fi
  20877. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20878. if test "x${KQUEUE_HEADER_FOUND}" = "x0" ; then
  20879. KQUEUE_LIB=""
  20880. KQUEUE_INCLUDE=""
  20881. else
  20882. PBX_KQUEUE=1
  20883. cat >>confdefs.h <<_ACEOF
  20884. #define HAVE_KQUEUE 1
  20885. _ACEOF
  20886. fi
  20887. fi
  20888. fi
  20889. # 64-bit version of kevent (from kqueue) on OS X
  20890. ac_fn_c_check_func "$LINENO" "kevent64" "ac_cv_func_kevent64"
  20891. if test "x$ac_cv_func_kevent64" = xyes
  20892. then :
  20893. printf "%s\n" "#define HAVE_KEVENT64 1" >>confdefs.h
  20894. fi
  20895. if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
  20896. pbxlibdir=""
  20897. # if --with-LDAP=DIR has been specified, use it.
  20898. if test "x${LDAP_DIR}" != "x"; then
  20899. if test -d ${LDAP_DIR}/lib; then
  20900. pbxlibdir="-L${LDAP_DIR}/lib"
  20901. else
  20902. pbxlibdir="-L${LDAP_DIR}"
  20903. fi
  20904. fi
  20905. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20906. CFLAGS="${CFLAGS} "
  20907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
  20908. printf %s "checking for ldap_initialize in -lldap... " >&6; }
  20909. if test ${ac_cv_lib_ldap_ldap_initialize+y}
  20910. then :
  20911. printf %s "(cached) " >&6
  20912. else $as_nop
  20913. ac_check_lib_save_LIBS=$LIBS
  20914. LIBS="-lldap ${pbxlibdir} $LIBS"
  20915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20916. /* end confdefs.h. */
  20917. /* Override any GCC internal prototype to avoid an error.
  20918. Use char because int might match the return type of a GCC
  20919. builtin and then its argument prototype would still apply. */
  20920. char ldap_initialize ();
  20921. int
  20922. main (void)
  20923. {
  20924. return ldap_initialize ();
  20925. ;
  20926. return 0;
  20927. }
  20928. _ACEOF
  20929. if ac_fn_c_try_link "$LINENO"
  20930. then :
  20931. ac_cv_lib_ldap_ldap_initialize=yes
  20932. else $as_nop
  20933. ac_cv_lib_ldap_ldap_initialize=no
  20934. fi
  20935. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  20936. conftest$ac_exeext conftest.$ac_ext
  20937. LIBS=$ac_check_lib_save_LIBS
  20938. fi
  20939. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
  20940. printf "%s\n" "$ac_cv_lib_ldap_ldap_initialize" >&6; }
  20941. if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes
  20942. then :
  20943. AST_LDAP_FOUND=yes
  20944. else $as_nop
  20945. AST_LDAP_FOUND=no
  20946. fi
  20947. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20948. # now check for the header.
  20949. if test "${AST_LDAP_FOUND}" = "yes"; then
  20950. LDAP_LIB="${pbxlibdir} -lldap "
  20951. # if --with-LDAP=DIR has been specified, use it.
  20952. if test "x${LDAP_DIR}" != "x"; then
  20953. LDAP_INCLUDE="-I${LDAP_DIR}/include"
  20954. fi
  20955. LDAP_INCLUDE="${LDAP_INCLUDE} "
  20956. # check for the header
  20957. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20958. CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE}"
  20959. ac_fn_c_check_header_compile "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
  20960. if test "x$ac_cv_header_ldap_h" = xyes
  20961. then :
  20962. LDAP_HEADER_FOUND=1
  20963. else $as_nop
  20964. LDAP_HEADER_FOUND=0
  20965. fi
  20966. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20967. if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
  20968. LDAP_LIB=""
  20969. LDAP_INCLUDE=""
  20970. else
  20971. PBX_LDAP=1
  20972. cat >>confdefs.h <<_ACEOF
  20973. #define HAVE_LDAP 1
  20974. _ACEOF
  20975. fi
  20976. fi
  20977. fi
  20978. if test "x${PBX_MYSQLCLIENT}" != "x1" -a "${USE_MYSQLCLIENT}" != "no"; then
  20979. PBX_MYSQLCLIENT=0
  20980. if test -n "$ac_tool_prefix"; then
  20981. # Extract the first word of "${ac_tool_prefix}mysql_config", so it can be a program name with args.
  20982. set dummy ${ac_tool_prefix}mysql_config; ac_word=$2
  20983. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20984. printf %s "checking for $ac_word... " >&6; }
  20985. if test ${ac_cv_path_CONFIG_MYSQLCLIENT+y}
  20986. then :
  20987. printf %s "(cached) " >&6
  20988. else $as_nop
  20989. case $CONFIG_MYSQLCLIENT in
  20990. [\\/]* | ?:[\\/]*)
  20991. ac_cv_path_CONFIG_MYSQLCLIENT="$CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  20992. ;;
  20993. *)
  20994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20995. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  20996. for as_dir in $as_dummy
  20997. do
  20998. IFS=$as_save_IFS
  20999. case $as_dir in #(((
  21000. '') as_dir=./ ;;
  21001. */) ;;
  21002. *) as_dir=$as_dir/ ;;
  21003. esac
  21004. for ac_exec_ext in '' $ac_executable_extensions; do
  21005. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21006. ac_cv_path_CONFIG_MYSQLCLIENT="$as_dir$ac_word$ac_exec_ext"
  21007. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21008. break 2
  21009. fi
  21010. done
  21011. done
  21012. IFS=$as_save_IFS
  21013. ;;
  21014. esac
  21015. fi
  21016. CONFIG_MYSQLCLIENT=$ac_cv_path_CONFIG_MYSQLCLIENT
  21017. if test -n "$CONFIG_MYSQLCLIENT"; then
  21018. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONFIG_MYSQLCLIENT" >&5
  21019. printf "%s\n" "$CONFIG_MYSQLCLIENT" >&6; }
  21020. else
  21021. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21022. printf "%s\n" "no" >&6; }
  21023. fi
  21024. fi
  21025. if test -z "$ac_cv_path_CONFIG_MYSQLCLIENT"; then
  21026. ac_pt_CONFIG_MYSQLCLIENT=$CONFIG_MYSQLCLIENT
  21027. # Extract the first word of "mysql_config", so it can be a program name with args.
  21028. set dummy mysql_config; ac_word=$2
  21029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21030. printf %s "checking for $ac_word... " >&6; }
  21031. if test ${ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT+y}
  21032. then :
  21033. printf %s "(cached) " >&6
  21034. else $as_nop
  21035. case $ac_pt_CONFIG_MYSQLCLIENT in
  21036. [\\/]* | ?:[\\/]*)
  21037. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$ac_pt_CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  21038. ;;
  21039. *)
  21040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21041. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  21042. for as_dir in $as_dummy
  21043. do
  21044. IFS=$as_save_IFS
  21045. case $as_dir in #(((
  21046. '') as_dir=./ ;;
  21047. */) ;;
  21048. *) as_dir=$as_dir/ ;;
  21049. esac
  21050. for ac_exec_ext in '' $ac_executable_extensions; do
  21051. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21052. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$as_dir$ac_word$ac_exec_ext"
  21053. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21054. break 2
  21055. fi
  21056. done
  21057. done
  21058. IFS=$as_save_IFS
  21059. ;;
  21060. esac
  21061. fi
  21062. ac_pt_CONFIG_MYSQLCLIENT=$ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT
  21063. if test -n "$ac_pt_CONFIG_MYSQLCLIENT"; then
  21064. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_MYSQLCLIENT" >&5
  21065. printf "%s\n" "$ac_pt_CONFIG_MYSQLCLIENT" >&6; }
  21066. else
  21067. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21068. printf "%s\n" "no" >&6; }
  21069. fi
  21070. if test "x$ac_pt_CONFIG_MYSQLCLIENT" = x; then
  21071. CONFIG_MYSQLCLIENT="No"
  21072. else
  21073. case $cross_compiling:$ac_tool_warned in
  21074. yes:)
  21075. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21076. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21077. ac_tool_warned=yes ;;
  21078. esac
  21079. CONFIG_MYSQLCLIENT=$ac_pt_CONFIG_MYSQLCLIENT
  21080. fi
  21081. else
  21082. CONFIG_MYSQLCLIENT="$ac_cv_path_CONFIG_MYSQLCLIENT"
  21083. fi
  21084. if test ! "x${CONFIG_MYSQLCLIENT}" = xNo; then
  21085. MYSQLCLIENT_INCLUDE=$(${CONFIG_MYSQLCLIENT} --cflags)
  21086. MYSQLCLIENT_INCLUDE=$(echo ${MYSQLCLIENT_INCLUDE} | $SED -e "s|-I|-I${MYSQLCLIENT_DIR}|g" -e "s|-std=c99||g")
  21087. MYSQLCLIENT_LIB=$(${CONFIG_MYSQLCLIENT} --libs)
  21088. MYSQLCLIENT_LIB=$(echo ${MYSQLCLIENT_LIB} | $SED -e "s|-L|-L${MYSQLCLIENT_DIR}|g")
  21089. PBX_MYSQLCLIENT=1
  21090. printf "%s\n" "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
  21091. fi
  21092. fi
  21093. if test "${PBX_MYSQLCLIENT}" = 1; then
  21094. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MySQL client bool support" >&5
  21095. printf %s "checking for MySQL client bool support... " >&6; }
  21096. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21097. /* end confdefs.h. */
  21098. #include <mysql/mysql.h>
  21099. int
  21100. main (void)
  21101. {
  21102. bool test = 1;
  21103. ;
  21104. return 0;
  21105. }
  21106. _ACEOF
  21107. if ac_fn_c_try_link "$LINENO"
  21108. then :
  21109. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21110. printf "%s\n" "yes" >&6; }
  21111. printf "%s\n" "#define HAVE_MYSQLCLIENT_BOOL 1" >>confdefs.h
  21112. else $as_nop
  21113. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21114. printf "%s\n" "no" >&6; }
  21115. fi
  21116. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21117. conftest$ac_exeext conftest.$ac_ext
  21118. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MySQL client my_bool support" >&5
  21119. printf %s "checking for MySQL client my_bool support... " >&6; }
  21120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21121. /* end confdefs.h. */
  21122. #include <mysql/mysql.h>
  21123. int
  21124. main (void)
  21125. {
  21126. my_bool test = 1;
  21127. ;
  21128. return 0;
  21129. }
  21130. _ACEOF
  21131. if ac_fn_c_try_link "$LINENO"
  21132. then :
  21133. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21134. printf "%s\n" "yes" >&6; }
  21135. printf "%s\n" "#define HAVE_MYSQLCLIENT_MY_BOOL 1" >>confdefs.h
  21136. else $as_nop
  21137. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21138. printf "%s\n" "no" >&6; }
  21139. fi
  21140. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21141. conftest$ac_exeext conftest.$ac_ext
  21142. fi
  21143. if test "x${PBX_NEON}" != "x1" -a "${USE_NEON}" != "no"; then
  21144. PBX_NEON=0
  21145. if test -n "$ac_tool_prefix"; then
  21146. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  21147. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  21148. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21149. printf %s "checking for $ac_word... " >&6; }
  21150. if test ${ac_cv_path_CONFIG_NEON+y}
  21151. then :
  21152. printf %s "(cached) " >&6
  21153. else $as_nop
  21154. case $CONFIG_NEON in
  21155. [\\/]* | ?:[\\/]*)
  21156. ac_cv_path_CONFIG_NEON="$CONFIG_NEON" # Let the user override the test with a path.
  21157. ;;
  21158. *)
  21159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21160. as_dummy="${NEON_DIR}/bin:$PATH"
  21161. for as_dir in $as_dummy
  21162. do
  21163. IFS=$as_save_IFS
  21164. case $as_dir in #(((
  21165. '') as_dir=./ ;;
  21166. */) ;;
  21167. *) as_dir=$as_dir/ ;;
  21168. esac
  21169. for ac_exec_ext in '' $ac_executable_extensions; do
  21170. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21171. ac_cv_path_CONFIG_NEON="$as_dir$ac_word$ac_exec_ext"
  21172. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21173. break 2
  21174. fi
  21175. done
  21176. done
  21177. IFS=$as_save_IFS
  21178. ;;
  21179. esac
  21180. fi
  21181. CONFIG_NEON=$ac_cv_path_CONFIG_NEON
  21182. if test -n "$CONFIG_NEON"; then
  21183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON" >&5
  21184. printf "%s\n" "$CONFIG_NEON" >&6; }
  21185. else
  21186. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21187. printf "%s\n" "no" >&6; }
  21188. fi
  21189. fi
  21190. if test -z "$ac_cv_path_CONFIG_NEON"; then
  21191. ac_pt_CONFIG_NEON=$CONFIG_NEON
  21192. # Extract the first word of "neon-config", so it can be a program name with args.
  21193. set dummy neon-config; ac_word=$2
  21194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21195. printf %s "checking for $ac_word... " >&6; }
  21196. if test ${ac_cv_path_ac_pt_CONFIG_NEON+y}
  21197. then :
  21198. printf %s "(cached) " >&6
  21199. else $as_nop
  21200. case $ac_pt_CONFIG_NEON in
  21201. [\\/]* | ?:[\\/]*)
  21202. ac_cv_path_ac_pt_CONFIG_NEON="$ac_pt_CONFIG_NEON" # Let the user override the test with a path.
  21203. ;;
  21204. *)
  21205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21206. as_dummy="${NEON_DIR}/bin:$PATH"
  21207. for as_dir in $as_dummy
  21208. do
  21209. IFS=$as_save_IFS
  21210. case $as_dir in #(((
  21211. '') as_dir=./ ;;
  21212. */) ;;
  21213. *) as_dir=$as_dir/ ;;
  21214. esac
  21215. for ac_exec_ext in '' $ac_executable_extensions; do
  21216. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21217. ac_cv_path_ac_pt_CONFIG_NEON="$as_dir$ac_word$ac_exec_ext"
  21218. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21219. break 2
  21220. fi
  21221. done
  21222. done
  21223. IFS=$as_save_IFS
  21224. ;;
  21225. esac
  21226. fi
  21227. ac_pt_CONFIG_NEON=$ac_cv_path_ac_pt_CONFIG_NEON
  21228. if test -n "$ac_pt_CONFIG_NEON"; then
  21229. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON" >&5
  21230. printf "%s\n" "$ac_pt_CONFIG_NEON" >&6; }
  21231. else
  21232. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21233. printf "%s\n" "no" >&6; }
  21234. fi
  21235. if test "x$ac_pt_CONFIG_NEON" = x; then
  21236. CONFIG_NEON="No"
  21237. else
  21238. case $cross_compiling:$ac_tool_warned in
  21239. yes:)
  21240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21241. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21242. ac_tool_warned=yes ;;
  21243. esac
  21244. CONFIG_NEON=$ac_pt_CONFIG_NEON
  21245. fi
  21246. else
  21247. CONFIG_NEON="$ac_cv_path_CONFIG_NEON"
  21248. fi
  21249. if test ! "x${CONFIG_NEON}" = xNo; then
  21250. NEON_INCLUDE=$(${CONFIG_NEON} --cflags)
  21251. NEON_INCLUDE=$(echo ${NEON_INCLUDE} | $SED -e "s|-I|-I${NEON_DIR}|g" -e "s|-std=c99||g")
  21252. NEON_LIB=$(${CONFIG_NEON} --libs)
  21253. NEON_LIB=$(echo ${NEON_LIB} | $SED -e "s|-L|-L${NEON_DIR}|g")
  21254. PBX_NEON=1
  21255. printf "%s\n" "#define HAVE_NEON 1" >>confdefs.h
  21256. fi
  21257. fi
  21258. if test "x${PBX_NEON29}" != "x1" -a "${USE_NEON29}" != "no"; then
  21259. PBX_NEON29=0
  21260. if test -n "$ac_tool_prefix"; then
  21261. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  21262. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  21263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21264. printf %s "checking for $ac_word... " >&6; }
  21265. if test ${ac_cv_path_CONFIG_NEON29+y}
  21266. then :
  21267. printf %s "(cached) " >&6
  21268. else $as_nop
  21269. case $CONFIG_NEON29 in
  21270. [\\/]* | ?:[\\/]*)
  21271. ac_cv_path_CONFIG_NEON29="$CONFIG_NEON29" # Let the user override the test with a path.
  21272. ;;
  21273. *)
  21274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21275. as_dummy="${NEON29_DIR}/bin:$PATH"
  21276. for as_dir in $as_dummy
  21277. do
  21278. IFS=$as_save_IFS
  21279. case $as_dir in #(((
  21280. '') as_dir=./ ;;
  21281. */) ;;
  21282. *) as_dir=$as_dir/ ;;
  21283. esac
  21284. for ac_exec_ext in '' $ac_executable_extensions; do
  21285. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21286. ac_cv_path_CONFIG_NEON29="$as_dir$ac_word$ac_exec_ext"
  21287. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21288. break 2
  21289. fi
  21290. done
  21291. done
  21292. IFS=$as_save_IFS
  21293. ;;
  21294. esac
  21295. fi
  21296. CONFIG_NEON29=$ac_cv_path_CONFIG_NEON29
  21297. if test -n "$CONFIG_NEON29"; then
  21298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON29" >&5
  21299. printf "%s\n" "$CONFIG_NEON29" >&6; }
  21300. else
  21301. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21302. printf "%s\n" "no" >&6; }
  21303. fi
  21304. fi
  21305. if test -z "$ac_cv_path_CONFIG_NEON29"; then
  21306. ac_pt_CONFIG_NEON29=$CONFIG_NEON29
  21307. # Extract the first word of "neon-config", so it can be a program name with args.
  21308. set dummy neon-config; ac_word=$2
  21309. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21310. printf %s "checking for $ac_word... " >&6; }
  21311. if test ${ac_cv_path_ac_pt_CONFIG_NEON29+y}
  21312. then :
  21313. printf %s "(cached) " >&6
  21314. else $as_nop
  21315. case $ac_pt_CONFIG_NEON29 in
  21316. [\\/]* | ?:[\\/]*)
  21317. ac_cv_path_ac_pt_CONFIG_NEON29="$ac_pt_CONFIG_NEON29" # Let the user override the test with a path.
  21318. ;;
  21319. *)
  21320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21321. as_dummy="${NEON29_DIR}/bin:$PATH"
  21322. for as_dir in $as_dummy
  21323. do
  21324. IFS=$as_save_IFS
  21325. case $as_dir in #(((
  21326. '') as_dir=./ ;;
  21327. */) ;;
  21328. *) as_dir=$as_dir/ ;;
  21329. esac
  21330. for ac_exec_ext in '' $ac_executable_extensions; do
  21331. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21332. ac_cv_path_ac_pt_CONFIG_NEON29="$as_dir$ac_word$ac_exec_ext"
  21333. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21334. break 2
  21335. fi
  21336. done
  21337. done
  21338. IFS=$as_save_IFS
  21339. ;;
  21340. esac
  21341. fi
  21342. ac_pt_CONFIG_NEON29=$ac_cv_path_ac_pt_CONFIG_NEON29
  21343. if test -n "$ac_pt_CONFIG_NEON29"; then
  21344. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON29" >&5
  21345. printf "%s\n" "$ac_pt_CONFIG_NEON29" >&6; }
  21346. else
  21347. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21348. printf "%s\n" "no" >&6; }
  21349. fi
  21350. if test "x$ac_pt_CONFIG_NEON29" = x; then
  21351. CONFIG_NEON29="No"
  21352. else
  21353. case $cross_compiling:$ac_tool_warned in
  21354. yes:)
  21355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21356. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21357. ac_tool_warned=yes ;;
  21358. esac
  21359. CONFIG_NEON29=$ac_pt_CONFIG_NEON29
  21360. fi
  21361. else
  21362. CONFIG_NEON29="$ac_cv_path_CONFIG_NEON29"
  21363. fi
  21364. if test ! "x${CONFIG_NEON29}" = xNo; then
  21365. NEON29_INCLUDE=$(${CONFIG_NEON29} --cflags)
  21366. NEON29_INCLUDE=$(echo ${NEON29_INCLUDE} | $SED -e "s|-I|-I${NEON29_DIR}|g" -e "s|-std=c99||g")
  21367. NEON29_LIB=$(${CONFIG_NEON29} --libs)
  21368. NEON29_LIB=$(echo ${NEON29_LIB} | $SED -e "s|-L|-L${NEON29_DIR}|g")
  21369. saved_cppflags="${CPPFLAGS}"
  21370. CPPFLAGS="${CPPFLAGS} ${NEON29_INCLUDE}"
  21371. saved_libs="${LIBS}"
  21372. LIBS=${NEON29_LIB}
  21373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21374. /* end confdefs.h. */
  21375. #include <ne_auth.h>
  21376. int
  21377. main (void)
  21378. {
  21379. #ifndef NE_AUTH_NTLM
  21380. #error Need libneon >= 0.29.0
  21381. #endif;
  21382. ;
  21383. return 0;
  21384. }
  21385. _ACEOF
  21386. if ac_fn_c_try_link "$LINENO"
  21387. then :
  21388. PBX_NEON29=1
  21389. printf "%s\n" "#define HAVE_NEON29 1" >>confdefs.h
  21390. fi
  21391. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21392. conftest$ac_exeext conftest.$ac_ext
  21393. CPPFLAGS="${saved_cppflags}"
  21394. LIBS="${saved_libs}"
  21395. fi
  21396. fi
  21397. if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
  21398. pkg_failed=no
  21399. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for netsnmp-agent" >&5
  21400. printf %s "checking for netsnmp-agent... " >&6; }
  21401. if test -n "$NETSNMP_CFLAGS"; then
  21402. pkg_cv_NETSNMP_CFLAGS="$NETSNMP_CFLAGS"
  21403. elif test -n "$PKG_CONFIG"; then
  21404. if test -n "$PKG_CONFIG" && \
  21405. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"netsnmp-agent\""; } >&5
  21406. ($PKG_CONFIG --exists --print-errors "netsnmp-agent") 2>&5
  21407. ac_status=$?
  21408. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21409. test $ac_status = 0; }; then
  21410. pkg_cv_NETSNMP_CFLAGS=`$PKG_CONFIG --cflags "netsnmp-agent" 2>/dev/null`
  21411. test "x$?" != "x0" && pkg_failed=yes
  21412. else
  21413. pkg_failed=yes
  21414. fi
  21415. else
  21416. pkg_failed=untried
  21417. fi
  21418. if test -n "$NETSNMP_LIBS"; then
  21419. pkg_cv_NETSNMP_LIBS="$NETSNMP_LIBS"
  21420. elif test -n "$PKG_CONFIG"; then
  21421. if test -n "$PKG_CONFIG" && \
  21422. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"netsnmp-agent\""; } >&5
  21423. ($PKG_CONFIG --exists --print-errors "netsnmp-agent") 2>&5
  21424. ac_status=$?
  21425. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  21426. test $ac_status = 0; }; then
  21427. pkg_cv_NETSNMP_LIBS=`$PKG_CONFIG --libs "netsnmp-agent" 2>/dev/null`
  21428. test "x$?" != "x0" && pkg_failed=yes
  21429. else
  21430. pkg_failed=yes
  21431. fi
  21432. else
  21433. pkg_failed=untried
  21434. fi
  21435. if test $pkg_failed = yes; then
  21436. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21437. printf "%s\n" "no" >&6; }
  21438. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  21439. _pkg_short_errors_supported=yes
  21440. else
  21441. _pkg_short_errors_supported=no
  21442. fi
  21443. if test $_pkg_short_errors_supported = yes; then
  21444. NETSNMP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "netsnmp-agent" 2>&1`
  21445. else
  21446. NETSNMP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "netsnmp-agent" 2>&1`
  21447. fi
  21448. # Put the nasty error message in config.log where it belongs
  21449. echo "$NETSNMP_PKG_ERRORS" >&5
  21450. PBX_NETSNMP=0
  21451. elif test $pkg_failed = untried; then
  21452. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21453. printf "%s\n" "no" >&6; }
  21454. PBX_NETSNMP=0
  21455. else
  21456. NETSNMP_CFLAGS=$pkg_cv_NETSNMP_CFLAGS
  21457. NETSNMP_LIBS=$pkg_cv_NETSNMP_LIBS
  21458. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21459. printf "%s\n" "yes" >&6; }
  21460. PBX_NETSNMP=1
  21461. NETSNMP_INCLUDE=$(echo ${NETSNMP_CFLAGS} | $SED -e "s|-std=c99||g")
  21462. NETSNMP_LIB="$NETSNMP_LIBS"
  21463. printf "%s\n" "#define HAVE_NETSNMP 1" >>confdefs.h
  21464. fi
  21465. fi
  21466. if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
  21467. PBX_NETSNMP=0
  21468. if test -n "$ac_tool_prefix"; then
  21469. # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
  21470. set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
  21471. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21472. printf %s "checking for $ac_word... " >&6; }
  21473. if test ${ac_cv_path_CONFIG_NETSNMP+y}
  21474. then :
  21475. printf %s "(cached) " >&6
  21476. else $as_nop
  21477. case $CONFIG_NETSNMP in
  21478. [\\/]* | ?:[\\/]*)
  21479. ac_cv_path_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test with a path.
  21480. ;;
  21481. *)
  21482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21483. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  21484. for as_dir in $as_dummy
  21485. do
  21486. IFS=$as_save_IFS
  21487. case $as_dir in #(((
  21488. '') as_dir=./ ;;
  21489. */) ;;
  21490. *) as_dir=$as_dir/ ;;
  21491. esac
  21492. for ac_exec_ext in '' $ac_executable_extensions; do
  21493. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21494. ac_cv_path_CONFIG_NETSNMP="$as_dir$ac_word$ac_exec_ext"
  21495. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21496. break 2
  21497. fi
  21498. done
  21499. done
  21500. IFS=$as_save_IFS
  21501. ;;
  21502. esac
  21503. fi
  21504. CONFIG_NETSNMP=$ac_cv_path_CONFIG_NETSNMP
  21505. if test -n "$CONFIG_NETSNMP"; then
  21506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NETSNMP" >&5
  21507. printf "%s\n" "$CONFIG_NETSNMP" >&6; }
  21508. else
  21509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21510. printf "%s\n" "no" >&6; }
  21511. fi
  21512. fi
  21513. if test -z "$ac_cv_path_CONFIG_NETSNMP"; then
  21514. ac_pt_CONFIG_NETSNMP=$CONFIG_NETSNMP
  21515. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  21516. set dummy net-snmp-config; ac_word=$2
  21517. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21518. printf %s "checking for $ac_word... " >&6; }
  21519. if test ${ac_cv_path_ac_pt_CONFIG_NETSNMP+y}
  21520. then :
  21521. printf %s "(cached) " >&6
  21522. else $as_nop
  21523. case $ac_pt_CONFIG_NETSNMP in
  21524. [\\/]* | ?:[\\/]*)
  21525. ac_cv_path_ac_pt_CONFIG_NETSNMP="$ac_pt_CONFIG_NETSNMP" # Let the user override the test with a path.
  21526. ;;
  21527. *)
  21528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21529. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  21530. for as_dir in $as_dummy
  21531. do
  21532. IFS=$as_save_IFS
  21533. case $as_dir in #(((
  21534. '') as_dir=./ ;;
  21535. */) ;;
  21536. *) as_dir=$as_dir/ ;;
  21537. esac
  21538. for ac_exec_ext in '' $ac_executable_extensions; do
  21539. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  21540. ac_cv_path_ac_pt_CONFIG_NETSNMP="$as_dir$ac_word$ac_exec_ext"
  21541. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  21542. break 2
  21543. fi
  21544. done
  21545. done
  21546. IFS=$as_save_IFS
  21547. ;;
  21548. esac
  21549. fi
  21550. ac_pt_CONFIG_NETSNMP=$ac_cv_path_ac_pt_CONFIG_NETSNMP
  21551. if test -n "$ac_pt_CONFIG_NETSNMP"; then
  21552. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NETSNMP" >&5
  21553. printf "%s\n" "$ac_pt_CONFIG_NETSNMP" >&6; }
  21554. else
  21555. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21556. printf "%s\n" "no" >&6; }
  21557. fi
  21558. if test "x$ac_pt_CONFIG_NETSNMP" = x; then
  21559. CONFIG_NETSNMP="No"
  21560. else
  21561. case $cross_compiling:$ac_tool_warned in
  21562. yes:)
  21563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21564. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21565. ac_tool_warned=yes ;;
  21566. esac
  21567. CONFIG_NETSNMP=$ac_pt_CONFIG_NETSNMP
  21568. fi
  21569. else
  21570. CONFIG_NETSNMP="$ac_cv_path_CONFIG_NETSNMP"
  21571. fi
  21572. if test ! "x${CONFIG_NETSNMP}" = xNo; then
  21573. NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} --cflags)
  21574. NETSNMP_INCLUDE=$(echo ${NETSNMP_INCLUDE} | $SED -e "s|-I|-I${NETSNMP_DIR}|g" -e "s|-std=c99||g")
  21575. NETSNMP_LIB=$(${CONFIG_NETSNMP} --agent-libs)
  21576. NETSNMP_LIB=$(echo ${NETSNMP_LIB} | $SED -e "s|-L|-L${NETSNMP_DIR}|g")
  21577. saved_cppflags="${CPPFLAGS}"
  21578. CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
  21579. saved_libs="${LIBS}"
  21580. LIBS=${NETSNMP_LIB}
  21581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21582. /* end confdefs.h. */
  21583. #include <net-snmp/net-snmp-config.h>
  21584. #include <net-snmp/net-snmp-includes.h>
  21585. #include <net-snmp/agent/net-snmp-agent-includes.h>
  21586. int
  21587. main (void)
  21588. {
  21589. int callback = snmp_register_callback(0, 0, NULL, NULL);
  21590. ;
  21591. return 0;
  21592. }
  21593. _ACEOF
  21594. if ac_fn_c_try_link "$LINENO"
  21595. then :
  21596. PBX_NETSNMP=1
  21597. printf "%s\n" "#define HAVE_NETSNMP 1" >>confdefs.h
  21598. fi
  21599. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21600. conftest$ac_exeext conftest.$ac_ext
  21601. CPPFLAGS="${saved_cppflags}"
  21602. LIBS="${saved_libs}"
  21603. fi
  21604. fi
  21605. if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
  21606. pbxlibdir=""
  21607. # if --with-NEWT=DIR has been specified, use it.
  21608. if test "x${NEWT_DIR}" != "x"; then
  21609. if test -d ${NEWT_DIR}/lib; then
  21610. pbxlibdir="-L${NEWT_DIR}/lib"
  21611. else
  21612. pbxlibdir="-L${NEWT_DIR}"
  21613. fi
  21614. fi
  21615. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21616. CFLAGS="${CFLAGS} "
  21617. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for newtBell in -lnewt" >&5
  21618. printf %s "checking for newtBell in -lnewt... " >&6; }
  21619. if test ${ac_cv_lib_newt_newtBell+y}
  21620. then :
  21621. printf %s "(cached) " >&6
  21622. else $as_nop
  21623. ac_check_lib_save_LIBS=$LIBS
  21624. LIBS="-lnewt ${pbxlibdir} $LIBS"
  21625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21626. /* end confdefs.h. */
  21627. /* Override any GCC internal prototype to avoid an error.
  21628. Use char because int might match the return type of a GCC
  21629. builtin and then its argument prototype would still apply. */
  21630. char newtBell ();
  21631. int
  21632. main (void)
  21633. {
  21634. return newtBell ();
  21635. ;
  21636. return 0;
  21637. }
  21638. _ACEOF
  21639. if ac_fn_c_try_link "$LINENO"
  21640. then :
  21641. ac_cv_lib_newt_newtBell=yes
  21642. else $as_nop
  21643. ac_cv_lib_newt_newtBell=no
  21644. fi
  21645. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21646. conftest$ac_exeext conftest.$ac_ext
  21647. LIBS=$ac_check_lib_save_LIBS
  21648. fi
  21649. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_newt_newtBell" >&5
  21650. printf "%s\n" "$ac_cv_lib_newt_newtBell" >&6; }
  21651. if test "x$ac_cv_lib_newt_newtBell" = xyes
  21652. then :
  21653. AST_NEWT_FOUND=yes
  21654. else $as_nop
  21655. AST_NEWT_FOUND=no
  21656. fi
  21657. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21658. # now check for the header.
  21659. if test "${AST_NEWT_FOUND}" = "yes"; then
  21660. NEWT_LIB="${pbxlibdir} -lnewt "
  21661. # if --with-NEWT=DIR has been specified, use it.
  21662. if test "x${NEWT_DIR}" != "x"; then
  21663. NEWT_INCLUDE="-I${NEWT_DIR}/include"
  21664. fi
  21665. NEWT_INCLUDE="${NEWT_INCLUDE} "
  21666. # check for the header
  21667. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21668. CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
  21669. ac_fn_c_check_header_compile "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
  21670. if test "x$ac_cv_header_newt_h" = xyes
  21671. then :
  21672. NEWT_HEADER_FOUND=1
  21673. else $as_nop
  21674. NEWT_HEADER_FOUND=0
  21675. fi
  21676. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21677. if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
  21678. NEWT_LIB=""
  21679. NEWT_INCLUDE=""
  21680. else
  21681. PBX_NEWT=1
  21682. cat >>confdefs.h <<_ACEOF
  21683. #define HAVE_NEWT 1
  21684. _ACEOF
  21685. fi
  21686. fi
  21687. fi
  21688. # Check that unbound is installed and the version code fragment compiles
  21689. if test "x${PBX_UNBOUND}" != "x1" -a "${USE_UNBOUND}" != "no"; then
  21690. pbxlibdir=""
  21691. # if --with-UNBOUND=DIR has been specified, use it.
  21692. if test "x${UNBOUND_DIR}" != "x"; then
  21693. if test -d ${UNBOUND_DIR}/lib; then
  21694. pbxlibdir="-L${UNBOUND_DIR}/lib"
  21695. else
  21696. pbxlibdir="-L${UNBOUND_DIR}"
  21697. fi
  21698. fi
  21699. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21700. CFLAGS="${CFLAGS} "
  21701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ub_ctx_delete in -lunbound" >&5
  21702. printf %s "checking for ub_ctx_delete in -lunbound... " >&6; }
  21703. if test ${ac_cv_lib_unbound_ub_ctx_delete+y}
  21704. then :
  21705. printf %s "(cached) " >&6
  21706. else $as_nop
  21707. ac_check_lib_save_LIBS=$LIBS
  21708. LIBS="-lunbound ${pbxlibdir} $LIBS"
  21709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21710. /* end confdefs.h. */
  21711. /* Override any GCC internal prototype to avoid an error.
  21712. Use char because int might match the return type of a GCC
  21713. builtin and then its argument prototype would still apply. */
  21714. char ub_ctx_delete ();
  21715. int
  21716. main (void)
  21717. {
  21718. return ub_ctx_delete ();
  21719. ;
  21720. return 0;
  21721. }
  21722. _ACEOF
  21723. if ac_fn_c_try_link "$LINENO"
  21724. then :
  21725. ac_cv_lib_unbound_ub_ctx_delete=yes
  21726. else $as_nop
  21727. ac_cv_lib_unbound_ub_ctx_delete=no
  21728. fi
  21729. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21730. conftest$ac_exeext conftest.$ac_ext
  21731. LIBS=$ac_check_lib_save_LIBS
  21732. fi
  21733. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unbound_ub_ctx_delete" >&5
  21734. printf "%s\n" "$ac_cv_lib_unbound_ub_ctx_delete" >&6; }
  21735. if test "x$ac_cv_lib_unbound_ub_ctx_delete" = xyes
  21736. then :
  21737. AST_UNBOUND_FOUND=yes
  21738. else $as_nop
  21739. AST_UNBOUND_FOUND=no
  21740. fi
  21741. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21742. # now check for the header.
  21743. if test "${AST_UNBOUND_FOUND}" = "yes"; then
  21744. UNBOUND_LIB="${pbxlibdir} -lunbound "
  21745. # if --with-UNBOUND=DIR has been specified, use it.
  21746. if test "x${UNBOUND_DIR}" != "x"; then
  21747. UNBOUND_INCLUDE="-I${UNBOUND_DIR}/include"
  21748. fi
  21749. UNBOUND_INCLUDE="${UNBOUND_INCLUDE} "
  21750. # check for the header
  21751. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21752. CPPFLAGS="${CPPFLAGS} ${UNBOUND_INCLUDE}"
  21753. ac_fn_c_check_header_compile "$LINENO" "unbound.h" "ac_cv_header_unbound_h" "$ac_includes_default"
  21754. if test "x$ac_cv_header_unbound_h" = xyes
  21755. then :
  21756. UNBOUND_HEADER_FOUND=1
  21757. else $as_nop
  21758. UNBOUND_HEADER_FOUND=0
  21759. fi
  21760. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21761. fi
  21762. # Validate the package with the supplied code.
  21763. if test "x${UNBOUND_HEADER_FOUND}" = "x1" ; then
  21764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unbound version >= 1.5" >&5
  21765. printf %s "checking for unbound version >= 1.5... " >&6; }
  21766. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21767. CPPFLAGS="${CPPFLAGS} ${UNBOUND_INCLUDE}"
  21768. ast_ext_lib_check_saved_LIBS="${LIBS}"
  21769. LIBS="${UNBOUND_LIB}"
  21770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21771. /* end confdefs.h. */
  21772. #include <unbound.h>
  21773. int
  21774. main (void)
  21775. {
  21776. #if (UNBOUND_VERSION_MAJOR < 1 || (UNBOUND_VERSION_MAJOR == 1 && UNBOUND_VERSION_MINOR < 5 ))
  21777. #error "Unbound version must be >= 1.5"
  21778. #endif
  21779. ;
  21780. return 0;
  21781. }
  21782. _ACEOF
  21783. if ac_fn_c_try_link "$LINENO"
  21784. then :
  21785. if test "x${cross_compiling}" = "xyes" ; then
  21786. UNBOUND_VALIDATED="1"
  21787. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (guessed for cross-compile)" >&5
  21788. printf "%s\n" "yes (guessed for cross-compile)" >&6; }
  21789. else
  21790. ./conftest$EXEEXT
  21791. if test $? -eq 0 ; then
  21792. UNBOUND_VALIDATED="1"
  21793. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21794. printf "%s\n" "yes" >&6; }
  21795. else
  21796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21797. printf "%s\n" "no" >&6; }
  21798. fi
  21799. fi
  21800. else $as_nop
  21801. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21802. printf "%s\n" "no" >&6; }
  21803. fi
  21804. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21805. conftest$ac_exeext conftest.$ac_ext
  21806. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21807. LIBS="${ast_ext_lib_check_saved_LIBS}"
  21808. fi
  21809. if test "x${UNBOUND_VALIDATED}" = "x1" ; then
  21810. PBX_UNBOUND=1
  21811. cat >>confdefs.h <<_ACEOF
  21812. #define HAVE_UNBOUND 1
  21813. _ACEOF
  21814. else
  21815. UNBOUND_LIB=""
  21816. UNBOUND_INCLUDE=""
  21817. fi
  21818. fi
  21819. if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
  21820. pbxlibdir=""
  21821. # if --with-UNIXODBC=DIR has been specified, use it.
  21822. if test "x${UNIXODBC_DIR}" != "x"; then
  21823. if test -d ${UNIXODBC_DIR}/lib; then
  21824. pbxlibdir="-L${UNIXODBC_DIR}/lib"
  21825. else
  21826. pbxlibdir="-L${UNIXODBC_DIR}"
  21827. fi
  21828. fi
  21829. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21830. CFLAGS="${CFLAGS} "
  21831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLConnect in -lodbc" >&5
  21832. printf %s "checking for SQLConnect in -lodbc... " >&6; }
  21833. if test ${ac_cv_lib_odbc_SQLConnect+y}
  21834. then :
  21835. printf %s "(cached) " >&6
  21836. else $as_nop
  21837. ac_check_lib_save_LIBS=$LIBS
  21838. LIBS="-lodbc ${pbxlibdir} $LIBS"
  21839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21840. /* end confdefs.h. */
  21841. /* Override any GCC internal prototype to avoid an error.
  21842. Use char because int might match the return type of a GCC
  21843. builtin and then its argument prototype would still apply. */
  21844. char SQLConnect ();
  21845. int
  21846. main (void)
  21847. {
  21848. return SQLConnect ();
  21849. ;
  21850. return 0;
  21851. }
  21852. _ACEOF
  21853. if ac_fn_c_try_link "$LINENO"
  21854. then :
  21855. ac_cv_lib_odbc_SQLConnect=yes
  21856. else $as_nop
  21857. ac_cv_lib_odbc_SQLConnect=no
  21858. fi
  21859. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21860. conftest$ac_exeext conftest.$ac_ext
  21861. LIBS=$ac_check_lib_save_LIBS
  21862. fi
  21863. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLConnect" >&5
  21864. printf "%s\n" "$ac_cv_lib_odbc_SQLConnect" >&6; }
  21865. if test "x$ac_cv_lib_odbc_SQLConnect" = xyes
  21866. then :
  21867. AST_UNIXODBC_FOUND=yes
  21868. else $as_nop
  21869. AST_UNIXODBC_FOUND=no
  21870. fi
  21871. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21872. # now check for the header.
  21873. if test "${AST_UNIXODBC_FOUND}" = "yes"; then
  21874. UNIXODBC_LIB="${pbxlibdir} -lodbc "
  21875. # if --with-UNIXODBC=DIR has been specified, use it.
  21876. if test "x${UNIXODBC_DIR}" != "x"; then
  21877. UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
  21878. fi
  21879. UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
  21880. # check for the header
  21881. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21882. CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
  21883. ac_fn_c_check_header_compile "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  21884. if test "x$ac_cv_header_sql_h" = xyes
  21885. then :
  21886. UNIXODBC_HEADER_FOUND=1
  21887. else $as_nop
  21888. UNIXODBC_HEADER_FOUND=0
  21889. fi
  21890. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21891. if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
  21892. UNIXODBC_LIB=""
  21893. UNIXODBC_INCLUDE=""
  21894. else
  21895. PBX_UNIXODBC=1
  21896. cat >>confdefs.h <<_ACEOF
  21897. #define HAVE_UNIXODBC 1
  21898. _ACEOF
  21899. fi
  21900. fi
  21901. fi
  21902. if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
  21903. pbxlibdir=""
  21904. # if --with-OGG=DIR has been specified, use it.
  21905. if test "x${OGG_DIR}" != "x"; then
  21906. if test -d ${OGG_DIR}/lib; then
  21907. pbxlibdir="-L${OGG_DIR}/lib"
  21908. else
  21909. pbxlibdir="-L${OGG_DIR}"
  21910. fi
  21911. fi
  21912. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21913. CFLAGS="${CFLAGS} "
  21914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ogg_stream_init in -logg" >&5
  21915. printf %s "checking for ogg_stream_init in -logg... " >&6; }
  21916. if test ${ac_cv_lib_ogg_ogg_stream_init+y}
  21917. then :
  21918. printf %s "(cached) " >&6
  21919. else $as_nop
  21920. ac_check_lib_save_LIBS=$LIBS
  21921. LIBS="-logg ${pbxlibdir} $LIBS"
  21922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21923. /* end confdefs.h. */
  21924. /* Override any GCC internal prototype to avoid an error.
  21925. Use char because int might match the return type of a GCC
  21926. builtin and then its argument prototype would still apply. */
  21927. char ogg_stream_init ();
  21928. int
  21929. main (void)
  21930. {
  21931. return ogg_stream_init ();
  21932. ;
  21933. return 0;
  21934. }
  21935. _ACEOF
  21936. if ac_fn_c_try_link "$LINENO"
  21937. then :
  21938. ac_cv_lib_ogg_ogg_stream_init=yes
  21939. else $as_nop
  21940. ac_cv_lib_ogg_ogg_stream_init=no
  21941. fi
  21942. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  21943. conftest$ac_exeext conftest.$ac_ext
  21944. LIBS=$ac_check_lib_save_LIBS
  21945. fi
  21946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ogg_ogg_stream_init" >&5
  21947. printf "%s\n" "$ac_cv_lib_ogg_ogg_stream_init" >&6; }
  21948. if test "x$ac_cv_lib_ogg_ogg_stream_init" = xyes
  21949. then :
  21950. AST_OGG_FOUND=yes
  21951. else $as_nop
  21952. AST_OGG_FOUND=no
  21953. fi
  21954. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21955. # now check for the header.
  21956. if test "${AST_OGG_FOUND}" = "yes"; then
  21957. OGG_LIB="${pbxlibdir} -logg "
  21958. # if --with-OGG=DIR has been specified, use it.
  21959. if test "x${OGG_DIR}" != "x"; then
  21960. OGG_INCLUDE="-I${OGG_DIR}/include"
  21961. fi
  21962. OGG_INCLUDE="${OGG_INCLUDE} "
  21963. # check for the header
  21964. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21965. CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
  21966. ac_fn_c_check_header_compile "$LINENO" "ogg/ogg.h" "ac_cv_header_ogg_ogg_h" "$ac_includes_default"
  21967. if test "x$ac_cv_header_ogg_ogg_h" = xyes
  21968. then :
  21969. OGG_HEADER_FOUND=1
  21970. else $as_nop
  21971. OGG_HEADER_FOUND=0
  21972. fi
  21973. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21974. if test "x${OGG_HEADER_FOUND}" = "x0" ; then
  21975. OGG_LIB=""
  21976. OGG_INCLUDE=""
  21977. else
  21978. PBX_OGG=1
  21979. cat >>confdefs.h <<_ACEOF
  21980. #define HAVE_OGG 1
  21981. _ACEOF
  21982. fi
  21983. fi
  21984. fi
  21985. # Non-glibc platforms require libexecinfo for backtrace support
  21986. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  21987. pbxlibdir=""
  21988. # if --with-BKTR=DIR has been specified, use it.
  21989. if test "x${BKTR_DIR}" != "x"; then
  21990. if test -d ${BKTR_DIR}/lib; then
  21991. pbxlibdir="-L${BKTR_DIR}/lib"
  21992. else
  21993. pbxlibdir="-L${BKTR_DIR}"
  21994. fi
  21995. fi
  21996. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21997. CFLAGS="${CFLAGS} "
  21998. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lexecinfo" >&5
  21999. printf %s "checking for backtrace in -lexecinfo... " >&6; }
  22000. if test ${ac_cv_lib_execinfo_backtrace+y}
  22001. then :
  22002. printf %s "(cached) " >&6
  22003. else $as_nop
  22004. ac_check_lib_save_LIBS=$LIBS
  22005. LIBS="-lexecinfo ${pbxlibdir} $LIBS"
  22006. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22007. /* end confdefs.h. */
  22008. /* Override any GCC internal prototype to avoid an error.
  22009. Use char because int might match the return type of a GCC
  22010. builtin and then its argument prototype would still apply. */
  22011. char backtrace ();
  22012. int
  22013. main (void)
  22014. {
  22015. return backtrace ();
  22016. ;
  22017. return 0;
  22018. }
  22019. _ACEOF
  22020. if ac_fn_c_try_link "$LINENO"
  22021. then :
  22022. ac_cv_lib_execinfo_backtrace=yes
  22023. else $as_nop
  22024. ac_cv_lib_execinfo_backtrace=no
  22025. fi
  22026. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22027. conftest$ac_exeext conftest.$ac_ext
  22028. LIBS=$ac_check_lib_save_LIBS
  22029. fi
  22030. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5
  22031. printf "%s\n" "$ac_cv_lib_execinfo_backtrace" >&6; }
  22032. if test "x$ac_cv_lib_execinfo_backtrace" = xyes
  22033. then :
  22034. AST_BKTR_FOUND=yes
  22035. else $as_nop
  22036. AST_BKTR_FOUND=no
  22037. fi
  22038. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22039. # now check for the header.
  22040. if test "${AST_BKTR_FOUND}" = "yes"; then
  22041. BKTR_LIB="${pbxlibdir} -lexecinfo "
  22042. # if --with-BKTR=DIR has been specified, use it.
  22043. if test "x${BKTR_DIR}" != "x"; then
  22044. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  22045. fi
  22046. BKTR_INCLUDE="${BKTR_INCLUDE} "
  22047. # check for the header
  22048. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22049. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  22050. ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  22051. if test "x$ac_cv_header_execinfo_h" = xyes
  22052. then :
  22053. BKTR_HEADER_FOUND=1
  22054. else $as_nop
  22055. BKTR_HEADER_FOUND=0
  22056. fi
  22057. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22058. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  22059. BKTR_LIB=""
  22060. BKTR_INCLUDE=""
  22061. else
  22062. PBX_BKTR=1
  22063. cat >>confdefs.h <<_ACEOF
  22064. #define HAVE_BKTR 1
  22065. _ACEOF
  22066. fi
  22067. fi
  22068. fi
  22069. # Linux, however, has backtrace directly in glibc
  22070. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  22071. pbxlibdir=""
  22072. # if --with-BKTR=DIR has been specified, use it.
  22073. if test "x${BKTR_DIR}" != "x"; then
  22074. if test -d ${BKTR_DIR}/lib; then
  22075. pbxlibdir="-L${BKTR_DIR}/lib"
  22076. else
  22077. pbxlibdir="-L${BKTR_DIR}"
  22078. fi
  22079. fi
  22080. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22081. CFLAGS="${CFLAGS} "
  22082. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5
  22083. printf %s "checking for backtrace in -lc... " >&6; }
  22084. if test ${ac_cv_lib_c_backtrace+y}
  22085. then :
  22086. printf %s "(cached) " >&6
  22087. else $as_nop
  22088. ac_check_lib_save_LIBS=$LIBS
  22089. LIBS="-lc ${pbxlibdir} $LIBS"
  22090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22091. /* end confdefs.h. */
  22092. /* Override any GCC internal prototype to avoid an error.
  22093. Use char because int might match the return type of a GCC
  22094. builtin and then its argument prototype would still apply. */
  22095. char backtrace ();
  22096. int
  22097. main (void)
  22098. {
  22099. return backtrace ();
  22100. ;
  22101. return 0;
  22102. }
  22103. _ACEOF
  22104. if ac_fn_c_try_link "$LINENO"
  22105. then :
  22106. ac_cv_lib_c_backtrace=yes
  22107. else $as_nop
  22108. ac_cv_lib_c_backtrace=no
  22109. fi
  22110. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22111. conftest$ac_exeext conftest.$ac_ext
  22112. LIBS=$ac_check_lib_save_LIBS
  22113. fi
  22114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5
  22115. printf "%s\n" "$ac_cv_lib_c_backtrace" >&6; }
  22116. if test "x$ac_cv_lib_c_backtrace" = xyes
  22117. then :
  22118. AST_BKTR_FOUND=yes
  22119. else $as_nop
  22120. AST_BKTR_FOUND=no
  22121. fi
  22122. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22123. # now check for the header.
  22124. if test "${AST_BKTR_FOUND}" = "yes"; then
  22125. BKTR_LIB="${pbxlibdir} -lc "
  22126. # if --with-BKTR=DIR has been specified, use it.
  22127. if test "x${BKTR_DIR}" != "x"; then
  22128. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  22129. fi
  22130. BKTR_INCLUDE="${BKTR_INCLUDE} "
  22131. # check for the header
  22132. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22133. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  22134. ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  22135. if test "x$ac_cv_header_execinfo_h" = xyes
  22136. then :
  22137. BKTR_HEADER_FOUND=1
  22138. else $as_nop
  22139. BKTR_HEADER_FOUND=0
  22140. fi
  22141. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22142. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  22143. BKTR_LIB=""
  22144. BKTR_INCLUDE=""
  22145. else
  22146. PBX_BKTR=1
  22147. cat >>confdefs.h <<_ACEOF
  22148. #define HAVE_BKTR 1
  22149. _ACEOF
  22150. fi
  22151. fi
  22152. fi
  22153. if test "x${PBX_BLUETOOTH}" != "x1" -a "${USE_BLUETOOTH}" != "no"; then
  22154. pbxlibdir=""
  22155. # if --with-BLUETOOTH=DIR has been specified, use it.
  22156. if test "x${BLUETOOTH_DIR}" != "x"; then
  22157. if test -d ${BLUETOOTH_DIR}/lib; then
  22158. pbxlibdir="-L${BLUETOOTH_DIR}/lib"
  22159. else
  22160. pbxlibdir="-L${BLUETOOTH_DIR}"
  22161. fi
  22162. fi
  22163. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22164. CFLAGS="${CFLAGS} "
  22165. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ba2str in -lbluetooth" >&5
  22166. printf %s "checking for ba2str in -lbluetooth... " >&6; }
  22167. if test ${ac_cv_lib_bluetooth_ba2str+y}
  22168. then :
  22169. printf %s "(cached) " >&6
  22170. else $as_nop
  22171. ac_check_lib_save_LIBS=$LIBS
  22172. LIBS="-lbluetooth ${pbxlibdir} $LIBS"
  22173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22174. /* end confdefs.h. */
  22175. /* Override any GCC internal prototype to avoid an error.
  22176. Use char because int might match the return type of a GCC
  22177. builtin and then its argument prototype would still apply. */
  22178. char ba2str ();
  22179. int
  22180. main (void)
  22181. {
  22182. return ba2str ();
  22183. ;
  22184. return 0;
  22185. }
  22186. _ACEOF
  22187. if ac_fn_c_try_link "$LINENO"
  22188. then :
  22189. ac_cv_lib_bluetooth_ba2str=yes
  22190. else $as_nop
  22191. ac_cv_lib_bluetooth_ba2str=no
  22192. fi
  22193. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22194. conftest$ac_exeext conftest.$ac_ext
  22195. LIBS=$ac_check_lib_save_LIBS
  22196. fi
  22197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bluetooth_ba2str" >&5
  22198. printf "%s\n" "$ac_cv_lib_bluetooth_ba2str" >&6; }
  22199. if test "x$ac_cv_lib_bluetooth_ba2str" = xyes
  22200. then :
  22201. AST_BLUETOOTH_FOUND=yes
  22202. else $as_nop
  22203. AST_BLUETOOTH_FOUND=no
  22204. fi
  22205. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22206. # now check for the header.
  22207. if test "${AST_BLUETOOTH_FOUND}" = "yes"; then
  22208. BLUETOOTH_LIB="${pbxlibdir} -lbluetooth "
  22209. # if --with-BLUETOOTH=DIR has been specified, use it.
  22210. if test "x${BLUETOOTH_DIR}" != "x"; then
  22211. BLUETOOTH_INCLUDE="-I${BLUETOOTH_DIR}/include"
  22212. fi
  22213. BLUETOOTH_INCLUDE="${BLUETOOTH_INCLUDE} "
  22214. # check for the header
  22215. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22216. CPPFLAGS="${CPPFLAGS} ${BLUETOOTH_INCLUDE}"
  22217. ac_fn_c_check_header_compile "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
  22218. if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes
  22219. then :
  22220. BLUETOOTH_HEADER_FOUND=1
  22221. else $as_nop
  22222. BLUETOOTH_HEADER_FOUND=0
  22223. fi
  22224. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22225. if test "x${BLUETOOTH_HEADER_FOUND}" = "x0" ; then
  22226. BLUETOOTH_LIB=""
  22227. BLUETOOTH_INCLUDE=""
  22228. else
  22229. PBX_BLUETOOTH=1
  22230. cat >>confdefs.h <<_ACEOF
  22231. #define HAVE_BLUETOOTH 1
  22232. _ACEOF
  22233. fi
  22234. fi
  22235. fi
  22236. if test "x${PBX_BEANSTALK}" != "x1" -a "${USE_BEANSTALK}" != "no"; then
  22237. pbxlibdir=""
  22238. # if --with-BEANSTALK=DIR has been specified, use it.
  22239. if test "x${BEANSTALK_DIR}" != "x"; then
  22240. if test -d ${BEANSTALK_DIR}/lib; then
  22241. pbxlibdir="-L${BEANSTALK_DIR}/lib"
  22242. else
  22243. pbxlibdir="-L${BEANSTALK_DIR}"
  22244. fi
  22245. fi
  22246. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22247. CFLAGS="${CFLAGS} "
  22248. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bs_version in -lbeanstalk" >&5
  22249. printf %s "checking for bs_version in -lbeanstalk... " >&6; }
  22250. if test ${ac_cv_lib_beanstalk_bs_version+y}
  22251. then :
  22252. printf %s "(cached) " >&6
  22253. else $as_nop
  22254. ac_check_lib_save_LIBS=$LIBS
  22255. LIBS="-lbeanstalk ${pbxlibdir} $LIBS"
  22256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22257. /* end confdefs.h. */
  22258. /* Override any GCC internal prototype to avoid an error.
  22259. Use char because int might match the return type of a GCC
  22260. builtin and then its argument prototype would still apply. */
  22261. char bs_version ();
  22262. int
  22263. main (void)
  22264. {
  22265. return bs_version ();
  22266. ;
  22267. return 0;
  22268. }
  22269. _ACEOF
  22270. if ac_fn_c_try_link "$LINENO"
  22271. then :
  22272. ac_cv_lib_beanstalk_bs_version=yes
  22273. else $as_nop
  22274. ac_cv_lib_beanstalk_bs_version=no
  22275. fi
  22276. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22277. conftest$ac_exeext conftest.$ac_ext
  22278. LIBS=$ac_check_lib_save_LIBS
  22279. fi
  22280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_beanstalk_bs_version" >&5
  22281. printf "%s\n" "$ac_cv_lib_beanstalk_bs_version" >&6; }
  22282. if test "x$ac_cv_lib_beanstalk_bs_version" = xyes
  22283. then :
  22284. AST_BEANSTALK_FOUND=yes
  22285. else $as_nop
  22286. AST_BEANSTALK_FOUND=no
  22287. fi
  22288. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22289. # now check for the header.
  22290. if test "${AST_BEANSTALK_FOUND}" = "yes"; then
  22291. BEANSTALK_LIB="${pbxlibdir} -lbeanstalk "
  22292. # if --with-BEANSTALK=DIR has been specified, use it.
  22293. if test "x${BEANSTALK_DIR}" != "x"; then
  22294. BEANSTALK_INCLUDE="-I${BEANSTALK_DIR}/include"
  22295. fi
  22296. BEANSTALK_INCLUDE="${BEANSTALK_INCLUDE} "
  22297. # check for the header
  22298. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22299. CPPFLAGS="${CPPFLAGS} ${BEANSTALK_INCLUDE}"
  22300. ac_fn_c_check_header_compile "$LINENO" "beanstalk.h" "ac_cv_header_beanstalk_h" "$ac_includes_default"
  22301. if test "x$ac_cv_header_beanstalk_h" = xyes
  22302. then :
  22303. BEANSTALK_HEADER_FOUND=1
  22304. else $as_nop
  22305. BEANSTALK_HEADER_FOUND=0
  22306. fi
  22307. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22308. if test "x${BEANSTALK_HEADER_FOUND}" = "x0" ; then
  22309. BEANSTALK_LIB=""
  22310. BEANSTALK_INCLUDE=""
  22311. else
  22312. PBX_BEANSTALK=1
  22313. cat >>confdefs.h <<_ACEOF
  22314. #define HAVE_BEANSTALK 1
  22315. _ACEOF
  22316. fi
  22317. fi
  22318. fi
  22319. PG_CONFIG=":"
  22320. if test "${USE_PGSQL}" != "no"; then
  22321. if test "x${PGSQL_DIR}" != "x"; then
  22322. if test -n "$ac_tool_prefix"; then
  22323. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  22324. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  22325. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22326. printf %s "checking for $ac_word... " >&6; }
  22327. if test ${ac_cv_path_PG_CONFIG+y}
  22328. then :
  22329. printf %s "(cached) " >&6
  22330. else $as_nop
  22331. case $PG_CONFIG in
  22332. [\\/]* | ?:[\\/]*)
  22333. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  22334. ;;
  22335. *)
  22336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22337. for as_dir in ${PGSQL_DIR}/bin
  22338. do
  22339. IFS=$as_save_IFS
  22340. case $as_dir in #(((
  22341. '') as_dir=./ ;;
  22342. */) ;;
  22343. *) as_dir=$as_dir/ ;;
  22344. esac
  22345. for ac_exec_ext in '' $ac_executable_extensions; do
  22346. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  22347. ac_cv_path_PG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  22348. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  22349. break 2
  22350. fi
  22351. done
  22352. done
  22353. IFS=$as_save_IFS
  22354. ;;
  22355. esac
  22356. fi
  22357. PG_CONFIG=$ac_cv_path_PG_CONFIG
  22358. if test -n "$PG_CONFIG"; then
  22359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  22360. printf "%s\n" "$PG_CONFIG" >&6; }
  22361. else
  22362. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22363. printf "%s\n" "no" >&6; }
  22364. fi
  22365. fi
  22366. if test -z "$ac_cv_path_PG_CONFIG"; then
  22367. ac_pt_PG_CONFIG=$PG_CONFIG
  22368. # Extract the first word of "pg_config", so it can be a program name with args.
  22369. set dummy pg_config; ac_word=$2
  22370. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22371. printf %s "checking for $ac_word... " >&6; }
  22372. if test ${ac_cv_path_ac_pt_PG_CONFIG+y}
  22373. then :
  22374. printf %s "(cached) " >&6
  22375. else $as_nop
  22376. case $ac_pt_PG_CONFIG in
  22377. [\\/]* | ?:[\\/]*)
  22378. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  22379. ;;
  22380. *)
  22381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22382. for as_dir in ${PGSQL_DIR}/bin
  22383. do
  22384. IFS=$as_save_IFS
  22385. case $as_dir in #(((
  22386. '') as_dir=./ ;;
  22387. */) ;;
  22388. *) as_dir=$as_dir/ ;;
  22389. esac
  22390. for ac_exec_ext in '' $ac_executable_extensions; do
  22391. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  22392. ac_cv_path_ac_pt_PG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  22393. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  22394. break 2
  22395. fi
  22396. done
  22397. done
  22398. IFS=$as_save_IFS
  22399. ;;
  22400. esac
  22401. fi
  22402. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  22403. if test -n "$ac_pt_PG_CONFIG"; then
  22404. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  22405. printf "%s\n" "$ac_pt_PG_CONFIG" >&6; }
  22406. else
  22407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22408. printf "%s\n" "no" >&6; }
  22409. fi
  22410. if test "x$ac_pt_PG_CONFIG" = x; then
  22411. PG_CONFIG=":"
  22412. else
  22413. case $cross_compiling:$ac_tool_warned in
  22414. yes:)
  22415. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22416. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22417. ac_tool_warned=yes ;;
  22418. esac
  22419. PG_CONFIG=$ac_pt_PG_CONFIG
  22420. fi
  22421. else
  22422. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  22423. fi
  22424. if test "${PG_CONFIG}" = ":"; then
  22425. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***" >&5
  22426. printf "%s\n" "$as_me: ***" >&6;}
  22427. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** pg_config was not found in the path you specified:" >&5
  22428. printf "%s\n" "$as_me: *** pg_config was not found in the path you specified:" >&6;}
  22429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** ${PGSQL_DIR}/bin" >&5
  22430. printf "%s\n" "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
  22431. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  22432. printf "%s\n" "$as_me: *** Either correct the installation, or run configure" >&6;}
  22433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  22434. printf "%s\n" "$as_me: *** including --without-postgres" >&6;}
  22435. exit 1
  22436. fi
  22437. else
  22438. if test -n "$ac_tool_prefix"; then
  22439. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  22440. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  22441. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22442. printf %s "checking for $ac_word... " >&6; }
  22443. if test ${ac_cv_path_PG_CONFIG+y}
  22444. then :
  22445. printf %s "(cached) " >&6
  22446. else $as_nop
  22447. case $PG_CONFIG in
  22448. [\\/]* | ?:[\\/]*)
  22449. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  22450. ;;
  22451. *)
  22452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22453. for as_dir in $PATH
  22454. do
  22455. IFS=$as_save_IFS
  22456. case $as_dir in #(((
  22457. '') as_dir=./ ;;
  22458. */) ;;
  22459. *) as_dir=$as_dir/ ;;
  22460. esac
  22461. for ac_exec_ext in '' $ac_executable_extensions; do
  22462. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  22463. ac_cv_path_PG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  22464. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  22465. break 2
  22466. fi
  22467. done
  22468. done
  22469. IFS=$as_save_IFS
  22470. ;;
  22471. esac
  22472. fi
  22473. PG_CONFIG=$ac_cv_path_PG_CONFIG
  22474. if test -n "$PG_CONFIG"; then
  22475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  22476. printf "%s\n" "$PG_CONFIG" >&6; }
  22477. else
  22478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22479. printf "%s\n" "no" >&6; }
  22480. fi
  22481. fi
  22482. if test -z "$ac_cv_path_PG_CONFIG"; then
  22483. ac_pt_PG_CONFIG=$PG_CONFIG
  22484. # Extract the first word of "pg_config", so it can be a program name with args.
  22485. set dummy pg_config; ac_word=$2
  22486. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22487. printf %s "checking for $ac_word... " >&6; }
  22488. if test ${ac_cv_path_ac_pt_PG_CONFIG+y}
  22489. then :
  22490. printf %s "(cached) " >&6
  22491. else $as_nop
  22492. case $ac_pt_PG_CONFIG in
  22493. [\\/]* | ?:[\\/]*)
  22494. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  22495. ;;
  22496. *)
  22497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22498. for as_dir in $PATH
  22499. do
  22500. IFS=$as_save_IFS
  22501. case $as_dir in #(((
  22502. '') as_dir=./ ;;
  22503. */) ;;
  22504. *) as_dir=$as_dir/ ;;
  22505. esac
  22506. for ac_exec_ext in '' $ac_executable_extensions; do
  22507. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  22508. ac_cv_path_ac_pt_PG_CONFIG="$as_dir$ac_word$ac_exec_ext"
  22509. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  22510. break 2
  22511. fi
  22512. done
  22513. done
  22514. IFS=$as_save_IFS
  22515. ;;
  22516. esac
  22517. fi
  22518. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  22519. if test -n "$ac_pt_PG_CONFIG"; then
  22520. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  22521. printf "%s\n" "$ac_pt_PG_CONFIG" >&6; }
  22522. else
  22523. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22524. printf "%s\n" "no" >&6; }
  22525. fi
  22526. if test "x$ac_pt_PG_CONFIG" = x; then
  22527. PG_CONFIG=":"
  22528. else
  22529. case $cross_compiling:$ac_tool_warned in
  22530. yes:)
  22531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22532. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22533. ac_tool_warned=yes ;;
  22534. esac
  22535. PG_CONFIG=$ac_pt_PG_CONFIG
  22536. fi
  22537. else
  22538. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  22539. fi
  22540. fi
  22541. fi
  22542. if test "x${PG_CONFIG}" != "x:"; then
  22543. PGSQL_libdir=`${PG_CONFIG} --libdir`
  22544. PGSQL_includedir=`${PG_CONFIG} --includedir`
  22545. if test "x$?" != "x0" ; then
  22546. if test -n "${PGSQL_MANDATORY}" ; then
  22547. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***" >&5
  22548. printf "%s\n" "$as_me: ***" >&6;}
  22549. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  22550. printf "%s\n" "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  22551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  22552. printf "%s\n" "$as_me: *** Either correct the installation, or run configure" >&6;}
  22553. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  22554. printf "%s\n" "$as_me: *** including --without-postgres" >&6;}
  22555. exit 1
  22556. fi
  22557. else
  22558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
  22559. printf %s "checking for PQescapeStringConn in -lpq... " >&6; }
  22560. if test ${ac_cv_lib_pq_PQescapeStringConn+y}
  22561. then :
  22562. printf %s "(cached) " >&6
  22563. else $as_nop
  22564. ac_check_lib_save_LIBS=$LIBS
  22565. LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
  22566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22567. /* end confdefs.h. */
  22568. /* Override any GCC internal prototype to avoid an error.
  22569. Use char because int might match the return type of a GCC
  22570. builtin and then its argument prototype would still apply. */
  22571. char PQescapeStringConn ();
  22572. int
  22573. main (void)
  22574. {
  22575. return PQescapeStringConn ();
  22576. ;
  22577. return 0;
  22578. }
  22579. _ACEOF
  22580. if ac_fn_c_try_link "$LINENO"
  22581. then :
  22582. ac_cv_lib_pq_PQescapeStringConn=yes
  22583. else $as_nop
  22584. ac_cv_lib_pq_PQescapeStringConn=no
  22585. fi
  22586. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22587. conftest$ac_exeext conftest.$ac_ext
  22588. LIBS=$ac_check_lib_save_LIBS
  22589. fi
  22590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
  22591. printf "%s\n" "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
  22592. if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes
  22593. then :
  22594. printf "%s\n" "#define HAVE_PGSQL 1" >>confdefs.h
  22595. fi
  22596. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char within Postgres headers" >&5
  22597. printf %s "checking for pg_encoding_to_char within Postgres headers... " >&6; }
  22598. old_CFLAGS=${CFLAGS}
  22599. CFLAGS="${CFLAGS} -I${PGSQL_includedir} -Werror"
  22600. old_LDFLAGS=${LDFLAGS}
  22601. LDFLAGS="${LDFLAGS} -L${PGSQL_libdir} -lpq -lz"
  22602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22603. /* end confdefs.h. */
  22604. #include <libpq-fe.h>
  22605. int
  22606. main (void)
  22607. {
  22608. const char *foo = pg_encoding_to_char(1)
  22609. ;
  22610. return 0;
  22611. }
  22612. _ACEOF
  22613. if ac_fn_c_try_link "$LINENO"
  22614. then :
  22615. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22616. printf "%s\n" "yes" >&6; }
  22617. printf "%s\n" "#define HAVE_PGSQL_pg_encoding_to_char 1" >>confdefs.h
  22618. else $as_nop
  22619. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22620. printf "%s\n" "no" >&6; }
  22621. fi
  22622. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22623. conftest$ac_exeext conftest.$ac_ext
  22624. CFLAGS=${old_CFLAGS}
  22625. LDFLAGS=${old_LDFLAGS}
  22626. if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
  22627. PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
  22628. PGSQL_INCLUDE="-I${PGSQL_includedir}"
  22629. PBX_PGSQL=1
  22630. elif test -n "${PGSQL_MANDATORY}";
  22631. then
  22632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***" >&5
  22633. printf "%s\n" "$as_me: ***" >&6;}
  22634. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  22635. printf "%s\n" "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  22636. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  22637. printf "%s\n" "$as_me: *** Either correct the installation, or run configure" >&6;}
  22638. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  22639. printf "%s\n" "$as_me: *** including --without-postgres" >&6;}
  22640. exit 1
  22641. fi
  22642. fi
  22643. fi
  22644. if test "$USE_PJPROJECT" != "no" ; then
  22645. if test "$PJPROJECT_BUNDLED" = "no" ; then
  22646. if test "x${PBX_PJPROJECT}" != "x1" -a "${USE_PJPROJECT}" != "no"; then
  22647. pkg_failed=no
  22648. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpjproject" >&5
  22649. printf %s "checking for libpjproject... " >&6; }
  22650. if test -n "$PJPROJECT_CFLAGS"; then
  22651. pkg_cv_PJPROJECT_CFLAGS="$PJPROJECT_CFLAGS"
  22652. elif test -n "$PKG_CONFIG"; then
  22653. if test -n "$PKG_CONFIG" && \
  22654. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpjproject\""; } >&5
  22655. ($PKG_CONFIG --exists --print-errors "libpjproject") 2>&5
  22656. ac_status=$?
  22657. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22658. test $ac_status = 0; }; then
  22659. pkg_cv_PJPROJECT_CFLAGS=`$PKG_CONFIG --cflags "libpjproject" 2>/dev/null`
  22660. test "x$?" != "x0" && pkg_failed=yes
  22661. else
  22662. pkg_failed=yes
  22663. fi
  22664. else
  22665. pkg_failed=untried
  22666. fi
  22667. if test -n "$PJPROJECT_LIBS"; then
  22668. pkg_cv_PJPROJECT_LIBS="$PJPROJECT_LIBS"
  22669. elif test -n "$PKG_CONFIG"; then
  22670. if test -n "$PKG_CONFIG" && \
  22671. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpjproject\""; } >&5
  22672. ($PKG_CONFIG --exists --print-errors "libpjproject") 2>&5
  22673. ac_status=$?
  22674. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22675. test $ac_status = 0; }; then
  22676. pkg_cv_PJPROJECT_LIBS=`$PKG_CONFIG --libs "libpjproject" 2>/dev/null`
  22677. test "x$?" != "x0" && pkg_failed=yes
  22678. else
  22679. pkg_failed=yes
  22680. fi
  22681. else
  22682. pkg_failed=untried
  22683. fi
  22684. if test $pkg_failed = yes; then
  22685. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22686. printf "%s\n" "no" >&6; }
  22687. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  22688. _pkg_short_errors_supported=yes
  22689. else
  22690. _pkg_short_errors_supported=no
  22691. fi
  22692. if test $_pkg_short_errors_supported = yes; then
  22693. PJPROJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpjproject" 2>&1`
  22694. else
  22695. PJPROJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpjproject" 2>&1`
  22696. fi
  22697. # Put the nasty error message in config.log where it belongs
  22698. echo "$PJPROJECT_PKG_ERRORS" >&5
  22699. PBX_PJPROJECT=0
  22700. elif test $pkg_failed = untried; then
  22701. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22702. printf "%s\n" "no" >&6; }
  22703. PBX_PJPROJECT=0
  22704. else
  22705. PJPROJECT_CFLAGS=$pkg_cv_PJPROJECT_CFLAGS
  22706. PJPROJECT_LIBS=$pkg_cv_PJPROJECT_LIBS
  22707. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22708. printf "%s\n" "yes" >&6; }
  22709. PBX_PJPROJECT=1
  22710. PJPROJECT_INCLUDE=$(echo ${PJPROJECT_CFLAGS} | $SED -e "s|-std=c99||g")
  22711. PJPROJECT_LIB="$PJPROJECT_LIBS"
  22712. printf "%s\n" "#define HAVE_PJPROJECT 1" >>confdefs.h
  22713. fi
  22714. fi
  22715. if test "x$PBX_PJPROJECT" = "x1" ; then
  22716. if test "x${PBX_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK}" != "x1" -a "${USE_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK}" != "no"; then
  22717. pbxlibdir=""
  22718. # if --with-PJSIP_DLG_CREATE_UAS_AND_INC_LOCK=DIR has been specified, use it.
  22719. if test "x${PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_DIR}" != "x"; then
  22720. if test -d ${PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_DIR}/lib; then
  22721. pbxlibdir="-L${PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_DIR}/lib"
  22722. else
  22723. pbxlibdir="-L${PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_DIR}"
  22724. fi
  22725. fi
  22726. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22727. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  22728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pjsip_dlg_create_uas_and_inc_lock in -lpjsip" >&5
  22729. printf %s "checking for pjsip_dlg_create_uas_and_inc_lock in -lpjsip... " >&6; }
  22730. if test ${ac_cv_lib_pjsip_pjsip_dlg_create_uas_and_inc_lock+y}
  22731. then :
  22732. printf %s "(cached) " >&6
  22733. else $as_nop
  22734. ac_check_lib_save_LIBS=$LIBS
  22735. LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_LIB $LIBS"
  22736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22737. /* end confdefs.h. */
  22738. /* Override any GCC internal prototype to avoid an error.
  22739. Use char because int might match the return type of a GCC
  22740. builtin and then its argument prototype would still apply. */
  22741. char pjsip_dlg_create_uas_and_inc_lock ();
  22742. int
  22743. main (void)
  22744. {
  22745. return pjsip_dlg_create_uas_and_inc_lock ();
  22746. ;
  22747. return 0;
  22748. }
  22749. _ACEOF
  22750. if ac_fn_c_try_link "$LINENO"
  22751. then :
  22752. ac_cv_lib_pjsip_pjsip_dlg_create_uas_and_inc_lock=yes
  22753. else $as_nop
  22754. ac_cv_lib_pjsip_pjsip_dlg_create_uas_and_inc_lock=no
  22755. fi
  22756. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22757. conftest$ac_exeext conftest.$ac_ext
  22758. LIBS=$ac_check_lib_save_LIBS
  22759. fi
  22760. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pjsip_pjsip_dlg_create_uas_and_inc_lock" >&5
  22761. printf "%s\n" "$ac_cv_lib_pjsip_pjsip_dlg_create_uas_and_inc_lock" >&6; }
  22762. if test "x$ac_cv_lib_pjsip_pjsip_dlg_create_uas_and_inc_lock" = xyes
  22763. then :
  22764. AST_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_FOUND=yes
  22765. else $as_nop
  22766. AST_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_FOUND=no
  22767. fi
  22768. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22769. # now check for the header.
  22770. if test "${AST_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_FOUND}" = "yes"; then
  22771. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIB"
  22772. # if --with-PJSIP_DLG_CREATE_UAS_AND_INC_LOCK=DIR has been specified, use it.
  22773. if test "x${PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_DIR}" != "x"; then
  22774. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_INCLUDE="-I${PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_DIR}/include"
  22775. fi
  22776. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_INCLUDE="${PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_INCLUDE} $PJPROJECT_CFLAGS"
  22777. # check for the header
  22778. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22779. CPPFLAGS="${CPPFLAGS} ${PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_INCLUDE}"
  22780. ac_fn_c_check_header_compile "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
  22781. if test "x$ac_cv_header_pjsip_h" = xyes
  22782. then :
  22783. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_HEADER_FOUND=1
  22784. else $as_nop
  22785. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_HEADER_FOUND=0
  22786. fi
  22787. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22788. if test "x${PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_HEADER_FOUND}" = "x0" ; then
  22789. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_LIB=""
  22790. PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_INCLUDE=""
  22791. else
  22792. PBX_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK=1
  22793. cat >>confdefs.h <<_ACEOF
  22794. #define HAVE_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK 1
  22795. _ACEOF
  22796. fi
  22797. fi
  22798. fi
  22799. if test "x${PBX_PJ_TRANSACTION_GRP_LOCK}" != "x1" -a "${USE_PJ_TRANSACTION_GRP_LOCK}" != "no"; then
  22800. pbxlibdir=""
  22801. # if --with-PJ_TRANSACTION_GRP_LOCK=DIR has been specified, use it.
  22802. if test "x${PJ_TRANSACTION_GRP_LOCK_DIR}" != "x"; then
  22803. if test -d ${PJ_TRANSACTION_GRP_LOCK_DIR}/lib; then
  22804. pbxlibdir="-L${PJ_TRANSACTION_GRP_LOCK_DIR}/lib"
  22805. else
  22806. pbxlibdir="-L${PJ_TRANSACTION_GRP_LOCK_DIR}"
  22807. fi
  22808. fi
  22809. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22810. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  22811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pjsip_tsx_create_uac2 in -lpjsip" >&5
  22812. printf %s "checking for pjsip_tsx_create_uac2 in -lpjsip... " >&6; }
  22813. if test ${ac_cv_lib_pjsip_pjsip_tsx_create_uac2+y}
  22814. then :
  22815. printf %s "(cached) " >&6
  22816. else $as_nop
  22817. ac_check_lib_save_LIBS=$LIBS
  22818. LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_LIB $LIBS"
  22819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22820. /* end confdefs.h. */
  22821. /* Override any GCC internal prototype to avoid an error.
  22822. Use char because int might match the return type of a GCC
  22823. builtin and then its argument prototype would still apply. */
  22824. char pjsip_tsx_create_uac2 ();
  22825. int
  22826. main (void)
  22827. {
  22828. return pjsip_tsx_create_uac2 ();
  22829. ;
  22830. return 0;
  22831. }
  22832. _ACEOF
  22833. if ac_fn_c_try_link "$LINENO"
  22834. then :
  22835. ac_cv_lib_pjsip_pjsip_tsx_create_uac2=yes
  22836. else $as_nop
  22837. ac_cv_lib_pjsip_pjsip_tsx_create_uac2=no
  22838. fi
  22839. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22840. conftest$ac_exeext conftest.$ac_ext
  22841. LIBS=$ac_check_lib_save_LIBS
  22842. fi
  22843. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pjsip_pjsip_tsx_create_uac2" >&5
  22844. printf "%s\n" "$ac_cv_lib_pjsip_pjsip_tsx_create_uac2" >&6; }
  22845. if test "x$ac_cv_lib_pjsip_pjsip_tsx_create_uac2" = xyes
  22846. then :
  22847. AST_PJ_TRANSACTION_GRP_LOCK_FOUND=yes
  22848. else $as_nop
  22849. AST_PJ_TRANSACTION_GRP_LOCK_FOUND=no
  22850. fi
  22851. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22852. # now check for the header.
  22853. if test "${AST_PJ_TRANSACTION_GRP_LOCK_FOUND}" = "yes"; then
  22854. PJ_TRANSACTION_GRP_LOCK_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIB"
  22855. # if --with-PJ_TRANSACTION_GRP_LOCK=DIR has been specified, use it.
  22856. if test "x${PJ_TRANSACTION_GRP_LOCK_DIR}" != "x"; then
  22857. PJ_TRANSACTION_GRP_LOCK_INCLUDE="-I${PJ_TRANSACTION_GRP_LOCK_DIR}/include"
  22858. fi
  22859. PJ_TRANSACTION_GRP_LOCK_INCLUDE="${PJ_TRANSACTION_GRP_LOCK_INCLUDE} $PJPROJECT_CFLAGS"
  22860. # check for the header
  22861. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22862. CPPFLAGS="${CPPFLAGS} ${PJ_TRANSACTION_GRP_LOCK_INCLUDE}"
  22863. ac_fn_c_check_header_compile "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
  22864. if test "x$ac_cv_header_pjsip_h" = xyes
  22865. then :
  22866. PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND=1
  22867. else $as_nop
  22868. PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND=0
  22869. fi
  22870. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22871. if test "x${PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND}" = "x0" ; then
  22872. PJ_TRANSACTION_GRP_LOCK_LIB=""
  22873. PJ_TRANSACTION_GRP_LOCK_INCLUDE=""
  22874. else
  22875. PBX_PJ_TRANSACTION_GRP_LOCK=1
  22876. cat >>confdefs.h <<_ACEOF
  22877. #define HAVE_PJ_TRANSACTION_GRP_LOCK 1
  22878. _ACEOF
  22879. fi
  22880. fi
  22881. fi
  22882. saved_cppflags="${CPPFLAGS}"
  22883. saved_libs="${LIBS}"
  22884. CPPFLAGS="${CPPFLAGS} ${PJPROJECT_CFLAGS}"
  22885. LIBS="${LIBS} ${PJPROJECT_LIB}"
  22886. if test "x${PBX_PJSIP_REPLACE_MEDIA_STREAM}" != "x1" -a "${USE_PJSIP_REPLACE_MEDIA_STREAM}" != "no"; then
  22887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE\" compiles using pjmedia.h" >&5
  22888. printf %s "checking if \"pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE\" compiles using pjmedia.h... " >&6; }
  22889. saved_cppflags="${CPPFLAGS}"
  22890. if test "x${PJSIP_REPLACE_MEDIA_STREAM_DIR}" != "x"; then
  22891. PJSIP_REPLACE_MEDIA_STREAM_INCLUDE="-I${PJSIP_REPLACE_MEDIA_STREAM_DIR}/include"
  22892. fi
  22893. CPPFLAGS="${CPPFLAGS} ${PJSIP_REPLACE_MEDIA_STREAM_INCLUDE}"
  22894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22895. /* end confdefs.h. */
  22896. #include <pjmedia.h>
  22897. int
  22898. main (void)
  22899. {
  22900. pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE;
  22901. ;
  22902. return 0;
  22903. }
  22904. _ACEOF
  22905. if ac_fn_c_try_compile "$LINENO"
  22906. then :
  22907. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22908. printf "%s\n" "yes" >&6; }
  22909. PBX_PJSIP_REPLACE_MEDIA_STREAM=1
  22910. printf "%s\n" "#define HAVE_PJSIP_REPLACE_MEDIA_STREAM 1" >>confdefs.h
  22911. else $as_nop
  22912. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22913. printf "%s\n" "no" >&6; }
  22914. fi
  22915. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  22916. CPPFLAGS="${saved_cppflags}"
  22917. fi
  22918. LIBS="${saved_libs}"
  22919. CPPFLAGS="${saved_cppflags}"
  22920. if test "x${PBX_PJSIP_GET_DEST_INFO}" != "x1" -a "${USE_PJSIP_GET_DEST_INFO}" != "no"; then
  22921. pbxlibdir=""
  22922. # if --with-PJSIP_GET_DEST_INFO=DIR has been specified, use it.
  22923. if test "x${PJSIP_GET_DEST_INFO_DIR}" != "x"; then
  22924. if test -d ${PJSIP_GET_DEST_INFO_DIR}/lib; then
  22925. pbxlibdir="-L${PJSIP_GET_DEST_INFO_DIR}/lib"
  22926. else
  22927. pbxlibdir="-L${PJSIP_GET_DEST_INFO_DIR}"
  22928. fi
  22929. fi
  22930. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22931. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  22932. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pjsip_get_dest_info in -lpjsip" >&5
  22933. printf %s "checking for pjsip_get_dest_info in -lpjsip... " >&6; }
  22934. if test ${ac_cv_lib_pjsip_pjsip_get_dest_info+y}
  22935. then :
  22936. printf %s "(cached) " >&6
  22937. else $as_nop
  22938. ac_check_lib_save_LIBS=$LIBS
  22939. LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_LIB $LIBS"
  22940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22941. /* end confdefs.h. */
  22942. /* Override any GCC internal prototype to avoid an error.
  22943. Use char because int might match the return type of a GCC
  22944. builtin and then its argument prototype would still apply. */
  22945. char pjsip_get_dest_info ();
  22946. int
  22947. main (void)
  22948. {
  22949. return pjsip_get_dest_info ();
  22950. ;
  22951. return 0;
  22952. }
  22953. _ACEOF
  22954. if ac_fn_c_try_link "$LINENO"
  22955. then :
  22956. ac_cv_lib_pjsip_pjsip_get_dest_info=yes
  22957. else $as_nop
  22958. ac_cv_lib_pjsip_pjsip_get_dest_info=no
  22959. fi
  22960. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  22961. conftest$ac_exeext conftest.$ac_ext
  22962. LIBS=$ac_check_lib_save_LIBS
  22963. fi
  22964. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pjsip_pjsip_get_dest_info" >&5
  22965. printf "%s\n" "$ac_cv_lib_pjsip_pjsip_get_dest_info" >&6; }
  22966. if test "x$ac_cv_lib_pjsip_pjsip_get_dest_info" = xyes
  22967. then :
  22968. AST_PJSIP_GET_DEST_INFO_FOUND=yes
  22969. else $as_nop
  22970. AST_PJSIP_GET_DEST_INFO_FOUND=no
  22971. fi
  22972. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22973. # now check for the header.
  22974. if test "${AST_PJSIP_GET_DEST_INFO_FOUND}" = "yes"; then
  22975. PJSIP_GET_DEST_INFO_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIB"
  22976. # if --with-PJSIP_GET_DEST_INFO=DIR has been specified, use it.
  22977. if test "x${PJSIP_GET_DEST_INFO_DIR}" != "x"; then
  22978. PJSIP_GET_DEST_INFO_INCLUDE="-I${PJSIP_GET_DEST_INFO_DIR}/include"
  22979. fi
  22980. PJSIP_GET_DEST_INFO_INCLUDE="${PJSIP_GET_DEST_INFO_INCLUDE} $PJPROJECT_CFLAGS"
  22981. # check for the header
  22982. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22983. CPPFLAGS="${CPPFLAGS} ${PJSIP_GET_DEST_INFO_INCLUDE}"
  22984. ac_fn_c_check_header_compile "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
  22985. if test "x$ac_cv_header_pjsip_h" = xyes
  22986. then :
  22987. PJSIP_GET_DEST_INFO_HEADER_FOUND=1
  22988. else $as_nop
  22989. PJSIP_GET_DEST_INFO_HEADER_FOUND=0
  22990. fi
  22991. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22992. if test "x${PJSIP_GET_DEST_INFO_HEADER_FOUND}" = "x0" ; then
  22993. PJSIP_GET_DEST_INFO_LIB=""
  22994. PJSIP_GET_DEST_INFO_INCLUDE=""
  22995. else
  22996. PBX_PJSIP_GET_DEST_INFO=1
  22997. cat >>confdefs.h <<_ACEOF
  22998. #define HAVE_PJSIP_GET_DEST_INFO 1
  22999. _ACEOF
  23000. fi
  23001. fi
  23002. fi
  23003. if test "x${PBX_PJ_SSL_CERT_LOAD_FROM_FILES2}" != "x1" -a "${USE_PJ_SSL_CERT_LOAD_FROM_FILES2}" != "no"; then
  23004. pbxlibdir=""
  23005. # if --with-PJ_SSL_CERT_LOAD_FROM_FILES2=DIR has been specified, use it.
  23006. if test "x${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}" != "x"; then
  23007. if test -d ${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}/lib; then
  23008. pbxlibdir="-L${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}/lib"
  23009. else
  23010. pbxlibdir="-L${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}"
  23011. fi
  23012. fi
  23013. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23014. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  23015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pj_ssl_cert_load_from_files2 in -lpj" >&5
  23016. printf %s "checking for pj_ssl_cert_load_from_files2 in -lpj... " >&6; }
  23017. if test ${ac_cv_lib_pj_pj_ssl_cert_load_from_files2+y}
  23018. then :
  23019. printf %s "(cached) " >&6
  23020. else $as_nop
  23021. ac_check_lib_save_LIBS=$LIBS
  23022. LIBS="-lpj ${pbxlibdir} $PJPROJECT_LIB $LIBS"
  23023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23024. /* end confdefs.h. */
  23025. /* Override any GCC internal prototype to avoid an error.
  23026. Use char because int might match the return type of a GCC
  23027. builtin and then its argument prototype would still apply. */
  23028. char pj_ssl_cert_load_from_files2 ();
  23029. int
  23030. main (void)
  23031. {
  23032. return pj_ssl_cert_load_from_files2 ();
  23033. ;
  23034. return 0;
  23035. }
  23036. _ACEOF
  23037. if ac_fn_c_try_link "$LINENO"
  23038. then :
  23039. ac_cv_lib_pj_pj_ssl_cert_load_from_files2=yes
  23040. else $as_nop
  23041. ac_cv_lib_pj_pj_ssl_cert_load_from_files2=no
  23042. fi
  23043. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23044. conftest$ac_exeext conftest.$ac_ext
  23045. LIBS=$ac_check_lib_save_LIBS
  23046. fi
  23047. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pj_pj_ssl_cert_load_from_files2" >&5
  23048. printf "%s\n" "$ac_cv_lib_pj_pj_ssl_cert_load_from_files2" >&6; }
  23049. if test "x$ac_cv_lib_pj_pj_ssl_cert_load_from_files2" = xyes
  23050. then :
  23051. AST_PJ_SSL_CERT_LOAD_FROM_FILES2_FOUND=yes
  23052. else $as_nop
  23053. AST_PJ_SSL_CERT_LOAD_FROM_FILES2_FOUND=no
  23054. fi
  23055. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23056. # now check for the header.
  23057. if test "${AST_PJ_SSL_CERT_LOAD_FROM_FILES2_FOUND}" = "yes"; then
  23058. PJ_SSL_CERT_LOAD_FROM_FILES2_LIB="${pbxlibdir} -lpj $PJPROJECT_LIB"
  23059. # if --with-PJ_SSL_CERT_LOAD_FROM_FILES2=DIR has been specified, use it.
  23060. if test "x${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}" != "x"; then
  23061. PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE="-I${PJ_SSL_CERT_LOAD_FROM_FILES2_DIR}/include"
  23062. fi
  23063. PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE="${PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE} $PJPROJECT_CFLAGS"
  23064. # check for the header
  23065. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23066. CPPFLAGS="${CPPFLAGS} ${PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE}"
  23067. ac_fn_c_check_header_compile "$LINENO" "pjlib.h" "ac_cv_header_pjlib_h" "$ac_includes_default"
  23068. if test "x$ac_cv_header_pjlib_h" = xyes
  23069. then :
  23070. PJ_SSL_CERT_LOAD_FROM_FILES2_HEADER_FOUND=1
  23071. else $as_nop
  23072. PJ_SSL_CERT_LOAD_FROM_FILES2_HEADER_FOUND=0
  23073. fi
  23074. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23075. if test "x${PJ_SSL_CERT_LOAD_FROM_FILES2_HEADER_FOUND}" = "x0" ; then
  23076. PJ_SSL_CERT_LOAD_FROM_FILES2_LIB=""
  23077. PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE=""
  23078. else
  23079. PBX_PJ_SSL_CERT_LOAD_FROM_FILES2=1
  23080. cat >>confdefs.h <<_ACEOF
  23081. #define HAVE_PJ_SSL_CERT_LOAD_FROM_FILES2 1
  23082. _ACEOF
  23083. fi
  23084. fi
  23085. fi
  23086. if test "x${PBX_PJSIP_EXTERNAL_RESOLVER}" != "x1" -a "${USE_PJSIP_EXTERNAL_RESOLVER}" != "no"; then
  23087. pbxlibdir=""
  23088. # if --with-PJSIP_EXTERNAL_RESOLVER=DIR has been specified, use it.
  23089. if test "x${PJSIP_EXTERNAL_RESOLVER_DIR}" != "x"; then
  23090. if test -d ${PJSIP_EXTERNAL_RESOLVER_DIR}/lib; then
  23091. pbxlibdir="-L${PJSIP_EXTERNAL_RESOLVER_DIR}/lib"
  23092. else
  23093. pbxlibdir="-L${PJSIP_EXTERNAL_RESOLVER_DIR}"
  23094. fi
  23095. fi
  23096. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23097. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  23098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pjsip_endpt_set_ext_resolver in -lpjsip" >&5
  23099. printf %s "checking for pjsip_endpt_set_ext_resolver in -lpjsip... " >&6; }
  23100. if test ${ac_cv_lib_pjsip_pjsip_endpt_set_ext_resolver+y}
  23101. then :
  23102. printf %s "(cached) " >&6
  23103. else $as_nop
  23104. ac_check_lib_save_LIBS=$LIBS
  23105. LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_LIB $LIBS"
  23106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23107. /* end confdefs.h. */
  23108. /* Override any GCC internal prototype to avoid an error.
  23109. Use char because int might match the return type of a GCC
  23110. builtin and then its argument prototype would still apply. */
  23111. char pjsip_endpt_set_ext_resolver ();
  23112. int
  23113. main (void)
  23114. {
  23115. return pjsip_endpt_set_ext_resolver ();
  23116. ;
  23117. return 0;
  23118. }
  23119. _ACEOF
  23120. if ac_fn_c_try_link "$LINENO"
  23121. then :
  23122. ac_cv_lib_pjsip_pjsip_endpt_set_ext_resolver=yes
  23123. else $as_nop
  23124. ac_cv_lib_pjsip_pjsip_endpt_set_ext_resolver=no
  23125. fi
  23126. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23127. conftest$ac_exeext conftest.$ac_ext
  23128. LIBS=$ac_check_lib_save_LIBS
  23129. fi
  23130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pjsip_pjsip_endpt_set_ext_resolver" >&5
  23131. printf "%s\n" "$ac_cv_lib_pjsip_pjsip_endpt_set_ext_resolver" >&6; }
  23132. if test "x$ac_cv_lib_pjsip_pjsip_endpt_set_ext_resolver" = xyes
  23133. then :
  23134. AST_PJSIP_EXTERNAL_RESOLVER_FOUND=yes
  23135. else $as_nop
  23136. AST_PJSIP_EXTERNAL_RESOLVER_FOUND=no
  23137. fi
  23138. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23139. # now check for the header.
  23140. if test "${AST_PJSIP_EXTERNAL_RESOLVER_FOUND}" = "yes"; then
  23141. PJSIP_EXTERNAL_RESOLVER_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIB"
  23142. # if --with-PJSIP_EXTERNAL_RESOLVER=DIR has been specified, use it.
  23143. if test "x${PJSIP_EXTERNAL_RESOLVER_DIR}" != "x"; then
  23144. PJSIP_EXTERNAL_RESOLVER_INCLUDE="-I${PJSIP_EXTERNAL_RESOLVER_DIR}/include"
  23145. fi
  23146. PJSIP_EXTERNAL_RESOLVER_INCLUDE="${PJSIP_EXTERNAL_RESOLVER_INCLUDE} $PJPROJECT_CFLAGS"
  23147. # check for the header
  23148. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23149. CPPFLAGS="${CPPFLAGS} ${PJSIP_EXTERNAL_RESOLVER_INCLUDE}"
  23150. ac_fn_c_check_header_compile "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
  23151. if test "x$ac_cv_header_pjsip_h" = xyes
  23152. then :
  23153. PJSIP_EXTERNAL_RESOLVER_HEADER_FOUND=1
  23154. else $as_nop
  23155. PJSIP_EXTERNAL_RESOLVER_HEADER_FOUND=0
  23156. fi
  23157. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23158. if test "x${PJSIP_EXTERNAL_RESOLVER_HEADER_FOUND}" = "x0" ; then
  23159. PJSIP_EXTERNAL_RESOLVER_LIB=""
  23160. PJSIP_EXTERNAL_RESOLVER_INCLUDE=""
  23161. else
  23162. PBX_PJSIP_EXTERNAL_RESOLVER=1
  23163. cat >>confdefs.h <<_ACEOF
  23164. #define HAVE_PJSIP_EXTERNAL_RESOLVER 1
  23165. _ACEOF
  23166. fi
  23167. fi
  23168. fi
  23169. saved_cppflags="${CPPFLAGS}"
  23170. saved_libs="${LIBS}"
  23171. CPPFLAGS="${CPPFLAGS} ${PJPROJECT_CFLAGS}"
  23172. LIBS="${LIBS} ${PJPROJECT_LIB}"
  23173. if test "x${PBX_PJSIP_TLS_TRANSPORT_PROTO}" != "x1" -a "${USE_PJSIP_TLS_TRANSPORT_PROTO}" != "no"; then
  23174. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"struct pjsip_tls_setting setting; int proto; proto = setting.proto;\" compiles using pjsip.h" >&5
  23175. printf %s "checking if \"struct pjsip_tls_setting setting; int proto; proto = setting.proto;\" compiles using pjsip.h... " >&6; }
  23176. saved_cppflags="${CPPFLAGS}"
  23177. if test "x${PJSIP_TLS_TRANSPORT_PROTO_DIR}" != "x"; then
  23178. PJSIP_TLS_TRANSPORT_PROTO_INCLUDE="-I${PJSIP_TLS_TRANSPORT_PROTO_DIR}/include"
  23179. fi
  23180. CPPFLAGS="${CPPFLAGS} ${PJSIP_TLS_TRANSPORT_PROTO_INCLUDE}"
  23181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23182. /* end confdefs.h. */
  23183. #include <pjsip.h>
  23184. int
  23185. main (void)
  23186. {
  23187. struct pjsip_tls_setting setting; int proto; proto = setting.proto;;
  23188. ;
  23189. return 0;
  23190. }
  23191. _ACEOF
  23192. if ac_fn_c_try_compile "$LINENO"
  23193. then :
  23194. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23195. printf "%s\n" "yes" >&6; }
  23196. PBX_PJSIP_TLS_TRANSPORT_PROTO=1
  23197. printf "%s\n" "#define HAVE_PJSIP_TLS_TRANSPORT_PROTO 1" >>confdefs.h
  23198. else $as_nop
  23199. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23200. printf "%s\n" "no" >&6; }
  23201. fi
  23202. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23203. CPPFLAGS="${saved_cppflags}"
  23204. fi
  23205. if test "x${PBX_PJSIP_TLS_1_1}" != "x1" -a "${USE_PJSIP_TLS_1_1}" != "no"; then
  23206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"enum pjsip_ssl_method method = PJSIP_TLSV1_1_METHOD;\" compiles using pjsip.h" >&5
  23207. printf %s "checking if \"enum pjsip_ssl_method method = PJSIP_TLSV1_1_METHOD;\" compiles using pjsip.h... " >&6; }
  23208. saved_cppflags="${CPPFLAGS}"
  23209. if test "x${PJSIP_TLS_1_1_DIR}" != "x"; then
  23210. PJSIP_TLS_1_1_INCLUDE="-I${PJSIP_TLS_1_1_DIR}/include"
  23211. fi
  23212. CPPFLAGS="${CPPFLAGS} ${PJSIP_TLS_1_1_INCLUDE}"
  23213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23214. /* end confdefs.h. */
  23215. #include <pjsip.h>
  23216. int
  23217. main (void)
  23218. {
  23219. enum pjsip_ssl_method method = PJSIP_TLSV1_1_METHOD;;
  23220. ;
  23221. return 0;
  23222. }
  23223. _ACEOF
  23224. if ac_fn_c_try_compile "$LINENO"
  23225. then :
  23226. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23227. printf "%s\n" "yes" >&6; }
  23228. PBX_PJSIP_TLS_1_1=1
  23229. printf "%s\n" "#define HAVE_PJSIP_TLS_1_1 1" >>confdefs.h
  23230. else $as_nop
  23231. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23232. printf "%s\n" "no" >&6; }
  23233. fi
  23234. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23235. CPPFLAGS="${saved_cppflags}"
  23236. fi
  23237. if test "x${PBX_PJSIP_TLS_1_2}" != "x1" -a "${USE_PJSIP_TLS_1_2}" != "no"; then
  23238. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"enum pjsip_ssl_method method = PJSIP_TLSV1_2_METHOD;\" compiles using pjsip.h" >&5
  23239. printf %s "checking if \"enum pjsip_ssl_method method = PJSIP_TLSV1_2_METHOD;\" compiles using pjsip.h... " >&6; }
  23240. saved_cppflags="${CPPFLAGS}"
  23241. if test "x${PJSIP_TLS_1_2_DIR}" != "x"; then
  23242. PJSIP_TLS_1_2_INCLUDE="-I${PJSIP_TLS_1_2_DIR}/include"
  23243. fi
  23244. CPPFLAGS="${CPPFLAGS} ${PJSIP_TLS_1_2_INCLUDE}"
  23245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23246. /* end confdefs.h. */
  23247. #include <pjsip.h>
  23248. int
  23249. main (void)
  23250. {
  23251. enum pjsip_ssl_method method = PJSIP_TLSV1_2_METHOD;;
  23252. ;
  23253. return 0;
  23254. }
  23255. _ACEOF
  23256. if ac_fn_c_try_compile "$LINENO"
  23257. then :
  23258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23259. printf "%s\n" "yes" >&6; }
  23260. PBX_PJSIP_TLS_1_2=1
  23261. printf "%s\n" "#define HAVE_PJSIP_TLS_1_2 1" >>confdefs.h
  23262. else $as_nop
  23263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23264. printf "%s\n" "no" >&6; }
  23265. fi
  23266. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23267. CPPFLAGS="${saved_cppflags}"
  23268. fi
  23269. if test "x${PBX_PJSIP_TLS_1_3}" != "x1" -a "${USE_PJSIP_TLS_1_3}" != "no"; then
  23270. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"enum pjsip_ssl_method method = PJSIP_TLSV1_3_METHOD;\" compiles using pjsip.h" >&5
  23271. printf %s "checking if \"enum pjsip_ssl_method method = PJSIP_TLSV1_3_METHOD;\" compiles using pjsip.h... " >&6; }
  23272. saved_cppflags="${CPPFLAGS}"
  23273. if test "x${PJSIP_TLS_1_3_DIR}" != "x"; then
  23274. PJSIP_TLS_1_3_INCLUDE="-I${PJSIP_TLS_1_3_DIR}/include"
  23275. fi
  23276. CPPFLAGS="${CPPFLAGS} ${PJSIP_TLS_1_3_INCLUDE}"
  23277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23278. /* end confdefs.h. */
  23279. #include <pjsip.h>
  23280. int
  23281. main (void)
  23282. {
  23283. enum pjsip_ssl_method method = PJSIP_TLSV1_3_METHOD;;
  23284. ;
  23285. return 0;
  23286. }
  23287. _ACEOF
  23288. if ac_fn_c_try_compile "$LINENO"
  23289. then :
  23290. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23291. printf "%s\n" "yes" >&6; }
  23292. PBX_PJSIP_TLS_1_3=1
  23293. printf "%s\n" "#define HAVE_PJSIP_TLS_1_3 1" >>confdefs.h
  23294. else $as_nop
  23295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23296. printf "%s\n" "no" >&6; }
  23297. fi
  23298. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23299. CPPFLAGS="${saved_cppflags}"
  23300. fi
  23301. if test "x${PBX_PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS}" != "x1" -a "${USE_PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS}" != "no"; then
  23302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"pjsip_cfg()->endpt.accept_multiple_sdp_answers = 0;\" compiles using pjsip.h" >&5
  23303. printf %s "checking if \"pjsip_cfg()->endpt.accept_multiple_sdp_answers = 0;\" compiles using pjsip.h... " >&6; }
  23304. saved_cppflags="${CPPFLAGS}"
  23305. if test "x${PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_DIR}" != "x"; then
  23306. PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_INCLUDE="-I${PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_DIR}/include"
  23307. fi
  23308. CPPFLAGS="${CPPFLAGS} ${PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_INCLUDE}"
  23309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23310. /* end confdefs.h. */
  23311. #include <pjsip.h>
  23312. int
  23313. main (void)
  23314. {
  23315. pjsip_cfg()->endpt.accept_multiple_sdp_answers = 0;;
  23316. ;
  23317. return 0;
  23318. }
  23319. _ACEOF
  23320. if ac_fn_c_try_compile "$LINENO"
  23321. then :
  23322. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23323. printf "%s\n" "yes" >&6; }
  23324. PBX_PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS=1
  23325. printf "%s\n" "#define HAVE_PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS 1" >>confdefs.h
  23326. else $as_nop
  23327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23328. printf "%s\n" "no" >&6; }
  23329. fi
  23330. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23331. CPPFLAGS="${saved_cppflags}"
  23332. fi
  23333. if test "x${PBX_PJSIP_ENDPOINT_COMPACT_FORM}" != "x1" -a "${USE_PJSIP_ENDPOINT_COMPACT_FORM}" != "no"; then
  23334. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"pjsip_cfg()->endpt.use_compact_form = PJ_TRUE;\" compiles using pjsip.h" >&5
  23335. printf %s "checking if \"pjsip_cfg()->endpt.use_compact_form = PJ_TRUE;\" compiles using pjsip.h... " >&6; }
  23336. saved_cppflags="${CPPFLAGS}"
  23337. if test "x${PJSIP_ENDPOINT_COMPACT_FORM_DIR}" != "x"; then
  23338. PJSIP_ENDPOINT_COMPACT_FORM_INCLUDE="-I${PJSIP_ENDPOINT_COMPACT_FORM_DIR}/include"
  23339. fi
  23340. CPPFLAGS="${CPPFLAGS} ${PJSIP_ENDPOINT_COMPACT_FORM_INCLUDE}"
  23341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23342. /* end confdefs.h. */
  23343. #include <pjsip.h>
  23344. int
  23345. main (void)
  23346. {
  23347. pjsip_cfg()->endpt.use_compact_form = PJ_TRUE;;
  23348. ;
  23349. return 0;
  23350. }
  23351. _ACEOF
  23352. if ac_fn_c_try_compile "$LINENO"
  23353. then :
  23354. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23355. printf "%s\n" "yes" >&6; }
  23356. PBX_PJSIP_ENDPOINT_COMPACT_FORM=1
  23357. printf "%s\n" "#define HAVE_PJSIP_ENDPOINT_COMPACT_FORM 1" >>confdefs.h
  23358. else $as_nop
  23359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23360. printf "%s\n" "no" >&6; }
  23361. fi
  23362. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23363. CPPFLAGS="${saved_cppflags}"
  23364. fi
  23365. if test "x${PBX_PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE}" != "x1" -a "${USE_PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE}" != "no"; then
  23366. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"struct pjsip_tpselector sel; sel.disable_connection_reuse = PJ_TRUE;\" compiles using pjsip.h" >&5
  23367. printf %s "checking if \"struct pjsip_tpselector sel; sel.disable_connection_reuse = PJ_TRUE;\" compiles using pjsip.h... " >&6; }
  23368. saved_cppflags="${CPPFLAGS}"
  23369. if test "x${PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_DIR}" != "x"; then
  23370. PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_INCLUDE="-I${PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_DIR}/include"
  23371. fi
  23372. CPPFLAGS="${CPPFLAGS} ${PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_INCLUDE}"
  23373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23374. /* end confdefs.h. */
  23375. #include <pjsip.h>
  23376. int
  23377. main (void)
  23378. {
  23379. struct pjsip_tpselector sel; sel.disable_connection_reuse = PJ_TRUE;;
  23380. ;
  23381. return 0;
  23382. }
  23383. _ACEOF
  23384. if ac_fn_c_try_compile "$LINENO"
  23385. then :
  23386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23387. printf "%s\n" "yes" >&6; }
  23388. PBX_PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE=1
  23389. printf "%s\n" "#define HAVE_PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE 1" >>confdefs.h
  23390. else $as_nop
  23391. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23392. printf "%s\n" "no" >&6; }
  23393. fi
  23394. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23395. CPPFLAGS="${saved_cppflags}"
  23396. fi
  23397. if test "x${PBX_PJSIP_OAUTH_AUTHENTICATION}" != "x1" -a "${USE_PJSIP_OAUTH_AUTHENTICATION}" != "no"; then
  23398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \"struct pjsip_oauth_credential credential;\" compiles using pjsip.h" >&5
  23399. printf %s "checking if \"struct pjsip_oauth_credential credential;\" compiles using pjsip.h... " >&6; }
  23400. saved_cppflags="${CPPFLAGS}"
  23401. if test "x${PJSIP_OAUTH_AUTHENTICATION_DIR}" != "x"; then
  23402. PJSIP_OAUTH_AUTHENTICATION_INCLUDE="-I${PJSIP_OAUTH_AUTHENTICATION_DIR}/include"
  23403. fi
  23404. CPPFLAGS="${CPPFLAGS} ${PJSIP_OAUTH_AUTHENTICATION_INCLUDE}"
  23405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23406. /* end confdefs.h. */
  23407. #include <pjsip.h>
  23408. int
  23409. main (void)
  23410. {
  23411. struct pjsip_oauth_credential credential;;
  23412. ;
  23413. return 0;
  23414. }
  23415. _ACEOF
  23416. if ac_fn_c_try_compile "$LINENO"
  23417. then :
  23418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23419. printf "%s\n" "yes" >&6; }
  23420. PBX_PJSIP_OAUTH_AUTHENTICATION=1
  23421. printf "%s\n" "#define HAVE_PJSIP_OAUTH_AUTHENTICATION 1" >>confdefs.h
  23422. else $as_nop
  23423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23424. printf "%s\n" "no" >&6; }
  23425. fi
  23426. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  23427. CPPFLAGS="${saved_cppflags}"
  23428. fi
  23429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pjproject on_valid_pair callback" >&5
  23430. printf %s "checking for pjproject on_valid_pair callback... " >&6; }
  23431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23432. /* end confdefs.h. */
  23433. #include <pjsip.h>
  23434. #include <pjsip_ua.h>
  23435. #include <pjnath.h>
  23436. void on_valid_pair(pj_ice_sess *ice) {}
  23437. void on_ice_complete(pj_ice_sess *ice, pj_status_t status) {}
  23438. void on_rx_data(pj_ice_sess *ice, unsigned comp_id, unsigned transport_id, void *pkt, pj_size_t size, const pj_sockaddr_t *src_addr, unsigned src_addr_len) {}
  23439. pj_status_t on_tx_pkt(pj_ice_sess *ice, unsigned comp_id, unsigned transport_id, const void *pkt, pj_size_t size, const pj_sockaddr_t *dst_addr, unsigned dst_addr_len) {}
  23440. int
  23441. main (void)
  23442. {
  23443. pj_ice_sess_cb ice_sess_cb = {
  23444. .on_valid_pair = on_valid_pair,
  23445. .on_ice_complete = on_ice_complete,
  23446. .on_rx_data = on_rx_data,
  23447. .on_tx_pkt = on_tx_pkt,
  23448. };
  23449. ;
  23450. return 0;
  23451. }
  23452. _ACEOF
  23453. if ac_fn_c_try_link "$LINENO"
  23454. then :
  23455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23456. printf "%s\n" "yes" >&6; }
  23457. printf "%s\n" "#define HAVE_PJPROJECT_ON_VALID_ICE_PAIR_CALLBACK 1" >>confdefs.h
  23458. else $as_nop
  23459. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23460. printf "%s\n" "no" >&6; }
  23461. fi
  23462. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23463. conftest$ac_exeext conftest.$ac_ext
  23464. LIBS="${saved_libs}"
  23465. CPPFLAGS="${saved_cppflags}"
  23466. if test "x${PBX_PJSIP_EVSUB_GRP_LOCK}" != "x1" -a "${USE_PJSIP_EVSUB_GRP_LOCK}" != "no"; then
  23467. pbxlibdir=""
  23468. # if --with-PJSIP_EVSUB_GRP_LOCK=DIR has been specified, use it.
  23469. if test "x${PJSIP_EVSUB_GRP_LOCK_DIR}" != "x"; then
  23470. if test -d ${PJSIP_EVSUB_GRP_LOCK_DIR}/lib; then
  23471. pbxlibdir="-L${PJSIP_EVSUB_GRP_LOCK_DIR}/lib"
  23472. else
  23473. pbxlibdir="-L${PJSIP_EVSUB_GRP_LOCK_DIR}"
  23474. fi
  23475. fi
  23476. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23477. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  23478. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pjsip_evsub_add_ref in -lpjsip" >&5
  23479. printf %s "checking for pjsip_evsub_add_ref in -lpjsip... " >&6; }
  23480. if test ${ac_cv_lib_pjsip_pjsip_evsub_add_ref+y}
  23481. then :
  23482. printf %s "(cached) " >&6
  23483. else $as_nop
  23484. ac_check_lib_save_LIBS=$LIBS
  23485. LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_LIB $LIBS"
  23486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23487. /* end confdefs.h. */
  23488. /* Override any GCC internal prototype to avoid an error.
  23489. Use char because int might match the return type of a GCC
  23490. builtin and then its argument prototype would still apply. */
  23491. char pjsip_evsub_add_ref ();
  23492. int
  23493. main (void)
  23494. {
  23495. return pjsip_evsub_add_ref ();
  23496. ;
  23497. return 0;
  23498. }
  23499. _ACEOF
  23500. if ac_fn_c_try_link "$LINENO"
  23501. then :
  23502. ac_cv_lib_pjsip_pjsip_evsub_add_ref=yes
  23503. else $as_nop
  23504. ac_cv_lib_pjsip_pjsip_evsub_add_ref=no
  23505. fi
  23506. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23507. conftest$ac_exeext conftest.$ac_ext
  23508. LIBS=$ac_check_lib_save_LIBS
  23509. fi
  23510. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pjsip_pjsip_evsub_add_ref" >&5
  23511. printf "%s\n" "$ac_cv_lib_pjsip_pjsip_evsub_add_ref" >&6; }
  23512. if test "x$ac_cv_lib_pjsip_pjsip_evsub_add_ref" = xyes
  23513. then :
  23514. AST_PJSIP_EVSUB_GRP_LOCK_FOUND=yes
  23515. else $as_nop
  23516. AST_PJSIP_EVSUB_GRP_LOCK_FOUND=no
  23517. fi
  23518. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23519. # now check for the header.
  23520. if test "${AST_PJSIP_EVSUB_GRP_LOCK_FOUND}" = "yes"; then
  23521. PJSIP_EVSUB_GRP_LOCK_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIB"
  23522. # if --with-PJSIP_EVSUB_GRP_LOCK=DIR has been specified, use it.
  23523. if test "x${PJSIP_EVSUB_GRP_LOCK_DIR}" != "x"; then
  23524. PJSIP_EVSUB_GRP_LOCK_INCLUDE="-I${PJSIP_EVSUB_GRP_LOCK_DIR}/include"
  23525. fi
  23526. PJSIP_EVSUB_GRP_LOCK_INCLUDE="${PJSIP_EVSUB_GRP_LOCK_INCLUDE} $PJPROJECT_CFLAGS"
  23527. # check for the header
  23528. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23529. CPPFLAGS="${CPPFLAGS} ${PJSIP_EVSUB_GRP_LOCK_INCLUDE}"
  23530. ac_fn_c_check_header_compile "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
  23531. if test "x$ac_cv_header_pjsip_h" = xyes
  23532. then :
  23533. PJSIP_EVSUB_GRP_LOCK_HEADER_FOUND=1
  23534. else $as_nop
  23535. PJSIP_EVSUB_GRP_LOCK_HEADER_FOUND=0
  23536. fi
  23537. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23538. if test "x${PJSIP_EVSUB_GRP_LOCK_HEADER_FOUND}" = "x0" ; then
  23539. PJSIP_EVSUB_GRP_LOCK_LIB=""
  23540. PJSIP_EVSUB_GRP_LOCK_INCLUDE=""
  23541. else
  23542. PBX_PJSIP_EVSUB_GRP_LOCK=1
  23543. cat >>confdefs.h <<_ACEOF
  23544. #define HAVE_PJSIP_EVSUB_GRP_LOCK 1
  23545. _ACEOF
  23546. fi
  23547. fi
  23548. fi
  23549. if test "x${PBX_PJSIP_INV_SESSION_REF}" != "x1" -a "${USE_PJSIP_INV_SESSION_REF}" != "no"; then
  23550. pbxlibdir=""
  23551. # if --with-PJSIP_INV_SESSION_REF=DIR has been specified, use it.
  23552. if test "x${PJSIP_INV_SESSION_REF_DIR}" != "x"; then
  23553. if test -d ${PJSIP_INV_SESSION_REF_DIR}/lib; then
  23554. pbxlibdir="-L${PJSIP_INV_SESSION_REF_DIR}/lib"
  23555. else
  23556. pbxlibdir="-L${PJSIP_INV_SESSION_REF_DIR}"
  23557. fi
  23558. fi
  23559. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23560. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  23561. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pjsip_inv_add_ref in -lpjsip" >&5
  23562. printf %s "checking for pjsip_inv_add_ref in -lpjsip... " >&6; }
  23563. if test ${ac_cv_lib_pjsip_pjsip_inv_add_ref+y}
  23564. then :
  23565. printf %s "(cached) " >&6
  23566. else $as_nop
  23567. ac_check_lib_save_LIBS=$LIBS
  23568. LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_LIB $LIBS"
  23569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23570. /* end confdefs.h. */
  23571. /* Override any GCC internal prototype to avoid an error.
  23572. Use char because int might match the return type of a GCC
  23573. builtin and then its argument prototype would still apply. */
  23574. char pjsip_inv_add_ref ();
  23575. int
  23576. main (void)
  23577. {
  23578. return pjsip_inv_add_ref ();
  23579. ;
  23580. return 0;
  23581. }
  23582. _ACEOF
  23583. if ac_fn_c_try_link "$LINENO"
  23584. then :
  23585. ac_cv_lib_pjsip_pjsip_inv_add_ref=yes
  23586. else $as_nop
  23587. ac_cv_lib_pjsip_pjsip_inv_add_ref=no
  23588. fi
  23589. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23590. conftest$ac_exeext conftest.$ac_ext
  23591. LIBS=$ac_check_lib_save_LIBS
  23592. fi
  23593. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pjsip_pjsip_inv_add_ref" >&5
  23594. printf "%s\n" "$ac_cv_lib_pjsip_pjsip_inv_add_ref" >&6; }
  23595. if test "x$ac_cv_lib_pjsip_pjsip_inv_add_ref" = xyes
  23596. then :
  23597. AST_PJSIP_INV_SESSION_REF_FOUND=yes
  23598. else $as_nop
  23599. AST_PJSIP_INV_SESSION_REF_FOUND=no
  23600. fi
  23601. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23602. # now check for the header.
  23603. if test "${AST_PJSIP_INV_SESSION_REF_FOUND}" = "yes"; then
  23604. PJSIP_INV_SESSION_REF_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIB"
  23605. # if --with-PJSIP_INV_SESSION_REF=DIR has been specified, use it.
  23606. if test "x${PJSIP_INV_SESSION_REF_DIR}" != "x"; then
  23607. PJSIP_INV_SESSION_REF_INCLUDE="-I${PJSIP_INV_SESSION_REF_DIR}/include"
  23608. fi
  23609. PJSIP_INV_SESSION_REF_INCLUDE="${PJSIP_INV_SESSION_REF_INCLUDE} $PJPROJECT_CFLAGS"
  23610. # check for the header
  23611. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23612. CPPFLAGS="${CPPFLAGS} ${PJSIP_INV_SESSION_REF_INCLUDE}"
  23613. ac_fn_c_check_header_compile "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
  23614. if test "x$ac_cv_header_pjsip_h" = xyes
  23615. then :
  23616. PJSIP_INV_SESSION_REF_HEADER_FOUND=1
  23617. else $as_nop
  23618. PJSIP_INV_SESSION_REF_HEADER_FOUND=0
  23619. fi
  23620. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23621. if test "x${PJSIP_INV_SESSION_REF_HEADER_FOUND}" = "x0" ; then
  23622. PJSIP_INV_SESSION_REF_LIB=""
  23623. PJSIP_INV_SESSION_REF_INCLUDE=""
  23624. else
  23625. PBX_PJSIP_INV_SESSION_REF=1
  23626. cat >>confdefs.h <<_ACEOF
  23627. #define HAVE_PJSIP_INV_SESSION_REF 1
  23628. _ACEOF
  23629. fi
  23630. fi
  23631. fi
  23632. if test "x${PBX_PJSIP_AUTH_CLT_DEINIT}" != "x1" -a "${USE_PJSIP_AUTH_CLT_DEINIT}" != "no"; then
  23633. pbxlibdir=""
  23634. # if --with-PJSIP_AUTH_CLT_DEINIT=DIR has been specified, use it.
  23635. if test "x${PJSIP_AUTH_CLT_DEINIT_DIR}" != "x"; then
  23636. if test -d ${PJSIP_AUTH_CLT_DEINIT_DIR}/lib; then
  23637. pbxlibdir="-L${PJSIP_AUTH_CLT_DEINIT_DIR}/lib"
  23638. else
  23639. pbxlibdir="-L${PJSIP_AUTH_CLT_DEINIT_DIR}"
  23640. fi
  23641. fi
  23642. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23643. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  23644. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pjsip_auth_clt_deinit in -lpjsip" >&5
  23645. printf %s "checking for pjsip_auth_clt_deinit in -lpjsip... " >&6; }
  23646. if test ${ac_cv_lib_pjsip_pjsip_auth_clt_deinit+y}
  23647. then :
  23648. printf %s "(cached) " >&6
  23649. else $as_nop
  23650. ac_check_lib_save_LIBS=$LIBS
  23651. LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_LIB $LIBS"
  23652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23653. /* end confdefs.h. */
  23654. /* Override any GCC internal prototype to avoid an error.
  23655. Use char because int might match the return type of a GCC
  23656. builtin and then its argument prototype would still apply. */
  23657. char pjsip_auth_clt_deinit ();
  23658. int
  23659. main (void)
  23660. {
  23661. return pjsip_auth_clt_deinit ();
  23662. ;
  23663. return 0;
  23664. }
  23665. _ACEOF
  23666. if ac_fn_c_try_link "$LINENO"
  23667. then :
  23668. ac_cv_lib_pjsip_pjsip_auth_clt_deinit=yes
  23669. else $as_nop
  23670. ac_cv_lib_pjsip_pjsip_auth_clt_deinit=no
  23671. fi
  23672. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23673. conftest$ac_exeext conftest.$ac_ext
  23674. LIBS=$ac_check_lib_save_LIBS
  23675. fi
  23676. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pjsip_pjsip_auth_clt_deinit" >&5
  23677. printf "%s\n" "$ac_cv_lib_pjsip_pjsip_auth_clt_deinit" >&6; }
  23678. if test "x$ac_cv_lib_pjsip_pjsip_auth_clt_deinit" = xyes
  23679. then :
  23680. AST_PJSIP_AUTH_CLT_DEINIT_FOUND=yes
  23681. else $as_nop
  23682. AST_PJSIP_AUTH_CLT_DEINIT_FOUND=no
  23683. fi
  23684. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23685. # now check for the header.
  23686. if test "${AST_PJSIP_AUTH_CLT_DEINIT_FOUND}" = "yes"; then
  23687. PJSIP_AUTH_CLT_DEINIT_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIB"
  23688. # if --with-PJSIP_AUTH_CLT_DEINIT=DIR has been specified, use it.
  23689. if test "x${PJSIP_AUTH_CLT_DEINIT_DIR}" != "x"; then
  23690. PJSIP_AUTH_CLT_DEINIT_INCLUDE="-I${PJSIP_AUTH_CLT_DEINIT_DIR}/include"
  23691. fi
  23692. PJSIP_AUTH_CLT_DEINIT_INCLUDE="${PJSIP_AUTH_CLT_DEINIT_INCLUDE} $PJPROJECT_CFLAGS"
  23693. # check for the header
  23694. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23695. CPPFLAGS="${CPPFLAGS} ${PJSIP_AUTH_CLT_DEINIT_INCLUDE}"
  23696. ac_fn_c_check_header_compile "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
  23697. if test "x$ac_cv_header_pjsip_h" = xyes
  23698. then :
  23699. PJSIP_AUTH_CLT_DEINIT_HEADER_FOUND=1
  23700. else $as_nop
  23701. PJSIP_AUTH_CLT_DEINIT_HEADER_FOUND=0
  23702. fi
  23703. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23704. if test "x${PJSIP_AUTH_CLT_DEINIT_HEADER_FOUND}" = "x0" ; then
  23705. PJSIP_AUTH_CLT_DEINIT_LIB=""
  23706. PJSIP_AUTH_CLT_DEINIT_INCLUDE=""
  23707. else
  23708. PBX_PJSIP_AUTH_CLT_DEINIT=1
  23709. cat >>confdefs.h <<_ACEOF
  23710. #define HAVE_PJSIP_AUTH_CLT_DEINIT 1
  23711. _ACEOF
  23712. fi
  23713. fi
  23714. fi
  23715. if test "x${PBX_PJSIP_TSX_LAYER_FIND_TSX2}" != "x1" -a "${USE_PJSIP_TSX_LAYER_FIND_TSX2}" != "no"; then
  23716. pbxlibdir=""
  23717. # if --with-PJSIP_TSX_LAYER_FIND_TSX2=DIR has been specified, use it.
  23718. if test "x${PJSIP_TSX_LAYER_FIND_TSX2_DIR}" != "x"; then
  23719. if test -d ${PJSIP_TSX_LAYER_FIND_TSX2_DIR}/lib; then
  23720. pbxlibdir="-L${PJSIP_TSX_LAYER_FIND_TSX2_DIR}/lib"
  23721. else
  23722. pbxlibdir="-L${PJSIP_TSX_LAYER_FIND_TSX2_DIR}"
  23723. fi
  23724. fi
  23725. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23726. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  23727. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pjsip_tsx_layer_find_tsx2 in -lpjsip" >&5
  23728. printf %s "checking for pjsip_tsx_layer_find_tsx2 in -lpjsip... " >&6; }
  23729. if test ${ac_cv_lib_pjsip_pjsip_tsx_layer_find_tsx2+y}
  23730. then :
  23731. printf %s "(cached) " >&6
  23732. else $as_nop
  23733. ac_check_lib_save_LIBS=$LIBS
  23734. LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_LIB $LIBS"
  23735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23736. /* end confdefs.h. */
  23737. /* Override any GCC internal prototype to avoid an error.
  23738. Use char because int might match the return type of a GCC
  23739. builtin and then its argument prototype would still apply. */
  23740. char pjsip_tsx_layer_find_tsx2 ();
  23741. int
  23742. main (void)
  23743. {
  23744. return pjsip_tsx_layer_find_tsx2 ();
  23745. ;
  23746. return 0;
  23747. }
  23748. _ACEOF
  23749. if ac_fn_c_try_link "$LINENO"
  23750. then :
  23751. ac_cv_lib_pjsip_pjsip_tsx_layer_find_tsx2=yes
  23752. else $as_nop
  23753. ac_cv_lib_pjsip_pjsip_tsx_layer_find_tsx2=no
  23754. fi
  23755. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23756. conftest$ac_exeext conftest.$ac_ext
  23757. LIBS=$ac_check_lib_save_LIBS
  23758. fi
  23759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pjsip_pjsip_tsx_layer_find_tsx2" >&5
  23760. printf "%s\n" "$ac_cv_lib_pjsip_pjsip_tsx_layer_find_tsx2" >&6; }
  23761. if test "x$ac_cv_lib_pjsip_pjsip_tsx_layer_find_tsx2" = xyes
  23762. then :
  23763. AST_PJSIP_TSX_LAYER_FIND_TSX2_FOUND=yes
  23764. else $as_nop
  23765. AST_PJSIP_TSX_LAYER_FIND_TSX2_FOUND=no
  23766. fi
  23767. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23768. # now check for the header.
  23769. if test "${AST_PJSIP_TSX_LAYER_FIND_TSX2_FOUND}" = "yes"; then
  23770. PJSIP_TSX_LAYER_FIND_TSX2_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIB"
  23771. # if --with-PJSIP_TSX_LAYER_FIND_TSX2=DIR has been specified, use it.
  23772. if test "x${PJSIP_TSX_LAYER_FIND_TSX2_DIR}" != "x"; then
  23773. PJSIP_TSX_LAYER_FIND_TSX2_INCLUDE="-I${PJSIP_TSX_LAYER_FIND_TSX2_DIR}/include"
  23774. fi
  23775. PJSIP_TSX_LAYER_FIND_TSX2_INCLUDE="${PJSIP_TSX_LAYER_FIND_TSX2_INCLUDE} $PJPROJECT_CFLAGS"
  23776. # check for the header
  23777. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23778. CPPFLAGS="${CPPFLAGS} ${PJSIP_TSX_LAYER_FIND_TSX2_INCLUDE}"
  23779. ac_fn_c_check_header_compile "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
  23780. if test "x$ac_cv_header_pjsip_h" = xyes
  23781. then :
  23782. PJSIP_TSX_LAYER_FIND_TSX2_HEADER_FOUND=1
  23783. else $as_nop
  23784. PJSIP_TSX_LAYER_FIND_TSX2_HEADER_FOUND=0
  23785. fi
  23786. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23787. if test "x${PJSIP_TSX_LAYER_FIND_TSX2_HEADER_FOUND}" = "x0" ; then
  23788. PJSIP_TSX_LAYER_FIND_TSX2_LIB=""
  23789. PJSIP_TSX_LAYER_FIND_TSX2_INCLUDE=""
  23790. else
  23791. PBX_PJSIP_TSX_LAYER_FIND_TSX2=1
  23792. cat >>confdefs.h <<_ACEOF
  23793. #define HAVE_PJSIP_TSX_LAYER_FIND_TSX2 1
  23794. _ACEOF
  23795. fi
  23796. fi
  23797. fi
  23798. if test "x${PBX_PJSIP_TLS_TRANSPORT_RESTART}" != "x1" -a "${USE_PJSIP_TLS_TRANSPORT_RESTART}" != "no"; then
  23799. pbxlibdir=""
  23800. # if --with-PJSIP_TLS_TRANSPORT_RESTART=DIR has been specified, use it.
  23801. if test "x${PJSIP_TLS_TRANSPORT_RESTART_DIR}" != "x"; then
  23802. if test -d ${PJSIP_TLS_TRANSPORT_RESTART_DIR}/lib; then
  23803. pbxlibdir="-L${PJSIP_TLS_TRANSPORT_RESTART_DIR}/lib"
  23804. else
  23805. pbxlibdir="-L${PJSIP_TLS_TRANSPORT_RESTART_DIR}"
  23806. fi
  23807. fi
  23808. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23809. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  23810. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pjsip_tls_transport_restart in -lpjsip" >&5
  23811. printf %s "checking for pjsip_tls_transport_restart in -lpjsip... " >&6; }
  23812. if test ${ac_cv_lib_pjsip_pjsip_tls_transport_restart+y}
  23813. then :
  23814. printf %s "(cached) " >&6
  23815. else $as_nop
  23816. ac_check_lib_save_LIBS=$LIBS
  23817. LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_LIB $LIBS"
  23818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23819. /* end confdefs.h. */
  23820. /* Override any GCC internal prototype to avoid an error.
  23821. Use char because int might match the return type of a GCC
  23822. builtin and then its argument prototype would still apply. */
  23823. char pjsip_tls_transport_restart ();
  23824. int
  23825. main (void)
  23826. {
  23827. return pjsip_tls_transport_restart ();
  23828. ;
  23829. return 0;
  23830. }
  23831. _ACEOF
  23832. if ac_fn_c_try_link "$LINENO"
  23833. then :
  23834. ac_cv_lib_pjsip_pjsip_tls_transport_restart=yes
  23835. else $as_nop
  23836. ac_cv_lib_pjsip_pjsip_tls_transport_restart=no
  23837. fi
  23838. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  23839. conftest$ac_exeext conftest.$ac_ext
  23840. LIBS=$ac_check_lib_save_LIBS
  23841. fi
  23842. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pjsip_pjsip_tls_transport_restart" >&5
  23843. printf "%s\n" "$ac_cv_lib_pjsip_pjsip_tls_transport_restart" >&6; }
  23844. if test "x$ac_cv_lib_pjsip_pjsip_tls_transport_restart" = xyes
  23845. then :
  23846. AST_PJSIP_TLS_TRANSPORT_RESTART_FOUND=yes
  23847. else $as_nop
  23848. AST_PJSIP_TLS_TRANSPORT_RESTART_FOUND=no
  23849. fi
  23850. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23851. # now check for the header.
  23852. if test "${AST_PJSIP_TLS_TRANSPORT_RESTART_FOUND}" = "yes"; then
  23853. PJSIP_TLS_TRANSPORT_RESTART_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIB"
  23854. # if --with-PJSIP_TLS_TRANSPORT_RESTART=DIR has been specified, use it.
  23855. if test "x${PJSIP_TLS_TRANSPORT_RESTART_DIR}" != "x"; then
  23856. PJSIP_TLS_TRANSPORT_RESTART_INCLUDE="-I${PJSIP_TLS_TRANSPORT_RESTART_DIR}/include"
  23857. fi
  23858. PJSIP_TLS_TRANSPORT_RESTART_INCLUDE="${PJSIP_TLS_TRANSPORT_RESTART_INCLUDE} $PJPROJECT_CFLAGS"
  23859. # check for the header
  23860. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23861. CPPFLAGS="${CPPFLAGS} ${PJSIP_TLS_TRANSPORT_RESTART_INCLUDE}"
  23862. ac_fn_c_check_header_compile "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
  23863. if test "x$ac_cv_header_pjsip_h" = xyes
  23864. then :
  23865. PJSIP_TLS_TRANSPORT_RESTART_HEADER_FOUND=1
  23866. else $as_nop
  23867. PJSIP_TLS_TRANSPORT_RESTART_HEADER_FOUND=0
  23868. fi
  23869. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23870. if test "x${PJSIP_TLS_TRANSPORT_RESTART_HEADER_FOUND}" = "x0" ; then
  23871. PJSIP_TLS_TRANSPORT_RESTART_LIB=""
  23872. PJSIP_TLS_TRANSPORT_RESTART_INCLUDE=""
  23873. else
  23874. PBX_PJSIP_TLS_TRANSPORT_RESTART=1
  23875. cat >>confdefs.h <<_ACEOF
  23876. #define HAVE_PJSIP_TLS_TRANSPORT_RESTART 1
  23877. _ACEOF
  23878. fi
  23879. fi
  23880. fi
  23881. fi
  23882. fi
  23883. if test "x$PBX_PJPROJECT" = "x1" ; then
  23884. if test "x${AST_DEVMODE}" = "xyes" ; then
  23885. if test "x${PBX_PYTHONDEV}" != "x1" -a "${USE_PYTHONDEV}" != "no"; then
  23886. pkg_failed=no
  23887. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python-2.7" >&5
  23888. printf %s "checking for python-2.7... " >&6; }
  23889. if test -n "$PYTHONDEV_CFLAGS"; then
  23890. pkg_cv_PYTHONDEV_CFLAGS="$PYTHONDEV_CFLAGS"
  23891. elif test -n "$PKG_CONFIG"; then
  23892. if test -n "$PKG_CONFIG" && \
  23893. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-2.7\""; } >&5
  23894. ($PKG_CONFIG --exists --print-errors "python-2.7") 2>&5
  23895. ac_status=$?
  23896. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23897. test $ac_status = 0; }; then
  23898. pkg_cv_PYTHONDEV_CFLAGS=`$PKG_CONFIG --cflags "python-2.7" 2>/dev/null`
  23899. test "x$?" != "x0" && pkg_failed=yes
  23900. else
  23901. pkg_failed=yes
  23902. fi
  23903. else
  23904. pkg_failed=untried
  23905. fi
  23906. if test -n "$PYTHONDEV_LIBS"; then
  23907. pkg_cv_PYTHONDEV_LIBS="$PYTHONDEV_LIBS"
  23908. elif test -n "$PKG_CONFIG"; then
  23909. if test -n "$PKG_CONFIG" && \
  23910. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python-2.7\""; } >&5
  23911. ($PKG_CONFIG --exists --print-errors "python-2.7") 2>&5
  23912. ac_status=$?
  23913. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23914. test $ac_status = 0; }; then
  23915. pkg_cv_PYTHONDEV_LIBS=`$PKG_CONFIG --libs "python-2.7" 2>/dev/null`
  23916. test "x$?" != "x0" && pkg_failed=yes
  23917. else
  23918. pkg_failed=yes
  23919. fi
  23920. else
  23921. pkg_failed=untried
  23922. fi
  23923. if test $pkg_failed = yes; then
  23924. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23925. printf "%s\n" "no" >&6; }
  23926. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23927. _pkg_short_errors_supported=yes
  23928. else
  23929. _pkg_short_errors_supported=no
  23930. fi
  23931. if test $_pkg_short_errors_supported = yes; then
  23932. PYTHONDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python-2.7" 2>&1`
  23933. else
  23934. PYTHONDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python-2.7" 2>&1`
  23935. fi
  23936. # Put the nasty error message in config.log where it belongs
  23937. echo "$PYTHONDEV_PKG_ERRORS" >&5
  23938. PBX_PYTHONDEV=0
  23939. elif test $pkg_failed = untried; then
  23940. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23941. printf "%s\n" "no" >&6; }
  23942. PBX_PYTHONDEV=0
  23943. else
  23944. PYTHONDEV_CFLAGS=$pkg_cv_PYTHONDEV_CFLAGS
  23945. PYTHONDEV_LIBS=$pkg_cv_PYTHONDEV_LIBS
  23946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23947. printf "%s\n" "yes" >&6; }
  23948. PBX_PYTHONDEV=1
  23949. PYTHONDEV_INCLUDE=$(echo ${PYTHONDEV_CFLAGS} | $SED -e "s|-std=c99||g")
  23950. PYTHONDEV_LIB="$PYTHONDEV_LIBS"
  23951. printf "%s\n" "#define HAVE_PYTHONDEV 1" >>confdefs.h
  23952. fi
  23953. fi
  23954. if test "x${PBX_PYTHONDEV}" != "x1" -a "${USE_PYTHONDEV}" != "no"; then
  23955. pkg_failed=no
  23956. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python2" >&5
  23957. printf %s "checking for python2... " >&6; }
  23958. if test -n "$PYTHONDEV_CFLAGS"; then
  23959. pkg_cv_PYTHONDEV_CFLAGS="$PYTHONDEV_CFLAGS"
  23960. elif test -n "$PKG_CONFIG"; then
  23961. if test -n "$PKG_CONFIG" && \
  23962. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python2\""; } >&5
  23963. ($PKG_CONFIG --exists --print-errors "python2") 2>&5
  23964. ac_status=$?
  23965. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23966. test $ac_status = 0; }; then
  23967. pkg_cv_PYTHONDEV_CFLAGS=`$PKG_CONFIG --cflags "python2" 2>/dev/null`
  23968. test "x$?" != "x0" && pkg_failed=yes
  23969. else
  23970. pkg_failed=yes
  23971. fi
  23972. else
  23973. pkg_failed=untried
  23974. fi
  23975. if test -n "$PYTHONDEV_LIBS"; then
  23976. pkg_cv_PYTHONDEV_LIBS="$PYTHONDEV_LIBS"
  23977. elif test -n "$PKG_CONFIG"; then
  23978. if test -n "$PKG_CONFIG" && \
  23979. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python2\""; } >&5
  23980. ($PKG_CONFIG --exists --print-errors "python2") 2>&5
  23981. ac_status=$?
  23982. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23983. test $ac_status = 0; }; then
  23984. pkg_cv_PYTHONDEV_LIBS=`$PKG_CONFIG --libs "python2" 2>/dev/null`
  23985. test "x$?" != "x0" && pkg_failed=yes
  23986. else
  23987. pkg_failed=yes
  23988. fi
  23989. else
  23990. pkg_failed=untried
  23991. fi
  23992. if test $pkg_failed = yes; then
  23993. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23994. printf "%s\n" "no" >&6; }
  23995. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  23996. _pkg_short_errors_supported=yes
  23997. else
  23998. _pkg_short_errors_supported=no
  23999. fi
  24000. if test $_pkg_short_errors_supported = yes; then
  24001. PYTHONDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python2" 2>&1`
  24002. else
  24003. PYTHONDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python2" 2>&1`
  24004. fi
  24005. # Put the nasty error message in config.log where it belongs
  24006. echo "$PYTHONDEV_PKG_ERRORS" >&5
  24007. PBX_PYTHONDEV=0
  24008. elif test $pkg_failed = untried; then
  24009. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24010. printf "%s\n" "no" >&6; }
  24011. PBX_PYTHONDEV=0
  24012. else
  24013. PYTHONDEV_CFLAGS=$pkg_cv_PYTHONDEV_CFLAGS
  24014. PYTHONDEV_LIBS=$pkg_cv_PYTHONDEV_LIBS
  24015. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24016. printf "%s\n" "yes" >&6; }
  24017. PBX_PYTHONDEV=1
  24018. PYTHONDEV_INCLUDE=$(echo ${PYTHONDEV_CFLAGS} | $SED -e "s|-std=c99||g")
  24019. PYTHONDEV_LIB="$PYTHONDEV_LIBS"
  24020. printf "%s\n" "#define HAVE_PYTHONDEV 1" >>confdefs.h
  24021. fi
  24022. fi
  24023. if test "x${PBX_PYTHONDEV}" != "x1" -a "${USE_PYTHONDEV}" != "no"; then
  24024. pkg_failed=no
  24025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python" >&5
  24026. printf %s "checking for python... " >&6; }
  24027. if test -n "$PYTHONDEV_CFLAGS"; then
  24028. pkg_cv_PYTHONDEV_CFLAGS="$PYTHONDEV_CFLAGS"
  24029. elif test -n "$PKG_CONFIG"; then
  24030. if test -n "$PKG_CONFIG" && \
  24031. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
  24032. ($PKG_CONFIG --exists --print-errors "python") 2>&5
  24033. ac_status=$?
  24034. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24035. test $ac_status = 0; }; then
  24036. pkg_cv_PYTHONDEV_CFLAGS=`$PKG_CONFIG --cflags "python" 2>/dev/null`
  24037. test "x$?" != "x0" && pkg_failed=yes
  24038. else
  24039. pkg_failed=yes
  24040. fi
  24041. else
  24042. pkg_failed=untried
  24043. fi
  24044. if test -n "$PYTHONDEV_LIBS"; then
  24045. pkg_cv_PYTHONDEV_LIBS="$PYTHONDEV_LIBS"
  24046. elif test -n "$PKG_CONFIG"; then
  24047. if test -n "$PKG_CONFIG" && \
  24048. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"python\""; } >&5
  24049. ($PKG_CONFIG --exists --print-errors "python") 2>&5
  24050. ac_status=$?
  24051. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24052. test $ac_status = 0; }; then
  24053. pkg_cv_PYTHONDEV_LIBS=`$PKG_CONFIG --libs "python" 2>/dev/null`
  24054. test "x$?" != "x0" && pkg_failed=yes
  24055. else
  24056. pkg_failed=yes
  24057. fi
  24058. else
  24059. pkg_failed=untried
  24060. fi
  24061. if test $pkg_failed = yes; then
  24062. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24063. printf "%s\n" "no" >&6; }
  24064. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24065. _pkg_short_errors_supported=yes
  24066. else
  24067. _pkg_short_errors_supported=no
  24068. fi
  24069. if test $_pkg_short_errors_supported = yes; then
  24070. PYTHONDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "python" 2>&1`
  24071. else
  24072. PYTHONDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "python" 2>&1`
  24073. fi
  24074. # Put the nasty error message in config.log where it belongs
  24075. echo "$PYTHONDEV_PKG_ERRORS" >&5
  24076. PBX_PYTHONDEV=0
  24077. elif test $pkg_failed = untried; then
  24078. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24079. printf "%s\n" "no" >&6; }
  24080. PBX_PYTHONDEV=0
  24081. else
  24082. PYTHONDEV_CFLAGS=$pkg_cv_PYTHONDEV_CFLAGS
  24083. PYTHONDEV_LIBS=$pkg_cv_PYTHONDEV_LIBS
  24084. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24085. printf "%s\n" "yes" >&6; }
  24086. PBX_PYTHONDEV=1
  24087. PYTHONDEV_INCLUDE=$(echo ${PYTHONDEV_CFLAGS} | $SED -e "s|-std=c99||g")
  24088. PYTHONDEV_LIB="$PYTHONDEV_LIBS"
  24089. printf "%s\n" "#define HAVE_PYTHONDEV 1" >>confdefs.h
  24090. fi
  24091. fi
  24092. # The PJProject offers a C extension to Python. That wrapper is used by the
  24093. # Asterisk Test Framework, which requires Asterisk to be in Developer Mode.
  24094. # However, the used wrapper (called 'PJSUA Python') is deprecated and was not
  24095. # ported from Python 2.7 to Python 3.x. This is confirmed; it simply does not
  24096. # build. For more see <http://www.pjsip.org/trac/wiki/Python_SIP_Tutorial>.
  24097. # Therefore, the C libraries for Python 3 are of no help in Asterisk:
  24098. #AST_PKG_CONFIG_CHECK([PYTHONDEV], [python3])
  24099. fi
  24100. fi
  24101. fi
  24102. if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
  24103. pbxlibdir=""
  24104. # if --with-POPT=DIR has been specified, use it.
  24105. if test "x${POPT_DIR}" != "x"; then
  24106. if test -d ${POPT_DIR}/lib; then
  24107. pbxlibdir="-L${POPT_DIR}/lib"
  24108. else
  24109. pbxlibdir="-L${POPT_DIR}"
  24110. fi
  24111. fi
  24112. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24113. CFLAGS="${CFLAGS} "
  24114. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poptStrerror in -lpopt" >&5
  24115. printf %s "checking for poptStrerror in -lpopt... " >&6; }
  24116. if test ${ac_cv_lib_popt_poptStrerror+y}
  24117. then :
  24118. printf %s "(cached) " >&6
  24119. else $as_nop
  24120. ac_check_lib_save_LIBS=$LIBS
  24121. LIBS="-lpopt ${pbxlibdir} $LIBS"
  24122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24123. /* end confdefs.h. */
  24124. /* Override any GCC internal prototype to avoid an error.
  24125. Use char because int might match the return type of a GCC
  24126. builtin and then its argument prototype would still apply. */
  24127. char poptStrerror ();
  24128. int
  24129. main (void)
  24130. {
  24131. return poptStrerror ();
  24132. ;
  24133. return 0;
  24134. }
  24135. _ACEOF
  24136. if ac_fn_c_try_link "$LINENO"
  24137. then :
  24138. ac_cv_lib_popt_poptStrerror=yes
  24139. else $as_nop
  24140. ac_cv_lib_popt_poptStrerror=no
  24141. fi
  24142. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24143. conftest$ac_exeext conftest.$ac_ext
  24144. LIBS=$ac_check_lib_save_LIBS
  24145. fi
  24146. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptStrerror" >&5
  24147. printf "%s\n" "$ac_cv_lib_popt_poptStrerror" >&6; }
  24148. if test "x$ac_cv_lib_popt_poptStrerror" = xyes
  24149. then :
  24150. AST_POPT_FOUND=yes
  24151. else $as_nop
  24152. AST_POPT_FOUND=no
  24153. fi
  24154. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24155. # now check for the header.
  24156. if test "${AST_POPT_FOUND}" = "yes"; then
  24157. POPT_LIB="${pbxlibdir} -lpopt "
  24158. # if --with-POPT=DIR has been specified, use it.
  24159. if test "x${POPT_DIR}" != "x"; then
  24160. POPT_INCLUDE="-I${POPT_DIR}/include"
  24161. fi
  24162. POPT_INCLUDE="${POPT_INCLUDE} "
  24163. # check for the header
  24164. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24165. CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
  24166. ac_fn_c_check_header_compile "$LINENO" "popt.h" "ac_cv_header_popt_h" "$ac_includes_default"
  24167. if test "x$ac_cv_header_popt_h" = xyes
  24168. then :
  24169. POPT_HEADER_FOUND=1
  24170. else $as_nop
  24171. POPT_HEADER_FOUND=0
  24172. fi
  24173. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24174. if test "x${POPT_HEADER_FOUND}" = "x0" ; then
  24175. POPT_LIB=""
  24176. POPT_INCLUDE=""
  24177. else
  24178. PBX_POPT=1
  24179. cat >>confdefs.h <<_ACEOF
  24180. #define HAVE_POPT 1
  24181. _ACEOF
  24182. fi
  24183. fi
  24184. fi
  24185. if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
  24186. pkg_failed=no
  24187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for portaudio-2.0" >&5
  24188. printf %s "checking for portaudio-2.0... " >&6; }
  24189. if test -n "$PORTAUDIO_CFLAGS"; then
  24190. pkg_cv_PORTAUDIO_CFLAGS="$PORTAUDIO_CFLAGS"
  24191. elif test -n "$PKG_CONFIG"; then
  24192. if test -n "$PKG_CONFIG" && \
  24193. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0\""; } >&5
  24194. ($PKG_CONFIG --exists --print-errors "portaudio-2.0") 2>&5
  24195. ac_status=$?
  24196. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24197. test $ac_status = 0; }; then
  24198. pkg_cv_PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0" 2>/dev/null`
  24199. test "x$?" != "x0" && pkg_failed=yes
  24200. else
  24201. pkg_failed=yes
  24202. fi
  24203. else
  24204. pkg_failed=untried
  24205. fi
  24206. if test -n "$PORTAUDIO_LIBS"; then
  24207. pkg_cv_PORTAUDIO_LIBS="$PORTAUDIO_LIBS"
  24208. elif test -n "$PKG_CONFIG"; then
  24209. if test -n "$PKG_CONFIG" && \
  24210. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"portaudio-2.0\""; } >&5
  24211. ($PKG_CONFIG --exists --print-errors "portaudio-2.0") 2>&5
  24212. ac_status=$?
  24213. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24214. test $ac_status = 0; }; then
  24215. pkg_cv_PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0" 2>/dev/null`
  24216. test "x$?" != "x0" && pkg_failed=yes
  24217. else
  24218. pkg_failed=yes
  24219. fi
  24220. else
  24221. pkg_failed=untried
  24222. fi
  24223. if test $pkg_failed = yes; then
  24224. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24225. printf "%s\n" "no" >&6; }
  24226. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  24227. _pkg_short_errors_supported=yes
  24228. else
  24229. _pkg_short_errors_supported=no
  24230. fi
  24231. if test $_pkg_short_errors_supported = yes; then
  24232. PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "portaudio-2.0" 2>&1`
  24233. else
  24234. PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "portaudio-2.0" 2>&1`
  24235. fi
  24236. # Put the nasty error message in config.log where it belongs
  24237. echo "$PORTAUDIO_PKG_ERRORS" >&5
  24238. PBX_PORTAUDIO=0
  24239. elif test $pkg_failed = untried; then
  24240. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24241. printf "%s\n" "no" >&6; }
  24242. PBX_PORTAUDIO=0
  24243. else
  24244. PORTAUDIO_CFLAGS=$pkg_cv_PORTAUDIO_CFLAGS
  24245. PORTAUDIO_LIBS=$pkg_cv_PORTAUDIO_LIBS
  24246. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  24247. printf "%s\n" "yes" >&6; }
  24248. PBX_PORTAUDIO=1
  24249. PORTAUDIO_INCLUDE=$(echo ${PORTAUDIO_CFLAGS} | $SED -e "s|-std=c99||g")
  24250. PORTAUDIO_LIB="$PORTAUDIO_LIBS"
  24251. printf "%s\n" "#define HAVE_PORTAUDIO 1" >>confdefs.h
  24252. fi
  24253. fi
  24254. if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
  24255. pbxlibdir=""
  24256. # if --with-PORTAUDIO=DIR has been specified, use it.
  24257. if test "x${PORTAUDIO_DIR}" != "x"; then
  24258. if test -d ${PORTAUDIO_DIR}/lib; then
  24259. pbxlibdir="-L${PORTAUDIO_DIR}/lib"
  24260. else
  24261. pbxlibdir="-L${PORTAUDIO_DIR}"
  24262. fi
  24263. fi
  24264. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24265. CFLAGS="${CFLAGS} "
  24266. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Pa_GetDeviceCount in -lportaudio" >&5
  24267. printf %s "checking for Pa_GetDeviceCount in -lportaudio... " >&6; }
  24268. if test ${ac_cv_lib_portaudio_Pa_GetDeviceCount+y}
  24269. then :
  24270. printf %s "(cached) " >&6
  24271. else $as_nop
  24272. ac_check_lib_save_LIBS=$LIBS
  24273. LIBS="-lportaudio ${pbxlibdir} $LIBS"
  24274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24275. /* end confdefs.h. */
  24276. /* Override any GCC internal prototype to avoid an error.
  24277. Use char because int might match the return type of a GCC
  24278. builtin and then its argument prototype would still apply. */
  24279. char Pa_GetDeviceCount ();
  24280. int
  24281. main (void)
  24282. {
  24283. return Pa_GetDeviceCount ();
  24284. ;
  24285. return 0;
  24286. }
  24287. _ACEOF
  24288. if ac_fn_c_try_link "$LINENO"
  24289. then :
  24290. ac_cv_lib_portaudio_Pa_GetDeviceCount=yes
  24291. else $as_nop
  24292. ac_cv_lib_portaudio_Pa_GetDeviceCount=no
  24293. fi
  24294. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24295. conftest$ac_exeext conftest.$ac_ext
  24296. LIBS=$ac_check_lib_save_LIBS
  24297. fi
  24298. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_portaudio_Pa_GetDeviceCount" >&5
  24299. printf "%s\n" "$ac_cv_lib_portaudio_Pa_GetDeviceCount" >&6; }
  24300. if test "x$ac_cv_lib_portaudio_Pa_GetDeviceCount" = xyes
  24301. then :
  24302. AST_PORTAUDIO_FOUND=yes
  24303. else $as_nop
  24304. AST_PORTAUDIO_FOUND=no
  24305. fi
  24306. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24307. # now check for the header.
  24308. if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
  24309. PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
  24310. # if --with-PORTAUDIO=DIR has been specified, use it.
  24311. if test "x${PORTAUDIO_DIR}" != "x"; then
  24312. PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
  24313. fi
  24314. PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
  24315. # check for the header
  24316. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24317. CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE}"
  24318. ac_fn_c_check_header_compile "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
  24319. if test "x$ac_cv_header_portaudio_h" = xyes
  24320. then :
  24321. PORTAUDIO_HEADER_FOUND=1
  24322. else $as_nop
  24323. PORTAUDIO_HEADER_FOUND=0
  24324. fi
  24325. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24326. if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
  24327. PORTAUDIO_LIB=""
  24328. PORTAUDIO_INCLUDE=""
  24329. else
  24330. PBX_PORTAUDIO=1
  24331. cat >>confdefs.h <<_ACEOF
  24332. #define HAVE_PORTAUDIO 1
  24333. _ACEOF
  24334. fi
  24335. fi
  24336. fi
  24337. if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
  24338. pbxlibdir=""
  24339. # if --with-PRI=DIR has been specified, use it.
  24340. if test "x${PRI_DIR}" != "x"; then
  24341. if test -d ${PRI_DIR}/lib; then
  24342. pbxlibdir="-L${PRI_DIR}/lib"
  24343. else
  24344. pbxlibdir="-L${PRI_DIR}"
  24345. fi
  24346. fi
  24347. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24348. CFLAGS="${CFLAGS} "
  24349. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_connected_line_update in -lpri" >&5
  24350. printf %s "checking for pri_connected_line_update in -lpri... " >&6; }
  24351. if test ${ac_cv_lib_pri_pri_connected_line_update+y}
  24352. then :
  24353. printf %s "(cached) " >&6
  24354. else $as_nop
  24355. ac_check_lib_save_LIBS=$LIBS
  24356. LIBS="-lpri ${pbxlibdir} $LIBS"
  24357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24358. /* end confdefs.h. */
  24359. /* Override any GCC internal prototype to avoid an error.
  24360. Use char because int might match the return type of a GCC
  24361. builtin and then its argument prototype would still apply. */
  24362. char pri_connected_line_update ();
  24363. int
  24364. main (void)
  24365. {
  24366. return pri_connected_line_update ();
  24367. ;
  24368. return 0;
  24369. }
  24370. _ACEOF
  24371. if ac_fn_c_try_link "$LINENO"
  24372. then :
  24373. ac_cv_lib_pri_pri_connected_line_update=yes
  24374. else $as_nop
  24375. ac_cv_lib_pri_pri_connected_line_update=no
  24376. fi
  24377. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24378. conftest$ac_exeext conftest.$ac_ext
  24379. LIBS=$ac_check_lib_save_LIBS
  24380. fi
  24381. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_connected_line_update" >&5
  24382. printf "%s\n" "$ac_cv_lib_pri_pri_connected_line_update" >&6; }
  24383. if test "x$ac_cv_lib_pri_pri_connected_line_update" = xyes
  24384. then :
  24385. AST_PRI_FOUND=yes
  24386. else $as_nop
  24387. AST_PRI_FOUND=no
  24388. fi
  24389. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24390. # now check for the header.
  24391. if test "${AST_PRI_FOUND}" = "yes"; then
  24392. PRI_LIB="${pbxlibdir} -lpri "
  24393. # if --with-PRI=DIR has been specified, use it.
  24394. if test "x${PRI_DIR}" != "x"; then
  24395. PRI_INCLUDE="-I${PRI_DIR}/include"
  24396. fi
  24397. PRI_INCLUDE="${PRI_INCLUDE} "
  24398. # check for the header
  24399. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24400. CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
  24401. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  24402. if test "x$ac_cv_header_libpri_h" = xyes
  24403. then :
  24404. PRI_HEADER_FOUND=1
  24405. else $as_nop
  24406. PRI_HEADER_FOUND=0
  24407. fi
  24408. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24409. if test "x${PRI_HEADER_FOUND}" = "x0" ; then
  24410. PRI_LIB=""
  24411. PRI_INCLUDE=""
  24412. else
  24413. PBX_PRI=1
  24414. cat >>confdefs.h <<_ACEOF
  24415. #define HAVE_PRI 1
  24416. _ACEOF
  24417. fi
  24418. fi
  24419. fi
  24420. if test "x$PBX_PRI" = "x1" ; then
  24421. if test "x${PBX_PRI_SETUP_ACK_INBAND}" != "x1" -a "${USE_PRI_SETUP_ACK_INBAND}" != "no"; then
  24422. pbxlibdir=""
  24423. # if --with-PRI_SETUP_ACK_INBAND=DIR has been specified, use it.
  24424. if test "x${PRI_SETUP_ACK_INBAND_DIR}" != "x"; then
  24425. if test -d ${PRI_SETUP_ACK_INBAND_DIR}/lib; then
  24426. pbxlibdir="-L${PRI_SETUP_ACK_INBAND_DIR}/lib"
  24427. else
  24428. pbxlibdir="-L${PRI_SETUP_ACK_INBAND_DIR}"
  24429. fi
  24430. fi
  24431. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24432. CFLAGS="${CFLAGS} "
  24433. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_setup_ack in -lpri" >&5
  24434. printf %s "checking for pri_setup_ack in -lpri... " >&6; }
  24435. if test ${ac_cv_lib_pri_pri_setup_ack+y}
  24436. then :
  24437. printf %s "(cached) " >&6
  24438. else $as_nop
  24439. ac_check_lib_save_LIBS=$LIBS
  24440. LIBS="-lpri ${pbxlibdir} $LIBS"
  24441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24442. /* end confdefs.h. */
  24443. /* Override any GCC internal prototype to avoid an error.
  24444. Use char because int might match the return type of a GCC
  24445. builtin and then its argument prototype would still apply. */
  24446. char pri_setup_ack ();
  24447. int
  24448. main (void)
  24449. {
  24450. return pri_setup_ack ();
  24451. ;
  24452. return 0;
  24453. }
  24454. _ACEOF
  24455. if ac_fn_c_try_link "$LINENO"
  24456. then :
  24457. ac_cv_lib_pri_pri_setup_ack=yes
  24458. else $as_nop
  24459. ac_cv_lib_pri_pri_setup_ack=no
  24460. fi
  24461. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24462. conftest$ac_exeext conftest.$ac_ext
  24463. LIBS=$ac_check_lib_save_LIBS
  24464. fi
  24465. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_setup_ack" >&5
  24466. printf "%s\n" "$ac_cv_lib_pri_pri_setup_ack" >&6; }
  24467. if test "x$ac_cv_lib_pri_pri_setup_ack" = xyes
  24468. then :
  24469. AST_PRI_SETUP_ACK_INBAND_FOUND=yes
  24470. else $as_nop
  24471. AST_PRI_SETUP_ACK_INBAND_FOUND=no
  24472. fi
  24473. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24474. # now check for the header.
  24475. if test "${AST_PRI_SETUP_ACK_INBAND_FOUND}" = "yes"; then
  24476. PRI_SETUP_ACK_INBAND_LIB="${pbxlibdir} -lpri "
  24477. # if --with-PRI_SETUP_ACK_INBAND=DIR has been specified, use it.
  24478. if test "x${PRI_SETUP_ACK_INBAND_DIR}" != "x"; then
  24479. PRI_SETUP_ACK_INBAND_INCLUDE="-I${PRI_SETUP_ACK_INBAND_DIR}/include"
  24480. fi
  24481. PRI_SETUP_ACK_INBAND_INCLUDE="${PRI_SETUP_ACK_INBAND_INCLUDE} "
  24482. # check for the header
  24483. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24484. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_ACK_INBAND_INCLUDE}"
  24485. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  24486. if test "x$ac_cv_header_libpri_h" = xyes
  24487. then :
  24488. PRI_SETUP_ACK_INBAND_HEADER_FOUND=1
  24489. else $as_nop
  24490. PRI_SETUP_ACK_INBAND_HEADER_FOUND=0
  24491. fi
  24492. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24493. if test "x${PRI_SETUP_ACK_INBAND_HEADER_FOUND}" = "x0" ; then
  24494. PRI_SETUP_ACK_INBAND_LIB=""
  24495. PRI_SETUP_ACK_INBAND_INCLUDE=""
  24496. else
  24497. PBX_PRI_SETUP_ACK_INBAND=1
  24498. cat >>confdefs.h <<_ACEOF
  24499. #define HAVE_PRI_SETUP_ACK_INBAND 1
  24500. _ACEOF
  24501. fi
  24502. fi
  24503. fi
  24504. if test "x${PBX_PRI_L2_PERSISTENCE}" != "x1" -a "${USE_PRI_L2_PERSISTENCE}" != "no"; then
  24505. pbxlibdir=""
  24506. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  24507. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  24508. if test -d ${PRI_L2_PERSISTENCE_DIR}/lib; then
  24509. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}/lib"
  24510. else
  24511. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}"
  24512. fi
  24513. fi
  24514. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24515. CFLAGS="${CFLAGS} "
  24516. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_persistent_layer2_option in -lpri" >&5
  24517. printf %s "checking for pri_persistent_layer2_option in -lpri... " >&6; }
  24518. if test ${ac_cv_lib_pri_pri_persistent_layer2_option+y}
  24519. then :
  24520. printf %s "(cached) " >&6
  24521. else $as_nop
  24522. ac_check_lib_save_LIBS=$LIBS
  24523. LIBS="-lpri ${pbxlibdir} $LIBS"
  24524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24525. /* end confdefs.h. */
  24526. /* Override any GCC internal prototype to avoid an error.
  24527. Use char because int might match the return type of a GCC
  24528. builtin and then its argument prototype would still apply. */
  24529. char pri_persistent_layer2_option ();
  24530. int
  24531. main (void)
  24532. {
  24533. return pri_persistent_layer2_option ();
  24534. ;
  24535. return 0;
  24536. }
  24537. _ACEOF
  24538. if ac_fn_c_try_link "$LINENO"
  24539. then :
  24540. ac_cv_lib_pri_pri_persistent_layer2_option=yes
  24541. else $as_nop
  24542. ac_cv_lib_pri_pri_persistent_layer2_option=no
  24543. fi
  24544. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24545. conftest$ac_exeext conftest.$ac_ext
  24546. LIBS=$ac_check_lib_save_LIBS
  24547. fi
  24548. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_persistent_layer2_option" >&5
  24549. printf "%s\n" "$ac_cv_lib_pri_pri_persistent_layer2_option" >&6; }
  24550. if test "x$ac_cv_lib_pri_pri_persistent_layer2_option" = xyes
  24551. then :
  24552. AST_PRI_L2_PERSISTENCE_FOUND=yes
  24553. else $as_nop
  24554. AST_PRI_L2_PERSISTENCE_FOUND=no
  24555. fi
  24556. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24557. # now check for the header.
  24558. if test "${AST_PRI_L2_PERSISTENCE_FOUND}" = "yes"; then
  24559. PRI_L2_PERSISTENCE_LIB="${pbxlibdir} -lpri "
  24560. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  24561. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  24562. PRI_L2_PERSISTENCE_INCLUDE="-I${PRI_L2_PERSISTENCE_DIR}/include"
  24563. fi
  24564. PRI_L2_PERSISTENCE_INCLUDE="${PRI_L2_PERSISTENCE_INCLUDE} "
  24565. # check for the header
  24566. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24567. CPPFLAGS="${CPPFLAGS} ${PRI_L2_PERSISTENCE_INCLUDE}"
  24568. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  24569. if test "x$ac_cv_header_libpri_h" = xyes
  24570. then :
  24571. PRI_L2_PERSISTENCE_HEADER_FOUND=1
  24572. else $as_nop
  24573. PRI_L2_PERSISTENCE_HEADER_FOUND=0
  24574. fi
  24575. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24576. if test "x${PRI_L2_PERSISTENCE_HEADER_FOUND}" = "x0" ; then
  24577. PRI_L2_PERSISTENCE_LIB=""
  24578. PRI_L2_PERSISTENCE_INCLUDE=""
  24579. else
  24580. PBX_PRI_L2_PERSISTENCE=1
  24581. cat >>confdefs.h <<_ACEOF
  24582. #define HAVE_PRI_L2_PERSISTENCE 1
  24583. _ACEOF
  24584. fi
  24585. fi
  24586. fi
  24587. if test "x${PBX_PRI_DATETIME_SEND}" != "x1" -a "${USE_PRI_DATETIME_SEND}" != "no"; then
  24588. pbxlibdir=""
  24589. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  24590. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  24591. if test -d ${PRI_DATETIME_SEND_DIR}/lib; then
  24592. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}/lib"
  24593. else
  24594. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}"
  24595. fi
  24596. fi
  24597. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24598. CFLAGS="${CFLAGS} "
  24599. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_date_time_send_option in -lpri" >&5
  24600. printf %s "checking for pri_date_time_send_option in -lpri... " >&6; }
  24601. if test ${ac_cv_lib_pri_pri_date_time_send_option+y}
  24602. then :
  24603. printf %s "(cached) " >&6
  24604. else $as_nop
  24605. ac_check_lib_save_LIBS=$LIBS
  24606. LIBS="-lpri ${pbxlibdir} $LIBS"
  24607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24608. /* end confdefs.h. */
  24609. /* Override any GCC internal prototype to avoid an error.
  24610. Use char because int might match the return type of a GCC
  24611. builtin and then its argument prototype would still apply. */
  24612. char pri_date_time_send_option ();
  24613. int
  24614. main (void)
  24615. {
  24616. return pri_date_time_send_option ();
  24617. ;
  24618. return 0;
  24619. }
  24620. _ACEOF
  24621. if ac_fn_c_try_link "$LINENO"
  24622. then :
  24623. ac_cv_lib_pri_pri_date_time_send_option=yes
  24624. else $as_nop
  24625. ac_cv_lib_pri_pri_date_time_send_option=no
  24626. fi
  24627. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24628. conftest$ac_exeext conftest.$ac_ext
  24629. LIBS=$ac_check_lib_save_LIBS
  24630. fi
  24631. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_date_time_send_option" >&5
  24632. printf "%s\n" "$ac_cv_lib_pri_pri_date_time_send_option" >&6; }
  24633. if test "x$ac_cv_lib_pri_pri_date_time_send_option" = xyes
  24634. then :
  24635. AST_PRI_DATETIME_SEND_FOUND=yes
  24636. else $as_nop
  24637. AST_PRI_DATETIME_SEND_FOUND=no
  24638. fi
  24639. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24640. # now check for the header.
  24641. if test "${AST_PRI_DATETIME_SEND_FOUND}" = "yes"; then
  24642. PRI_DATETIME_SEND_LIB="${pbxlibdir} -lpri "
  24643. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  24644. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  24645. PRI_DATETIME_SEND_INCLUDE="-I${PRI_DATETIME_SEND_DIR}/include"
  24646. fi
  24647. PRI_DATETIME_SEND_INCLUDE="${PRI_DATETIME_SEND_INCLUDE} "
  24648. # check for the header
  24649. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24650. CPPFLAGS="${CPPFLAGS} ${PRI_DATETIME_SEND_INCLUDE}"
  24651. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  24652. if test "x$ac_cv_header_libpri_h" = xyes
  24653. then :
  24654. PRI_DATETIME_SEND_HEADER_FOUND=1
  24655. else $as_nop
  24656. PRI_DATETIME_SEND_HEADER_FOUND=0
  24657. fi
  24658. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24659. if test "x${PRI_DATETIME_SEND_HEADER_FOUND}" = "x0" ; then
  24660. PRI_DATETIME_SEND_LIB=""
  24661. PRI_DATETIME_SEND_INCLUDE=""
  24662. else
  24663. PBX_PRI_DATETIME_SEND=1
  24664. cat >>confdefs.h <<_ACEOF
  24665. #define HAVE_PRI_DATETIME_SEND 1
  24666. _ACEOF
  24667. fi
  24668. fi
  24669. fi
  24670. if test "x${PBX_PRI_MWI_V2}" != "x1" -a "${USE_PRI_MWI_V2}" != "no"; then
  24671. pbxlibdir=""
  24672. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  24673. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  24674. if test -d ${PRI_MWI_V2_DIR}/lib; then
  24675. pbxlibdir="-L${PRI_MWI_V2_DIR}/lib"
  24676. else
  24677. pbxlibdir="-L${PRI_MWI_V2_DIR}"
  24678. fi
  24679. fi
  24680. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24681. CFLAGS="${CFLAGS} "
  24682. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_mwi_indicate_v2 in -lpri" >&5
  24683. printf %s "checking for pri_mwi_indicate_v2 in -lpri... " >&6; }
  24684. if test ${ac_cv_lib_pri_pri_mwi_indicate_v2+y}
  24685. then :
  24686. printf %s "(cached) " >&6
  24687. else $as_nop
  24688. ac_check_lib_save_LIBS=$LIBS
  24689. LIBS="-lpri ${pbxlibdir} $LIBS"
  24690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24691. /* end confdefs.h. */
  24692. /* Override any GCC internal prototype to avoid an error.
  24693. Use char because int might match the return type of a GCC
  24694. builtin and then its argument prototype would still apply. */
  24695. char pri_mwi_indicate_v2 ();
  24696. int
  24697. main (void)
  24698. {
  24699. return pri_mwi_indicate_v2 ();
  24700. ;
  24701. return 0;
  24702. }
  24703. _ACEOF
  24704. if ac_fn_c_try_link "$LINENO"
  24705. then :
  24706. ac_cv_lib_pri_pri_mwi_indicate_v2=yes
  24707. else $as_nop
  24708. ac_cv_lib_pri_pri_mwi_indicate_v2=no
  24709. fi
  24710. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24711. conftest$ac_exeext conftest.$ac_ext
  24712. LIBS=$ac_check_lib_save_LIBS
  24713. fi
  24714. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_mwi_indicate_v2" >&5
  24715. printf "%s\n" "$ac_cv_lib_pri_pri_mwi_indicate_v2" >&6; }
  24716. if test "x$ac_cv_lib_pri_pri_mwi_indicate_v2" = xyes
  24717. then :
  24718. AST_PRI_MWI_V2_FOUND=yes
  24719. else $as_nop
  24720. AST_PRI_MWI_V2_FOUND=no
  24721. fi
  24722. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24723. # now check for the header.
  24724. if test "${AST_PRI_MWI_V2_FOUND}" = "yes"; then
  24725. PRI_MWI_V2_LIB="${pbxlibdir} -lpri "
  24726. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  24727. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  24728. PRI_MWI_V2_INCLUDE="-I${PRI_MWI_V2_DIR}/include"
  24729. fi
  24730. PRI_MWI_V2_INCLUDE="${PRI_MWI_V2_INCLUDE} "
  24731. # check for the header
  24732. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24733. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_V2_INCLUDE}"
  24734. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  24735. if test "x$ac_cv_header_libpri_h" = xyes
  24736. then :
  24737. PRI_MWI_V2_HEADER_FOUND=1
  24738. else $as_nop
  24739. PRI_MWI_V2_HEADER_FOUND=0
  24740. fi
  24741. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24742. if test "x${PRI_MWI_V2_HEADER_FOUND}" = "x0" ; then
  24743. PRI_MWI_V2_LIB=""
  24744. PRI_MWI_V2_INCLUDE=""
  24745. else
  24746. PBX_PRI_MWI_V2=1
  24747. cat >>confdefs.h <<_ACEOF
  24748. #define HAVE_PRI_MWI_V2 1
  24749. _ACEOF
  24750. fi
  24751. fi
  24752. fi
  24753. if test "x${PBX_PRI_DISPLAY_TEXT}" != "x1" -a "${USE_PRI_DISPLAY_TEXT}" != "no"; then
  24754. pbxlibdir=""
  24755. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  24756. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  24757. if test -d ${PRI_DISPLAY_TEXT_DIR}/lib; then
  24758. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}/lib"
  24759. else
  24760. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}"
  24761. fi
  24762. fi
  24763. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24764. CFLAGS="${CFLAGS} "
  24765. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_display_text in -lpri" >&5
  24766. printf %s "checking for pri_display_text in -lpri... " >&6; }
  24767. if test ${ac_cv_lib_pri_pri_display_text+y}
  24768. then :
  24769. printf %s "(cached) " >&6
  24770. else $as_nop
  24771. ac_check_lib_save_LIBS=$LIBS
  24772. LIBS="-lpri ${pbxlibdir} $LIBS"
  24773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24774. /* end confdefs.h. */
  24775. /* Override any GCC internal prototype to avoid an error.
  24776. Use char because int might match the return type of a GCC
  24777. builtin and then its argument prototype would still apply. */
  24778. char pri_display_text ();
  24779. int
  24780. main (void)
  24781. {
  24782. return pri_display_text ();
  24783. ;
  24784. return 0;
  24785. }
  24786. _ACEOF
  24787. if ac_fn_c_try_link "$LINENO"
  24788. then :
  24789. ac_cv_lib_pri_pri_display_text=yes
  24790. else $as_nop
  24791. ac_cv_lib_pri_pri_display_text=no
  24792. fi
  24793. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24794. conftest$ac_exeext conftest.$ac_ext
  24795. LIBS=$ac_check_lib_save_LIBS
  24796. fi
  24797. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_display_text" >&5
  24798. printf "%s\n" "$ac_cv_lib_pri_pri_display_text" >&6; }
  24799. if test "x$ac_cv_lib_pri_pri_display_text" = xyes
  24800. then :
  24801. AST_PRI_DISPLAY_TEXT_FOUND=yes
  24802. else $as_nop
  24803. AST_PRI_DISPLAY_TEXT_FOUND=no
  24804. fi
  24805. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24806. # now check for the header.
  24807. if test "${AST_PRI_DISPLAY_TEXT_FOUND}" = "yes"; then
  24808. PRI_DISPLAY_TEXT_LIB="${pbxlibdir} -lpri "
  24809. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  24810. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  24811. PRI_DISPLAY_TEXT_INCLUDE="-I${PRI_DISPLAY_TEXT_DIR}/include"
  24812. fi
  24813. PRI_DISPLAY_TEXT_INCLUDE="${PRI_DISPLAY_TEXT_INCLUDE} "
  24814. # check for the header
  24815. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24816. CPPFLAGS="${CPPFLAGS} ${PRI_DISPLAY_TEXT_INCLUDE}"
  24817. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  24818. if test "x$ac_cv_header_libpri_h" = xyes
  24819. then :
  24820. PRI_DISPLAY_TEXT_HEADER_FOUND=1
  24821. else $as_nop
  24822. PRI_DISPLAY_TEXT_HEADER_FOUND=0
  24823. fi
  24824. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24825. if test "x${PRI_DISPLAY_TEXT_HEADER_FOUND}" = "x0" ; then
  24826. PRI_DISPLAY_TEXT_LIB=""
  24827. PRI_DISPLAY_TEXT_INCLUDE=""
  24828. else
  24829. PBX_PRI_DISPLAY_TEXT=1
  24830. cat >>confdefs.h <<_ACEOF
  24831. #define HAVE_PRI_DISPLAY_TEXT 1
  24832. _ACEOF
  24833. fi
  24834. fi
  24835. fi
  24836. if test "x${PBX_PRI_MWI}" != "x1" -a "${USE_PRI_MWI}" != "no"; then
  24837. pbxlibdir=""
  24838. # if --with-PRI_MWI=DIR has been specified, use it.
  24839. if test "x${PRI_MWI_DIR}" != "x"; then
  24840. if test -d ${PRI_MWI_DIR}/lib; then
  24841. pbxlibdir="-L${PRI_MWI_DIR}/lib"
  24842. else
  24843. pbxlibdir="-L${PRI_MWI_DIR}"
  24844. fi
  24845. fi
  24846. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24847. CFLAGS="${CFLAGS} "
  24848. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_mwi_indicate in -lpri" >&5
  24849. printf %s "checking for pri_mwi_indicate in -lpri... " >&6; }
  24850. if test ${ac_cv_lib_pri_pri_mwi_indicate+y}
  24851. then :
  24852. printf %s "(cached) " >&6
  24853. else $as_nop
  24854. ac_check_lib_save_LIBS=$LIBS
  24855. LIBS="-lpri ${pbxlibdir} $LIBS"
  24856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24857. /* end confdefs.h. */
  24858. /* Override any GCC internal prototype to avoid an error.
  24859. Use char because int might match the return type of a GCC
  24860. builtin and then its argument prototype would still apply. */
  24861. char pri_mwi_indicate ();
  24862. int
  24863. main (void)
  24864. {
  24865. return pri_mwi_indicate ();
  24866. ;
  24867. return 0;
  24868. }
  24869. _ACEOF
  24870. if ac_fn_c_try_link "$LINENO"
  24871. then :
  24872. ac_cv_lib_pri_pri_mwi_indicate=yes
  24873. else $as_nop
  24874. ac_cv_lib_pri_pri_mwi_indicate=no
  24875. fi
  24876. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24877. conftest$ac_exeext conftest.$ac_ext
  24878. LIBS=$ac_check_lib_save_LIBS
  24879. fi
  24880. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_mwi_indicate" >&5
  24881. printf "%s\n" "$ac_cv_lib_pri_pri_mwi_indicate" >&6; }
  24882. if test "x$ac_cv_lib_pri_pri_mwi_indicate" = xyes
  24883. then :
  24884. AST_PRI_MWI_FOUND=yes
  24885. else $as_nop
  24886. AST_PRI_MWI_FOUND=no
  24887. fi
  24888. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24889. # now check for the header.
  24890. if test "${AST_PRI_MWI_FOUND}" = "yes"; then
  24891. PRI_MWI_LIB="${pbxlibdir} -lpri "
  24892. # if --with-PRI_MWI=DIR has been specified, use it.
  24893. if test "x${PRI_MWI_DIR}" != "x"; then
  24894. PRI_MWI_INCLUDE="-I${PRI_MWI_DIR}/include"
  24895. fi
  24896. PRI_MWI_INCLUDE="${PRI_MWI_INCLUDE} "
  24897. # check for the header
  24898. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24899. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_INCLUDE}"
  24900. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  24901. if test "x$ac_cv_header_libpri_h" = xyes
  24902. then :
  24903. PRI_MWI_HEADER_FOUND=1
  24904. else $as_nop
  24905. PRI_MWI_HEADER_FOUND=0
  24906. fi
  24907. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24908. if test "x${PRI_MWI_HEADER_FOUND}" = "x0" ; then
  24909. PRI_MWI_LIB=""
  24910. PRI_MWI_INCLUDE=""
  24911. else
  24912. PBX_PRI_MWI=1
  24913. cat >>confdefs.h <<_ACEOF
  24914. #define HAVE_PRI_MWI 1
  24915. _ACEOF
  24916. fi
  24917. fi
  24918. fi
  24919. if test "x${PBX_PRI_MCID}" != "x1" -a "${USE_PRI_MCID}" != "no"; then
  24920. pbxlibdir=""
  24921. # if --with-PRI_MCID=DIR has been specified, use it.
  24922. if test "x${PRI_MCID_DIR}" != "x"; then
  24923. if test -d ${PRI_MCID_DIR}/lib; then
  24924. pbxlibdir="-L${PRI_MCID_DIR}/lib"
  24925. else
  24926. pbxlibdir="-L${PRI_MCID_DIR}"
  24927. fi
  24928. fi
  24929. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24930. CFLAGS="${CFLAGS} "
  24931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_mcid_enable in -lpri" >&5
  24932. printf %s "checking for pri_mcid_enable in -lpri... " >&6; }
  24933. if test ${ac_cv_lib_pri_pri_mcid_enable+y}
  24934. then :
  24935. printf %s "(cached) " >&6
  24936. else $as_nop
  24937. ac_check_lib_save_LIBS=$LIBS
  24938. LIBS="-lpri ${pbxlibdir} $LIBS"
  24939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24940. /* end confdefs.h. */
  24941. /* Override any GCC internal prototype to avoid an error.
  24942. Use char because int might match the return type of a GCC
  24943. builtin and then its argument prototype would still apply. */
  24944. char pri_mcid_enable ();
  24945. int
  24946. main (void)
  24947. {
  24948. return pri_mcid_enable ();
  24949. ;
  24950. return 0;
  24951. }
  24952. _ACEOF
  24953. if ac_fn_c_try_link "$LINENO"
  24954. then :
  24955. ac_cv_lib_pri_pri_mcid_enable=yes
  24956. else $as_nop
  24957. ac_cv_lib_pri_pri_mcid_enable=no
  24958. fi
  24959. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  24960. conftest$ac_exeext conftest.$ac_ext
  24961. LIBS=$ac_check_lib_save_LIBS
  24962. fi
  24963. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_mcid_enable" >&5
  24964. printf "%s\n" "$ac_cv_lib_pri_pri_mcid_enable" >&6; }
  24965. if test "x$ac_cv_lib_pri_pri_mcid_enable" = xyes
  24966. then :
  24967. AST_PRI_MCID_FOUND=yes
  24968. else $as_nop
  24969. AST_PRI_MCID_FOUND=no
  24970. fi
  24971. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24972. # now check for the header.
  24973. if test "${AST_PRI_MCID_FOUND}" = "yes"; then
  24974. PRI_MCID_LIB="${pbxlibdir} -lpri "
  24975. # if --with-PRI_MCID=DIR has been specified, use it.
  24976. if test "x${PRI_MCID_DIR}" != "x"; then
  24977. PRI_MCID_INCLUDE="-I${PRI_MCID_DIR}/include"
  24978. fi
  24979. PRI_MCID_INCLUDE="${PRI_MCID_INCLUDE} "
  24980. # check for the header
  24981. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24982. CPPFLAGS="${CPPFLAGS} ${PRI_MCID_INCLUDE}"
  24983. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  24984. if test "x$ac_cv_header_libpri_h" = xyes
  24985. then :
  24986. PRI_MCID_HEADER_FOUND=1
  24987. else $as_nop
  24988. PRI_MCID_HEADER_FOUND=0
  24989. fi
  24990. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24991. if test "x${PRI_MCID_HEADER_FOUND}" = "x0" ; then
  24992. PRI_MCID_LIB=""
  24993. PRI_MCID_INCLUDE=""
  24994. else
  24995. PBX_PRI_MCID=1
  24996. cat >>confdefs.h <<_ACEOF
  24997. #define HAVE_PRI_MCID 1
  24998. _ACEOF
  24999. fi
  25000. fi
  25001. fi
  25002. if test "x${PBX_PRI_CALL_WAITING}" != "x1" -a "${USE_PRI_CALL_WAITING}" != "no"; then
  25003. pbxlibdir=""
  25004. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  25005. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  25006. if test -d ${PRI_CALL_WAITING_DIR}/lib; then
  25007. pbxlibdir="-L${PRI_CALL_WAITING_DIR}/lib"
  25008. else
  25009. pbxlibdir="-L${PRI_CALL_WAITING_DIR}"
  25010. fi
  25011. fi
  25012. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25013. CFLAGS="${CFLAGS} "
  25014. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_connect_ack_enable in -lpri" >&5
  25015. printf %s "checking for pri_connect_ack_enable in -lpri... " >&6; }
  25016. if test ${ac_cv_lib_pri_pri_connect_ack_enable+y}
  25017. then :
  25018. printf %s "(cached) " >&6
  25019. else $as_nop
  25020. ac_check_lib_save_LIBS=$LIBS
  25021. LIBS="-lpri ${pbxlibdir} $LIBS"
  25022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25023. /* end confdefs.h. */
  25024. /* Override any GCC internal prototype to avoid an error.
  25025. Use char because int might match the return type of a GCC
  25026. builtin and then its argument prototype would still apply. */
  25027. char pri_connect_ack_enable ();
  25028. int
  25029. main (void)
  25030. {
  25031. return pri_connect_ack_enable ();
  25032. ;
  25033. return 0;
  25034. }
  25035. _ACEOF
  25036. if ac_fn_c_try_link "$LINENO"
  25037. then :
  25038. ac_cv_lib_pri_pri_connect_ack_enable=yes
  25039. else $as_nop
  25040. ac_cv_lib_pri_pri_connect_ack_enable=no
  25041. fi
  25042. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25043. conftest$ac_exeext conftest.$ac_ext
  25044. LIBS=$ac_check_lib_save_LIBS
  25045. fi
  25046. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_connect_ack_enable" >&5
  25047. printf "%s\n" "$ac_cv_lib_pri_pri_connect_ack_enable" >&6; }
  25048. if test "x$ac_cv_lib_pri_pri_connect_ack_enable" = xyes
  25049. then :
  25050. AST_PRI_CALL_WAITING_FOUND=yes
  25051. else $as_nop
  25052. AST_PRI_CALL_WAITING_FOUND=no
  25053. fi
  25054. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25055. # now check for the header.
  25056. if test "${AST_PRI_CALL_WAITING_FOUND}" = "yes"; then
  25057. PRI_CALL_WAITING_LIB="${pbxlibdir} -lpri "
  25058. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  25059. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  25060. PRI_CALL_WAITING_INCLUDE="-I${PRI_CALL_WAITING_DIR}/include"
  25061. fi
  25062. PRI_CALL_WAITING_INCLUDE="${PRI_CALL_WAITING_INCLUDE} "
  25063. # check for the header
  25064. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25065. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_WAITING_INCLUDE}"
  25066. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  25067. if test "x$ac_cv_header_libpri_h" = xyes
  25068. then :
  25069. PRI_CALL_WAITING_HEADER_FOUND=1
  25070. else $as_nop
  25071. PRI_CALL_WAITING_HEADER_FOUND=0
  25072. fi
  25073. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25074. if test "x${PRI_CALL_WAITING_HEADER_FOUND}" = "x0" ; then
  25075. PRI_CALL_WAITING_LIB=""
  25076. PRI_CALL_WAITING_INCLUDE=""
  25077. else
  25078. PBX_PRI_CALL_WAITING=1
  25079. cat >>confdefs.h <<_ACEOF
  25080. #define HAVE_PRI_CALL_WAITING 1
  25081. _ACEOF
  25082. fi
  25083. fi
  25084. fi
  25085. if test "x${PBX_PRI_AOC_EVENTS}" != "x1" -a "${USE_PRI_AOC_EVENTS}" != "no"; then
  25086. pbxlibdir=""
  25087. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  25088. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  25089. if test -d ${PRI_AOC_EVENTS_DIR}/lib; then
  25090. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}/lib"
  25091. else
  25092. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}"
  25093. fi
  25094. fi
  25095. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25096. CFLAGS="${CFLAGS} "
  25097. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_aoc_events_enable in -lpri" >&5
  25098. printf %s "checking for pri_aoc_events_enable in -lpri... " >&6; }
  25099. if test ${ac_cv_lib_pri_pri_aoc_events_enable+y}
  25100. then :
  25101. printf %s "(cached) " >&6
  25102. else $as_nop
  25103. ac_check_lib_save_LIBS=$LIBS
  25104. LIBS="-lpri ${pbxlibdir} $LIBS"
  25105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25106. /* end confdefs.h. */
  25107. /* Override any GCC internal prototype to avoid an error.
  25108. Use char because int might match the return type of a GCC
  25109. builtin and then its argument prototype would still apply. */
  25110. char pri_aoc_events_enable ();
  25111. int
  25112. main (void)
  25113. {
  25114. return pri_aoc_events_enable ();
  25115. ;
  25116. return 0;
  25117. }
  25118. _ACEOF
  25119. if ac_fn_c_try_link "$LINENO"
  25120. then :
  25121. ac_cv_lib_pri_pri_aoc_events_enable=yes
  25122. else $as_nop
  25123. ac_cv_lib_pri_pri_aoc_events_enable=no
  25124. fi
  25125. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25126. conftest$ac_exeext conftest.$ac_ext
  25127. LIBS=$ac_check_lib_save_LIBS
  25128. fi
  25129. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_aoc_events_enable" >&5
  25130. printf "%s\n" "$ac_cv_lib_pri_pri_aoc_events_enable" >&6; }
  25131. if test "x$ac_cv_lib_pri_pri_aoc_events_enable" = xyes
  25132. then :
  25133. AST_PRI_AOC_EVENTS_FOUND=yes
  25134. else $as_nop
  25135. AST_PRI_AOC_EVENTS_FOUND=no
  25136. fi
  25137. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25138. # now check for the header.
  25139. if test "${AST_PRI_AOC_EVENTS_FOUND}" = "yes"; then
  25140. PRI_AOC_EVENTS_LIB="${pbxlibdir} -lpri "
  25141. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  25142. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  25143. PRI_AOC_EVENTS_INCLUDE="-I${PRI_AOC_EVENTS_DIR}/include"
  25144. fi
  25145. PRI_AOC_EVENTS_INCLUDE="${PRI_AOC_EVENTS_INCLUDE} "
  25146. # check for the header
  25147. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25148. CPPFLAGS="${CPPFLAGS} ${PRI_AOC_EVENTS_INCLUDE}"
  25149. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  25150. if test "x$ac_cv_header_libpri_h" = xyes
  25151. then :
  25152. PRI_AOC_EVENTS_HEADER_FOUND=1
  25153. else $as_nop
  25154. PRI_AOC_EVENTS_HEADER_FOUND=0
  25155. fi
  25156. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25157. if test "x${PRI_AOC_EVENTS_HEADER_FOUND}" = "x0" ; then
  25158. PRI_AOC_EVENTS_LIB=""
  25159. PRI_AOC_EVENTS_INCLUDE=""
  25160. else
  25161. PBX_PRI_AOC_EVENTS=1
  25162. cat >>confdefs.h <<_ACEOF
  25163. #define HAVE_PRI_AOC_EVENTS 1
  25164. _ACEOF
  25165. fi
  25166. fi
  25167. fi
  25168. if test "x${PBX_PRI_TRANSFER}" != "x1" -a "${USE_PRI_TRANSFER}" != "no"; then
  25169. pbxlibdir=""
  25170. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  25171. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  25172. if test -d ${PRI_TRANSFER_DIR}/lib; then
  25173. pbxlibdir="-L${PRI_TRANSFER_DIR}/lib"
  25174. else
  25175. pbxlibdir="-L${PRI_TRANSFER_DIR}"
  25176. fi
  25177. fi
  25178. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25179. CFLAGS="${CFLAGS} "
  25180. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_transfer_enable in -lpri" >&5
  25181. printf %s "checking for pri_transfer_enable in -lpri... " >&6; }
  25182. if test ${ac_cv_lib_pri_pri_transfer_enable+y}
  25183. then :
  25184. printf %s "(cached) " >&6
  25185. else $as_nop
  25186. ac_check_lib_save_LIBS=$LIBS
  25187. LIBS="-lpri ${pbxlibdir} $LIBS"
  25188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25189. /* end confdefs.h. */
  25190. /* Override any GCC internal prototype to avoid an error.
  25191. Use char because int might match the return type of a GCC
  25192. builtin and then its argument prototype would still apply. */
  25193. char pri_transfer_enable ();
  25194. int
  25195. main (void)
  25196. {
  25197. return pri_transfer_enable ();
  25198. ;
  25199. return 0;
  25200. }
  25201. _ACEOF
  25202. if ac_fn_c_try_link "$LINENO"
  25203. then :
  25204. ac_cv_lib_pri_pri_transfer_enable=yes
  25205. else $as_nop
  25206. ac_cv_lib_pri_pri_transfer_enable=no
  25207. fi
  25208. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25209. conftest$ac_exeext conftest.$ac_ext
  25210. LIBS=$ac_check_lib_save_LIBS
  25211. fi
  25212. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_transfer_enable" >&5
  25213. printf "%s\n" "$ac_cv_lib_pri_pri_transfer_enable" >&6; }
  25214. if test "x$ac_cv_lib_pri_pri_transfer_enable" = xyes
  25215. then :
  25216. AST_PRI_TRANSFER_FOUND=yes
  25217. else $as_nop
  25218. AST_PRI_TRANSFER_FOUND=no
  25219. fi
  25220. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25221. # now check for the header.
  25222. if test "${AST_PRI_TRANSFER_FOUND}" = "yes"; then
  25223. PRI_TRANSFER_LIB="${pbxlibdir} -lpri "
  25224. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  25225. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  25226. PRI_TRANSFER_INCLUDE="-I${PRI_TRANSFER_DIR}/include"
  25227. fi
  25228. PRI_TRANSFER_INCLUDE="${PRI_TRANSFER_INCLUDE} "
  25229. # check for the header
  25230. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25231. CPPFLAGS="${CPPFLAGS} ${PRI_TRANSFER_INCLUDE}"
  25232. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  25233. if test "x$ac_cv_header_libpri_h" = xyes
  25234. then :
  25235. PRI_TRANSFER_HEADER_FOUND=1
  25236. else $as_nop
  25237. PRI_TRANSFER_HEADER_FOUND=0
  25238. fi
  25239. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25240. if test "x${PRI_TRANSFER_HEADER_FOUND}" = "x0" ; then
  25241. PRI_TRANSFER_LIB=""
  25242. PRI_TRANSFER_INCLUDE=""
  25243. else
  25244. PBX_PRI_TRANSFER=1
  25245. cat >>confdefs.h <<_ACEOF
  25246. #define HAVE_PRI_TRANSFER 1
  25247. _ACEOF
  25248. fi
  25249. fi
  25250. fi
  25251. if test "x${PBX_PRI_CCSS}" != "x1" -a "${USE_PRI_CCSS}" != "no"; then
  25252. pbxlibdir=""
  25253. # if --with-PRI_CCSS=DIR has been specified, use it.
  25254. if test "x${PRI_CCSS_DIR}" != "x"; then
  25255. if test -d ${PRI_CCSS_DIR}/lib; then
  25256. pbxlibdir="-L${PRI_CCSS_DIR}/lib"
  25257. else
  25258. pbxlibdir="-L${PRI_CCSS_DIR}"
  25259. fi
  25260. fi
  25261. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25262. CFLAGS="${CFLAGS} "
  25263. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_cc_enable in -lpri" >&5
  25264. printf %s "checking for pri_cc_enable in -lpri... " >&6; }
  25265. if test ${ac_cv_lib_pri_pri_cc_enable+y}
  25266. then :
  25267. printf %s "(cached) " >&6
  25268. else $as_nop
  25269. ac_check_lib_save_LIBS=$LIBS
  25270. LIBS="-lpri ${pbxlibdir} $LIBS"
  25271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25272. /* end confdefs.h. */
  25273. /* Override any GCC internal prototype to avoid an error.
  25274. Use char because int might match the return type of a GCC
  25275. builtin and then its argument prototype would still apply. */
  25276. char pri_cc_enable ();
  25277. int
  25278. main (void)
  25279. {
  25280. return pri_cc_enable ();
  25281. ;
  25282. return 0;
  25283. }
  25284. _ACEOF
  25285. if ac_fn_c_try_link "$LINENO"
  25286. then :
  25287. ac_cv_lib_pri_pri_cc_enable=yes
  25288. else $as_nop
  25289. ac_cv_lib_pri_pri_cc_enable=no
  25290. fi
  25291. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25292. conftest$ac_exeext conftest.$ac_ext
  25293. LIBS=$ac_check_lib_save_LIBS
  25294. fi
  25295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_cc_enable" >&5
  25296. printf "%s\n" "$ac_cv_lib_pri_pri_cc_enable" >&6; }
  25297. if test "x$ac_cv_lib_pri_pri_cc_enable" = xyes
  25298. then :
  25299. AST_PRI_CCSS_FOUND=yes
  25300. else $as_nop
  25301. AST_PRI_CCSS_FOUND=no
  25302. fi
  25303. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25304. # now check for the header.
  25305. if test "${AST_PRI_CCSS_FOUND}" = "yes"; then
  25306. PRI_CCSS_LIB="${pbxlibdir} -lpri "
  25307. # if --with-PRI_CCSS=DIR has been specified, use it.
  25308. if test "x${PRI_CCSS_DIR}" != "x"; then
  25309. PRI_CCSS_INCLUDE="-I${PRI_CCSS_DIR}/include"
  25310. fi
  25311. PRI_CCSS_INCLUDE="${PRI_CCSS_INCLUDE} "
  25312. # check for the header
  25313. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25314. CPPFLAGS="${CPPFLAGS} ${PRI_CCSS_INCLUDE}"
  25315. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  25316. if test "x$ac_cv_header_libpri_h" = xyes
  25317. then :
  25318. PRI_CCSS_HEADER_FOUND=1
  25319. else $as_nop
  25320. PRI_CCSS_HEADER_FOUND=0
  25321. fi
  25322. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25323. if test "x${PRI_CCSS_HEADER_FOUND}" = "x0" ; then
  25324. PRI_CCSS_LIB=""
  25325. PRI_CCSS_INCLUDE=""
  25326. else
  25327. PBX_PRI_CCSS=1
  25328. cat >>confdefs.h <<_ACEOF
  25329. #define HAVE_PRI_CCSS 1
  25330. _ACEOF
  25331. fi
  25332. fi
  25333. fi
  25334. if test "x${PBX_PRI_HANGUP_FIX}" != "x1" -a "${USE_PRI_HANGUP_FIX}" != "no"; then
  25335. pbxlibdir=""
  25336. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  25337. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  25338. if test -d ${PRI_HANGUP_FIX_DIR}/lib; then
  25339. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}/lib"
  25340. else
  25341. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}"
  25342. fi
  25343. fi
  25344. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25345. CFLAGS="${CFLAGS} "
  25346. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_hangup_fix_enable in -lpri" >&5
  25347. printf %s "checking for pri_hangup_fix_enable in -lpri... " >&6; }
  25348. if test ${ac_cv_lib_pri_pri_hangup_fix_enable+y}
  25349. then :
  25350. printf %s "(cached) " >&6
  25351. else $as_nop
  25352. ac_check_lib_save_LIBS=$LIBS
  25353. LIBS="-lpri ${pbxlibdir} $LIBS"
  25354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25355. /* end confdefs.h. */
  25356. /* Override any GCC internal prototype to avoid an error.
  25357. Use char because int might match the return type of a GCC
  25358. builtin and then its argument prototype would still apply. */
  25359. char pri_hangup_fix_enable ();
  25360. int
  25361. main (void)
  25362. {
  25363. return pri_hangup_fix_enable ();
  25364. ;
  25365. return 0;
  25366. }
  25367. _ACEOF
  25368. if ac_fn_c_try_link "$LINENO"
  25369. then :
  25370. ac_cv_lib_pri_pri_hangup_fix_enable=yes
  25371. else $as_nop
  25372. ac_cv_lib_pri_pri_hangup_fix_enable=no
  25373. fi
  25374. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25375. conftest$ac_exeext conftest.$ac_ext
  25376. LIBS=$ac_check_lib_save_LIBS
  25377. fi
  25378. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_hangup_fix_enable" >&5
  25379. printf "%s\n" "$ac_cv_lib_pri_pri_hangup_fix_enable" >&6; }
  25380. if test "x$ac_cv_lib_pri_pri_hangup_fix_enable" = xyes
  25381. then :
  25382. AST_PRI_HANGUP_FIX_FOUND=yes
  25383. else $as_nop
  25384. AST_PRI_HANGUP_FIX_FOUND=no
  25385. fi
  25386. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25387. # now check for the header.
  25388. if test "${AST_PRI_HANGUP_FIX_FOUND}" = "yes"; then
  25389. PRI_HANGUP_FIX_LIB="${pbxlibdir} -lpri "
  25390. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  25391. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  25392. PRI_HANGUP_FIX_INCLUDE="-I${PRI_HANGUP_FIX_DIR}/include"
  25393. fi
  25394. PRI_HANGUP_FIX_INCLUDE="${PRI_HANGUP_FIX_INCLUDE} "
  25395. # check for the header
  25396. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25397. CPPFLAGS="${CPPFLAGS} ${PRI_HANGUP_FIX_INCLUDE}"
  25398. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  25399. if test "x$ac_cv_header_libpri_h" = xyes
  25400. then :
  25401. PRI_HANGUP_FIX_HEADER_FOUND=1
  25402. else $as_nop
  25403. PRI_HANGUP_FIX_HEADER_FOUND=0
  25404. fi
  25405. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25406. if test "x${PRI_HANGUP_FIX_HEADER_FOUND}" = "x0" ; then
  25407. PRI_HANGUP_FIX_LIB=""
  25408. PRI_HANGUP_FIX_INCLUDE=""
  25409. else
  25410. PBX_PRI_HANGUP_FIX=1
  25411. cat >>confdefs.h <<_ACEOF
  25412. #define HAVE_PRI_HANGUP_FIX 1
  25413. _ACEOF
  25414. fi
  25415. fi
  25416. fi
  25417. if test "x${PBX_PRI_SUBADDR}" != "x1" -a "${USE_PRI_SUBADDR}" != "no"; then
  25418. pbxlibdir=""
  25419. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  25420. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  25421. if test -d ${PRI_SUBADDR_DIR}/lib; then
  25422. pbxlibdir="-L${PRI_SUBADDR_DIR}/lib"
  25423. else
  25424. pbxlibdir="-L${PRI_SUBADDR_DIR}"
  25425. fi
  25426. fi
  25427. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25428. CFLAGS="${CFLAGS} "
  25429. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_sr_set_called_subaddress in -lpri" >&5
  25430. printf %s "checking for pri_sr_set_called_subaddress in -lpri... " >&6; }
  25431. if test ${ac_cv_lib_pri_pri_sr_set_called_subaddress+y}
  25432. then :
  25433. printf %s "(cached) " >&6
  25434. else $as_nop
  25435. ac_check_lib_save_LIBS=$LIBS
  25436. LIBS="-lpri ${pbxlibdir} $LIBS"
  25437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25438. /* end confdefs.h. */
  25439. /* Override any GCC internal prototype to avoid an error.
  25440. Use char because int might match the return type of a GCC
  25441. builtin and then its argument prototype would still apply. */
  25442. char pri_sr_set_called_subaddress ();
  25443. int
  25444. main (void)
  25445. {
  25446. return pri_sr_set_called_subaddress ();
  25447. ;
  25448. return 0;
  25449. }
  25450. _ACEOF
  25451. if ac_fn_c_try_link "$LINENO"
  25452. then :
  25453. ac_cv_lib_pri_pri_sr_set_called_subaddress=yes
  25454. else $as_nop
  25455. ac_cv_lib_pri_pri_sr_set_called_subaddress=no
  25456. fi
  25457. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25458. conftest$ac_exeext conftest.$ac_ext
  25459. LIBS=$ac_check_lib_save_LIBS
  25460. fi
  25461. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_sr_set_called_subaddress" >&5
  25462. printf "%s\n" "$ac_cv_lib_pri_pri_sr_set_called_subaddress" >&6; }
  25463. if test "x$ac_cv_lib_pri_pri_sr_set_called_subaddress" = xyes
  25464. then :
  25465. AST_PRI_SUBADDR_FOUND=yes
  25466. else $as_nop
  25467. AST_PRI_SUBADDR_FOUND=no
  25468. fi
  25469. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25470. # now check for the header.
  25471. if test "${AST_PRI_SUBADDR_FOUND}" = "yes"; then
  25472. PRI_SUBADDR_LIB="${pbxlibdir} -lpri "
  25473. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  25474. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  25475. PRI_SUBADDR_INCLUDE="-I${PRI_SUBADDR_DIR}/include"
  25476. fi
  25477. PRI_SUBADDR_INCLUDE="${PRI_SUBADDR_INCLUDE} "
  25478. # check for the header
  25479. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25480. CPPFLAGS="${CPPFLAGS} ${PRI_SUBADDR_INCLUDE}"
  25481. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  25482. if test "x$ac_cv_header_libpri_h" = xyes
  25483. then :
  25484. PRI_SUBADDR_HEADER_FOUND=1
  25485. else $as_nop
  25486. PRI_SUBADDR_HEADER_FOUND=0
  25487. fi
  25488. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25489. if test "x${PRI_SUBADDR_HEADER_FOUND}" = "x0" ; then
  25490. PRI_SUBADDR_LIB=""
  25491. PRI_SUBADDR_INCLUDE=""
  25492. else
  25493. PBX_PRI_SUBADDR=1
  25494. cat >>confdefs.h <<_ACEOF
  25495. #define HAVE_PRI_SUBADDR 1
  25496. _ACEOF
  25497. fi
  25498. fi
  25499. fi
  25500. if test "x${PBX_PRI_CALL_HOLD}" != "x1" -a "${USE_PRI_CALL_HOLD}" != "no"; then
  25501. pbxlibdir=""
  25502. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  25503. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  25504. if test -d ${PRI_CALL_HOLD_DIR}/lib; then
  25505. pbxlibdir="-L${PRI_CALL_HOLD_DIR}/lib"
  25506. else
  25507. pbxlibdir="-L${PRI_CALL_HOLD_DIR}"
  25508. fi
  25509. fi
  25510. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25511. CFLAGS="${CFLAGS} "
  25512. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_hold_enable in -lpri" >&5
  25513. printf %s "checking for pri_hold_enable in -lpri... " >&6; }
  25514. if test ${ac_cv_lib_pri_pri_hold_enable+y}
  25515. then :
  25516. printf %s "(cached) " >&6
  25517. else $as_nop
  25518. ac_check_lib_save_LIBS=$LIBS
  25519. LIBS="-lpri ${pbxlibdir} $LIBS"
  25520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25521. /* end confdefs.h. */
  25522. /* Override any GCC internal prototype to avoid an error.
  25523. Use char because int might match the return type of a GCC
  25524. builtin and then its argument prototype would still apply. */
  25525. char pri_hold_enable ();
  25526. int
  25527. main (void)
  25528. {
  25529. return pri_hold_enable ();
  25530. ;
  25531. return 0;
  25532. }
  25533. _ACEOF
  25534. if ac_fn_c_try_link "$LINENO"
  25535. then :
  25536. ac_cv_lib_pri_pri_hold_enable=yes
  25537. else $as_nop
  25538. ac_cv_lib_pri_pri_hold_enable=no
  25539. fi
  25540. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25541. conftest$ac_exeext conftest.$ac_ext
  25542. LIBS=$ac_check_lib_save_LIBS
  25543. fi
  25544. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_hold_enable" >&5
  25545. printf "%s\n" "$ac_cv_lib_pri_pri_hold_enable" >&6; }
  25546. if test "x$ac_cv_lib_pri_pri_hold_enable" = xyes
  25547. then :
  25548. AST_PRI_CALL_HOLD_FOUND=yes
  25549. else $as_nop
  25550. AST_PRI_CALL_HOLD_FOUND=no
  25551. fi
  25552. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25553. # now check for the header.
  25554. if test "${AST_PRI_CALL_HOLD_FOUND}" = "yes"; then
  25555. PRI_CALL_HOLD_LIB="${pbxlibdir} -lpri "
  25556. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  25557. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  25558. PRI_CALL_HOLD_INCLUDE="-I${PRI_CALL_HOLD_DIR}/include"
  25559. fi
  25560. PRI_CALL_HOLD_INCLUDE="${PRI_CALL_HOLD_INCLUDE} "
  25561. # check for the header
  25562. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25563. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_HOLD_INCLUDE}"
  25564. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  25565. if test "x$ac_cv_header_libpri_h" = xyes
  25566. then :
  25567. PRI_CALL_HOLD_HEADER_FOUND=1
  25568. else $as_nop
  25569. PRI_CALL_HOLD_HEADER_FOUND=0
  25570. fi
  25571. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25572. if test "x${PRI_CALL_HOLD_HEADER_FOUND}" = "x0" ; then
  25573. PRI_CALL_HOLD_LIB=""
  25574. PRI_CALL_HOLD_INCLUDE=""
  25575. else
  25576. PBX_PRI_CALL_HOLD=1
  25577. cat >>confdefs.h <<_ACEOF
  25578. #define HAVE_PRI_CALL_HOLD 1
  25579. _ACEOF
  25580. fi
  25581. fi
  25582. fi
  25583. if test "x${PBX_PRI_CALL_REROUTING}" != "x1" -a "${USE_PRI_CALL_REROUTING}" != "no"; then
  25584. pbxlibdir=""
  25585. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  25586. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  25587. if test -d ${PRI_CALL_REROUTING_DIR}/lib; then
  25588. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}/lib"
  25589. else
  25590. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}"
  25591. fi
  25592. fi
  25593. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25594. CFLAGS="${CFLAGS} "
  25595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_reroute_enable in -lpri" >&5
  25596. printf %s "checking for pri_reroute_enable in -lpri... " >&6; }
  25597. if test ${ac_cv_lib_pri_pri_reroute_enable+y}
  25598. then :
  25599. printf %s "(cached) " >&6
  25600. else $as_nop
  25601. ac_check_lib_save_LIBS=$LIBS
  25602. LIBS="-lpri ${pbxlibdir} $LIBS"
  25603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25604. /* end confdefs.h. */
  25605. /* Override any GCC internal prototype to avoid an error.
  25606. Use char because int might match the return type of a GCC
  25607. builtin and then its argument prototype would still apply. */
  25608. char pri_reroute_enable ();
  25609. int
  25610. main (void)
  25611. {
  25612. return pri_reroute_enable ();
  25613. ;
  25614. return 0;
  25615. }
  25616. _ACEOF
  25617. if ac_fn_c_try_link "$LINENO"
  25618. then :
  25619. ac_cv_lib_pri_pri_reroute_enable=yes
  25620. else $as_nop
  25621. ac_cv_lib_pri_pri_reroute_enable=no
  25622. fi
  25623. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25624. conftest$ac_exeext conftest.$ac_ext
  25625. LIBS=$ac_check_lib_save_LIBS
  25626. fi
  25627. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_reroute_enable" >&5
  25628. printf "%s\n" "$ac_cv_lib_pri_pri_reroute_enable" >&6; }
  25629. if test "x$ac_cv_lib_pri_pri_reroute_enable" = xyes
  25630. then :
  25631. AST_PRI_CALL_REROUTING_FOUND=yes
  25632. else $as_nop
  25633. AST_PRI_CALL_REROUTING_FOUND=no
  25634. fi
  25635. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25636. # now check for the header.
  25637. if test "${AST_PRI_CALL_REROUTING_FOUND}" = "yes"; then
  25638. PRI_CALL_REROUTING_LIB="${pbxlibdir} -lpri "
  25639. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  25640. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  25641. PRI_CALL_REROUTING_INCLUDE="-I${PRI_CALL_REROUTING_DIR}/include"
  25642. fi
  25643. PRI_CALL_REROUTING_INCLUDE="${PRI_CALL_REROUTING_INCLUDE} "
  25644. # check for the header
  25645. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25646. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_REROUTING_INCLUDE}"
  25647. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  25648. if test "x$ac_cv_header_libpri_h" = xyes
  25649. then :
  25650. PRI_CALL_REROUTING_HEADER_FOUND=1
  25651. else $as_nop
  25652. PRI_CALL_REROUTING_HEADER_FOUND=0
  25653. fi
  25654. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25655. if test "x${PRI_CALL_REROUTING_HEADER_FOUND}" = "x0" ; then
  25656. PRI_CALL_REROUTING_LIB=""
  25657. PRI_CALL_REROUTING_INCLUDE=""
  25658. else
  25659. PBX_PRI_CALL_REROUTING=1
  25660. cat >>confdefs.h <<_ACEOF
  25661. #define HAVE_PRI_CALL_REROUTING 1
  25662. _ACEOF
  25663. fi
  25664. fi
  25665. fi
  25666. if test "x${PBX_PRI_SETUP_KEYPAD}" != "x1" -a "${USE_PRI_SETUP_KEYPAD}" != "no"; then
  25667. pbxlibdir=""
  25668. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  25669. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  25670. if test -d ${PRI_SETUP_KEYPAD_DIR}/lib; then
  25671. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}/lib"
  25672. else
  25673. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}"
  25674. fi
  25675. fi
  25676. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25677. CFLAGS="${CFLAGS} "
  25678. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_sr_set_keypad_digits in -lpri" >&5
  25679. printf %s "checking for pri_sr_set_keypad_digits in -lpri... " >&6; }
  25680. if test ${ac_cv_lib_pri_pri_sr_set_keypad_digits+y}
  25681. then :
  25682. printf %s "(cached) " >&6
  25683. else $as_nop
  25684. ac_check_lib_save_LIBS=$LIBS
  25685. LIBS="-lpri ${pbxlibdir} $LIBS"
  25686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25687. /* end confdefs.h. */
  25688. /* Override any GCC internal prototype to avoid an error.
  25689. Use char because int might match the return type of a GCC
  25690. builtin and then its argument prototype would still apply. */
  25691. char pri_sr_set_keypad_digits ();
  25692. int
  25693. main (void)
  25694. {
  25695. return pri_sr_set_keypad_digits ();
  25696. ;
  25697. return 0;
  25698. }
  25699. _ACEOF
  25700. if ac_fn_c_try_link "$LINENO"
  25701. then :
  25702. ac_cv_lib_pri_pri_sr_set_keypad_digits=yes
  25703. else $as_nop
  25704. ac_cv_lib_pri_pri_sr_set_keypad_digits=no
  25705. fi
  25706. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25707. conftest$ac_exeext conftest.$ac_ext
  25708. LIBS=$ac_check_lib_save_LIBS
  25709. fi
  25710. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_sr_set_keypad_digits" >&5
  25711. printf "%s\n" "$ac_cv_lib_pri_pri_sr_set_keypad_digits" >&6; }
  25712. if test "x$ac_cv_lib_pri_pri_sr_set_keypad_digits" = xyes
  25713. then :
  25714. AST_PRI_SETUP_KEYPAD_FOUND=yes
  25715. else $as_nop
  25716. AST_PRI_SETUP_KEYPAD_FOUND=no
  25717. fi
  25718. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25719. # now check for the header.
  25720. if test "${AST_PRI_SETUP_KEYPAD_FOUND}" = "yes"; then
  25721. PRI_SETUP_KEYPAD_LIB="${pbxlibdir} -lpri "
  25722. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  25723. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  25724. PRI_SETUP_KEYPAD_INCLUDE="-I${PRI_SETUP_KEYPAD_DIR}/include"
  25725. fi
  25726. PRI_SETUP_KEYPAD_INCLUDE="${PRI_SETUP_KEYPAD_INCLUDE} "
  25727. # check for the header
  25728. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25729. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_KEYPAD_INCLUDE}"
  25730. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  25731. if test "x$ac_cv_header_libpri_h" = xyes
  25732. then :
  25733. PRI_SETUP_KEYPAD_HEADER_FOUND=1
  25734. else $as_nop
  25735. PRI_SETUP_KEYPAD_HEADER_FOUND=0
  25736. fi
  25737. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25738. if test "x${PRI_SETUP_KEYPAD_HEADER_FOUND}" = "x0" ; then
  25739. PRI_SETUP_KEYPAD_LIB=""
  25740. PRI_SETUP_KEYPAD_INCLUDE=""
  25741. else
  25742. PBX_PRI_SETUP_KEYPAD=1
  25743. cat >>confdefs.h <<_ACEOF
  25744. #define HAVE_PRI_SETUP_KEYPAD 1
  25745. _ACEOF
  25746. fi
  25747. fi
  25748. fi
  25749. # ------------------------------------v
  25750. # TODO: The code can be changed to always include these features now.
  25751. # These features will always be present if pri_connected_line_update is available.
  25752. if test "x${PBX_PRI_PROG_W_CAUSE}" != "x1" -a "${USE_PRI_PROG_W_CAUSE}" != "no"; then
  25753. pbxlibdir=""
  25754. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  25755. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  25756. if test -d ${PRI_PROG_W_CAUSE_DIR}/lib; then
  25757. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}/lib"
  25758. else
  25759. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}"
  25760. fi
  25761. fi
  25762. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25763. CFLAGS="${CFLAGS} "
  25764. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_progress_with_cause in -lpri" >&5
  25765. printf %s "checking for pri_progress_with_cause in -lpri... " >&6; }
  25766. if test ${ac_cv_lib_pri_pri_progress_with_cause+y}
  25767. then :
  25768. printf %s "(cached) " >&6
  25769. else $as_nop
  25770. ac_check_lib_save_LIBS=$LIBS
  25771. LIBS="-lpri ${pbxlibdir} $LIBS"
  25772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25773. /* end confdefs.h. */
  25774. /* Override any GCC internal prototype to avoid an error.
  25775. Use char because int might match the return type of a GCC
  25776. builtin and then its argument prototype would still apply. */
  25777. char pri_progress_with_cause ();
  25778. int
  25779. main (void)
  25780. {
  25781. return pri_progress_with_cause ();
  25782. ;
  25783. return 0;
  25784. }
  25785. _ACEOF
  25786. if ac_fn_c_try_link "$LINENO"
  25787. then :
  25788. ac_cv_lib_pri_pri_progress_with_cause=yes
  25789. else $as_nop
  25790. ac_cv_lib_pri_pri_progress_with_cause=no
  25791. fi
  25792. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25793. conftest$ac_exeext conftest.$ac_ext
  25794. LIBS=$ac_check_lib_save_LIBS
  25795. fi
  25796. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_progress_with_cause" >&5
  25797. printf "%s\n" "$ac_cv_lib_pri_pri_progress_with_cause" >&6; }
  25798. if test "x$ac_cv_lib_pri_pri_progress_with_cause" = xyes
  25799. then :
  25800. AST_PRI_PROG_W_CAUSE_FOUND=yes
  25801. else $as_nop
  25802. AST_PRI_PROG_W_CAUSE_FOUND=no
  25803. fi
  25804. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25805. # now check for the header.
  25806. if test "${AST_PRI_PROG_W_CAUSE_FOUND}" = "yes"; then
  25807. PRI_PROG_W_CAUSE_LIB="${pbxlibdir} -lpri "
  25808. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  25809. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  25810. PRI_PROG_W_CAUSE_INCLUDE="-I${PRI_PROG_W_CAUSE_DIR}/include"
  25811. fi
  25812. PRI_PROG_W_CAUSE_INCLUDE="${PRI_PROG_W_CAUSE_INCLUDE} "
  25813. # check for the header
  25814. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25815. CPPFLAGS="${CPPFLAGS} ${PRI_PROG_W_CAUSE_INCLUDE}"
  25816. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  25817. if test "x$ac_cv_header_libpri_h" = xyes
  25818. then :
  25819. PRI_PROG_W_CAUSE_HEADER_FOUND=1
  25820. else $as_nop
  25821. PRI_PROG_W_CAUSE_HEADER_FOUND=0
  25822. fi
  25823. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25824. if test "x${PRI_PROG_W_CAUSE_HEADER_FOUND}" = "x0" ; then
  25825. PRI_PROG_W_CAUSE_LIB=""
  25826. PRI_PROG_W_CAUSE_INCLUDE=""
  25827. else
  25828. PBX_PRI_PROG_W_CAUSE=1
  25829. cat >>confdefs.h <<_ACEOF
  25830. #define HAVE_PRI_PROG_W_CAUSE 1
  25831. _ACEOF
  25832. fi
  25833. fi
  25834. fi
  25835. if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
  25836. pbxlibdir=""
  25837. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  25838. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  25839. if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
  25840. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
  25841. else
  25842. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
  25843. fi
  25844. fi
  25845. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25846. CFLAGS="${CFLAGS} "
  25847. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_set_inbanddisconnect in -lpri" >&5
  25848. printf %s "checking for pri_set_inbanddisconnect in -lpri... " >&6; }
  25849. if test ${ac_cv_lib_pri_pri_set_inbanddisconnect+y}
  25850. then :
  25851. printf %s "(cached) " >&6
  25852. else $as_nop
  25853. ac_check_lib_save_LIBS=$LIBS
  25854. LIBS="-lpri ${pbxlibdir} $LIBS"
  25855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25856. /* end confdefs.h. */
  25857. /* Override any GCC internal prototype to avoid an error.
  25858. Use char because int might match the return type of a GCC
  25859. builtin and then its argument prototype would still apply. */
  25860. char pri_set_inbanddisconnect ();
  25861. int
  25862. main (void)
  25863. {
  25864. return pri_set_inbanddisconnect ();
  25865. ;
  25866. return 0;
  25867. }
  25868. _ACEOF
  25869. if ac_fn_c_try_link "$LINENO"
  25870. then :
  25871. ac_cv_lib_pri_pri_set_inbanddisconnect=yes
  25872. else $as_nop
  25873. ac_cv_lib_pri_pri_set_inbanddisconnect=no
  25874. fi
  25875. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25876. conftest$ac_exeext conftest.$ac_ext
  25877. LIBS=$ac_check_lib_save_LIBS
  25878. fi
  25879. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_set_inbanddisconnect" >&5
  25880. printf "%s\n" "$ac_cv_lib_pri_pri_set_inbanddisconnect" >&6; }
  25881. if test "x$ac_cv_lib_pri_pri_set_inbanddisconnect" = xyes
  25882. then :
  25883. AST_PRI_INBANDDISCONNECT_FOUND=yes
  25884. else $as_nop
  25885. AST_PRI_INBANDDISCONNECT_FOUND=no
  25886. fi
  25887. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25888. # now check for the header.
  25889. if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
  25890. PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
  25891. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  25892. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  25893. PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
  25894. fi
  25895. PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
  25896. # check for the header
  25897. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25898. CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
  25899. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  25900. if test "x$ac_cv_header_libpri_h" = xyes
  25901. then :
  25902. PRI_INBANDDISCONNECT_HEADER_FOUND=1
  25903. else $as_nop
  25904. PRI_INBANDDISCONNECT_HEADER_FOUND=0
  25905. fi
  25906. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25907. if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
  25908. PRI_INBANDDISCONNECT_LIB=""
  25909. PRI_INBANDDISCONNECT_INCLUDE=""
  25910. else
  25911. PBX_PRI_INBANDDISCONNECT=1
  25912. cat >>confdefs.h <<_ACEOF
  25913. #define HAVE_PRI_INBANDDISCONNECT 1
  25914. _ACEOF
  25915. fi
  25916. fi
  25917. fi
  25918. if test "x${PBX_PRI_SERVICE_MESSAGES}" != "x1" -a "${USE_PRI_SERVICE_MESSAGES}" != "no"; then
  25919. pbxlibdir=""
  25920. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  25921. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  25922. if test -d ${PRI_SERVICE_MESSAGES_DIR}/lib; then
  25923. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}/lib"
  25924. else
  25925. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}"
  25926. fi
  25927. fi
  25928. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25929. CFLAGS="${CFLAGS} "
  25930. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_maintenance_service in -lpri" >&5
  25931. printf %s "checking for pri_maintenance_service in -lpri... " >&6; }
  25932. if test ${ac_cv_lib_pri_pri_maintenance_service+y}
  25933. then :
  25934. printf %s "(cached) " >&6
  25935. else $as_nop
  25936. ac_check_lib_save_LIBS=$LIBS
  25937. LIBS="-lpri ${pbxlibdir} $LIBS"
  25938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25939. /* end confdefs.h. */
  25940. /* Override any GCC internal prototype to avoid an error.
  25941. Use char because int might match the return type of a GCC
  25942. builtin and then its argument prototype would still apply. */
  25943. char pri_maintenance_service ();
  25944. int
  25945. main (void)
  25946. {
  25947. return pri_maintenance_service ();
  25948. ;
  25949. return 0;
  25950. }
  25951. _ACEOF
  25952. if ac_fn_c_try_link "$LINENO"
  25953. then :
  25954. ac_cv_lib_pri_pri_maintenance_service=yes
  25955. else $as_nop
  25956. ac_cv_lib_pri_pri_maintenance_service=no
  25957. fi
  25958. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  25959. conftest$ac_exeext conftest.$ac_ext
  25960. LIBS=$ac_check_lib_save_LIBS
  25961. fi
  25962. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_maintenance_service" >&5
  25963. printf "%s\n" "$ac_cv_lib_pri_pri_maintenance_service" >&6; }
  25964. if test "x$ac_cv_lib_pri_pri_maintenance_service" = xyes
  25965. then :
  25966. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  25967. else $as_nop
  25968. AST_PRI_SERVICE_MESSAGES_FOUND=no
  25969. fi
  25970. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25971. # now check for the header.
  25972. if test "${AST_PRI_SERVICE_MESSAGES_FOUND}" = "yes"; then
  25973. PRI_SERVICE_MESSAGES_LIB="${pbxlibdir} -lpri "
  25974. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  25975. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  25976. PRI_SERVICE_MESSAGES_INCLUDE="-I${PRI_SERVICE_MESSAGES_DIR}/include"
  25977. fi
  25978. PRI_SERVICE_MESSAGES_INCLUDE="${PRI_SERVICE_MESSAGES_INCLUDE} "
  25979. # check for the header
  25980. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25981. CPPFLAGS="${CPPFLAGS} ${PRI_SERVICE_MESSAGES_INCLUDE}"
  25982. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  25983. if test "x$ac_cv_header_libpri_h" = xyes
  25984. then :
  25985. PRI_SERVICE_MESSAGES_HEADER_FOUND=1
  25986. else $as_nop
  25987. PRI_SERVICE_MESSAGES_HEADER_FOUND=0
  25988. fi
  25989. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25990. if test "x${PRI_SERVICE_MESSAGES_HEADER_FOUND}" = "x0" ; then
  25991. PRI_SERVICE_MESSAGES_LIB=""
  25992. PRI_SERVICE_MESSAGES_INCLUDE=""
  25993. else
  25994. PBX_PRI_SERVICE_MESSAGES=1
  25995. cat >>confdefs.h <<_ACEOF
  25996. #define HAVE_PRI_SERVICE_MESSAGES 1
  25997. _ACEOF
  25998. fi
  25999. fi
  26000. fi
  26001. if test "x${PBX_PRI_REVERSE_CHARGE}" != "x1" -a "${USE_PRI_REVERSE_CHARGE}" != "no"; then
  26002. pbxlibdir=""
  26003. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  26004. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  26005. if test -d ${PRI_REVERSE_CHARGE_DIR}/lib; then
  26006. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}/lib"
  26007. else
  26008. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}"
  26009. fi
  26010. fi
  26011. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26012. CFLAGS="${CFLAGS} "
  26013. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pri_sr_set_reversecharge in -lpri" >&5
  26014. printf %s "checking for pri_sr_set_reversecharge in -lpri... " >&6; }
  26015. if test ${ac_cv_lib_pri_pri_sr_set_reversecharge+y}
  26016. then :
  26017. printf %s "(cached) " >&6
  26018. else $as_nop
  26019. ac_check_lib_save_LIBS=$LIBS
  26020. LIBS="-lpri ${pbxlibdir} $LIBS"
  26021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26022. /* end confdefs.h. */
  26023. /* Override any GCC internal prototype to avoid an error.
  26024. Use char because int might match the return type of a GCC
  26025. builtin and then its argument prototype would still apply. */
  26026. char pri_sr_set_reversecharge ();
  26027. int
  26028. main (void)
  26029. {
  26030. return pri_sr_set_reversecharge ();
  26031. ;
  26032. return 0;
  26033. }
  26034. _ACEOF
  26035. if ac_fn_c_try_link "$LINENO"
  26036. then :
  26037. ac_cv_lib_pri_pri_sr_set_reversecharge=yes
  26038. else $as_nop
  26039. ac_cv_lib_pri_pri_sr_set_reversecharge=no
  26040. fi
  26041. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26042. conftest$ac_exeext conftest.$ac_ext
  26043. LIBS=$ac_check_lib_save_LIBS
  26044. fi
  26045. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pri_pri_sr_set_reversecharge" >&5
  26046. printf "%s\n" "$ac_cv_lib_pri_pri_sr_set_reversecharge" >&6; }
  26047. if test "x$ac_cv_lib_pri_pri_sr_set_reversecharge" = xyes
  26048. then :
  26049. AST_PRI_REVERSE_CHARGE_FOUND=yes
  26050. else $as_nop
  26051. AST_PRI_REVERSE_CHARGE_FOUND=no
  26052. fi
  26053. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26054. # now check for the header.
  26055. if test "${AST_PRI_REVERSE_CHARGE_FOUND}" = "yes"; then
  26056. PRI_REVERSE_CHARGE_LIB="${pbxlibdir} -lpri "
  26057. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  26058. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  26059. PRI_REVERSE_CHARGE_INCLUDE="-I${PRI_REVERSE_CHARGE_DIR}/include"
  26060. fi
  26061. PRI_REVERSE_CHARGE_INCLUDE="${PRI_REVERSE_CHARGE_INCLUDE} "
  26062. # check for the header
  26063. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26064. CPPFLAGS="${CPPFLAGS} ${PRI_REVERSE_CHARGE_INCLUDE}"
  26065. ac_fn_c_check_header_compile "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  26066. if test "x$ac_cv_header_libpri_h" = xyes
  26067. then :
  26068. PRI_REVERSE_CHARGE_HEADER_FOUND=1
  26069. else $as_nop
  26070. PRI_REVERSE_CHARGE_HEADER_FOUND=0
  26071. fi
  26072. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26073. if test "x${PRI_REVERSE_CHARGE_HEADER_FOUND}" = "x0" ; then
  26074. PRI_REVERSE_CHARGE_LIB=""
  26075. PRI_REVERSE_CHARGE_INCLUDE=""
  26076. else
  26077. PBX_PRI_REVERSE_CHARGE=1
  26078. cat >>confdefs.h <<_ACEOF
  26079. #define HAVE_PRI_REVERSE_CHARGE 1
  26080. _ACEOF
  26081. fi
  26082. fi
  26083. fi
  26084. # ------------------------------------^
  26085. fi
  26086. if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
  26087. pbxlibdir=""
  26088. # if --with-RESAMPLE=DIR has been specified, use it.
  26089. if test "x${RESAMPLE_DIR}" != "x"; then
  26090. if test -d ${RESAMPLE_DIR}/lib; then
  26091. pbxlibdir="-L${RESAMPLE_DIR}/lib"
  26092. else
  26093. pbxlibdir="-L${RESAMPLE_DIR}"
  26094. fi
  26095. fi
  26096. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26097. CFLAGS="${CFLAGS} "
  26098. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for resample_open in -lresample" >&5
  26099. printf %s "checking for resample_open in -lresample... " >&6; }
  26100. if test ${ac_cv_lib_resample_resample_open+y}
  26101. then :
  26102. printf %s "(cached) " >&6
  26103. else $as_nop
  26104. ac_check_lib_save_LIBS=$LIBS
  26105. LIBS="-lresample ${pbxlibdir} -lm $LIBS"
  26106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26107. /* end confdefs.h. */
  26108. /* Override any GCC internal prototype to avoid an error.
  26109. Use char because int might match the return type of a GCC
  26110. builtin and then its argument prototype would still apply. */
  26111. char resample_open ();
  26112. int
  26113. main (void)
  26114. {
  26115. return resample_open ();
  26116. ;
  26117. return 0;
  26118. }
  26119. _ACEOF
  26120. if ac_fn_c_try_link "$LINENO"
  26121. then :
  26122. ac_cv_lib_resample_resample_open=yes
  26123. else $as_nop
  26124. ac_cv_lib_resample_resample_open=no
  26125. fi
  26126. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26127. conftest$ac_exeext conftest.$ac_ext
  26128. LIBS=$ac_check_lib_save_LIBS
  26129. fi
  26130. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resample_resample_open" >&5
  26131. printf "%s\n" "$ac_cv_lib_resample_resample_open" >&6; }
  26132. if test "x$ac_cv_lib_resample_resample_open" = xyes
  26133. then :
  26134. AST_RESAMPLE_FOUND=yes
  26135. else $as_nop
  26136. AST_RESAMPLE_FOUND=no
  26137. fi
  26138. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26139. # now check for the header.
  26140. if test "${AST_RESAMPLE_FOUND}" = "yes"; then
  26141. RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
  26142. # if --with-RESAMPLE=DIR has been specified, use it.
  26143. if test "x${RESAMPLE_DIR}" != "x"; then
  26144. RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
  26145. fi
  26146. RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
  26147. # check for the header
  26148. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26149. CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
  26150. ac_fn_c_check_header_compile "$LINENO" "libresample.h" "ac_cv_header_libresample_h" "$ac_includes_default"
  26151. if test "x$ac_cv_header_libresample_h" = xyes
  26152. then :
  26153. RESAMPLE_HEADER_FOUND=1
  26154. else $as_nop
  26155. RESAMPLE_HEADER_FOUND=0
  26156. fi
  26157. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26158. if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
  26159. RESAMPLE_LIB=""
  26160. RESAMPLE_INCLUDE=""
  26161. else
  26162. PBX_RESAMPLE=1
  26163. cat >>confdefs.h <<_ACEOF
  26164. #define HAVE_RESAMPLE 1
  26165. _ACEOF
  26166. fi
  26167. fi
  26168. fi
  26169. if test "x${PBX_FFTW3}" != "x1" -a "${USE_FFTW3}" != "no"; then
  26170. pbxlibdir=""
  26171. # if --with-FFTW3=DIR has been specified, use it.
  26172. if test "x${FFTW3_DIR}" != "x"; then
  26173. if test -d ${FFTW3_DIR}/lib; then
  26174. pbxlibdir="-L${FFTW3_DIR}/lib"
  26175. else
  26176. pbxlibdir="-L${FFTW3_DIR}"
  26177. fi
  26178. fi
  26179. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26180. CFLAGS="${CFLAGS} "
  26181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fftw_malloc in -lfftw3" >&5
  26182. printf %s "checking for fftw_malloc in -lfftw3... " >&6; }
  26183. if test ${ac_cv_lib_fftw3_fftw_malloc+y}
  26184. then :
  26185. printf %s "(cached) " >&6
  26186. else $as_nop
  26187. ac_check_lib_save_LIBS=$LIBS
  26188. LIBS="-lfftw3 ${pbxlibdir} $LIBS"
  26189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26190. /* end confdefs.h. */
  26191. /* Override any GCC internal prototype to avoid an error.
  26192. Use char because int might match the return type of a GCC
  26193. builtin and then its argument prototype would still apply. */
  26194. char fftw_malloc ();
  26195. int
  26196. main (void)
  26197. {
  26198. return fftw_malloc ();
  26199. ;
  26200. return 0;
  26201. }
  26202. _ACEOF
  26203. if ac_fn_c_try_link "$LINENO"
  26204. then :
  26205. ac_cv_lib_fftw3_fftw_malloc=yes
  26206. else $as_nop
  26207. ac_cv_lib_fftw3_fftw_malloc=no
  26208. fi
  26209. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26210. conftest$ac_exeext conftest.$ac_ext
  26211. LIBS=$ac_check_lib_save_LIBS
  26212. fi
  26213. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_malloc" >&5
  26214. printf "%s\n" "$ac_cv_lib_fftw3_fftw_malloc" >&6; }
  26215. if test "x$ac_cv_lib_fftw3_fftw_malloc" = xyes
  26216. then :
  26217. AST_FFTW3_FOUND=yes
  26218. else $as_nop
  26219. AST_FFTW3_FOUND=no
  26220. fi
  26221. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26222. # now check for the header.
  26223. if test "${AST_FFTW3_FOUND}" = "yes"; then
  26224. FFTW3_LIB="${pbxlibdir} -lfftw3 "
  26225. # if --with-FFTW3=DIR has been specified, use it.
  26226. if test "x${FFTW3_DIR}" != "x"; then
  26227. FFTW3_INCLUDE="-I${FFTW3_DIR}/include"
  26228. fi
  26229. FFTW3_INCLUDE="${FFTW3_INCLUDE} "
  26230. # check for the header
  26231. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26232. CPPFLAGS="${CPPFLAGS} ${FFTW3_INCLUDE}"
  26233. ac_fn_c_check_header_compile "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
  26234. if test "x$ac_cv_header_fftw3_h" = xyes
  26235. then :
  26236. FFTW3_HEADER_FOUND=1
  26237. else $as_nop
  26238. FFTW3_HEADER_FOUND=0
  26239. fi
  26240. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26241. if test "x${FFTW3_HEADER_FOUND}" = "x0" ; then
  26242. FFTW3_LIB=""
  26243. FFTW3_INCLUDE=""
  26244. else
  26245. PBX_FFTW3=1
  26246. cat >>confdefs.h <<_ACEOF
  26247. #define HAVE_FFTW3 1
  26248. _ACEOF
  26249. fi
  26250. fi
  26251. fi
  26252. if test "x${PBX_SNDFILE}" != "x1" -a "${USE_SNDFILE}" != "no"; then
  26253. pbxlibdir=""
  26254. # if --with-SNDFILE=DIR has been specified, use it.
  26255. if test "x${SNDFILE_DIR}" != "x"; then
  26256. if test -d ${SNDFILE_DIR}/lib; then
  26257. pbxlibdir="-L${SNDFILE_DIR}/lib"
  26258. else
  26259. pbxlibdir="-L${SNDFILE_DIR}"
  26260. fi
  26261. fi
  26262. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26263. CFLAGS="${CFLAGS} "
  26264. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sf_open in -lsndfile" >&5
  26265. printf %s "checking for sf_open in -lsndfile... " >&6; }
  26266. if test ${ac_cv_lib_sndfile_sf_open+y}
  26267. then :
  26268. printf %s "(cached) " >&6
  26269. else $as_nop
  26270. ac_check_lib_save_LIBS=$LIBS
  26271. LIBS="-lsndfile ${pbxlibdir} $LIBS"
  26272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26273. /* end confdefs.h. */
  26274. /* Override any GCC internal prototype to avoid an error.
  26275. Use char because int might match the return type of a GCC
  26276. builtin and then its argument prototype would still apply. */
  26277. char sf_open ();
  26278. int
  26279. main (void)
  26280. {
  26281. return sf_open ();
  26282. ;
  26283. return 0;
  26284. }
  26285. _ACEOF
  26286. if ac_fn_c_try_link "$LINENO"
  26287. then :
  26288. ac_cv_lib_sndfile_sf_open=yes
  26289. else $as_nop
  26290. ac_cv_lib_sndfile_sf_open=no
  26291. fi
  26292. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26293. conftest$ac_exeext conftest.$ac_ext
  26294. LIBS=$ac_check_lib_save_LIBS
  26295. fi
  26296. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndfile_sf_open" >&5
  26297. printf "%s\n" "$ac_cv_lib_sndfile_sf_open" >&6; }
  26298. if test "x$ac_cv_lib_sndfile_sf_open" = xyes
  26299. then :
  26300. AST_SNDFILE_FOUND=yes
  26301. else $as_nop
  26302. AST_SNDFILE_FOUND=no
  26303. fi
  26304. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26305. # now check for the header.
  26306. if test "${AST_SNDFILE_FOUND}" = "yes"; then
  26307. SNDFILE_LIB="${pbxlibdir} -lsndfile "
  26308. # if --with-SNDFILE=DIR has been specified, use it.
  26309. if test "x${SNDFILE_DIR}" != "x"; then
  26310. SNDFILE_INCLUDE="-I${SNDFILE_DIR}/include"
  26311. fi
  26312. SNDFILE_INCLUDE="${SNDFILE_INCLUDE} "
  26313. # check for the header
  26314. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26315. CPPFLAGS="${CPPFLAGS} ${SNDFILE_INCLUDE}"
  26316. ac_fn_c_check_header_compile "$LINENO" "sndfile.h" "ac_cv_header_sndfile_h" "$ac_includes_default"
  26317. if test "x$ac_cv_header_sndfile_h" = xyes
  26318. then :
  26319. SNDFILE_HEADER_FOUND=1
  26320. else $as_nop
  26321. SNDFILE_HEADER_FOUND=0
  26322. fi
  26323. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26324. if test "x${SNDFILE_HEADER_FOUND}" = "x0" ; then
  26325. SNDFILE_LIB=""
  26326. SNDFILE_INCLUDE=""
  26327. else
  26328. PBX_SNDFILE=1
  26329. cat >>confdefs.h <<_ACEOF
  26330. #define HAVE_SNDFILE 1
  26331. _ACEOF
  26332. fi
  26333. fi
  26334. fi
  26335. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  26336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for minimum version of SpanDSP" >&5
  26337. printf %s "checking for minimum version of SpanDSP... " >&6; }
  26338. saved_cppflags="${CPPFLAGS}"
  26339. if test "x${SPANDSP_DIR}" != "x"; then
  26340. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  26341. fi
  26342. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  26343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26344. /* end confdefs.h. */
  26345. #include <spandsp/version.h>
  26346. int
  26347. main (void)
  26348. {
  26349. #if SPANDSP_RELEASE_DATE < 20080516
  26350. #error "spandsp 0.0.5 or greater is required"
  26351. #endif
  26352. ;
  26353. ;
  26354. return 0;
  26355. }
  26356. _ACEOF
  26357. if ac_fn_c_try_compile "$LINENO"
  26358. then :
  26359. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26360. printf "%s\n" "yes" >&6; }
  26361. PBX_SPANDSP=1
  26362. printf "%s\n" "#define HAVE_SPANDSP 1" >>confdefs.h
  26363. else $as_nop
  26364. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26365. printf "%s\n" "no" >&6; }
  26366. fi
  26367. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  26368. CPPFLAGS="${saved_cppflags}"
  26369. fi
  26370. if test "x${PBX_SPANDSP}" = "x1" ; then
  26371. # We found the correct version in the header, now let's make sure it links
  26372. # properly, and that libtiff is available
  26373. PBX_SPANDSP=0
  26374. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  26375. pbxlibdir=""
  26376. # if --with-SPANDSP=DIR has been specified, use it.
  26377. if test "x${SPANDSP_DIR}" != "x"; then
  26378. if test -d ${SPANDSP_DIR}/lib; then
  26379. pbxlibdir="-L${SPANDSP_DIR}/lib"
  26380. else
  26381. pbxlibdir="-L${SPANDSP_DIR}"
  26382. fi
  26383. fi
  26384. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26385. CFLAGS="${CFLAGS} "
  26386. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for span_set_message_handler in -lspandsp" >&5
  26387. printf %s "checking for span_set_message_handler in -lspandsp... " >&6; }
  26388. if test ${ac_cv_lib_spandsp_span_set_message_handler+y}
  26389. then :
  26390. printf %s "(cached) " >&6
  26391. else $as_nop
  26392. ac_check_lib_save_LIBS=$LIBS
  26393. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  26394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26395. /* end confdefs.h. */
  26396. /* Override any GCC internal prototype to avoid an error.
  26397. Use char because int might match the return type of a GCC
  26398. builtin and then its argument prototype would still apply. */
  26399. char span_set_message_handler ();
  26400. int
  26401. main (void)
  26402. {
  26403. return span_set_message_handler ();
  26404. ;
  26405. return 0;
  26406. }
  26407. _ACEOF
  26408. if ac_fn_c_try_link "$LINENO"
  26409. then :
  26410. ac_cv_lib_spandsp_span_set_message_handler=yes
  26411. else $as_nop
  26412. ac_cv_lib_spandsp_span_set_message_handler=no
  26413. fi
  26414. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26415. conftest$ac_exeext conftest.$ac_ext
  26416. LIBS=$ac_check_lib_save_LIBS
  26417. fi
  26418. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spandsp_span_set_message_handler" >&5
  26419. printf "%s\n" "$ac_cv_lib_spandsp_span_set_message_handler" >&6; }
  26420. if test "x$ac_cv_lib_spandsp_span_set_message_handler" = xyes
  26421. then :
  26422. AST_SPANDSP_FOUND=yes
  26423. else $as_nop
  26424. AST_SPANDSP_FOUND=no
  26425. fi
  26426. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26427. # now check for the header.
  26428. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  26429. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  26430. # if --with-SPANDSP=DIR has been specified, use it.
  26431. if test "x${SPANDSP_DIR}" != "x"; then
  26432. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  26433. fi
  26434. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  26435. # check for the header
  26436. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26437. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  26438. ac_fn_c_check_header_compile "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
  26439. if test "x$ac_cv_header_spandsp_h" = xyes
  26440. then :
  26441. SPANDSP_HEADER_FOUND=1
  26442. else $as_nop
  26443. SPANDSP_HEADER_FOUND=0
  26444. fi
  26445. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26446. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  26447. SPANDSP_LIB=""
  26448. SPANDSP_INCLUDE=""
  26449. else
  26450. PBX_SPANDSP=1
  26451. cat >>confdefs.h <<_ACEOF
  26452. #define HAVE_SPANDSP 1
  26453. _ACEOF
  26454. fi
  26455. fi
  26456. fi
  26457. fi
  26458. if test "x${PBX_SPANDSP}" = "x1" ; then
  26459. # We also need t38_terminal_init()
  26460. PBX_SPANDSP=0
  26461. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  26462. pbxlibdir=""
  26463. # if --with-SPANDSP=DIR has been specified, use it.
  26464. if test "x${SPANDSP_DIR}" != "x"; then
  26465. if test -d ${SPANDSP_DIR}/lib; then
  26466. pbxlibdir="-L${SPANDSP_DIR}/lib"
  26467. else
  26468. pbxlibdir="-L${SPANDSP_DIR}"
  26469. fi
  26470. fi
  26471. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26472. CFLAGS="${CFLAGS} "
  26473. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t38_terminal_init in -lspandsp" >&5
  26474. printf %s "checking for t38_terminal_init in -lspandsp... " >&6; }
  26475. if test ${ac_cv_lib_spandsp_t38_terminal_init+y}
  26476. then :
  26477. printf %s "(cached) " >&6
  26478. else $as_nop
  26479. ac_check_lib_save_LIBS=$LIBS
  26480. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  26481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26482. /* end confdefs.h. */
  26483. /* Override any GCC internal prototype to avoid an error.
  26484. Use char because int might match the return type of a GCC
  26485. builtin and then its argument prototype would still apply. */
  26486. char t38_terminal_init ();
  26487. int
  26488. main (void)
  26489. {
  26490. return t38_terminal_init ();
  26491. ;
  26492. return 0;
  26493. }
  26494. _ACEOF
  26495. if ac_fn_c_try_link "$LINENO"
  26496. then :
  26497. ac_cv_lib_spandsp_t38_terminal_init=yes
  26498. else $as_nop
  26499. ac_cv_lib_spandsp_t38_terminal_init=no
  26500. fi
  26501. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26502. conftest$ac_exeext conftest.$ac_ext
  26503. LIBS=$ac_check_lib_save_LIBS
  26504. fi
  26505. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_spandsp_t38_terminal_init" >&5
  26506. printf "%s\n" "$ac_cv_lib_spandsp_t38_terminal_init" >&6; }
  26507. if test "x$ac_cv_lib_spandsp_t38_terminal_init" = xyes
  26508. then :
  26509. AST_SPANDSP_FOUND=yes
  26510. else $as_nop
  26511. AST_SPANDSP_FOUND=no
  26512. fi
  26513. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26514. # now check for the header.
  26515. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  26516. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  26517. # if --with-SPANDSP=DIR has been specified, use it.
  26518. if test "x${SPANDSP_DIR}" != "x"; then
  26519. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  26520. fi
  26521. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  26522. # check for the header
  26523. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26524. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  26525. ac_fn_c_check_header_compile "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
  26526. if test "x$ac_cv_header_spandsp_h" = xyes
  26527. then :
  26528. SPANDSP_HEADER_FOUND=1
  26529. else $as_nop
  26530. SPANDSP_HEADER_FOUND=0
  26531. fi
  26532. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26533. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  26534. SPANDSP_LIB=""
  26535. SPANDSP_INCLUDE=""
  26536. else
  26537. PBX_SPANDSP=1
  26538. cat >>confdefs.h <<_ACEOF
  26539. #define HAVE_SPANDSP 1
  26540. _ACEOF
  26541. fi
  26542. fi
  26543. fi
  26544. fi
  26545. # Check for libss7 v2.0 branch compatible version.
  26546. if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
  26547. pbxlibdir=""
  26548. # if --with-SS7=DIR has been specified, use it.
  26549. if test "x${SS7_DIR}" != "x"; then
  26550. if test -d ${SS7_DIR}/lib; then
  26551. pbxlibdir="-L${SS7_DIR}/lib"
  26552. else
  26553. pbxlibdir="-L${SS7_DIR}"
  26554. fi
  26555. fi
  26556. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26557. CFLAGS="${CFLAGS} "
  26558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ss7_set_isup_timer in -lss7" >&5
  26559. printf %s "checking for ss7_set_isup_timer in -lss7... " >&6; }
  26560. if test ${ac_cv_lib_ss7_ss7_set_isup_timer+y}
  26561. then :
  26562. printf %s "(cached) " >&6
  26563. else $as_nop
  26564. ac_check_lib_save_LIBS=$LIBS
  26565. LIBS="-lss7 ${pbxlibdir} $LIBS"
  26566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26567. /* end confdefs.h. */
  26568. /* Override any GCC internal prototype to avoid an error.
  26569. Use char because int might match the return type of a GCC
  26570. builtin and then its argument prototype would still apply. */
  26571. char ss7_set_isup_timer ();
  26572. int
  26573. main (void)
  26574. {
  26575. return ss7_set_isup_timer ();
  26576. ;
  26577. return 0;
  26578. }
  26579. _ACEOF
  26580. if ac_fn_c_try_link "$LINENO"
  26581. then :
  26582. ac_cv_lib_ss7_ss7_set_isup_timer=yes
  26583. else $as_nop
  26584. ac_cv_lib_ss7_ss7_set_isup_timer=no
  26585. fi
  26586. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26587. conftest$ac_exeext conftest.$ac_ext
  26588. LIBS=$ac_check_lib_save_LIBS
  26589. fi
  26590. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ss7_ss7_set_isup_timer" >&5
  26591. printf "%s\n" "$ac_cv_lib_ss7_ss7_set_isup_timer" >&6; }
  26592. if test "x$ac_cv_lib_ss7_ss7_set_isup_timer" = xyes
  26593. then :
  26594. AST_SS7_FOUND=yes
  26595. else $as_nop
  26596. AST_SS7_FOUND=no
  26597. fi
  26598. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26599. # now check for the header.
  26600. if test "${AST_SS7_FOUND}" = "yes"; then
  26601. SS7_LIB="${pbxlibdir} -lss7 "
  26602. # if --with-SS7=DIR has been specified, use it.
  26603. if test "x${SS7_DIR}" != "x"; then
  26604. SS7_INCLUDE="-I${SS7_DIR}/include"
  26605. fi
  26606. SS7_INCLUDE="${SS7_INCLUDE} "
  26607. # check for the header
  26608. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26609. CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE}"
  26610. ac_fn_c_check_header_compile "$LINENO" "libss7.h" "ac_cv_header_libss7_h" "$ac_includes_default"
  26611. if test "x$ac_cv_header_libss7_h" = xyes
  26612. then :
  26613. SS7_HEADER_FOUND=1
  26614. else $as_nop
  26615. SS7_HEADER_FOUND=0
  26616. fi
  26617. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26618. if test "x${SS7_HEADER_FOUND}" = "x0" ; then
  26619. SS7_LIB=""
  26620. SS7_INCLUDE=""
  26621. else
  26622. PBX_SS7=1
  26623. cat >>confdefs.h <<_ACEOF
  26624. #define HAVE_SS7 1
  26625. _ACEOF
  26626. fi
  26627. fi
  26628. fi
  26629. if test "x${PBX_OPENR2}" != "x1" -a "${USE_OPENR2}" != "no"; then
  26630. pbxlibdir=""
  26631. # if --with-OPENR2=DIR has been specified, use it.
  26632. if test "x${OPENR2_DIR}" != "x"; then
  26633. if test -d ${OPENR2_DIR}/lib; then
  26634. pbxlibdir="-L${OPENR2_DIR}/lib"
  26635. else
  26636. pbxlibdir="-L${OPENR2_DIR}"
  26637. fi
  26638. fi
  26639. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26640. CFLAGS="${CFLAGS} "
  26641. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openr2_chan_new in -lopenr2" >&5
  26642. printf %s "checking for openr2_chan_new in -lopenr2... " >&6; }
  26643. if test ${ac_cv_lib_openr2_openr2_chan_new+y}
  26644. then :
  26645. printf %s "(cached) " >&6
  26646. else $as_nop
  26647. ac_check_lib_save_LIBS=$LIBS
  26648. LIBS="-lopenr2 ${pbxlibdir} $LIBS"
  26649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26650. /* end confdefs.h. */
  26651. /* Override any GCC internal prototype to avoid an error.
  26652. Use char because int might match the return type of a GCC
  26653. builtin and then its argument prototype would still apply. */
  26654. char openr2_chan_new ();
  26655. int
  26656. main (void)
  26657. {
  26658. return openr2_chan_new ();
  26659. ;
  26660. return 0;
  26661. }
  26662. _ACEOF
  26663. if ac_fn_c_try_link "$LINENO"
  26664. then :
  26665. ac_cv_lib_openr2_openr2_chan_new=yes
  26666. else $as_nop
  26667. ac_cv_lib_openr2_openr2_chan_new=no
  26668. fi
  26669. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26670. conftest$ac_exeext conftest.$ac_ext
  26671. LIBS=$ac_check_lib_save_LIBS
  26672. fi
  26673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openr2_openr2_chan_new" >&5
  26674. printf "%s\n" "$ac_cv_lib_openr2_openr2_chan_new" >&6; }
  26675. if test "x$ac_cv_lib_openr2_openr2_chan_new" = xyes
  26676. then :
  26677. AST_OPENR2_FOUND=yes
  26678. else $as_nop
  26679. AST_OPENR2_FOUND=no
  26680. fi
  26681. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26682. # now check for the header.
  26683. if test "${AST_OPENR2_FOUND}" = "yes"; then
  26684. OPENR2_LIB="${pbxlibdir} -lopenr2 "
  26685. # if --with-OPENR2=DIR has been specified, use it.
  26686. if test "x${OPENR2_DIR}" != "x"; then
  26687. OPENR2_INCLUDE="-I${OPENR2_DIR}/include"
  26688. fi
  26689. OPENR2_INCLUDE="${OPENR2_INCLUDE} "
  26690. # check for the header
  26691. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26692. CPPFLAGS="${CPPFLAGS} ${OPENR2_INCLUDE}"
  26693. ac_fn_c_check_header_compile "$LINENO" "openr2.h" "ac_cv_header_openr2_h" "$ac_includes_default"
  26694. if test "x$ac_cv_header_openr2_h" = xyes
  26695. then :
  26696. OPENR2_HEADER_FOUND=1
  26697. else $as_nop
  26698. OPENR2_HEADER_FOUND=0
  26699. fi
  26700. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26701. if test "x${OPENR2_HEADER_FOUND}" = "x0" ; then
  26702. OPENR2_LIB=""
  26703. OPENR2_INCLUDE=""
  26704. else
  26705. PBX_OPENR2=1
  26706. cat >>confdefs.h <<_ACEOF
  26707. #define HAVE_OPENR2 1
  26708. _ACEOF
  26709. fi
  26710. fi
  26711. fi
  26712. if test "x${PBX_OPUS}" != "x1" -a "${USE_OPUS}" != "no"; then
  26713. pbxlibdir=""
  26714. # if --with-OPUS=DIR has been specified, use it.
  26715. if test "x${OPUS_DIR}" != "x"; then
  26716. if test -d ${OPUS_DIR}/lib; then
  26717. pbxlibdir="-L${OPUS_DIR}/lib"
  26718. else
  26719. pbxlibdir="-L${OPUS_DIR}"
  26720. fi
  26721. fi
  26722. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26723. CFLAGS="${CFLAGS} "
  26724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opus_encoder_create in -lopus" >&5
  26725. printf %s "checking for opus_encoder_create in -lopus... " >&6; }
  26726. if test ${ac_cv_lib_opus_opus_encoder_create+y}
  26727. then :
  26728. printf %s "(cached) " >&6
  26729. else $as_nop
  26730. ac_check_lib_save_LIBS=$LIBS
  26731. LIBS="-lopus ${pbxlibdir} $LIBS"
  26732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26733. /* end confdefs.h. */
  26734. /* Override any GCC internal prototype to avoid an error.
  26735. Use char because int might match the return type of a GCC
  26736. builtin and then its argument prototype would still apply. */
  26737. char opus_encoder_create ();
  26738. int
  26739. main (void)
  26740. {
  26741. return opus_encoder_create ();
  26742. ;
  26743. return 0;
  26744. }
  26745. _ACEOF
  26746. if ac_fn_c_try_link "$LINENO"
  26747. then :
  26748. ac_cv_lib_opus_opus_encoder_create=yes
  26749. else $as_nop
  26750. ac_cv_lib_opus_opus_encoder_create=no
  26751. fi
  26752. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26753. conftest$ac_exeext conftest.$ac_ext
  26754. LIBS=$ac_check_lib_save_LIBS
  26755. fi
  26756. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opus_opus_encoder_create" >&5
  26757. printf "%s\n" "$ac_cv_lib_opus_opus_encoder_create" >&6; }
  26758. if test "x$ac_cv_lib_opus_opus_encoder_create" = xyes
  26759. then :
  26760. AST_OPUS_FOUND=yes
  26761. else $as_nop
  26762. AST_OPUS_FOUND=no
  26763. fi
  26764. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26765. # now check for the header.
  26766. if test "${AST_OPUS_FOUND}" = "yes"; then
  26767. OPUS_LIB="${pbxlibdir} -lopus "
  26768. # if --with-OPUS=DIR has been specified, use it.
  26769. if test "x${OPUS_DIR}" != "x"; then
  26770. OPUS_INCLUDE="-I${OPUS_DIR}/include"
  26771. fi
  26772. OPUS_INCLUDE="${OPUS_INCLUDE} "
  26773. # check for the header
  26774. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26775. CPPFLAGS="${CPPFLAGS} ${OPUS_INCLUDE}"
  26776. ac_fn_c_check_header_compile "$LINENO" "opus/opus.h" "ac_cv_header_opus_opus_h" "$ac_includes_default"
  26777. if test "x$ac_cv_header_opus_opus_h" = xyes
  26778. then :
  26779. OPUS_HEADER_FOUND=1
  26780. else $as_nop
  26781. OPUS_HEADER_FOUND=0
  26782. fi
  26783. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26784. if test "x${OPUS_HEADER_FOUND}" = "x0" ; then
  26785. OPUS_LIB=""
  26786. OPUS_INCLUDE=""
  26787. else
  26788. PBX_OPUS=1
  26789. cat >>confdefs.h <<_ACEOF
  26790. #define HAVE_OPUS 1
  26791. _ACEOF
  26792. fi
  26793. fi
  26794. fi
  26795. # opusfile.h includes <opus_multistream.h> so we need to make sure that
  26796. # either $OPUS_INCLUDE or /usr/include/opus is added to the search path.
  26797. __opus_include=${OPUS_INCLUDE}
  26798. if test -z "$__opus_include" -o x"$__opus_include" = x" " ; then
  26799. __opus_include=-I/usr/include/opus
  26800. fi
  26801. if test "x${PBX_OPUSFILE}" != "x1" -a "${USE_OPUSFILE}" != "no"; then
  26802. pbxlibdir=""
  26803. # if --with-OPUSFILE=DIR has been specified, use it.
  26804. if test "x${OPUSFILE_DIR}" != "x"; then
  26805. if test -d ${OPUSFILE_DIR}/lib; then
  26806. pbxlibdir="-L${OPUSFILE_DIR}/lib"
  26807. else
  26808. pbxlibdir="-L${OPUSFILE_DIR}"
  26809. fi
  26810. fi
  26811. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26812. CFLAGS="${CFLAGS} $__opus_include"
  26813. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for op_open_callbacks in -lopusfile" >&5
  26814. printf %s "checking for op_open_callbacks in -lopusfile... " >&6; }
  26815. if test ${ac_cv_lib_opusfile_op_open_callbacks+y}
  26816. then :
  26817. printf %s "(cached) " >&6
  26818. else $as_nop
  26819. ac_check_lib_save_LIBS=$LIBS
  26820. LIBS="-lopusfile ${pbxlibdir} $LIBS"
  26821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26822. /* end confdefs.h. */
  26823. /* Override any GCC internal prototype to avoid an error.
  26824. Use char because int might match the return type of a GCC
  26825. builtin and then its argument prototype would still apply. */
  26826. char op_open_callbacks ();
  26827. int
  26828. main (void)
  26829. {
  26830. return op_open_callbacks ();
  26831. ;
  26832. return 0;
  26833. }
  26834. _ACEOF
  26835. if ac_fn_c_try_link "$LINENO"
  26836. then :
  26837. ac_cv_lib_opusfile_op_open_callbacks=yes
  26838. else $as_nop
  26839. ac_cv_lib_opusfile_op_open_callbacks=no
  26840. fi
  26841. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26842. conftest$ac_exeext conftest.$ac_ext
  26843. LIBS=$ac_check_lib_save_LIBS
  26844. fi
  26845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opusfile_op_open_callbacks" >&5
  26846. printf "%s\n" "$ac_cv_lib_opusfile_op_open_callbacks" >&6; }
  26847. if test "x$ac_cv_lib_opusfile_op_open_callbacks" = xyes
  26848. then :
  26849. AST_OPUSFILE_FOUND=yes
  26850. else $as_nop
  26851. AST_OPUSFILE_FOUND=no
  26852. fi
  26853. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26854. # now check for the header.
  26855. if test "${AST_OPUSFILE_FOUND}" = "yes"; then
  26856. OPUSFILE_LIB="${pbxlibdir} -lopusfile "
  26857. # if --with-OPUSFILE=DIR has been specified, use it.
  26858. if test "x${OPUSFILE_DIR}" != "x"; then
  26859. OPUSFILE_INCLUDE="-I${OPUSFILE_DIR}/include"
  26860. fi
  26861. OPUSFILE_INCLUDE="${OPUSFILE_INCLUDE} $__opus_include"
  26862. # check for the header
  26863. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26864. CPPFLAGS="${CPPFLAGS} ${OPUSFILE_INCLUDE}"
  26865. ac_fn_c_check_header_compile "$LINENO" "opus/opusfile.h" "ac_cv_header_opus_opusfile_h" "$ac_includes_default"
  26866. if test "x$ac_cv_header_opus_opusfile_h" = xyes
  26867. then :
  26868. OPUSFILE_HEADER_FOUND=1
  26869. else $as_nop
  26870. OPUSFILE_HEADER_FOUND=0
  26871. fi
  26872. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26873. if test "x${OPUSFILE_HEADER_FOUND}" = "x0" ; then
  26874. OPUSFILE_LIB=""
  26875. OPUSFILE_INCLUDE=""
  26876. else
  26877. PBX_OPUSFILE=1
  26878. cat >>confdefs.h <<_ACEOF
  26879. #define HAVE_OPUSFILE 1
  26880. _ACEOF
  26881. fi
  26882. fi
  26883. fi
  26884. for ver in ${LUA_VERSIONS:-5.4 5.3 5.2 5.1}; do
  26885. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  26886. pbxlibdir=""
  26887. # if --with-LUA=DIR has been specified, use it.
  26888. if test "x${LUA_DIR}" != "x"; then
  26889. if test -d ${LUA_DIR}/lib; then
  26890. pbxlibdir="-L${LUA_DIR}/lib"
  26891. else
  26892. pbxlibdir="-L${LUA_DIR}"
  26893. fi
  26894. fi
  26895. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26896. CFLAGS="${CFLAGS} "
  26897. as_ac_Lib=`printf "%s\n" "ac_cv_lib_lua${ver}""_luaL_newstate" | $as_tr_sh`
  26898. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua${ver}" >&5
  26899. printf %s "checking for luaL_newstate in -llua${ver}... " >&6; }
  26900. if eval test \${$as_ac_Lib+y}
  26901. then :
  26902. printf %s "(cached) " >&6
  26903. else $as_nop
  26904. ac_check_lib_save_LIBS=$LIBS
  26905. LIBS="-llua${ver} ${pbxlibdir} -lm $LIBS"
  26906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26907. /* end confdefs.h. */
  26908. /* Override any GCC internal prototype to avoid an error.
  26909. Use char because int might match the return type of a GCC
  26910. builtin and then its argument prototype would still apply. */
  26911. char luaL_newstate ();
  26912. int
  26913. main (void)
  26914. {
  26915. return luaL_newstate ();
  26916. ;
  26917. return 0;
  26918. }
  26919. _ACEOF
  26920. if ac_fn_c_try_link "$LINENO"
  26921. then :
  26922. eval "$as_ac_Lib=yes"
  26923. else $as_nop
  26924. eval "$as_ac_Lib=no"
  26925. fi
  26926. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  26927. conftest$ac_exeext conftest.$ac_ext
  26928. LIBS=$ac_check_lib_save_LIBS
  26929. fi
  26930. eval ac_res=\$$as_ac_Lib
  26931. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26932. printf "%s\n" "$ac_res" >&6; }
  26933. if eval test \"x\$"$as_ac_Lib"\" = x"yes"
  26934. then :
  26935. AST_LUA_FOUND=yes
  26936. else $as_nop
  26937. AST_LUA_FOUND=no
  26938. fi
  26939. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26940. # now check for the header.
  26941. if test "${AST_LUA_FOUND}" = "yes"; then
  26942. LUA_LIB="${pbxlibdir} -llua${ver} -lm"
  26943. # if --with-LUA=DIR has been specified, use it.
  26944. if test "x${LUA_DIR}" != "x"; then
  26945. LUA_INCLUDE="-I${LUA_DIR}/include"
  26946. fi
  26947. LUA_INCLUDE="${LUA_INCLUDE} "
  26948. # check for the header
  26949. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26950. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  26951. as_ac_Header=`printf "%s\n" "ac_cv_header_lua${ver}/lua.h" | $as_tr_sh`
  26952. ac_fn_c_check_header_compile "$LINENO" "lua${ver}/lua.h" "$as_ac_Header" "$ac_includes_default"
  26953. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  26954. then :
  26955. LUA_HEADER_FOUND=1
  26956. else $as_nop
  26957. LUA_HEADER_FOUND=0
  26958. fi
  26959. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26960. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  26961. LUA_LIB=""
  26962. LUA_INCLUDE=""
  26963. else
  26964. PBX_LUA=1
  26965. cat >>confdefs.h <<_ACEOF
  26966. #define HAVE_LUA 1
  26967. _ACEOF
  26968. fi
  26969. fi
  26970. fi
  26971. if test "x${PBX_LUA}" = "x1" ; then
  26972. if test x"${LUA_DIR}" = x; then
  26973. LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua${ver}"
  26974. else
  26975. LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua${ver}"
  26976. fi
  26977. break;
  26978. fi
  26979. done
  26980. # Some distributions (like openSUSE and NetBSD) remove the 5.x suffix.
  26981. if test "x${LUA_VERSIONS}" = "x"; then
  26982. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  26983. pbxlibdir=""
  26984. # if --with-LUA=DIR has been specified, use it.
  26985. if test "x${LUA_DIR}" != "x"; then
  26986. if test -d ${LUA_DIR}/lib; then
  26987. pbxlibdir="-L${LUA_DIR}/lib"
  26988. else
  26989. pbxlibdir="-L${LUA_DIR}"
  26990. fi
  26991. fi
  26992. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26993. CFLAGS="${CFLAGS} "
  26994. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for luaL_newstate in -llua" >&5
  26995. printf %s "checking for luaL_newstate in -llua... " >&6; }
  26996. if test ${ac_cv_lib_lua_luaL_newstate+y}
  26997. then :
  26998. printf %s "(cached) " >&6
  26999. else $as_nop
  27000. ac_check_lib_save_LIBS=$LIBS
  27001. LIBS="-llua ${pbxlibdir} -lm $LIBS"
  27002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27003. /* end confdefs.h. */
  27004. /* Override any GCC internal prototype to avoid an error.
  27005. Use char because int might match the return type of a GCC
  27006. builtin and then its argument prototype would still apply. */
  27007. char luaL_newstate ();
  27008. int
  27009. main (void)
  27010. {
  27011. return luaL_newstate ();
  27012. ;
  27013. return 0;
  27014. }
  27015. _ACEOF
  27016. if ac_fn_c_try_link "$LINENO"
  27017. then :
  27018. ac_cv_lib_lua_luaL_newstate=yes
  27019. else $as_nop
  27020. ac_cv_lib_lua_luaL_newstate=no
  27021. fi
  27022. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27023. conftest$ac_exeext conftest.$ac_ext
  27024. LIBS=$ac_check_lib_save_LIBS
  27025. fi
  27026. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_luaL_newstate" >&5
  27027. printf "%s\n" "$ac_cv_lib_lua_luaL_newstate" >&6; }
  27028. if test "x$ac_cv_lib_lua_luaL_newstate" = xyes
  27029. then :
  27030. AST_LUA_FOUND=yes
  27031. else $as_nop
  27032. AST_LUA_FOUND=no
  27033. fi
  27034. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27035. # now check for the header.
  27036. if test "${AST_LUA_FOUND}" = "yes"; then
  27037. LUA_LIB="${pbxlibdir} -llua -lm"
  27038. # if --with-LUA=DIR has been specified, use it.
  27039. if test "x${LUA_DIR}" != "x"; then
  27040. LUA_INCLUDE="-I${LUA_DIR}/include"
  27041. fi
  27042. LUA_INCLUDE="${LUA_INCLUDE} "
  27043. # check for the header
  27044. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27045. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  27046. ac_fn_c_check_header_compile "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
  27047. if test "x$ac_cv_header_lua_h" = xyes
  27048. then :
  27049. LUA_HEADER_FOUND=1
  27050. else $as_nop
  27051. LUA_HEADER_FOUND=0
  27052. fi
  27053. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27054. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  27055. LUA_LIB=""
  27056. LUA_INCLUDE=""
  27057. else
  27058. PBX_LUA=1
  27059. cat >>confdefs.h <<_ACEOF
  27060. #define HAVE_LUA 1
  27061. _ACEOF
  27062. fi
  27063. fi
  27064. fi
  27065. fi
  27066. # Accept either RADIUS client library, their APIs are fully compatible,
  27067. # just different header filenames and different SONAMEs
  27068. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  27069. pbxlibdir=""
  27070. # if --with-RADIUS=DIR has been specified, use it.
  27071. if test "x${RADIUS_DIR}" != "x"; then
  27072. if test -d ${RADIUS_DIR}/lib; then
  27073. pbxlibdir="-L${RADIUS_DIR}/lib"
  27074. else
  27075. pbxlibdir="-L${RADIUS_DIR}"
  27076. fi
  27077. fi
  27078. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27079. CFLAGS="${CFLAGS} "
  27080. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lfreeradius-client" >&5
  27081. printf %s "checking for rc_read_config in -lfreeradius-client... " >&6; }
  27082. if test ${ac_cv_lib_freeradius_client_rc_read_config+y}
  27083. then :
  27084. printf %s "(cached) " >&6
  27085. else $as_nop
  27086. ac_check_lib_save_LIBS=$LIBS
  27087. LIBS="-lfreeradius-client ${pbxlibdir} $LIBS"
  27088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27089. /* end confdefs.h. */
  27090. /* Override any GCC internal prototype to avoid an error.
  27091. Use char because int might match the return type of a GCC
  27092. builtin and then its argument prototype would still apply. */
  27093. char rc_read_config ();
  27094. int
  27095. main (void)
  27096. {
  27097. return rc_read_config ();
  27098. ;
  27099. return 0;
  27100. }
  27101. _ACEOF
  27102. if ac_fn_c_try_link "$LINENO"
  27103. then :
  27104. ac_cv_lib_freeradius_client_rc_read_config=yes
  27105. else $as_nop
  27106. ac_cv_lib_freeradius_client_rc_read_config=no
  27107. fi
  27108. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27109. conftest$ac_exeext conftest.$ac_ext
  27110. LIBS=$ac_check_lib_save_LIBS
  27111. fi
  27112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freeradius_client_rc_read_config" >&5
  27113. printf "%s\n" "$ac_cv_lib_freeradius_client_rc_read_config" >&6; }
  27114. if test "x$ac_cv_lib_freeradius_client_rc_read_config" = xyes
  27115. then :
  27116. AST_RADIUS_FOUND=yes
  27117. else $as_nop
  27118. AST_RADIUS_FOUND=no
  27119. fi
  27120. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27121. # now check for the header.
  27122. if test "${AST_RADIUS_FOUND}" = "yes"; then
  27123. RADIUS_LIB="${pbxlibdir} -lfreeradius-client "
  27124. # if --with-RADIUS=DIR has been specified, use it.
  27125. if test "x${RADIUS_DIR}" != "x"; then
  27126. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  27127. fi
  27128. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  27129. # check for the header
  27130. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27131. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  27132. ac_fn_c_check_header_compile "$LINENO" "freeradius-client.h" "ac_cv_header_freeradius_client_h" "$ac_includes_default"
  27133. if test "x$ac_cv_header_freeradius_client_h" = xyes
  27134. then :
  27135. RADIUS_HEADER_FOUND=1
  27136. else $as_nop
  27137. RADIUS_HEADER_FOUND=0
  27138. fi
  27139. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27140. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  27141. RADIUS_LIB=""
  27142. RADIUS_INCLUDE=""
  27143. else
  27144. PBX_RADIUS=1
  27145. cat >>confdefs.h <<_ACEOF
  27146. #define HAVE_RADIUS 1
  27147. _ACEOF
  27148. fi
  27149. fi
  27150. fi
  27151. if test "x${PBX_RADIUS}" = "x1"; then
  27152. printf "%s\n" "#define RADIUS_HEADER_STR <freeradius-client.h>" >>confdefs.h
  27153. else
  27154. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  27155. pbxlibdir=""
  27156. # if --with-RADIUS=DIR has been specified, use it.
  27157. if test "x${RADIUS_DIR}" != "x"; then
  27158. if test -d ${RADIUS_DIR}/lib; then
  27159. pbxlibdir="-L${RADIUS_DIR}/lib"
  27160. else
  27161. pbxlibdir="-L${RADIUS_DIR}"
  27162. fi
  27163. fi
  27164. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27165. CFLAGS="${CFLAGS} "
  27166. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradiusclient-ng" >&5
  27167. printf %s "checking for rc_read_config in -lradiusclient-ng... " >&6; }
  27168. if test ${ac_cv_lib_radiusclient_ng_rc_read_config+y}
  27169. then :
  27170. printf %s "(cached) " >&6
  27171. else $as_nop
  27172. ac_check_lib_save_LIBS=$LIBS
  27173. LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
  27174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27175. /* end confdefs.h. */
  27176. /* Override any GCC internal prototype to avoid an error.
  27177. Use char because int might match the return type of a GCC
  27178. builtin and then its argument prototype would still apply. */
  27179. char rc_read_config ();
  27180. int
  27181. main (void)
  27182. {
  27183. return rc_read_config ();
  27184. ;
  27185. return 0;
  27186. }
  27187. _ACEOF
  27188. if ac_fn_c_try_link "$LINENO"
  27189. then :
  27190. ac_cv_lib_radiusclient_ng_rc_read_config=yes
  27191. else $as_nop
  27192. ac_cv_lib_radiusclient_ng_rc_read_config=no
  27193. fi
  27194. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27195. conftest$ac_exeext conftest.$ac_ext
  27196. LIBS=$ac_check_lib_save_LIBS
  27197. fi
  27198. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
  27199. printf "%s\n" "$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
  27200. if test "x$ac_cv_lib_radiusclient_ng_rc_read_config" = xyes
  27201. then :
  27202. AST_RADIUS_FOUND=yes
  27203. else $as_nop
  27204. AST_RADIUS_FOUND=no
  27205. fi
  27206. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27207. # now check for the header.
  27208. if test "${AST_RADIUS_FOUND}" = "yes"; then
  27209. RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
  27210. # if --with-RADIUS=DIR has been specified, use it.
  27211. if test "x${RADIUS_DIR}" != "x"; then
  27212. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  27213. fi
  27214. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  27215. # check for the header
  27216. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27217. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  27218. ac_fn_c_check_header_compile "$LINENO" "radiusclient-ng.h" "ac_cv_header_radiusclient_ng_h" "$ac_includes_default"
  27219. if test "x$ac_cv_header_radiusclient_ng_h" = xyes
  27220. then :
  27221. RADIUS_HEADER_FOUND=1
  27222. else $as_nop
  27223. RADIUS_HEADER_FOUND=0
  27224. fi
  27225. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27226. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  27227. RADIUS_LIB=""
  27228. RADIUS_INCLUDE=""
  27229. else
  27230. PBX_RADIUS=1
  27231. cat >>confdefs.h <<_ACEOF
  27232. #define HAVE_RADIUS 1
  27233. _ACEOF
  27234. fi
  27235. fi
  27236. fi
  27237. if test "x${PBX_RADIUS}" = "x1"; then
  27238. printf "%s\n" "#define RADIUS_HEADER_STR <radiusclient-ng.h>" >>confdefs.h
  27239. else
  27240. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  27241. pbxlibdir=""
  27242. # if --with-RADIUS=DIR has been specified, use it.
  27243. if test "x${RADIUS_DIR}" != "x"; then
  27244. if test -d ${RADIUS_DIR}/lib; then
  27245. pbxlibdir="-L${RADIUS_DIR}/lib"
  27246. else
  27247. pbxlibdir="-L${RADIUS_DIR}"
  27248. fi
  27249. fi
  27250. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27251. CFLAGS="${CFLAGS} "
  27252. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rc_read_config in -lradcli" >&5
  27253. printf %s "checking for rc_read_config in -lradcli... " >&6; }
  27254. if test ${ac_cv_lib_radcli_rc_read_config+y}
  27255. then :
  27256. printf %s "(cached) " >&6
  27257. else $as_nop
  27258. ac_check_lib_save_LIBS=$LIBS
  27259. LIBS="-lradcli ${pbxlibdir} $LIBS"
  27260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27261. /* end confdefs.h. */
  27262. /* Override any GCC internal prototype to avoid an error.
  27263. Use char because int might match the return type of a GCC
  27264. builtin and then its argument prototype would still apply. */
  27265. char rc_read_config ();
  27266. int
  27267. main (void)
  27268. {
  27269. return rc_read_config ();
  27270. ;
  27271. return 0;
  27272. }
  27273. _ACEOF
  27274. if ac_fn_c_try_link "$LINENO"
  27275. then :
  27276. ac_cv_lib_radcli_rc_read_config=yes
  27277. else $as_nop
  27278. ac_cv_lib_radcli_rc_read_config=no
  27279. fi
  27280. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27281. conftest$ac_exeext conftest.$ac_ext
  27282. LIBS=$ac_check_lib_save_LIBS
  27283. fi
  27284. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_radcli_rc_read_config" >&5
  27285. printf "%s\n" "$ac_cv_lib_radcli_rc_read_config" >&6; }
  27286. if test "x$ac_cv_lib_radcli_rc_read_config" = xyes
  27287. then :
  27288. AST_RADIUS_FOUND=yes
  27289. else $as_nop
  27290. AST_RADIUS_FOUND=no
  27291. fi
  27292. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27293. # now check for the header.
  27294. if test "${AST_RADIUS_FOUND}" = "yes"; then
  27295. RADIUS_LIB="${pbxlibdir} -lradcli "
  27296. # if --with-RADIUS=DIR has been specified, use it.
  27297. if test "x${RADIUS_DIR}" != "x"; then
  27298. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  27299. fi
  27300. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  27301. # check for the header
  27302. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27303. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  27304. ac_fn_c_check_header_compile "$LINENO" "radcli/radcli.h" "ac_cv_header_radcli_radcli_h" "$ac_includes_default"
  27305. if test "x$ac_cv_header_radcli_radcli_h" = xyes
  27306. then :
  27307. RADIUS_HEADER_FOUND=1
  27308. else $as_nop
  27309. RADIUS_HEADER_FOUND=0
  27310. fi
  27311. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27312. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  27313. RADIUS_LIB=""
  27314. RADIUS_INCLUDE=""
  27315. else
  27316. PBX_RADIUS=1
  27317. cat >>confdefs.h <<_ACEOF
  27318. #define HAVE_RADIUS 1
  27319. _ACEOF
  27320. fi
  27321. fi
  27322. fi
  27323. if test "x${PBX_RADIUS}" = "x1"; then
  27324. printf "%s\n" "#define RADIUS_HEADER_STR <radcli/radcli.h>" >>confdefs.h
  27325. fi
  27326. fi
  27327. fi
  27328. if test "x${PBX_CODEC2}" != "x1" -a "${USE_CODEC2}" != "no"; then
  27329. pbxlibdir=""
  27330. # if --with-CODEC2=DIR has been specified, use it.
  27331. if test "x${CODEC2_DIR}" != "x"; then
  27332. if test -d ${CODEC2_DIR}/lib; then
  27333. pbxlibdir="-L${CODEC2_DIR}/lib"
  27334. else
  27335. pbxlibdir="-L${CODEC2_DIR}"
  27336. fi
  27337. fi
  27338. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27339. CFLAGS="${CFLAGS} "
  27340. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for codec2_create in -lcodec2" >&5
  27341. printf %s "checking for codec2_create in -lcodec2... " >&6; }
  27342. if test ${ac_cv_lib_codec2_codec2_create+y}
  27343. then :
  27344. printf %s "(cached) " >&6
  27345. else $as_nop
  27346. ac_check_lib_save_LIBS=$LIBS
  27347. LIBS="-lcodec2 ${pbxlibdir} $LIBS"
  27348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27349. /* end confdefs.h. */
  27350. /* Override any GCC internal prototype to avoid an error.
  27351. Use char because int might match the return type of a GCC
  27352. builtin and then its argument prototype would still apply. */
  27353. char codec2_create ();
  27354. int
  27355. main (void)
  27356. {
  27357. return codec2_create ();
  27358. ;
  27359. return 0;
  27360. }
  27361. _ACEOF
  27362. if ac_fn_c_try_link "$LINENO"
  27363. then :
  27364. ac_cv_lib_codec2_codec2_create=yes
  27365. else $as_nop
  27366. ac_cv_lib_codec2_codec2_create=no
  27367. fi
  27368. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27369. conftest$ac_exeext conftest.$ac_ext
  27370. LIBS=$ac_check_lib_save_LIBS
  27371. fi
  27372. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_codec2_codec2_create" >&5
  27373. printf "%s\n" "$ac_cv_lib_codec2_codec2_create" >&6; }
  27374. if test "x$ac_cv_lib_codec2_codec2_create" = xyes
  27375. then :
  27376. AST_CODEC2_FOUND=yes
  27377. else $as_nop
  27378. AST_CODEC2_FOUND=no
  27379. fi
  27380. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27381. # now check for the header.
  27382. if test "${AST_CODEC2_FOUND}" = "yes"; then
  27383. CODEC2_LIB="${pbxlibdir} -lcodec2 "
  27384. # if --with-CODEC2=DIR has been specified, use it.
  27385. if test "x${CODEC2_DIR}" != "x"; then
  27386. CODEC2_INCLUDE="-I${CODEC2_DIR}/include"
  27387. fi
  27388. CODEC2_INCLUDE="${CODEC2_INCLUDE} "
  27389. # check for the header
  27390. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27391. CPPFLAGS="${CPPFLAGS} ${CODEC2_INCLUDE}"
  27392. ac_fn_c_check_header_compile "$LINENO" "codec2/codec2.h" "ac_cv_header_codec2_codec2_h" "$ac_includes_default"
  27393. if test "x$ac_cv_header_codec2_codec2_h" = xyes
  27394. then :
  27395. CODEC2_HEADER_FOUND=1
  27396. else $as_nop
  27397. CODEC2_HEADER_FOUND=0
  27398. fi
  27399. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27400. if test "x${CODEC2_HEADER_FOUND}" = "x0" ; then
  27401. CODEC2_LIB=""
  27402. CODEC2_INCLUDE=""
  27403. else
  27404. PBX_CODEC2=1
  27405. cat >>confdefs.h <<_ACEOF
  27406. #define HAVE_CODEC2 1
  27407. _ACEOF
  27408. fi
  27409. fi
  27410. fi
  27411. if test "x${PBX_COROSYNC}" != "x1" -a "${USE_COROSYNC}" != "no"; then
  27412. pbxlibdir=""
  27413. # if --with-COROSYNC=DIR has been specified, use it.
  27414. if test "x${COROSYNC_DIR}" != "x"; then
  27415. if test -d ${COROSYNC_DIR}/lib; then
  27416. pbxlibdir="-L${COROSYNC_DIR}/lib"
  27417. else
  27418. pbxlibdir="-L${COROSYNC_DIR}"
  27419. fi
  27420. fi
  27421. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27422. CFLAGS="${CFLAGS} "
  27423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpg_join in -lcpg" >&5
  27424. printf %s "checking for cpg_join in -lcpg... " >&6; }
  27425. if test ${ac_cv_lib_cpg_cpg_join+y}
  27426. then :
  27427. printf %s "(cached) " >&6
  27428. else $as_nop
  27429. ac_check_lib_save_LIBS=$LIBS
  27430. LIBS="-lcpg ${pbxlibdir} -lcpg -lcfg $LIBS"
  27431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27432. /* end confdefs.h. */
  27433. /* Override any GCC internal prototype to avoid an error.
  27434. Use char because int might match the return type of a GCC
  27435. builtin and then its argument prototype would still apply. */
  27436. char cpg_join ();
  27437. int
  27438. main (void)
  27439. {
  27440. return cpg_join ();
  27441. ;
  27442. return 0;
  27443. }
  27444. _ACEOF
  27445. if ac_fn_c_try_link "$LINENO"
  27446. then :
  27447. ac_cv_lib_cpg_cpg_join=yes
  27448. else $as_nop
  27449. ac_cv_lib_cpg_cpg_join=no
  27450. fi
  27451. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27452. conftest$ac_exeext conftest.$ac_ext
  27453. LIBS=$ac_check_lib_save_LIBS
  27454. fi
  27455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpg_cpg_join" >&5
  27456. printf "%s\n" "$ac_cv_lib_cpg_cpg_join" >&6; }
  27457. if test "x$ac_cv_lib_cpg_cpg_join" = xyes
  27458. then :
  27459. AST_COROSYNC_FOUND=yes
  27460. else $as_nop
  27461. AST_COROSYNC_FOUND=no
  27462. fi
  27463. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27464. # now check for the header.
  27465. if test "${AST_COROSYNC_FOUND}" = "yes"; then
  27466. COROSYNC_LIB="${pbxlibdir} -lcpg -lcpg -lcfg"
  27467. # if --with-COROSYNC=DIR has been specified, use it.
  27468. if test "x${COROSYNC_DIR}" != "x"; then
  27469. COROSYNC_INCLUDE="-I${COROSYNC_DIR}/include"
  27470. fi
  27471. COROSYNC_INCLUDE="${COROSYNC_INCLUDE} "
  27472. # check for the header
  27473. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27474. CPPFLAGS="${CPPFLAGS} ${COROSYNC_INCLUDE}"
  27475. ac_fn_c_check_header_compile "$LINENO" "corosync/cpg.h" "ac_cv_header_corosync_cpg_h" "$ac_includes_default"
  27476. if test "x$ac_cv_header_corosync_cpg_h" = xyes
  27477. then :
  27478. COROSYNC_HEADER_FOUND=1
  27479. else $as_nop
  27480. COROSYNC_HEADER_FOUND=0
  27481. fi
  27482. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27483. if test "x${COROSYNC_HEADER_FOUND}" = "x0" ; then
  27484. COROSYNC_LIB=""
  27485. COROSYNC_INCLUDE=""
  27486. else
  27487. PBX_COROSYNC=1
  27488. cat >>confdefs.h <<_ACEOF
  27489. #define HAVE_COROSYNC 1
  27490. _ACEOF
  27491. fi
  27492. fi
  27493. fi
  27494. if test "x${PBX_COROSYNC_CFG_STATE_TRACK}" != "x1" -a "${USE_COROSYNC_CFG_STATE_TRACK}" != "no"; then
  27495. pbxlibdir=""
  27496. # if --with-COROSYNC_CFG_STATE_TRACK=DIR has been specified, use it.
  27497. if test "x${COROSYNC_CFG_STATE_TRACK_DIR}" != "x"; then
  27498. if test -d ${COROSYNC_CFG_STATE_TRACK_DIR}/lib; then
  27499. pbxlibdir="-L${COROSYNC_CFG_STATE_TRACK_DIR}/lib"
  27500. else
  27501. pbxlibdir="-L${COROSYNC_CFG_STATE_TRACK_DIR}"
  27502. fi
  27503. fi
  27504. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27505. CFLAGS="${CFLAGS} "
  27506. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for corosync_cfg_state_track in -lcfg" >&5
  27507. printf %s "checking for corosync_cfg_state_track in -lcfg... " >&6; }
  27508. if test ${ac_cv_lib_cfg_corosync_cfg_state_track+y}
  27509. then :
  27510. printf %s "(cached) " >&6
  27511. else $as_nop
  27512. ac_check_lib_save_LIBS=$LIBS
  27513. LIBS="-lcfg ${pbxlibdir} -lcfg $LIBS"
  27514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27515. /* end confdefs.h. */
  27516. /* Override any GCC internal prototype to avoid an error.
  27517. Use char because int might match the return type of a GCC
  27518. builtin and then its argument prototype would still apply. */
  27519. char corosync_cfg_state_track ();
  27520. int
  27521. main (void)
  27522. {
  27523. return corosync_cfg_state_track ();
  27524. ;
  27525. return 0;
  27526. }
  27527. _ACEOF
  27528. if ac_fn_c_try_link "$LINENO"
  27529. then :
  27530. ac_cv_lib_cfg_corosync_cfg_state_track=yes
  27531. else $as_nop
  27532. ac_cv_lib_cfg_corosync_cfg_state_track=no
  27533. fi
  27534. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27535. conftest$ac_exeext conftest.$ac_ext
  27536. LIBS=$ac_check_lib_save_LIBS
  27537. fi
  27538. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfg_corosync_cfg_state_track" >&5
  27539. printf "%s\n" "$ac_cv_lib_cfg_corosync_cfg_state_track" >&6; }
  27540. if test "x$ac_cv_lib_cfg_corosync_cfg_state_track" = xyes
  27541. then :
  27542. AST_COROSYNC_CFG_STATE_TRACK_FOUND=yes
  27543. else $as_nop
  27544. AST_COROSYNC_CFG_STATE_TRACK_FOUND=no
  27545. fi
  27546. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27547. # now check for the header.
  27548. if test "${AST_COROSYNC_CFG_STATE_TRACK_FOUND}" = "yes"; then
  27549. COROSYNC_CFG_STATE_TRACK_LIB="${pbxlibdir} -lcfg -lcfg"
  27550. # if --with-COROSYNC_CFG_STATE_TRACK=DIR has been specified, use it.
  27551. if test "x${COROSYNC_CFG_STATE_TRACK_DIR}" != "x"; then
  27552. COROSYNC_CFG_STATE_TRACK_INCLUDE="-I${COROSYNC_CFG_STATE_TRACK_DIR}/include"
  27553. fi
  27554. COROSYNC_CFG_STATE_TRACK_INCLUDE="${COROSYNC_CFG_STATE_TRACK_INCLUDE} "
  27555. # check for the header
  27556. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27557. CPPFLAGS="${CPPFLAGS} ${COROSYNC_CFG_STATE_TRACK_INCLUDE}"
  27558. ac_fn_c_check_header_compile "$LINENO" "corosync/cfg.h" "ac_cv_header_corosync_cfg_h" "$ac_includes_default"
  27559. if test "x$ac_cv_header_corosync_cfg_h" = xyes
  27560. then :
  27561. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND=1
  27562. else $as_nop
  27563. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND=0
  27564. fi
  27565. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27566. if test "x${COROSYNC_CFG_STATE_TRACK_HEADER_FOUND}" = "x0" ; then
  27567. COROSYNC_CFG_STATE_TRACK_LIB=""
  27568. COROSYNC_CFG_STATE_TRACK_INCLUDE=""
  27569. else
  27570. PBX_COROSYNC_CFG_STATE_TRACK=1
  27571. cat >>confdefs.h <<_ACEOF
  27572. #define HAVE_COROSYNC_CFG_STATE_TRACK 1
  27573. _ACEOF
  27574. fi
  27575. fi
  27576. fi
  27577. if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
  27578. pbxlibdir=""
  27579. # if --with-SPEEX=DIR has been specified, use it.
  27580. if test "x${SPEEX_DIR}" != "x"; then
  27581. if test -d ${SPEEX_DIR}/lib; then
  27582. pbxlibdir="-L${SPEEX_DIR}/lib"
  27583. else
  27584. pbxlibdir="-L${SPEEX_DIR}"
  27585. fi
  27586. fi
  27587. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27588. CFLAGS="${CFLAGS} "
  27589. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for speex_encode in -lspeex" >&5
  27590. printf %s "checking for speex_encode in -lspeex... " >&6; }
  27591. if test ${ac_cv_lib_speex_speex_encode+y}
  27592. then :
  27593. printf %s "(cached) " >&6
  27594. else $as_nop
  27595. ac_check_lib_save_LIBS=$LIBS
  27596. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  27597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27598. /* end confdefs.h. */
  27599. /* Override any GCC internal prototype to avoid an error.
  27600. Use char because int might match the return type of a GCC
  27601. builtin and then its argument prototype would still apply. */
  27602. char speex_encode ();
  27603. int
  27604. main (void)
  27605. {
  27606. return speex_encode ();
  27607. ;
  27608. return 0;
  27609. }
  27610. _ACEOF
  27611. if ac_fn_c_try_link "$LINENO"
  27612. then :
  27613. ac_cv_lib_speex_speex_encode=yes
  27614. else $as_nop
  27615. ac_cv_lib_speex_speex_encode=no
  27616. fi
  27617. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27618. conftest$ac_exeext conftest.$ac_ext
  27619. LIBS=$ac_check_lib_save_LIBS
  27620. fi
  27621. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_speex_speex_encode" >&5
  27622. printf "%s\n" "$ac_cv_lib_speex_speex_encode" >&6; }
  27623. if test "x$ac_cv_lib_speex_speex_encode" = xyes
  27624. then :
  27625. AST_SPEEX_FOUND=yes
  27626. else $as_nop
  27627. AST_SPEEX_FOUND=no
  27628. fi
  27629. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27630. # now check for the header.
  27631. if test "${AST_SPEEX_FOUND}" = "yes"; then
  27632. SPEEX_LIB="${pbxlibdir} -lspeex -lm"
  27633. # if --with-SPEEX=DIR has been specified, use it.
  27634. if test "x${SPEEX_DIR}" != "x"; then
  27635. SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
  27636. fi
  27637. SPEEX_INCLUDE="${SPEEX_INCLUDE} "
  27638. # check for the header
  27639. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27640. CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
  27641. ac_fn_c_check_header_compile "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  27642. if test "x$ac_cv_header_speex_speex_h" = xyes
  27643. then :
  27644. SPEEX_HEADER_FOUND=1
  27645. else $as_nop
  27646. SPEEX_HEADER_FOUND=0
  27647. fi
  27648. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27649. if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
  27650. SPEEX_LIB=""
  27651. SPEEX_INCLUDE=""
  27652. else
  27653. PBX_SPEEX=1
  27654. cat >>confdefs.h <<_ACEOF
  27655. #define HAVE_SPEEX 1
  27656. _ACEOF
  27657. fi
  27658. fi
  27659. fi
  27660. # See if the main speex library contains the preprocess functions
  27661. if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
  27662. pbxlibdir=""
  27663. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  27664. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  27665. if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
  27666. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
  27667. else
  27668. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
  27669. fi
  27670. fi
  27671. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27672. CFLAGS="${CFLAGS} "
  27673. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for speex_preprocess_ctl in -lspeex" >&5
  27674. printf %s "checking for speex_preprocess_ctl in -lspeex... " >&6; }
  27675. if test ${ac_cv_lib_speex_speex_preprocess_ctl+y}
  27676. then :
  27677. printf %s "(cached) " >&6
  27678. else $as_nop
  27679. ac_check_lib_save_LIBS=$LIBS
  27680. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  27681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27682. /* end confdefs.h. */
  27683. /* Override any GCC internal prototype to avoid an error.
  27684. Use char because int might match the return type of a GCC
  27685. builtin and then its argument prototype would still apply. */
  27686. char speex_preprocess_ctl ();
  27687. int
  27688. main (void)
  27689. {
  27690. return speex_preprocess_ctl ();
  27691. ;
  27692. return 0;
  27693. }
  27694. _ACEOF
  27695. if ac_fn_c_try_link "$LINENO"
  27696. then :
  27697. ac_cv_lib_speex_speex_preprocess_ctl=yes
  27698. else $as_nop
  27699. ac_cv_lib_speex_speex_preprocess_ctl=no
  27700. fi
  27701. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27702. conftest$ac_exeext conftest.$ac_ext
  27703. LIBS=$ac_check_lib_save_LIBS
  27704. fi
  27705. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_speex_speex_preprocess_ctl" >&5
  27706. printf "%s\n" "$ac_cv_lib_speex_speex_preprocess_ctl" >&6; }
  27707. if test "x$ac_cv_lib_speex_speex_preprocess_ctl" = xyes
  27708. then :
  27709. AST_SPEEX_PREPROCESS_FOUND=yes
  27710. else $as_nop
  27711. AST_SPEEX_PREPROCESS_FOUND=no
  27712. fi
  27713. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27714. # now check for the header.
  27715. if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
  27716. SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
  27717. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  27718. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  27719. SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
  27720. fi
  27721. SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
  27722. # check for the header
  27723. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27724. CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
  27725. ac_fn_c_check_header_compile "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  27726. if test "x$ac_cv_header_speex_speex_h" = xyes
  27727. then :
  27728. SPEEX_PREPROCESS_HEADER_FOUND=1
  27729. else $as_nop
  27730. SPEEX_PREPROCESS_HEADER_FOUND=0
  27731. fi
  27732. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27733. if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
  27734. SPEEX_PREPROCESS_LIB=""
  27735. SPEEX_PREPROCESS_INCLUDE=""
  27736. else
  27737. PBX_SPEEX_PREPROCESS=1
  27738. cat >>confdefs.h <<_ACEOF
  27739. #define HAVE_SPEEX_PREPROCESS 1
  27740. _ACEOF
  27741. fi
  27742. fi
  27743. fi
  27744. if test "${PBX_SPEEX_PREPROCESS}" = 1; then
  27745. PBX_SPEEX_PREPROCESS=1
  27746. fi
  27747. if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
  27748. pbxlibdir=""
  27749. # if --with-SPEEXDSP=DIR has been specified, use it.
  27750. if test "x${SPEEXDSP_DIR}" != "x"; then
  27751. if test -d ${SPEEXDSP_DIR}/lib; then
  27752. pbxlibdir="-L${SPEEXDSP_DIR}/lib"
  27753. else
  27754. pbxlibdir="-L${SPEEXDSP_DIR}"
  27755. fi
  27756. fi
  27757. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27758. CFLAGS="${CFLAGS} "
  27759. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for speex_preprocess_ctl in -lspeexdsp" >&5
  27760. printf %s "checking for speex_preprocess_ctl in -lspeexdsp... " >&6; }
  27761. if test ${ac_cv_lib_speexdsp_speex_preprocess_ctl+y}
  27762. then :
  27763. printf %s "(cached) " >&6
  27764. else $as_nop
  27765. ac_check_lib_save_LIBS=$LIBS
  27766. LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
  27767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27768. /* end confdefs.h. */
  27769. /* Override any GCC internal prototype to avoid an error.
  27770. Use char because int might match the return type of a GCC
  27771. builtin and then its argument prototype would still apply. */
  27772. char speex_preprocess_ctl ();
  27773. int
  27774. main (void)
  27775. {
  27776. return speex_preprocess_ctl ();
  27777. ;
  27778. return 0;
  27779. }
  27780. _ACEOF
  27781. if ac_fn_c_try_link "$LINENO"
  27782. then :
  27783. ac_cv_lib_speexdsp_speex_preprocess_ctl=yes
  27784. else $as_nop
  27785. ac_cv_lib_speexdsp_speex_preprocess_ctl=no
  27786. fi
  27787. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27788. conftest$ac_exeext conftest.$ac_ext
  27789. LIBS=$ac_check_lib_save_LIBS
  27790. fi
  27791. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_speexdsp_speex_preprocess_ctl" >&5
  27792. printf "%s\n" "$ac_cv_lib_speexdsp_speex_preprocess_ctl" >&6; }
  27793. if test "x$ac_cv_lib_speexdsp_speex_preprocess_ctl" = xyes
  27794. then :
  27795. AST_SPEEXDSP_FOUND=yes
  27796. else $as_nop
  27797. AST_SPEEXDSP_FOUND=no
  27798. fi
  27799. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27800. # now check for the header.
  27801. if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
  27802. SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
  27803. # if --with-SPEEXDSP=DIR has been specified, use it.
  27804. if test "x${SPEEXDSP_DIR}" != "x"; then
  27805. SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
  27806. fi
  27807. SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
  27808. # check for the header
  27809. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27810. CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
  27811. ac_fn_c_check_header_compile "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  27812. if test "x$ac_cv_header_speex_speex_h" = xyes
  27813. then :
  27814. SPEEXDSP_HEADER_FOUND=1
  27815. else $as_nop
  27816. SPEEXDSP_HEADER_FOUND=0
  27817. fi
  27818. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27819. if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
  27820. SPEEXDSP_LIB=""
  27821. SPEEXDSP_INCLUDE=""
  27822. else
  27823. PBX_SPEEXDSP=1
  27824. cat >>confdefs.h <<_ACEOF
  27825. #define HAVE_SPEEXDSP 1
  27826. _ACEOF
  27827. fi
  27828. fi
  27829. fi
  27830. if test "${PBX_SPEEXDSP}" = 1; then
  27831. PBX_SPEEX_PREPROCESS=1
  27832. fi
  27833. if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
  27834. pbxlibdir=""
  27835. # if --with-SQLITE3=DIR has been specified, use it.
  27836. if test "x${SQLITE3_DIR}" != "x"; then
  27837. if test -d ${SQLITE3_DIR}/lib; then
  27838. pbxlibdir="-L${SQLITE3_DIR}/lib"
  27839. else
  27840. pbxlibdir="-L${SQLITE3_DIR}"
  27841. fi
  27842. fi
  27843. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27844. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  27845. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5
  27846. printf %s "checking for sqlite3_open in -lsqlite3... " >&6; }
  27847. if test ${ac_cv_lib_sqlite3_sqlite3_open+y}
  27848. then :
  27849. printf %s "(cached) " >&6
  27850. else $as_nop
  27851. ac_check_lib_save_LIBS=$LIBS
  27852. LIBS="-lsqlite3 ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  27853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27854. /* end confdefs.h. */
  27855. /* Override any GCC internal prototype to avoid an error.
  27856. Use char because int might match the return type of a GCC
  27857. builtin and then its argument prototype would still apply. */
  27858. char sqlite3_open ();
  27859. int
  27860. main (void)
  27861. {
  27862. return sqlite3_open ();
  27863. ;
  27864. return 0;
  27865. }
  27866. _ACEOF
  27867. if ac_fn_c_try_link "$LINENO"
  27868. then :
  27869. ac_cv_lib_sqlite3_sqlite3_open=yes
  27870. else $as_nop
  27871. ac_cv_lib_sqlite3_sqlite3_open=no
  27872. fi
  27873. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27874. conftest$ac_exeext conftest.$ac_ext
  27875. LIBS=$ac_check_lib_save_LIBS
  27876. fi
  27877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  27878. printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  27879. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes
  27880. then :
  27881. AST_SQLITE3_FOUND=yes
  27882. else $as_nop
  27883. AST_SQLITE3_FOUND=no
  27884. fi
  27885. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27886. # now check for the header.
  27887. if test "${AST_SQLITE3_FOUND}" = "yes"; then
  27888. SQLITE3_LIB="${pbxlibdir} -lsqlite3 ${PTHREAD_LIBS}"
  27889. # if --with-SQLITE3=DIR has been specified, use it.
  27890. if test "x${SQLITE3_DIR}" != "x"; then
  27891. SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
  27892. fi
  27893. SQLITE3_INCLUDE="${SQLITE3_INCLUDE} ${PTHREAD_CFLAGS}"
  27894. # check for the header
  27895. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27896. CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE}"
  27897. ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
  27898. if test "x$ac_cv_header_sqlite3_h" = xyes
  27899. then :
  27900. SQLITE3_HEADER_FOUND=1
  27901. else $as_nop
  27902. SQLITE3_HEADER_FOUND=0
  27903. fi
  27904. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27905. if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
  27906. SQLITE3_LIB=""
  27907. SQLITE3_INCLUDE=""
  27908. else
  27909. PBX_SQLITE3=1
  27910. cat >>confdefs.h <<_ACEOF
  27911. #define HAVE_SQLITE3 1
  27912. _ACEOF
  27913. fi
  27914. fi
  27915. fi
  27916. if test "${PBX_SQLITE3}" != 1; then
  27917. as_fn_error $? "*** Asterisk now uses SQLite3 for the internal Asterisk database." "$LINENO" 5
  27918. as_fn_error $? "*** Please install the SQLite3 development package." "$LINENO" 5
  27919. exit 1
  27920. fi
  27921. # Find crypt support
  27922. # * -lcrypt on *NIX
  27923. # * in libsystem on OS X
  27924. if test "x${PBX_LIBCRYPT}" != "x1" -a "${USE_LIBCRYPT}" != "no"; then
  27925. pbxlibdir=""
  27926. # if --with-LIBCRYPT=DIR has been specified, use it.
  27927. if test "x${LIBCRYPT_DIR}" != "x"; then
  27928. if test -d ${LIBCRYPT_DIR}/lib; then
  27929. pbxlibdir="-L${LIBCRYPT_DIR}/lib"
  27930. else
  27931. pbxlibdir="-L${LIBCRYPT_DIR}"
  27932. fi
  27933. fi
  27934. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27935. CFLAGS="${CFLAGS} "
  27936. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
  27937. printf %s "checking for crypt in -lcrypt... " >&6; }
  27938. if test ${ac_cv_lib_crypt_crypt+y}
  27939. then :
  27940. printf %s "(cached) " >&6
  27941. else $as_nop
  27942. ac_check_lib_save_LIBS=$LIBS
  27943. LIBS="-lcrypt ${pbxlibdir} $LIBS"
  27944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27945. /* end confdefs.h. */
  27946. /* Override any GCC internal prototype to avoid an error.
  27947. Use char because int might match the return type of a GCC
  27948. builtin and then its argument prototype would still apply. */
  27949. char crypt ();
  27950. int
  27951. main (void)
  27952. {
  27953. return crypt ();
  27954. ;
  27955. return 0;
  27956. }
  27957. _ACEOF
  27958. if ac_fn_c_try_link "$LINENO"
  27959. then :
  27960. ac_cv_lib_crypt_crypt=yes
  27961. else $as_nop
  27962. ac_cv_lib_crypt_crypt=no
  27963. fi
  27964. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  27965. conftest$ac_exeext conftest.$ac_ext
  27966. LIBS=$ac_check_lib_save_LIBS
  27967. fi
  27968. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
  27969. printf "%s\n" "$ac_cv_lib_crypt_crypt" >&6; }
  27970. if test "x$ac_cv_lib_crypt_crypt" = xyes
  27971. then :
  27972. AST_LIBCRYPT_FOUND=yes
  27973. else $as_nop
  27974. AST_LIBCRYPT_FOUND=no
  27975. fi
  27976. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27977. # now check for the header.
  27978. if test "${AST_LIBCRYPT_FOUND}" = "yes"; then
  27979. LIBCRYPT_LIB="${pbxlibdir} -lcrypt "
  27980. # if --with-LIBCRYPT=DIR has been specified, use it.
  27981. if test "x${LIBCRYPT_DIR}" != "x"; then
  27982. LIBCRYPT_INCLUDE="-I${LIBCRYPT_DIR}/include"
  27983. fi
  27984. LIBCRYPT_INCLUDE="${LIBCRYPT_INCLUDE} "
  27985. # check for the header
  27986. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27987. CPPFLAGS="${CPPFLAGS} ${LIBCRYPT_INCLUDE}"
  27988. ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
  27989. if test "x$ac_cv_header_crypt_h" = xyes
  27990. then :
  27991. LIBCRYPT_HEADER_FOUND=1
  27992. else $as_nop
  27993. LIBCRYPT_HEADER_FOUND=0
  27994. fi
  27995. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27996. if test "x${LIBCRYPT_HEADER_FOUND}" = "x0" ; then
  27997. LIBCRYPT_LIB=""
  27998. LIBCRYPT_INCLUDE=""
  27999. else
  28000. PBX_LIBCRYPT=1
  28001. cat >>confdefs.h <<_ACEOF
  28002. #define HAVE_LIBCRYPT 1
  28003. _ACEOF
  28004. fi
  28005. fi
  28006. fi
  28007. ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
  28008. if test "x$ac_cv_func_crypt" = xyes
  28009. then :
  28010. SYSCRYPT=true
  28011. else $as_nop
  28012. SYSCRYPT=""
  28013. fi
  28014. if test "x$LIBCRYPT_LIB" != "x" ; then
  28015. CRYPT_LIB="$LIBCRYPT_LIB"
  28016. CRYPT_INCLUDE="$LIBCRYPT_INCLUDE"
  28017. printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h
  28018. elif test "x$SYSCRYPT" != "x" ; then
  28019. CRYPT_LIB=""
  28020. CRYPT_INCLUDE=""
  28021. printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h
  28022. fi
  28023. # Find crypt_r support
  28024. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt_r in -lcrypt" >&5
  28025. printf %s "checking for crypt_r in -lcrypt... " >&6; }
  28026. if test ${ac_cv_lib_crypt_crypt_r+y}
  28027. then :
  28028. printf %s "(cached) " >&6
  28029. else $as_nop
  28030. ac_check_lib_save_LIBS=$LIBS
  28031. LIBS="-lcrypt $LIBS"
  28032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28033. /* end confdefs.h. */
  28034. /* Override any GCC internal prototype to avoid an error.
  28035. Use char because int might match the return type of a GCC
  28036. builtin and then its argument prototype would still apply. */
  28037. char crypt_r ();
  28038. int
  28039. main (void)
  28040. {
  28041. return crypt_r ();
  28042. ;
  28043. return 0;
  28044. }
  28045. _ACEOF
  28046. if ac_fn_c_try_link "$LINENO"
  28047. then :
  28048. ac_cv_lib_crypt_crypt_r=yes
  28049. else $as_nop
  28050. ac_cv_lib_crypt_crypt_r=no
  28051. fi
  28052. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28053. conftest$ac_exeext conftest.$ac_ext
  28054. LIBS=$ac_check_lib_save_LIBS
  28055. fi
  28056. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt_r" >&5
  28057. printf "%s\n" "$ac_cv_lib_crypt_crypt_r" >&6; }
  28058. if test "x$ac_cv_lib_crypt_crypt_r" = xyes
  28059. then :
  28060. printf "%s\n" "#define HAVE_CRYPT_R 1" >>confdefs.h
  28061. fi
  28062. if test "x${PBX_SRTP}" != "x1" -a "${USE_SRTP}" != "no"; then
  28063. pbxlibdir=""
  28064. # if --with-SRTP=DIR has been specified, use it.
  28065. if test "x${SRTP_DIR}" != "x"; then
  28066. if test -d ${SRTP_DIR}/lib; then
  28067. pbxlibdir="-L${SRTP_DIR}/lib"
  28068. else
  28069. pbxlibdir="-L${SRTP_DIR}"
  28070. fi
  28071. fi
  28072. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28073. CFLAGS="${CFLAGS} "
  28074. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_init in -lsrtp2" >&5
  28075. printf %s "checking for srtp_init in -lsrtp2... " >&6; }
  28076. if test ${ac_cv_lib_srtp2_srtp_init+y}
  28077. then :
  28078. printf %s "(cached) " >&6
  28079. else $as_nop
  28080. ac_check_lib_save_LIBS=$LIBS
  28081. LIBS="-lsrtp2 ${pbxlibdir} $LIBS"
  28082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28083. /* end confdefs.h. */
  28084. /* Override any GCC internal prototype to avoid an error.
  28085. Use char because int might match the return type of a GCC
  28086. builtin and then its argument prototype would still apply. */
  28087. char srtp_init ();
  28088. int
  28089. main (void)
  28090. {
  28091. return srtp_init ();
  28092. ;
  28093. return 0;
  28094. }
  28095. _ACEOF
  28096. if ac_fn_c_try_link "$LINENO"
  28097. then :
  28098. ac_cv_lib_srtp2_srtp_init=yes
  28099. else $as_nop
  28100. ac_cv_lib_srtp2_srtp_init=no
  28101. fi
  28102. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28103. conftest$ac_exeext conftest.$ac_ext
  28104. LIBS=$ac_check_lib_save_LIBS
  28105. fi
  28106. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp2_srtp_init" >&5
  28107. printf "%s\n" "$ac_cv_lib_srtp2_srtp_init" >&6; }
  28108. if test "x$ac_cv_lib_srtp2_srtp_init" = xyes
  28109. then :
  28110. AST_SRTP_FOUND=yes
  28111. else $as_nop
  28112. AST_SRTP_FOUND=no
  28113. fi
  28114. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28115. # now check for the header.
  28116. if test "${AST_SRTP_FOUND}" = "yes"; then
  28117. SRTP_LIB="${pbxlibdir} -lsrtp2 "
  28118. # if --with-SRTP=DIR has been specified, use it.
  28119. if test "x${SRTP_DIR}" != "x"; then
  28120. SRTP_INCLUDE="-I${SRTP_DIR}/include"
  28121. fi
  28122. SRTP_INCLUDE="${SRTP_INCLUDE} "
  28123. # check for the header
  28124. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  28125. CPPFLAGS="${CPPFLAGS} ${SRTP_INCLUDE}"
  28126. ac_fn_c_check_header_compile "$LINENO" "srtp2/srtp.h" "ac_cv_header_srtp2_srtp_h" "$ac_includes_default"
  28127. if test "x$ac_cv_header_srtp2_srtp_h" = xyes
  28128. then :
  28129. SRTP_HEADER_FOUND=1
  28130. else $as_nop
  28131. SRTP_HEADER_FOUND=0
  28132. fi
  28133. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  28134. if test "x${SRTP_HEADER_FOUND}" = "x0" ; then
  28135. SRTP_LIB=""
  28136. SRTP_INCLUDE=""
  28137. else
  28138. PBX_SRTP=1
  28139. cat >>confdefs.h <<_ACEOF
  28140. #define HAVE_SRTP 1
  28141. _ACEOF
  28142. cat >>confdefs.h <<_ACEOF
  28143. #define HAVE_SRTP_VERSION 2
  28144. _ACEOF
  28145. fi
  28146. fi
  28147. fi
  28148. if test "x${PBX_SRTP}" = "x1"; then
  28149. ast_ext_lib_check_shared_saved_libs="${LIBS}"
  28150. ast_ext_lib_check_shared_saved_ldflags="${LDFLAGS}"
  28151. ast_ext_lib_check_shared_saved_cflags="${CFLAGS}"
  28152. LIBS="${LIBS} ${SRTP_LIB} "
  28153. LDFLAGS="${LDFLAGS} -shared -fPIC"
  28154. CFLAGS="${CFLAGS} ${SRTP_INCLUDE} "
  28155. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the ability of -lsrtp2 to be linked in a shared object" >&5
  28156. printf %s "checking for the ability of -lsrtp2 to be linked in a shared object... " >&6; }
  28157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28158. /* end confdefs.h. */
  28159. #include <srtp2/srtp.h>
  28160. int
  28161. main (void)
  28162. {
  28163. srtp_init();
  28164. ;
  28165. return 0;
  28166. }
  28167. _ACEOF
  28168. if ac_fn_c_try_link "$LINENO"
  28169. then :
  28170. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28171. printf "%s\n" "yes" >&6; }
  28172. else $as_nop
  28173. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28174. printf "%s\n" "no" >&6; }
  28175. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  28176. printf "%s\n" "$as_me: WARNING: ***" >&2;}
  28177. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** libsrtp2 could not be linked as a shared object." >&5
  28178. printf "%s\n" "$as_me: WARNING: *** libsrtp2 could not be linked as a shared object." >&2;}
  28179. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Try compiling libsrtp2 manually. Configure libsrtp2" >&5
  28180. printf "%s\n" "$as_me: WARNING: *** Try compiling libsrtp2 manually. Configure libsrtp2" >&2;}
  28181. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** with ./configure --prefix=/usr replacing /usr with" >&5
  28182. printf "%s\n" "$as_me: WARNING: *** with ./configure --prefix=/usr replacing /usr with" >&2;}
  28183. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** the prefix of your choice, and then make with" >&5
  28184. printf "%s\n" "$as_me: WARNING: *** the prefix of your choice, and then make with" >&2;}
  28185. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** 'make libsrtp2.so'" >&5
  28186. printf "%s\n" "$as_me: WARNING: *** 'make libsrtp2.so'" >&2;}
  28187. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  28188. printf "%s\n" "$as_me: WARNING: ***" >&2;}
  28189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** After re-installing libsrtp2, re-run the Asterisk" >&5
  28190. printf "%s\n" "$as_me: WARNING: *** After re-installing libsrtp2, re-run the Asterisk" >&2;}
  28191. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** configure script." >&5
  28192. printf "%s\n" "$as_me: WARNING: *** configure script." >&2;}
  28193. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  28194. printf "%s\n" "$as_me: WARNING: ***" >&2;}
  28195. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** If you do not need SRTP support re-run configure" >&5
  28196. printf "%s\n" "$as_me: WARNING: *** If you do not need SRTP support re-run configure" >&2;}
  28197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** with the --without-srtp option." >&5
  28198. printf "%s\n" "$as_me: WARNING: *** with the --without-srtp option." >&2;}
  28199. exit 1
  28200. fi
  28201. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28202. conftest$ac_exeext conftest.$ac_ext
  28203. CFLAGS="${ast_ext_lib_check_shared_saved_cflags}"
  28204. LDFLAGS="${ast_ext_lib_check_shared_saved_ldflags}"
  28205. LIBS="${ast_ext_lib_check_shared_saved_libs}"
  28206. fi
  28207. if test "x$PBX_SRTP" = x1;
  28208. then
  28209. if test "x${PBX_SRTP_256}" != "x1" -a "${USE_SRTP_256}" != "no"; then
  28210. pbxlibdir=""
  28211. # if --with-SRTP_256=DIR has been specified, use it.
  28212. if test "x${SRTP_256_DIR}" != "x"; then
  28213. if test -d ${SRTP_256_DIR}/lib; then
  28214. pbxlibdir="-L${SRTP_256_DIR}/lib"
  28215. else
  28216. pbxlibdir="-L${SRTP_256_DIR}"
  28217. fi
  28218. fi
  28219. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28220. CFLAGS="${CFLAGS} "
  28221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80 in -lsrtp2" >&5
  28222. printf %s "checking for srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80 in -lsrtp2... " >&6; }
  28223. if test ${ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80+y}
  28224. then :
  28225. printf %s "(cached) " >&6
  28226. else $as_nop
  28227. ac_check_lib_save_LIBS=$LIBS
  28228. LIBS="-lsrtp2 ${pbxlibdir} $LIBS"
  28229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28230. /* end confdefs.h. */
  28231. /* Override any GCC internal prototype to avoid an error.
  28232. Use char because int might match the return type of a GCC
  28233. builtin and then its argument prototype would still apply. */
  28234. char srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80 ();
  28235. int
  28236. main (void)
  28237. {
  28238. return srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80 ();
  28239. ;
  28240. return 0;
  28241. }
  28242. _ACEOF
  28243. if ac_fn_c_try_link "$LINENO"
  28244. then :
  28245. ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80=yes
  28246. else $as_nop
  28247. ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80=no
  28248. fi
  28249. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28250. conftest$ac_exeext conftest.$ac_ext
  28251. LIBS=$ac_check_lib_save_LIBS
  28252. fi
  28253. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80" >&5
  28254. printf "%s\n" "$ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80" >&6; }
  28255. if test "x$ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80" = xyes
  28256. then :
  28257. AST_SRTP_256_FOUND=yes
  28258. else $as_nop
  28259. AST_SRTP_256_FOUND=no
  28260. fi
  28261. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28262. # now check for the header.
  28263. if test "${AST_SRTP_256_FOUND}" = "yes"; then
  28264. SRTP_256_LIB="${pbxlibdir} -lsrtp2 "
  28265. # if --with-SRTP_256=DIR has been specified, use it.
  28266. if test "x${SRTP_256_DIR}" != "x"; then
  28267. SRTP_256_INCLUDE="-I${SRTP_256_DIR}/include"
  28268. fi
  28269. SRTP_256_INCLUDE="${SRTP_256_INCLUDE} "
  28270. # no header, assume found
  28271. SRTP_256_HEADER_FOUND="1"
  28272. if test "x${SRTP_256_HEADER_FOUND}" = "x0" ; then
  28273. SRTP_256_LIB=""
  28274. SRTP_256_INCLUDE=""
  28275. else
  28276. PBX_SRTP_256=1
  28277. cat >>confdefs.h <<_ACEOF
  28278. #define HAVE_SRTP_256 1
  28279. _ACEOF
  28280. fi
  28281. fi
  28282. fi
  28283. if test "x${PBX_SRTP_192}" != "x1" -a "${USE_SRTP_192}" != "no"; then
  28284. pbxlibdir=""
  28285. # if --with-SRTP_192=DIR has been specified, use it.
  28286. if test "x${SRTP_192_DIR}" != "x"; then
  28287. if test -d ${SRTP_192_DIR}/lib; then
  28288. pbxlibdir="-L${SRTP_192_DIR}/lib"
  28289. else
  28290. pbxlibdir="-L${SRTP_192_DIR}"
  28291. fi
  28292. fi
  28293. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28294. CFLAGS="${CFLAGS} "
  28295. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80 in -lsrtp2" >&5
  28296. printf %s "checking for srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80 in -lsrtp2... " >&6; }
  28297. if test ${ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80+y}
  28298. then :
  28299. printf %s "(cached) " >&6
  28300. else $as_nop
  28301. ac_check_lib_save_LIBS=$LIBS
  28302. LIBS="-lsrtp2 ${pbxlibdir} $LIBS"
  28303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28304. /* end confdefs.h. */
  28305. /* Override any GCC internal prototype to avoid an error.
  28306. Use char because int might match the return type of a GCC
  28307. builtin and then its argument prototype would still apply. */
  28308. char srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80 ();
  28309. int
  28310. main (void)
  28311. {
  28312. return srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80 ();
  28313. ;
  28314. return 0;
  28315. }
  28316. _ACEOF
  28317. if ac_fn_c_try_link "$LINENO"
  28318. then :
  28319. ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80=yes
  28320. else $as_nop
  28321. ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80=no
  28322. fi
  28323. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28324. conftest$ac_exeext conftest.$ac_ext
  28325. LIBS=$ac_check_lib_save_LIBS
  28326. fi
  28327. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80" >&5
  28328. printf "%s\n" "$ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80" >&6; }
  28329. if test "x$ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80" = xyes
  28330. then :
  28331. AST_SRTP_192_FOUND=yes
  28332. else $as_nop
  28333. AST_SRTP_192_FOUND=no
  28334. fi
  28335. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28336. # now check for the header.
  28337. if test "${AST_SRTP_192_FOUND}" = "yes"; then
  28338. SRTP_192_LIB="${pbxlibdir} -lsrtp2 "
  28339. # if --with-SRTP_192=DIR has been specified, use it.
  28340. if test "x${SRTP_192_DIR}" != "x"; then
  28341. SRTP_192_INCLUDE="-I${SRTP_192_DIR}/include"
  28342. fi
  28343. SRTP_192_INCLUDE="${SRTP_192_INCLUDE} "
  28344. # no header, assume found
  28345. SRTP_192_HEADER_FOUND="1"
  28346. if test "x${SRTP_192_HEADER_FOUND}" = "x0" ; then
  28347. SRTP_192_LIB=""
  28348. SRTP_192_INCLUDE=""
  28349. else
  28350. PBX_SRTP_192=1
  28351. cat >>confdefs.h <<_ACEOF
  28352. #define HAVE_SRTP_192 1
  28353. _ACEOF
  28354. fi
  28355. fi
  28356. fi
  28357. if test "x${PBX_SRTP_GCM}" != "x1" -a "${USE_SRTP_GCM}" != "no"; then
  28358. pbxlibdir=""
  28359. # if --with-SRTP_GCM=DIR has been specified, use it.
  28360. if test "x${SRTP_GCM_DIR}" != "x"; then
  28361. if test -d ${SRTP_GCM_DIR}/lib; then
  28362. pbxlibdir="-L${SRTP_GCM_DIR}/lib"
  28363. else
  28364. pbxlibdir="-L${SRTP_GCM_DIR}"
  28365. fi
  28366. fi
  28367. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28368. CFLAGS="${CFLAGS} "
  28369. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_crypto_policy_set_aes_gcm_128_8_auth in -lsrtp2" >&5
  28370. printf %s "checking for srtp_crypto_policy_set_aes_gcm_128_8_auth in -lsrtp2... " >&6; }
  28371. if test ${ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_gcm_128_8_auth+y}
  28372. then :
  28373. printf %s "(cached) " >&6
  28374. else $as_nop
  28375. ac_check_lib_save_LIBS=$LIBS
  28376. LIBS="-lsrtp2 ${pbxlibdir} $LIBS"
  28377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28378. /* end confdefs.h. */
  28379. /* Override any GCC internal prototype to avoid an error.
  28380. Use char because int might match the return type of a GCC
  28381. builtin and then its argument prototype would still apply. */
  28382. char srtp_crypto_policy_set_aes_gcm_128_8_auth ();
  28383. int
  28384. main (void)
  28385. {
  28386. return srtp_crypto_policy_set_aes_gcm_128_8_auth ();
  28387. ;
  28388. return 0;
  28389. }
  28390. _ACEOF
  28391. if ac_fn_c_try_link "$LINENO"
  28392. then :
  28393. ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_gcm_128_8_auth=yes
  28394. else $as_nop
  28395. ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_gcm_128_8_auth=no
  28396. fi
  28397. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28398. conftest$ac_exeext conftest.$ac_ext
  28399. LIBS=$ac_check_lib_save_LIBS
  28400. fi
  28401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_gcm_128_8_auth" >&5
  28402. printf "%s\n" "$ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_gcm_128_8_auth" >&6; }
  28403. if test "x$ac_cv_lib_srtp2_srtp_crypto_policy_set_aes_gcm_128_8_auth" = xyes
  28404. then :
  28405. AST_SRTP_GCM_FOUND=yes
  28406. else $as_nop
  28407. AST_SRTP_GCM_FOUND=no
  28408. fi
  28409. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28410. # now check for the header.
  28411. if test "${AST_SRTP_GCM_FOUND}" = "yes"; then
  28412. SRTP_GCM_LIB="${pbxlibdir} -lsrtp2 "
  28413. # if --with-SRTP_GCM=DIR has been specified, use it.
  28414. if test "x${SRTP_GCM_DIR}" != "x"; then
  28415. SRTP_GCM_INCLUDE="-I${SRTP_GCM_DIR}/include"
  28416. fi
  28417. SRTP_GCM_INCLUDE="${SRTP_GCM_INCLUDE} "
  28418. # no header, assume found
  28419. SRTP_GCM_HEADER_FOUND="1"
  28420. if test "x${SRTP_GCM_HEADER_FOUND}" = "x0" ; then
  28421. SRTP_GCM_LIB=""
  28422. SRTP_GCM_INCLUDE=""
  28423. else
  28424. PBX_SRTP_GCM=1
  28425. cat >>confdefs.h <<_ACEOF
  28426. #define HAVE_SRTP_GCM 1
  28427. _ACEOF
  28428. fi
  28429. fi
  28430. fi
  28431. if test "x${PBX_SRTP_SHUTDOWN}" != "x1" -a "${USE_SRTP_SHUTDOWN}" != "no"; then
  28432. pbxlibdir=""
  28433. # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
  28434. if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
  28435. if test -d ${SRTP_SHUTDOWN_DIR}/lib; then
  28436. pbxlibdir="-L${SRTP_SHUTDOWN_DIR}/lib"
  28437. else
  28438. pbxlibdir="-L${SRTP_SHUTDOWN_DIR}"
  28439. fi
  28440. fi
  28441. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28442. CFLAGS="${CFLAGS} "
  28443. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_shutdown in -lsrtp2" >&5
  28444. printf %s "checking for srtp_shutdown in -lsrtp2... " >&6; }
  28445. if test ${ac_cv_lib_srtp2_srtp_shutdown+y}
  28446. then :
  28447. printf %s "(cached) " >&6
  28448. else $as_nop
  28449. ac_check_lib_save_LIBS=$LIBS
  28450. LIBS="-lsrtp2 ${pbxlibdir} $LIBS"
  28451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28452. /* end confdefs.h. */
  28453. /* Override any GCC internal prototype to avoid an error.
  28454. Use char because int might match the return type of a GCC
  28455. builtin and then its argument prototype would still apply. */
  28456. char srtp_shutdown ();
  28457. int
  28458. main (void)
  28459. {
  28460. return srtp_shutdown ();
  28461. ;
  28462. return 0;
  28463. }
  28464. _ACEOF
  28465. if ac_fn_c_try_link "$LINENO"
  28466. then :
  28467. ac_cv_lib_srtp2_srtp_shutdown=yes
  28468. else $as_nop
  28469. ac_cv_lib_srtp2_srtp_shutdown=no
  28470. fi
  28471. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28472. conftest$ac_exeext conftest.$ac_ext
  28473. LIBS=$ac_check_lib_save_LIBS
  28474. fi
  28475. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp2_srtp_shutdown" >&5
  28476. printf "%s\n" "$ac_cv_lib_srtp2_srtp_shutdown" >&6; }
  28477. if test "x$ac_cv_lib_srtp2_srtp_shutdown" = xyes
  28478. then :
  28479. AST_SRTP_SHUTDOWN_FOUND=yes
  28480. else $as_nop
  28481. AST_SRTP_SHUTDOWN_FOUND=no
  28482. fi
  28483. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28484. # now check for the header.
  28485. if test "${AST_SRTP_SHUTDOWN_FOUND}" = "yes"; then
  28486. SRTP_SHUTDOWN_LIB="${pbxlibdir} -lsrtp2 "
  28487. # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
  28488. if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
  28489. SRTP_SHUTDOWN_INCLUDE="-I${SRTP_SHUTDOWN_DIR}/include"
  28490. fi
  28491. SRTP_SHUTDOWN_INCLUDE="${SRTP_SHUTDOWN_INCLUDE} "
  28492. # check for the header
  28493. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  28494. CPPFLAGS="${CPPFLAGS} ${SRTP_SHUTDOWN_INCLUDE}"
  28495. ac_fn_c_check_header_compile "$LINENO" "srtp2/srtp.h" "ac_cv_header_srtp2_srtp_h" "$ac_includes_default"
  28496. if test "x$ac_cv_header_srtp2_srtp_h" = xyes
  28497. then :
  28498. SRTP_SHUTDOWN_HEADER_FOUND=1
  28499. else $as_nop
  28500. SRTP_SHUTDOWN_HEADER_FOUND=0
  28501. fi
  28502. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  28503. if test "x${SRTP_SHUTDOWN_HEADER_FOUND}" = "x0" ; then
  28504. SRTP_SHUTDOWN_LIB=""
  28505. SRTP_SHUTDOWN_INCLUDE=""
  28506. else
  28507. PBX_SRTP_SHUTDOWN=1
  28508. cat >>confdefs.h <<_ACEOF
  28509. #define HAVE_SRTP_SHUTDOWN 1
  28510. _ACEOF
  28511. fi
  28512. fi
  28513. fi
  28514. if test "x${PBX_SRTP_GET_VERSION}" != "x1" -a "${USE_SRTP_GET_VERSION}" != "no"; then
  28515. pbxlibdir=""
  28516. # if --with-SRTP_GET_VERSION=DIR has been specified, use it.
  28517. if test "x${SRTP_GET_VERSION_DIR}" != "x"; then
  28518. if test -d ${SRTP_GET_VERSION_DIR}/lib; then
  28519. pbxlibdir="-L${SRTP_GET_VERSION_DIR}/lib"
  28520. else
  28521. pbxlibdir="-L${SRTP_GET_VERSION_DIR}"
  28522. fi
  28523. fi
  28524. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28525. CFLAGS="${CFLAGS} "
  28526. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_get_version_string in -lsrtp2" >&5
  28527. printf %s "checking for srtp_get_version_string in -lsrtp2... " >&6; }
  28528. if test ${ac_cv_lib_srtp2_srtp_get_version_string+y}
  28529. then :
  28530. printf %s "(cached) " >&6
  28531. else $as_nop
  28532. ac_check_lib_save_LIBS=$LIBS
  28533. LIBS="-lsrtp2 ${pbxlibdir} $LIBS"
  28534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28535. /* end confdefs.h. */
  28536. /* Override any GCC internal prototype to avoid an error.
  28537. Use char because int might match the return type of a GCC
  28538. builtin and then its argument prototype would still apply. */
  28539. char srtp_get_version_string ();
  28540. int
  28541. main (void)
  28542. {
  28543. return srtp_get_version_string ();
  28544. ;
  28545. return 0;
  28546. }
  28547. _ACEOF
  28548. if ac_fn_c_try_link "$LINENO"
  28549. then :
  28550. ac_cv_lib_srtp2_srtp_get_version_string=yes
  28551. else $as_nop
  28552. ac_cv_lib_srtp2_srtp_get_version_string=no
  28553. fi
  28554. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28555. conftest$ac_exeext conftest.$ac_ext
  28556. LIBS=$ac_check_lib_save_LIBS
  28557. fi
  28558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp2_srtp_get_version_string" >&5
  28559. printf "%s\n" "$ac_cv_lib_srtp2_srtp_get_version_string" >&6; }
  28560. if test "x$ac_cv_lib_srtp2_srtp_get_version_string" = xyes
  28561. then :
  28562. AST_SRTP_GET_VERSION_FOUND=yes
  28563. else $as_nop
  28564. AST_SRTP_GET_VERSION_FOUND=no
  28565. fi
  28566. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28567. # now check for the header.
  28568. if test "${AST_SRTP_GET_VERSION_FOUND}" = "yes"; then
  28569. SRTP_GET_VERSION_LIB="${pbxlibdir} -lsrtp2 "
  28570. # if --with-SRTP_GET_VERSION=DIR has been specified, use it.
  28571. if test "x${SRTP_GET_VERSION_DIR}" != "x"; then
  28572. SRTP_GET_VERSION_INCLUDE="-I${SRTP_GET_VERSION_DIR}/include"
  28573. fi
  28574. SRTP_GET_VERSION_INCLUDE="${SRTP_GET_VERSION_INCLUDE} "
  28575. # check for the header
  28576. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  28577. CPPFLAGS="${CPPFLAGS} ${SRTP_GET_VERSION_INCLUDE}"
  28578. ac_fn_c_check_header_compile "$LINENO" "srtp2/srtp.h" "ac_cv_header_srtp2_srtp_h" "$ac_includes_default"
  28579. if test "x$ac_cv_header_srtp2_srtp_h" = xyes
  28580. then :
  28581. SRTP_GET_VERSION_HEADER_FOUND=1
  28582. else $as_nop
  28583. SRTP_GET_VERSION_HEADER_FOUND=0
  28584. fi
  28585. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  28586. if test "x${SRTP_GET_VERSION_HEADER_FOUND}" = "x0" ; then
  28587. SRTP_GET_VERSION_LIB=""
  28588. SRTP_GET_VERSION_INCLUDE=""
  28589. else
  28590. PBX_SRTP_GET_VERSION=1
  28591. cat >>confdefs.h <<_ACEOF
  28592. #define HAVE_SRTP_GET_VERSION 1
  28593. _ACEOF
  28594. fi
  28595. fi
  28596. fi
  28597. # libsrtp2 removed support for PRNG, so we require OpenSSL
  28598. if test "x$PBX_OPENSSL" != x1;
  28599. then
  28600. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  28601. printf "%s\n" "$as_me: WARNING: ***" >&2;}
  28602. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** OpenSSL required when using libsrtp2, checking for libsrtp instead." >&5
  28603. printf "%s\n" "$as_me: WARNING: *** OpenSSL required when using libsrtp2, checking for libsrtp instead." >&2;}
  28604. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  28605. printf "%s\n" "$as_me: WARNING: ***" >&2;}
  28606. PBX_SRTP=0
  28607. fi
  28608. fi
  28609. if test "x$PBX_SRTP" != x1;
  28610. then
  28611. if test "x${PBX_SRTP}" != "x1" -a "${USE_SRTP}" != "no"; then
  28612. pbxlibdir=""
  28613. # if --with-SRTP=DIR has been specified, use it.
  28614. if test "x${SRTP_DIR}" != "x"; then
  28615. if test -d ${SRTP_DIR}/lib; then
  28616. pbxlibdir="-L${SRTP_DIR}/lib"
  28617. else
  28618. pbxlibdir="-L${SRTP_DIR}"
  28619. fi
  28620. fi
  28621. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28622. CFLAGS="${CFLAGS} "
  28623. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_init in -lsrtp" >&5
  28624. printf %s "checking for srtp_init in -lsrtp... " >&6; }
  28625. if test ${ac_cv_lib_srtp_srtp_init+y}
  28626. then :
  28627. printf %s "(cached) " >&6
  28628. else $as_nop
  28629. ac_check_lib_save_LIBS=$LIBS
  28630. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  28631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28632. /* end confdefs.h. */
  28633. /* Override any GCC internal prototype to avoid an error.
  28634. Use char because int might match the return type of a GCC
  28635. builtin and then its argument prototype would still apply. */
  28636. char srtp_init ();
  28637. int
  28638. main (void)
  28639. {
  28640. return srtp_init ();
  28641. ;
  28642. return 0;
  28643. }
  28644. _ACEOF
  28645. if ac_fn_c_try_link "$LINENO"
  28646. then :
  28647. ac_cv_lib_srtp_srtp_init=yes
  28648. else $as_nop
  28649. ac_cv_lib_srtp_srtp_init=no
  28650. fi
  28651. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28652. conftest$ac_exeext conftest.$ac_ext
  28653. LIBS=$ac_check_lib_save_LIBS
  28654. fi
  28655. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp_srtp_init" >&5
  28656. printf "%s\n" "$ac_cv_lib_srtp_srtp_init" >&6; }
  28657. if test "x$ac_cv_lib_srtp_srtp_init" = xyes
  28658. then :
  28659. AST_SRTP_FOUND=yes
  28660. else $as_nop
  28661. AST_SRTP_FOUND=no
  28662. fi
  28663. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28664. # now check for the header.
  28665. if test "${AST_SRTP_FOUND}" = "yes"; then
  28666. SRTP_LIB="${pbxlibdir} -lsrtp "
  28667. # if --with-SRTP=DIR has been specified, use it.
  28668. if test "x${SRTP_DIR}" != "x"; then
  28669. SRTP_INCLUDE="-I${SRTP_DIR}/include"
  28670. fi
  28671. SRTP_INCLUDE="${SRTP_INCLUDE} "
  28672. # check for the header
  28673. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  28674. CPPFLAGS="${CPPFLAGS} ${SRTP_INCLUDE}"
  28675. ac_fn_c_check_header_compile "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
  28676. if test "x$ac_cv_header_srtp_srtp_h" = xyes
  28677. then :
  28678. SRTP_HEADER_FOUND=1
  28679. else $as_nop
  28680. SRTP_HEADER_FOUND=0
  28681. fi
  28682. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  28683. if test "x${SRTP_HEADER_FOUND}" = "x0" ; then
  28684. SRTP_LIB=""
  28685. SRTP_INCLUDE=""
  28686. else
  28687. PBX_SRTP=1
  28688. cat >>confdefs.h <<_ACEOF
  28689. #define HAVE_SRTP 1
  28690. _ACEOF
  28691. cat >>confdefs.h <<_ACEOF
  28692. #define HAVE_SRTP_VERSION 1
  28693. _ACEOF
  28694. fi
  28695. fi
  28696. fi
  28697. if test "x${PBX_SRTP}" = "x1"; then
  28698. ast_ext_lib_check_shared_saved_libs="${LIBS}"
  28699. ast_ext_lib_check_shared_saved_ldflags="${LDFLAGS}"
  28700. ast_ext_lib_check_shared_saved_cflags="${CFLAGS}"
  28701. LIBS="${LIBS} ${SRTP_LIB} "
  28702. LDFLAGS="${LDFLAGS} -shared -fPIC"
  28703. CFLAGS="${CFLAGS} ${SRTP_INCLUDE} "
  28704. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the ability of -lsrtp to be linked in a shared object" >&5
  28705. printf %s "checking for the ability of -lsrtp to be linked in a shared object... " >&6; }
  28706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28707. /* end confdefs.h. */
  28708. #include <srtp/srtp.h>
  28709. int
  28710. main (void)
  28711. {
  28712. srtp_init();
  28713. ;
  28714. return 0;
  28715. }
  28716. _ACEOF
  28717. if ac_fn_c_try_link "$LINENO"
  28718. then :
  28719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  28720. printf "%s\n" "yes" >&6; }
  28721. else $as_nop
  28722. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  28723. printf "%s\n" "no" >&6; }
  28724. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  28725. printf "%s\n" "$as_me: WARNING: ***" >&2;}
  28726. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** libsrtp could not be linked as a shared object." >&5
  28727. printf "%s\n" "$as_me: WARNING: *** libsrtp could not be linked as a shared object." >&2;}
  28728. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&5
  28729. printf "%s\n" "$as_me: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&2;}
  28730. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&5
  28731. printf "%s\n" "$as_me: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&2;}
  28732. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** replacing /usr with the prefix of your choice." >&5
  28733. printf "%s\n" "$as_me: WARNING: *** replacing /usr with the prefix of your choice." >&2;}
  28734. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** After re-installing libsrtp, re-run the Asterisk" >&5
  28735. printf "%s\n" "$as_me: WARNING: *** After re-installing libsrtp, re-run the Asterisk" >&2;}
  28736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** configure script." >&5
  28737. printf "%s\n" "$as_me: WARNING: *** configure script." >&2;}
  28738. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  28739. printf "%s\n" "$as_me: WARNING: ***" >&2;}
  28740. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** If you do not need SRTP support re-run configure" >&5
  28741. printf "%s\n" "$as_me: WARNING: *** If you do not need SRTP support re-run configure" >&2;}
  28742. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** with the --without-srtp option." >&5
  28743. printf "%s\n" "$as_me: WARNING: *** with the --without-srtp option." >&2;}
  28744. exit 1
  28745. fi
  28746. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28747. conftest$ac_exeext conftest.$ac_ext
  28748. CFLAGS="${ast_ext_lib_check_shared_saved_cflags}"
  28749. LDFLAGS="${ast_ext_lib_check_shared_saved_ldflags}"
  28750. LIBS="${ast_ext_lib_check_shared_saved_libs}"
  28751. fi
  28752. if test "x$PBX_SRTP" = x1;
  28753. then
  28754. if test "x${PBX_SRTP_256}" != "x1" -a "${USE_SRTP_256}" != "no"; then
  28755. pbxlibdir=""
  28756. # if --with-SRTP_256=DIR has been specified, use it.
  28757. if test "x${SRTP_256_DIR}" != "x"; then
  28758. if test -d ${SRTP_256_DIR}/lib; then
  28759. pbxlibdir="-L${SRTP_256_DIR}/lib"
  28760. else
  28761. pbxlibdir="-L${SRTP_256_DIR}"
  28762. fi
  28763. fi
  28764. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28765. CFLAGS="${CFLAGS} "
  28766. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypto_policy_set_aes_cm_256_hmac_sha1_80 in -lsrtp" >&5
  28767. printf %s "checking for crypto_policy_set_aes_cm_256_hmac_sha1_80 in -lsrtp... " >&6; }
  28768. if test ${ac_cv_lib_srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80+y}
  28769. then :
  28770. printf %s "(cached) " >&6
  28771. else $as_nop
  28772. ac_check_lib_save_LIBS=$LIBS
  28773. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  28774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28775. /* end confdefs.h. */
  28776. /* Override any GCC internal prototype to avoid an error.
  28777. Use char because int might match the return type of a GCC
  28778. builtin and then its argument prototype would still apply. */
  28779. char crypto_policy_set_aes_cm_256_hmac_sha1_80 ();
  28780. int
  28781. main (void)
  28782. {
  28783. return crypto_policy_set_aes_cm_256_hmac_sha1_80 ();
  28784. ;
  28785. return 0;
  28786. }
  28787. _ACEOF
  28788. if ac_fn_c_try_link "$LINENO"
  28789. then :
  28790. ac_cv_lib_srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80=yes
  28791. else $as_nop
  28792. ac_cv_lib_srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80=no
  28793. fi
  28794. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28795. conftest$ac_exeext conftest.$ac_ext
  28796. LIBS=$ac_check_lib_save_LIBS
  28797. fi
  28798. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80" >&5
  28799. printf "%s\n" "$ac_cv_lib_srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80" >&6; }
  28800. if test "x$ac_cv_lib_srtp_crypto_policy_set_aes_cm_256_hmac_sha1_80" = xyes
  28801. then :
  28802. AST_SRTP_256_FOUND=yes
  28803. else $as_nop
  28804. AST_SRTP_256_FOUND=no
  28805. fi
  28806. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28807. # now check for the header.
  28808. if test "${AST_SRTP_256_FOUND}" = "yes"; then
  28809. SRTP_256_LIB="${pbxlibdir} -lsrtp "
  28810. # if --with-SRTP_256=DIR has been specified, use it.
  28811. if test "x${SRTP_256_DIR}" != "x"; then
  28812. SRTP_256_INCLUDE="-I${SRTP_256_DIR}/include"
  28813. fi
  28814. SRTP_256_INCLUDE="${SRTP_256_INCLUDE} "
  28815. # no header, assume found
  28816. SRTP_256_HEADER_FOUND="1"
  28817. if test "x${SRTP_256_HEADER_FOUND}" = "x0" ; then
  28818. SRTP_256_LIB=""
  28819. SRTP_256_INCLUDE=""
  28820. else
  28821. PBX_SRTP_256=1
  28822. cat >>confdefs.h <<_ACEOF
  28823. #define HAVE_SRTP_256 1
  28824. _ACEOF
  28825. fi
  28826. fi
  28827. fi
  28828. if test "x${PBX_SRTP_192}" != "x1" -a "${USE_SRTP_192}" != "no"; then
  28829. pbxlibdir=""
  28830. # if --with-SRTP_192=DIR has been specified, use it.
  28831. if test "x${SRTP_192_DIR}" != "x"; then
  28832. if test -d ${SRTP_192_DIR}/lib; then
  28833. pbxlibdir="-L${SRTP_192_DIR}/lib"
  28834. else
  28835. pbxlibdir="-L${SRTP_192_DIR}"
  28836. fi
  28837. fi
  28838. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28839. CFLAGS="${CFLAGS} "
  28840. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypto_policy_set_aes_cm_192_hmac_sha1_80 in -lsrtp" >&5
  28841. printf %s "checking for crypto_policy_set_aes_cm_192_hmac_sha1_80 in -lsrtp... " >&6; }
  28842. if test ${ac_cv_lib_srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80+y}
  28843. then :
  28844. printf %s "(cached) " >&6
  28845. else $as_nop
  28846. ac_check_lib_save_LIBS=$LIBS
  28847. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  28848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28849. /* end confdefs.h. */
  28850. /* Override any GCC internal prototype to avoid an error.
  28851. Use char because int might match the return type of a GCC
  28852. builtin and then its argument prototype would still apply. */
  28853. char crypto_policy_set_aes_cm_192_hmac_sha1_80 ();
  28854. int
  28855. main (void)
  28856. {
  28857. return crypto_policy_set_aes_cm_192_hmac_sha1_80 ();
  28858. ;
  28859. return 0;
  28860. }
  28861. _ACEOF
  28862. if ac_fn_c_try_link "$LINENO"
  28863. then :
  28864. ac_cv_lib_srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80=yes
  28865. else $as_nop
  28866. ac_cv_lib_srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80=no
  28867. fi
  28868. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28869. conftest$ac_exeext conftest.$ac_ext
  28870. LIBS=$ac_check_lib_save_LIBS
  28871. fi
  28872. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80" >&5
  28873. printf "%s\n" "$ac_cv_lib_srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80" >&6; }
  28874. if test "x$ac_cv_lib_srtp_crypto_policy_set_aes_cm_192_hmac_sha1_80" = xyes
  28875. then :
  28876. AST_SRTP_192_FOUND=yes
  28877. else $as_nop
  28878. AST_SRTP_192_FOUND=no
  28879. fi
  28880. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28881. # now check for the header.
  28882. if test "${AST_SRTP_192_FOUND}" = "yes"; then
  28883. SRTP_192_LIB="${pbxlibdir} -lsrtp "
  28884. # if --with-SRTP_192=DIR has been specified, use it.
  28885. if test "x${SRTP_192_DIR}" != "x"; then
  28886. SRTP_192_INCLUDE="-I${SRTP_192_DIR}/include"
  28887. fi
  28888. SRTP_192_INCLUDE="${SRTP_192_INCLUDE} "
  28889. # no header, assume found
  28890. SRTP_192_HEADER_FOUND="1"
  28891. if test "x${SRTP_192_HEADER_FOUND}" = "x0" ; then
  28892. SRTP_192_LIB=""
  28893. SRTP_192_INCLUDE=""
  28894. else
  28895. PBX_SRTP_192=1
  28896. cat >>confdefs.h <<_ACEOF
  28897. #define HAVE_SRTP_192 1
  28898. _ACEOF
  28899. fi
  28900. fi
  28901. fi
  28902. if test "x${PBX_SRTP_GCM}" != "x1" -a "${USE_SRTP_GCM}" != "no"; then
  28903. pbxlibdir=""
  28904. # if --with-SRTP_GCM=DIR has been specified, use it.
  28905. if test "x${SRTP_GCM_DIR}" != "x"; then
  28906. if test -d ${SRTP_GCM_DIR}/lib; then
  28907. pbxlibdir="-L${SRTP_GCM_DIR}/lib"
  28908. else
  28909. pbxlibdir="-L${SRTP_GCM_DIR}"
  28910. fi
  28911. fi
  28912. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28913. CFLAGS="${CFLAGS} "
  28914. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypto_policy_set_aes_gcm_128_8_auth in -lsrtp" >&5
  28915. printf %s "checking for crypto_policy_set_aes_gcm_128_8_auth in -lsrtp... " >&6; }
  28916. if test ${ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_8_auth+y}
  28917. then :
  28918. printf %s "(cached) " >&6
  28919. else $as_nop
  28920. ac_check_lib_save_LIBS=$LIBS
  28921. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  28922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28923. /* end confdefs.h. */
  28924. /* Override any GCC internal prototype to avoid an error.
  28925. Use char because int might match the return type of a GCC
  28926. builtin and then its argument prototype would still apply. */
  28927. char crypto_policy_set_aes_gcm_128_8_auth ();
  28928. int
  28929. main (void)
  28930. {
  28931. return crypto_policy_set_aes_gcm_128_8_auth ();
  28932. ;
  28933. return 0;
  28934. }
  28935. _ACEOF
  28936. if ac_fn_c_try_link "$LINENO"
  28937. then :
  28938. ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_8_auth=yes
  28939. else $as_nop
  28940. ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_8_auth=no
  28941. fi
  28942. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  28943. conftest$ac_exeext conftest.$ac_ext
  28944. LIBS=$ac_check_lib_save_LIBS
  28945. fi
  28946. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_8_auth" >&5
  28947. printf "%s\n" "$ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_8_auth" >&6; }
  28948. if test "x$ac_cv_lib_srtp_crypto_policy_set_aes_gcm_128_8_auth" = xyes
  28949. then :
  28950. AST_SRTP_GCM_FOUND=yes
  28951. else $as_nop
  28952. AST_SRTP_GCM_FOUND=no
  28953. fi
  28954. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  28955. # now check for the header.
  28956. if test "${AST_SRTP_GCM_FOUND}" = "yes"; then
  28957. SRTP_GCM_LIB="${pbxlibdir} -lsrtp "
  28958. # if --with-SRTP_GCM=DIR has been specified, use it.
  28959. if test "x${SRTP_GCM_DIR}" != "x"; then
  28960. SRTP_GCM_INCLUDE="-I${SRTP_GCM_DIR}/include"
  28961. fi
  28962. SRTP_GCM_INCLUDE="${SRTP_GCM_INCLUDE} "
  28963. # no header, assume found
  28964. SRTP_GCM_HEADER_FOUND="1"
  28965. if test "x${SRTP_GCM_HEADER_FOUND}" = "x0" ; then
  28966. SRTP_GCM_LIB=""
  28967. SRTP_GCM_INCLUDE=""
  28968. else
  28969. PBX_SRTP_GCM=1
  28970. cat >>confdefs.h <<_ACEOF
  28971. #define HAVE_SRTP_GCM 1
  28972. _ACEOF
  28973. fi
  28974. fi
  28975. fi
  28976. if test "x${PBX_SRTP_SHUTDOWN}" != "x1" -a "${USE_SRTP_SHUTDOWN}" != "no"; then
  28977. pbxlibdir=""
  28978. # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
  28979. if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
  28980. if test -d ${SRTP_SHUTDOWN_DIR}/lib; then
  28981. pbxlibdir="-L${SRTP_SHUTDOWN_DIR}/lib"
  28982. else
  28983. pbxlibdir="-L${SRTP_SHUTDOWN_DIR}"
  28984. fi
  28985. fi
  28986. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  28987. CFLAGS="${CFLAGS} "
  28988. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_shutdown in -lsrtp" >&5
  28989. printf %s "checking for srtp_shutdown in -lsrtp... " >&6; }
  28990. if test ${ac_cv_lib_srtp_srtp_shutdown+y}
  28991. then :
  28992. printf %s "(cached) " >&6
  28993. else $as_nop
  28994. ac_check_lib_save_LIBS=$LIBS
  28995. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  28996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28997. /* end confdefs.h. */
  28998. /* Override any GCC internal prototype to avoid an error.
  28999. Use char because int might match the return type of a GCC
  29000. builtin and then its argument prototype would still apply. */
  29001. char srtp_shutdown ();
  29002. int
  29003. main (void)
  29004. {
  29005. return srtp_shutdown ();
  29006. ;
  29007. return 0;
  29008. }
  29009. _ACEOF
  29010. if ac_fn_c_try_link "$LINENO"
  29011. then :
  29012. ac_cv_lib_srtp_srtp_shutdown=yes
  29013. else $as_nop
  29014. ac_cv_lib_srtp_srtp_shutdown=no
  29015. fi
  29016. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29017. conftest$ac_exeext conftest.$ac_ext
  29018. LIBS=$ac_check_lib_save_LIBS
  29019. fi
  29020. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp_srtp_shutdown" >&5
  29021. printf "%s\n" "$ac_cv_lib_srtp_srtp_shutdown" >&6; }
  29022. if test "x$ac_cv_lib_srtp_srtp_shutdown" = xyes
  29023. then :
  29024. AST_SRTP_SHUTDOWN_FOUND=yes
  29025. else $as_nop
  29026. AST_SRTP_SHUTDOWN_FOUND=no
  29027. fi
  29028. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29029. # now check for the header.
  29030. if test "${AST_SRTP_SHUTDOWN_FOUND}" = "yes"; then
  29031. SRTP_SHUTDOWN_LIB="${pbxlibdir} -lsrtp "
  29032. # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
  29033. if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
  29034. SRTP_SHUTDOWN_INCLUDE="-I${SRTP_SHUTDOWN_DIR}/include"
  29035. fi
  29036. SRTP_SHUTDOWN_INCLUDE="${SRTP_SHUTDOWN_INCLUDE} "
  29037. # check for the header
  29038. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29039. CPPFLAGS="${CPPFLAGS} ${SRTP_SHUTDOWN_INCLUDE}"
  29040. ac_fn_c_check_header_compile "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
  29041. if test "x$ac_cv_header_srtp_srtp_h" = xyes
  29042. then :
  29043. SRTP_SHUTDOWN_HEADER_FOUND=1
  29044. else $as_nop
  29045. SRTP_SHUTDOWN_HEADER_FOUND=0
  29046. fi
  29047. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29048. if test "x${SRTP_SHUTDOWN_HEADER_FOUND}" = "x0" ; then
  29049. SRTP_SHUTDOWN_LIB=""
  29050. SRTP_SHUTDOWN_INCLUDE=""
  29051. else
  29052. PBX_SRTP_SHUTDOWN=1
  29053. cat >>confdefs.h <<_ACEOF
  29054. #define HAVE_SRTP_SHUTDOWN 1
  29055. _ACEOF
  29056. fi
  29057. fi
  29058. fi
  29059. if test "x${PBX_SRTP_GET_VERSION}" != "x1" -a "${USE_SRTP_GET_VERSION}" != "no"; then
  29060. pbxlibdir=""
  29061. # if --with-SRTP_GET_VERSION=DIR has been specified, use it.
  29062. if test "x${SRTP_GET_VERSION_DIR}" != "x"; then
  29063. if test -d ${SRTP_GET_VERSION_DIR}/lib; then
  29064. pbxlibdir="-L${SRTP_GET_VERSION_DIR}/lib"
  29065. else
  29066. pbxlibdir="-L${SRTP_GET_VERSION_DIR}"
  29067. fi
  29068. fi
  29069. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29070. CFLAGS="${CFLAGS} "
  29071. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for srtp_get_version_string in -lsrtp" >&5
  29072. printf %s "checking for srtp_get_version_string in -lsrtp... " >&6; }
  29073. if test ${ac_cv_lib_srtp_srtp_get_version_string+y}
  29074. then :
  29075. printf %s "(cached) " >&6
  29076. else $as_nop
  29077. ac_check_lib_save_LIBS=$LIBS
  29078. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  29079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29080. /* end confdefs.h. */
  29081. /* Override any GCC internal prototype to avoid an error.
  29082. Use char because int might match the return type of a GCC
  29083. builtin and then its argument prototype would still apply. */
  29084. char srtp_get_version_string ();
  29085. int
  29086. main (void)
  29087. {
  29088. return srtp_get_version_string ();
  29089. ;
  29090. return 0;
  29091. }
  29092. _ACEOF
  29093. if ac_fn_c_try_link "$LINENO"
  29094. then :
  29095. ac_cv_lib_srtp_srtp_get_version_string=yes
  29096. else $as_nop
  29097. ac_cv_lib_srtp_srtp_get_version_string=no
  29098. fi
  29099. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29100. conftest$ac_exeext conftest.$ac_ext
  29101. LIBS=$ac_check_lib_save_LIBS
  29102. fi
  29103. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_srtp_srtp_get_version_string" >&5
  29104. printf "%s\n" "$ac_cv_lib_srtp_srtp_get_version_string" >&6; }
  29105. if test "x$ac_cv_lib_srtp_srtp_get_version_string" = xyes
  29106. then :
  29107. AST_SRTP_GET_VERSION_FOUND=yes
  29108. else $as_nop
  29109. AST_SRTP_GET_VERSION_FOUND=no
  29110. fi
  29111. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29112. # now check for the header.
  29113. if test "${AST_SRTP_GET_VERSION_FOUND}" = "yes"; then
  29114. SRTP_GET_VERSION_LIB="${pbxlibdir} -lsrtp "
  29115. # if --with-SRTP_GET_VERSION=DIR has been specified, use it.
  29116. if test "x${SRTP_GET_VERSION_DIR}" != "x"; then
  29117. SRTP_GET_VERSION_INCLUDE="-I${SRTP_GET_VERSION_DIR}/include"
  29118. fi
  29119. SRTP_GET_VERSION_INCLUDE="${SRTP_GET_VERSION_INCLUDE} "
  29120. # check for the header
  29121. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29122. CPPFLAGS="${CPPFLAGS} ${SRTP_GET_VERSION_INCLUDE}"
  29123. ac_fn_c_check_header_compile "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
  29124. if test "x$ac_cv_header_srtp_srtp_h" = xyes
  29125. then :
  29126. SRTP_GET_VERSION_HEADER_FOUND=1
  29127. else $as_nop
  29128. SRTP_GET_VERSION_HEADER_FOUND=0
  29129. fi
  29130. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29131. if test "x${SRTP_GET_VERSION_HEADER_FOUND}" = "x0" ; then
  29132. SRTP_GET_VERSION_LIB=""
  29133. SRTP_GET_VERSION_INCLUDE=""
  29134. else
  29135. PBX_SRTP_GET_VERSION=1
  29136. cat >>confdefs.h <<_ACEOF
  29137. #define HAVE_SRTP_GET_VERSION 1
  29138. _ACEOF
  29139. fi
  29140. fi
  29141. fi
  29142. fi
  29143. fi
  29144. for ver in 3.0 2.6 2.4 2.2 2.0; do
  29145. if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
  29146. pkg_failed=no
  29147. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmime-$ver" >&5
  29148. printf %s "checking for gmime-$ver... " >&6; }
  29149. if test -n "$GMIME_CFLAGS"; then
  29150. pkg_cv_GMIME_CFLAGS="$GMIME_CFLAGS"
  29151. elif test -n "$PKG_CONFIG"; then
  29152. if test -n "$PKG_CONFIG" && \
  29153. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmime-\$ver\""; } >&5
  29154. ($PKG_CONFIG --exists --print-errors "gmime-$ver") 2>&5
  29155. ac_status=$?
  29156. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29157. test $ac_status = 0; }; then
  29158. pkg_cv_GMIME_CFLAGS=`$PKG_CONFIG --cflags "gmime-$ver" 2>/dev/null`
  29159. test "x$?" != "x0" && pkg_failed=yes
  29160. else
  29161. pkg_failed=yes
  29162. fi
  29163. else
  29164. pkg_failed=untried
  29165. fi
  29166. if test -n "$GMIME_LIBS"; then
  29167. pkg_cv_GMIME_LIBS="$GMIME_LIBS"
  29168. elif test -n "$PKG_CONFIG"; then
  29169. if test -n "$PKG_CONFIG" && \
  29170. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmime-\$ver\""; } >&5
  29171. ($PKG_CONFIG --exists --print-errors "gmime-$ver") 2>&5
  29172. ac_status=$?
  29173. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  29174. test $ac_status = 0; }; then
  29175. pkg_cv_GMIME_LIBS=`$PKG_CONFIG --libs "gmime-$ver" 2>/dev/null`
  29176. test "x$?" != "x0" && pkg_failed=yes
  29177. else
  29178. pkg_failed=yes
  29179. fi
  29180. else
  29181. pkg_failed=untried
  29182. fi
  29183. if test $pkg_failed = yes; then
  29184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29185. printf "%s\n" "no" >&6; }
  29186. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  29187. _pkg_short_errors_supported=yes
  29188. else
  29189. _pkg_short_errors_supported=no
  29190. fi
  29191. if test $_pkg_short_errors_supported = yes; then
  29192. GMIME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmime-$ver" 2>&1`
  29193. else
  29194. GMIME_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmime-$ver" 2>&1`
  29195. fi
  29196. # Put the nasty error message in config.log where it belongs
  29197. echo "$GMIME_PKG_ERRORS" >&5
  29198. PBX_GMIME=0
  29199. elif test $pkg_failed = untried; then
  29200. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29201. printf "%s\n" "no" >&6; }
  29202. PBX_GMIME=0
  29203. else
  29204. GMIME_CFLAGS=$pkg_cv_GMIME_CFLAGS
  29205. GMIME_LIBS=$pkg_cv_GMIME_LIBS
  29206. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29207. printf "%s\n" "yes" >&6; }
  29208. PBX_GMIME=1
  29209. GMIME_INCLUDE=$(echo ${GMIME_CFLAGS} | $SED -e "s|-std=c99||g")
  29210. GMIME_LIB="$GMIME_LIBS"
  29211. printf "%s\n" "#define HAVE_GMIME 1" >>confdefs.h
  29212. fi
  29213. fi
  29214. if test "$PBX_GMIME" = 1; then
  29215. break;
  29216. fi
  29217. done
  29218. if test "x${PBX_HOARD}" != "x1" -a "${USE_HOARD}" != "no"; then
  29219. pbxlibdir=""
  29220. # if --with-HOARD=DIR has been specified, use it.
  29221. if test "x${HOARD_DIR}" != "x"; then
  29222. if test -d ${HOARD_DIR}/lib; then
  29223. pbxlibdir="-L${HOARD_DIR}/lib"
  29224. else
  29225. pbxlibdir="-L${HOARD_DIR}"
  29226. fi
  29227. fi
  29228. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29229. CFLAGS="${CFLAGS} "
  29230. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc in -lhoard" >&5
  29231. printf %s "checking for malloc in -lhoard... " >&6; }
  29232. if test ${ac_cv_lib_hoard_malloc+y}
  29233. then :
  29234. printf %s "(cached) " >&6
  29235. else $as_nop
  29236. ac_check_lib_save_LIBS=$LIBS
  29237. LIBS="-lhoard ${pbxlibdir} $LIBS"
  29238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29239. /* end confdefs.h. */
  29240. /* Override any GCC internal prototype to avoid an error.
  29241. Use char because int might match the return type of a GCC
  29242. builtin and then its argument prototype would still apply. */
  29243. char malloc ();
  29244. int
  29245. main (void)
  29246. {
  29247. return malloc ();
  29248. ;
  29249. return 0;
  29250. }
  29251. _ACEOF
  29252. if ac_fn_c_try_link "$LINENO"
  29253. then :
  29254. ac_cv_lib_hoard_malloc=yes
  29255. else $as_nop
  29256. ac_cv_lib_hoard_malloc=no
  29257. fi
  29258. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29259. conftest$ac_exeext conftest.$ac_ext
  29260. LIBS=$ac_check_lib_save_LIBS
  29261. fi
  29262. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hoard_malloc" >&5
  29263. printf "%s\n" "$ac_cv_lib_hoard_malloc" >&6; }
  29264. if test "x$ac_cv_lib_hoard_malloc" = xyes
  29265. then :
  29266. AST_HOARD_FOUND=yes
  29267. else $as_nop
  29268. AST_HOARD_FOUND=no
  29269. fi
  29270. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29271. # now check for the header.
  29272. if test "${AST_HOARD_FOUND}" = "yes"; then
  29273. HOARD_LIB="${pbxlibdir} -lhoard "
  29274. # if --with-HOARD=DIR has been specified, use it.
  29275. if test "x${HOARD_DIR}" != "x"; then
  29276. HOARD_INCLUDE="-I${HOARD_DIR}/include"
  29277. fi
  29278. HOARD_INCLUDE="${HOARD_INCLUDE} "
  29279. # no header, assume found
  29280. HOARD_HEADER_FOUND="1"
  29281. if test "x${HOARD_HEADER_FOUND}" = "x0" ; then
  29282. HOARD_LIB=""
  29283. HOARD_INCLUDE=""
  29284. else
  29285. PBX_HOARD=1
  29286. cat >>confdefs.h <<_ACEOF
  29287. #define HAVE_HOARD 1
  29288. _ACEOF
  29289. fi
  29290. fi
  29291. fi
  29292. if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
  29293. pbxlibdir=""
  29294. # if --with-FREETDS=DIR has been specified, use it.
  29295. if test "x${FREETDS_DIR}" != "x"; then
  29296. if test -d ${FREETDS_DIR}/lib; then
  29297. pbxlibdir="-L${FREETDS_DIR}/lib"
  29298. else
  29299. pbxlibdir="-L${FREETDS_DIR}"
  29300. fi
  29301. fi
  29302. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29303. CFLAGS="${CFLAGS} "
  29304. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbinit in -lsybdb" >&5
  29305. printf %s "checking for dbinit in -lsybdb... " >&6; }
  29306. if test ${ac_cv_lib_sybdb_dbinit+y}
  29307. then :
  29308. printf %s "(cached) " >&6
  29309. else $as_nop
  29310. ac_check_lib_save_LIBS=$LIBS
  29311. LIBS="-lsybdb ${pbxlibdir} $LIBS"
  29312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29313. /* end confdefs.h. */
  29314. /* Override any GCC internal prototype to avoid an error.
  29315. Use char because int might match the return type of a GCC
  29316. builtin and then its argument prototype would still apply. */
  29317. char dbinit ();
  29318. int
  29319. main (void)
  29320. {
  29321. return dbinit ();
  29322. ;
  29323. return 0;
  29324. }
  29325. _ACEOF
  29326. if ac_fn_c_try_link "$LINENO"
  29327. then :
  29328. ac_cv_lib_sybdb_dbinit=yes
  29329. else $as_nop
  29330. ac_cv_lib_sybdb_dbinit=no
  29331. fi
  29332. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29333. conftest$ac_exeext conftest.$ac_ext
  29334. LIBS=$ac_check_lib_save_LIBS
  29335. fi
  29336. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sybdb_dbinit" >&5
  29337. printf "%s\n" "$ac_cv_lib_sybdb_dbinit" >&6; }
  29338. if test "x$ac_cv_lib_sybdb_dbinit" = xyes
  29339. then :
  29340. AST_FREETDS_FOUND=yes
  29341. else $as_nop
  29342. AST_FREETDS_FOUND=no
  29343. fi
  29344. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29345. # now check for the header.
  29346. if test "${AST_FREETDS_FOUND}" = "yes"; then
  29347. FREETDS_LIB="${pbxlibdir} -lsybdb "
  29348. # if --with-FREETDS=DIR has been specified, use it.
  29349. if test "x${FREETDS_DIR}" != "x"; then
  29350. FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
  29351. fi
  29352. FREETDS_INCLUDE="${FREETDS_INCLUDE} "
  29353. # check for the header
  29354. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29355. CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
  29356. ac_fn_c_check_header_compile "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default"
  29357. if test "x$ac_cv_header_sybdb_h" = xyes
  29358. then :
  29359. FREETDS_HEADER_FOUND=1
  29360. else $as_nop
  29361. FREETDS_HEADER_FOUND=0
  29362. fi
  29363. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29364. if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
  29365. FREETDS_LIB=""
  29366. FREETDS_INCLUDE=""
  29367. else
  29368. PBX_FREETDS=1
  29369. cat >>confdefs.h <<_ACEOF
  29370. #define HAVE_FREETDS 1
  29371. _ACEOF
  29372. fi
  29373. fi
  29374. fi
  29375. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tone_zone_find_by_num in -ltonezone" >&5
  29376. printf %s "checking for tone_zone_find_by_num in -ltonezone... " >&6; }
  29377. if test ${ac_cv_lib_tonezone_tone_zone_find_by_num+y}
  29378. then :
  29379. printf %s "(cached) " >&6
  29380. else $as_nop
  29381. ac_check_lib_save_LIBS=$LIBS
  29382. LIBS="-ltonezone $LIBS"
  29383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29384. /* end confdefs.h. */
  29385. /* Override any GCC internal prototype to avoid an error.
  29386. Use char because int might match the return type of a GCC
  29387. builtin and then its argument prototype would still apply. */
  29388. char tone_zone_find_by_num ();
  29389. int
  29390. main (void)
  29391. {
  29392. return tone_zone_find_by_num ();
  29393. ;
  29394. return 0;
  29395. }
  29396. _ACEOF
  29397. if ac_fn_c_try_link "$LINENO"
  29398. then :
  29399. ac_cv_lib_tonezone_tone_zone_find_by_num=yes
  29400. else $as_nop
  29401. ac_cv_lib_tonezone_tone_zone_find_by_num=no
  29402. fi
  29403. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29404. conftest$ac_exeext conftest.$ac_ext
  29405. LIBS=$ac_check_lib_save_LIBS
  29406. fi
  29407. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tonezone_tone_zone_find_by_num" >&5
  29408. printf "%s\n" "$ac_cv_lib_tonezone_tone_zone_find_by_num" >&6; }
  29409. if test "x$ac_cv_lib_tonezone_tone_zone_find_by_num" = xyes
  29410. then :
  29411. tonezone_does_not_need_lm=yes
  29412. else $as_nop
  29413. tonezone_does_not_need_lm=no
  29414. fi
  29415. if test "${tonezone_does_not_need_lm}" = "no" ; then
  29416. tonezone_extra="-lm"
  29417. fi
  29418. if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
  29419. pbxlibdir=""
  29420. # if --with-TONEZONE=DIR has been specified, use it.
  29421. if test "x${TONEZONE_DIR}" != "x"; then
  29422. if test -d ${TONEZONE_DIR}/lib; then
  29423. pbxlibdir="-L${TONEZONE_DIR}/lib"
  29424. else
  29425. pbxlibdir="-L${TONEZONE_DIR}"
  29426. fi
  29427. fi
  29428. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29429. CFLAGS="${CFLAGS} "
  29430. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tone_zone_find in -ltonezone" >&5
  29431. printf %s "checking for tone_zone_find in -ltonezone... " >&6; }
  29432. if test ${ac_cv_lib_tonezone_tone_zone_find+y}
  29433. then :
  29434. printf %s "(cached) " >&6
  29435. else $as_nop
  29436. ac_check_lib_save_LIBS=$LIBS
  29437. LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} ${DAHDI_INCLUDE} $LIBS"
  29438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29439. /* end confdefs.h. */
  29440. /* Override any GCC internal prototype to avoid an error.
  29441. Use char because int might match the return type of a GCC
  29442. builtin and then its argument prototype would still apply. */
  29443. char tone_zone_find ();
  29444. int
  29445. main (void)
  29446. {
  29447. return tone_zone_find ();
  29448. ;
  29449. return 0;
  29450. }
  29451. _ACEOF
  29452. if ac_fn_c_try_link "$LINENO"
  29453. then :
  29454. ac_cv_lib_tonezone_tone_zone_find=yes
  29455. else $as_nop
  29456. ac_cv_lib_tonezone_tone_zone_find=no
  29457. fi
  29458. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29459. conftest$ac_exeext conftest.$ac_ext
  29460. LIBS=$ac_check_lib_save_LIBS
  29461. fi
  29462. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
  29463. printf "%s\n" "$ac_cv_lib_tonezone_tone_zone_find" >&6; }
  29464. if test "x$ac_cv_lib_tonezone_tone_zone_find" = xyes
  29465. then :
  29466. AST_TONEZONE_FOUND=yes
  29467. else $as_nop
  29468. AST_TONEZONE_FOUND=no
  29469. fi
  29470. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29471. # now check for the header.
  29472. if test "${AST_TONEZONE_FOUND}" = "yes"; then
  29473. TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra} ${DAHDI_INCLUDE}"
  29474. # if --with-TONEZONE=DIR has been specified, use it.
  29475. if test "x${TONEZONE_DIR}" != "x"; then
  29476. TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
  29477. fi
  29478. TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
  29479. # check for the header
  29480. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29481. CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
  29482. ac_fn_c_check_header_compile "$LINENO" "dahdi/tonezone.h" "ac_cv_header_dahdi_tonezone_h" "$ac_includes_default"
  29483. if test "x$ac_cv_header_dahdi_tonezone_h" = xyes
  29484. then :
  29485. TONEZONE_HEADER_FOUND=1
  29486. else $as_nop
  29487. TONEZONE_HEADER_FOUND=0
  29488. fi
  29489. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29490. if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
  29491. TONEZONE_LIB=""
  29492. TONEZONE_INCLUDE=""
  29493. else
  29494. PBX_TONEZONE=1
  29495. cat >>confdefs.h <<_ACEOF
  29496. #define HAVE_TONEZONE 1
  29497. _ACEOF
  29498. fi
  29499. fi
  29500. fi
  29501. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  29502. pbxlibdir=""
  29503. # if --with-VORBIS=DIR has been specified, use it.
  29504. if test "x${VORBIS_DIR}" != "x"; then
  29505. if test -d ${VORBIS_DIR}/lib; then
  29506. pbxlibdir="-L${VORBIS_DIR}/lib"
  29507. else
  29508. pbxlibdir="-L${VORBIS_DIR}"
  29509. fi
  29510. fi
  29511. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29512. CFLAGS="${CFLAGS} "
  29513. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for vorbis_info_init in -lvorbis" >&5
  29514. printf %s "checking for vorbis_info_init in -lvorbis... " >&6; }
  29515. if test ${ac_cv_lib_vorbis_vorbis_info_init+y}
  29516. then :
  29517. printf %s "(cached) " >&6
  29518. else $as_nop
  29519. ac_check_lib_save_LIBS=$LIBS
  29520. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile $LIBS"
  29521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29522. /* end confdefs.h. */
  29523. /* Override any GCC internal prototype to avoid an error.
  29524. Use char because int might match the return type of a GCC
  29525. builtin and then its argument prototype would still apply. */
  29526. char vorbis_info_init ();
  29527. int
  29528. main (void)
  29529. {
  29530. return vorbis_info_init ();
  29531. ;
  29532. return 0;
  29533. }
  29534. _ACEOF
  29535. if ac_fn_c_try_link "$LINENO"
  29536. then :
  29537. ac_cv_lib_vorbis_vorbis_info_init=yes
  29538. else $as_nop
  29539. ac_cv_lib_vorbis_vorbis_info_init=no
  29540. fi
  29541. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29542. conftest$ac_exeext conftest.$ac_ext
  29543. LIBS=$ac_check_lib_save_LIBS
  29544. fi
  29545. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
  29546. printf "%s\n" "$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
  29547. if test "x$ac_cv_lib_vorbis_vorbis_info_init" = xyes
  29548. then :
  29549. AST_VORBIS_FOUND=yes
  29550. else $as_nop
  29551. AST_VORBIS_FOUND=no
  29552. fi
  29553. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29554. # now check for the header.
  29555. if test "${AST_VORBIS_FOUND}" = "yes"; then
  29556. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile"
  29557. # if --with-VORBIS=DIR has been specified, use it.
  29558. if test "x${VORBIS_DIR}" != "x"; then
  29559. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  29560. fi
  29561. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  29562. # check for the header
  29563. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29564. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  29565. ac_fn_c_check_header_compile "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
  29566. if test "x$ac_cv_header_vorbis_codec_h" = xyes
  29567. then :
  29568. VORBIS_HEADER_FOUND=1
  29569. else $as_nop
  29570. VORBIS_HEADER_FOUND=0
  29571. fi
  29572. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29573. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  29574. VORBIS_LIB=""
  29575. VORBIS_INCLUDE=""
  29576. else
  29577. PBX_VORBIS=1
  29578. cat >>confdefs.h <<_ACEOF
  29579. #define HAVE_VORBIS 1
  29580. _ACEOF
  29581. fi
  29582. fi
  29583. fi
  29584. if test "x${PBX_VORBIS_OPEN_CALLBACKS}" != "x1" -a "${USE_VORBIS_OPEN_CALLBACKS}" != "no"; then
  29585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h" >&5
  29586. printf %s "checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h... " >&6; }
  29587. saved_cppflags="${CPPFLAGS}"
  29588. if test "x${VORBIS_OPEN_CALLBACKS_DIR}" != "x"; then
  29589. VORBIS_OPEN_CALLBACKS_INCLUDE="-I${VORBIS_OPEN_CALLBACKS_DIR}/include"
  29590. fi
  29591. CPPFLAGS="${CPPFLAGS} ${VORBIS_OPEN_CALLBACKS_INCLUDE}"
  29592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29593. /* end confdefs.h. */
  29594. #include <vorbis/vorbisfile.h>
  29595. int
  29596. main (void)
  29597. {
  29598. #if !defined(OV_CALLBACKS_NOCLOSE)
  29599. (void) OV_CALLBACKS_NOCLOSE;
  29600. #endif
  29601. ;
  29602. return 0;
  29603. }
  29604. _ACEOF
  29605. if ac_fn_c_try_compile "$LINENO"
  29606. then :
  29607. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29608. printf "%s\n" "yes" >&6; }
  29609. PBX_VORBIS_OPEN_CALLBACKS=1
  29610. printf "%s\n" "#define HAVE_VORBIS_OPEN_CALLBACKS 1" >>confdefs.h
  29611. else $as_nop
  29612. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29613. printf "%s\n" "no" >&6; }
  29614. fi
  29615. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  29616. CPPFLAGS="${saved_cppflags}"
  29617. fi
  29618. if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
  29619. pbxlibdir=""
  29620. # if --with-ZLIB=DIR has been specified, use it.
  29621. if test "x${ZLIB_DIR}" != "x"; then
  29622. if test -d ${ZLIB_DIR}/lib; then
  29623. pbxlibdir="-L${ZLIB_DIR}/lib"
  29624. else
  29625. pbxlibdir="-L${ZLIB_DIR}"
  29626. fi
  29627. fi
  29628. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29629. CFLAGS="${CFLAGS} "
  29630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
  29631. printf %s "checking for compress in -lz... " >&6; }
  29632. if test ${ac_cv_lib_z_compress+y}
  29633. then :
  29634. printf %s "(cached) " >&6
  29635. else $as_nop
  29636. ac_check_lib_save_LIBS=$LIBS
  29637. LIBS="-lz ${pbxlibdir} $LIBS"
  29638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29639. /* end confdefs.h. */
  29640. /* Override any GCC internal prototype to avoid an error.
  29641. Use char because int might match the return type of a GCC
  29642. builtin and then its argument prototype would still apply. */
  29643. char compress ();
  29644. int
  29645. main (void)
  29646. {
  29647. return compress ();
  29648. ;
  29649. return 0;
  29650. }
  29651. _ACEOF
  29652. if ac_fn_c_try_link "$LINENO"
  29653. then :
  29654. ac_cv_lib_z_compress=yes
  29655. else $as_nop
  29656. ac_cv_lib_z_compress=no
  29657. fi
  29658. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29659. conftest$ac_exeext conftest.$ac_ext
  29660. LIBS=$ac_check_lib_save_LIBS
  29661. fi
  29662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
  29663. printf "%s\n" "$ac_cv_lib_z_compress" >&6; }
  29664. if test "x$ac_cv_lib_z_compress" = xyes
  29665. then :
  29666. AST_ZLIB_FOUND=yes
  29667. else $as_nop
  29668. AST_ZLIB_FOUND=no
  29669. fi
  29670. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29671. # now check for the header.
  29672. if test "${AST_ZLIB_FOUND}" = "yes"; then
  29673. ZLIB_LIB="${pbxlibdir} -lz "
  29674. # if --with-ZLIB=DIR has been specified, use it.
  29675. if test "x${ZLIB_DIR}" != "x"; then
  29676. ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
  29677. fi
  29678. ZLIB_INCLUDE="${ZLIB_INCLUDE} "
  29679. # check for the header
  29680. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29681. CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
  29682. ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  29683. if test "x$ac_cv_header_zlib_h" = xyes
  29684. then :
  29685. ZLIB_HEADER_FOUND=1
  29686. else $as_nop
  29687. ZLIB_HEADER_FOUND=0
  29688. fi
  29689. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29690. if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
  29691. ZLIB_LIB=""
  29692. ZLIB_INCLUDE=""
  29693. else
  29694. PBX_ZLIB=1
  29695. cat >>confdefs.h <<_ACEOF
  29696. #define HAVE_ZLIB 1
  29697. _ACEOF
  29698. fi
  29699. fi
  29700. fi
  29701. if test "x${PBX_UNIXODBC}" = "x1" -o "x${PBX_IODBC}" = "x1"; then
  29702. # Does ODBC support wide characters?
  29703. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ODBC has support for Unicode types" >&5
  29704. printf %s "checking whether ODBC has support for Unicode types... " >&6; }
  29705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29706. /* end confdefs.h. */
  29707. #include <sql.h>
  29708. #include <sqlext.h>
  29709. int
  29710. main (void)
  29711. {
  29712. int foo = SQL_WCHAR
  29713. ;
  29714. return 0;
  29715. }
  29716. _ACEOF
  29717. if ac_fn_c_try_link "$LINENO"
  29718. then :
  29719. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  29720. printf "%s\n" "yes" >&6; }
  29721. printf "%s\n" "#define HAVE_ODBC_WCHAR 1" >>confdefs.h
  29722. else $as_nop
  29723. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29724. printf "%s\n" "no" >&6; }
  29725. fi
  29726. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29727. conftest$ac_exeext conftest.$ac_ext
  29728. fi
  29729. ac_fn_c_check_header_compile "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
  29730. if test "x$ac_cv_header_linux_compiler_h" = xyes
  29731. then :
  29732. printf "%s\n" "#define HAVE_LINUX_COMPILER_H 1" >>confdefs.h
  29733. fi
  29734. if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
  29735. PBX_SDL=0
  29736. if test -n "$ac_tool_prefix"; then
  29737. # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
  29738. set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
  29739. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  29740. printf %s "checking for $ac_word... " >&6; }
  29741. if test ${ac_cv_path_CONFIG_SDL+y}
  29742. then :
  29743. printf %s "(cached) " >&6
  29744. else $as_nop
  29745. case $CONFIG_SDL in
  29746. [\\/]* | ?:[\\/]*)
  29747. ac_cv_path_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test with a path.
  29748. ;;
  29749. *)
  29750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29751. as_dummy="${SDL_DIR}/bin:$PATH"
  29752. for as_dir in $as_dummy
  29753. do
  29754. IFS=$as_save_IFS
  29755. case $as_dir in #(((
  29756. '') as_dir=./ ;;
  29757. */) ;;
  29758. *) as_dir=$as_dir/ ;;
  29759. esac
  29760. for ac_exec_ext in '' $ac_executable_extensions; do
  29761. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  29762. ac_cv_path_CONFIG_SDL="$as_dir$ac_word$ac_exec_ext"
  29763. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  29764. break 2
  29765. fi
  29766. done
  29767. done
  29768. IFS=$as_save_IFS
  29769. ;;
  29770. esac
  29771. fi
  29772. CONFIG_SDL=$ac_cv_path_CONFIG_SDL
  29773. if test -n "$CONFIG_SDL"; then
  29774. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CONFIG_SDL" >&5
  29775. printf "%s\n" "$CONFIG_SDL" >&6; }
  29776. else
  29777. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29778. printf "%s\n" "no" >&6; }
  29779. fi
  29780. fi
  29781. if test -z "$ac_cv_path_CONFIG_SDL"; then
  29782. ac_pt_CONFIG_SDL=$CONFIG_SDL
  29783. # Extract the first word of "sdl-config", so it can be a program name with args.
  29784. set dummy sdl-config; ac_word=$2
  29785. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  29786. printf %s "checking for $ac_word... " >&6; }
  29787. if test ${ac_cv_path_ac_pt_CONFIG_SDL+y}
  29788. then :
  29789. printf %s "(cached) " >&6
  29790. else $as_nop
  29791. case $ac_pt_CONFIG_SDL in
  29792. [\\/]* | ?:[\\/]*)
  29793. ac_cv_path_ac_pt_CONFIG_SDL="$ac_pt_CONFIG_SDL" # Let the user override the test with a path.
  29794. ;;
  29795. *)
  29796. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  29797. as_dummy="${SDL_DIR}/bin:$PATH"
  29798. for as_dir in $as_dummy
  29799. do
  29800. IFS=$as_save_IFS
  29801. case $as_dir in #(((
  29802. '') as_dir=./ ;;
  29803. */) ;;
  29804. *) as_dir=$as_dir/ ;;
  29805. esac
  29806. for ac_exec_ext in '' $ac_executable_extensions; do
  29807. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  29808. ac_cv_path_ac_pt_CONFIG_SDL="$as_dir$ac_word$ac_exec_ext"
  29809. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  29810. break 2
  29811. fi
  29812. done
  29813. done
  29814. IFS=$as_save_IFS
  29815. ;;
  29816. esac
  29817. fi
  29818. ac_pt_CONFIG_SDL=$ac_cv_path_ac_pt_CONFIG_SDL
  29819. if test -n "$ac_pt_CONFIG_SDL"; then
  29820. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_SDL" >&5
  29821. printf "%s\n" "$ac_pt_CONFIG_SDL" >&6; }
  29822. else
  29823. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  29824. printf "%s\n" "no" >&6; }
  29825. fi
  29826. if test "x$ac_pt_CONFIG_SDL" = x; then
  29827. CONFIG_SDL="No"
  29828. else
  29829. case $cross_compiling:$ac_tool_warned in
  29830. yes:)
  29831. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  29832. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  29833. ac_tool_warned=yes ;;
  29834. esac
  29835. CONFIG_SDL=$ac_pt_CONFIG_SDL
  29836. fi
  29837. else
  29838. CONFIG_SDL="$ac_cv_path_CONFIG_SDL"
  29839. fi
  29840. if test ! "x${CONFIG_SDL}" = xNo; then
  29841. SDL_INCLUDE=$(${CONFIG_SDL} --cflags)
  29842. SDL_INCLUDE=$(echo ${SDL_INCLUDE} | $SED -e "s|-I|-I${SDL_DIR}|g" -e "s|-std=c99||g")
  29843. SDL_LIB=$(${CONFIG_SDL} --libs)
  29844. SDL_LIB=$(echo ${SDL_LIB} | $SED -e "s|-L|-L${SDL_DIR}|g")
  29845. PBX_SDL=1
  29846. printf "%s\n" "#define HAVE_SDL 1" >>confdefs.h
  29847. fi
  29848. fi
  29849. if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
  29850. pbxlibdir=""
  29851. # if --with-SDL_IMAGE=DIR has been specified, use it.
  29852. if test "x${SDL_IMAGE_DIR}" != "x"; then
  29853. if test -d ${SDL_IMAGE_DIR}/lib; then
  29854. pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
  29855. else
  29856. pbxlibdir="-L${SDL_IMAGE_DIR}"
  29857. fi
  29858. fi
  29859. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29860. CFLAGS="${CFLAGS} ${SDL_INCLUDE}"
  29861. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  29862. printf %s "checking for IMG_Load in -lSDL_image... " >&6; }
  29863. if test ${ac_cv_lib_SDL_image_IMG_Load+y}
  29864. then :
  29865. printf %s "(cached) " >&6
  29866. else $as_nop
  29867. ac_check_lib_save_LIBS=$LIBS
  29868. LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
  29869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29870. /* end confdefs.h. */
  29871. /* Override any GCC internal prototype to avoid an error.
  29872. Use char because int might match the return type of a GCC
  29873. builtin and then its argument prototype would still apply. */
  29874. char IMG_Load ();
  29875. int
  29876. main (void)
  29877. {
  29878. return IMG_Load ();
  29879. ;
  29880. return 0;
  29881. }
  29882. _ACEOF
  29883. if ac_fn_c_try_link "$LINENO"
  29884. then :
  29885. ac_cv_lib_SDL_image_IMG_Load=yes
  29886. else $as_nop
  29887. ac_cv_lib_SDL_image_IMG_Load=no
  29888. fi
  29889. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29890. conftest$ac_exeext conftest.$ac_ext
  29891. LIBS=$ac_check_lib_save_LIBS
  29892. fi
  29893. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  29894. printf "%s\n" "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  29895. if test "x$ac_cv_lib_SDL_image_IMG_Load" = xyes
  29896. then :
  29897. AST_SDL_IMAGE_FOUND=yes
  29898. else $as_nop
  29899. AST_SDL_IMAGE_FOUND=no
  29900. fi
  29901. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29902. # now check for the header.
  29903. if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
  29904. SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
  29905. # if --with-SDL_IMAGE=DIR has been specified, use it.
  29906. if test "x${SDL_IMAGE_DIR}" != "x"; then
  29907. SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
  29908. fi
  29909. SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
  29910. # check for the header
  29911. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29912. CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE}"
  29913. ac_fn_c_check_header_compile "$LINENO" "SDL_image.h" "ac_cv_header_SDL_image_h" "$ac_includes_default"
  29914. if test "x$ac_cv_header_SDL_image_h" = xyes
  29915. then :
  29916. SDL_IMAGE_HEADER_FOUND=1
  29917. else $as_nop
  29918. SDL_IMAGE_HEADER_FOUND=0
  29919. fi
  29920. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  29921. if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
  29922. SDL_IMAGE_LIB=""
  29923. SDL_IMAGE_INCLUDE=""
  29924. else
  29925. PBX_SDL_IMAGE=1
  29926. cat >>confdefs.h <<_ACEOF
  29927. #define HAVE_SDL_IMAGE 1
  29928. _ACEOF
  29929. fi
  29930. fi
  29931. fi
  29932. if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
  29933. pbxlibdir=""
  29934. # if --with-FFMPEG=DIR has been specified, use it.
  29935. if test "x${FFMPEG_DIR}" != "x"; then
  29936. if test -d ${FFMPEG_DIR}/lib; then
  29937. pbxlibdir="-L${FFMPEG_DIR}/lib"
  29938. else
  29939. pbxlibdir="-L${FFMPEG_DIR}"
  29940. fi
  29941. fi
  29942. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  29943. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  29944. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sws_getContext in -lavcodec" >&5
  29945. printf %s "checking for sws_getContext in -lavcodec... " >&6; }
  29946. if test ${ac_cv_lib_avcodec_sws_getContext+y}
  29947. then :
  29948. printf %s "(cached) " >&6
  29949. else $as_nop
  29950. ac_check_lib_save_LIBS=$LIBS
  29951. LIBS="-lavcodec ${pbxlibdir} ${PTHREAD_LIBS} -lz -lm $LIBS"
  29952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29953. /* end confdefs.h. */
  29954. /* Override any GCC internal prototype to avoid an error.
  29955. Use char because int might match the return type of a GCC
  29956. builtin and then its argument prototype would still apply. */
  29957. char sws_getContext ();
  29958. int
  29959. main (void)
  29960. {
  29961. return sws_getContext ();
  29962. ;
  29963. return 0;
  29964. }
  29965. _ACEOF
  29966. if ac_fn_c_try_link "$LINENO"
  29967. then :
  29968. ac_cv_lib_avcodec_sws_getContext=yes
  29969. else $as_nop
  29970. ac_cv_lib_avcodec_sws_getContext=no
  29971. fi
  29972. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  29973. conftest$ac_exeext conftest.$ac_ext
  29974. LIBS=$ac_check_lib_save_LIBS
  29975. fi
  29976. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_sws_getContext" >&5
  29977. printf "%s\n" "$ac_cv_lib_avcodec_sws_getContext" >&6; }
  29978. if test "x$ac_cv_lib_avcodec_sws_getContext" = xyes
  29979. then :
  29980. AST_FFMPEG_FOUND=yes
  29981. else $as_nop
  29982. AST_FFMPEG_FOUND=no
  29983. fi
  29984. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  29985. # now check for the header.
  29986. if test "${AST_FFMPEG_FOUND}" = "yes"; then
  29987. FFMPEG_LIB="${pbxlibdir} -lavcodec ${PTHREAD_LIBS} -lz -lm"
  29988. # if --with-FFMPEG=DIR has been specified, use it.
  29989. if test "x${FFMPEG_DIR}" != "x"; then
  29990. FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
  29991. fi
  29992. FFMPEG_INCLUDE="${FFMPEG_INCLUDE} ${PTHREAD_CFLAGS}"
  29993. # check for the header
  29994. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  29995. CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE}"
  29996. ac_fn_c_check_header_compile "$LINENO" "ffmpeg/avcodec.h" "ac_cv_header_ffmpeg_avcodec_h" "$ac_includes_default"
  29997. if test "x$ac_cv_header_ffmpeg_avcodec_h" = xyes
  29998. then :
  29999. FFMPEG_HEADER_FOUND=1
  30000. else $as_nop
  30001. FFMPEG_HEADER_FOUND=0
  30002. fi
  30003. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  30004. if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
  30005. FFMPEG_LIB=""
  30006. FFMPEG_INCLUDE=""
  30007. else
  30008. PBX_FFMPEG=1
  30009. cat >>confdefs.h <<_ACEOF
  30010. #define HAVE_FFMPEG 1
  30011. _ACEOF
  30012. fi
  30013. fi
  30014. fi
  30015. # possible places for video4linux version 1
  30016. ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
  30017. if test "x$ac_cv_header_linux_videodev_h" = xyes
  30018. then :
  30019. printf "%s\n" "#define HAVE_VIDEODEV_H 1" >>confdefs.h
  30020. fi
  30021. # possible places for X11
  30022. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  30023. pbxlibdir=""
  30024. # if --with-X11=DIR has been specified, use it.
  30025. if test "x${X11_DIR}" != "x"; then
  30026. if test -d ${X11_DIR}/lib; then
  30027. pbxlibdir="-L${X11_DIR}/lib"
  30028. else
  30029. pbxlibdir="-L${X11_DIR}"
  30030. fi
  30031. fi
  30032. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  30033. CFLAGS="${CFLAGS} "
  30034. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
  30035. printf %s "checking for XOpenDisplay in -lX11... " >&6; }
  30036. if test ${ac_cv_lib_X11_XOpenDisplay+y}
  30037. then :
  30038. printf %s "(cached) " >&6
  30039. else $as_nop
  30040. ac_check_lib_save_LIBS=$LIBS
  30041. LIBS="-lX11 ${pbxlibdir} $LIBS"
  30042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30043. /* end confdefs.h. */
  30044. /* Override any GCC internal prototype to avoid an error.
  30045. Use char because int might match the return type of a GCC
  30046. builtin and then its argument prototype would still apply. */
  30047. char XOpenDisplay ();
  30048. int
  30049. main (void)
  30050. {
  30051. return XOpenDisplay ();
  30052. ;
  30053. return 0;
  30054. }
  30055. _ACEOF
  30056. if ac_fn_c_try_link "$LINENO"
  30057. then :
  30058. ac_cv_lib_X11_XOpenDisplay=yes
  30059. else $as_nop
  30060. ac_cv_lib_X11_XOpenDisplay=no
  30061. fi
  30062. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30063. conftest$ac_exeext conftest.$ac_ext
  30064. LIBS=$ac_check_lib_save_LIBS
  30065. fi
  30066. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
  30067. printf "%s\n" "$ac_cv_lib_X11_XOpenDisplay" >&6; }
  30068. if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes
  30069. then :
  30070. AST_X11_FOUND=yes
  30071. else $as_nop
  30072. AST_X11_FOUND=no
  30073. fi
  30074. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  30075. # now check for the header.
  30076. if test "${AST_X11_FOUND}" = "yes"; then
  30077. X11_LIB="${pbxlibdir} -lX11 "
  30078. # if --with-X11=DIR has been specified, use it.
  30079. if test "x${X11_DIR}" != "x"; then
  30080. X11_INCLUDE="-I${X11_DIR}/include"
  30081. fi
  30082. X11_INCLUDE="${X11_INCLUDE} "
  30083. # check for the header
  30084. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  30085. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  30086. ac_fn_c_check_header_compile "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
  30087. if test "x$ac_cv_header_X11_Xlib_h" = xyes
  30088. then :
  30089. X11_HEADER_FOUND=1
  30090. else $as_nop
  30091. X11_HEADER_FOUND=0
  30092. fi
  30093. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  30094. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  30095. X11_LIB=""
  30096. X11_INCLUDE=""
  30097. else
  30098. PBX_X11=1
  30099. cat >>confdefs.h <<_ACEOF
  30100. #define HAVE_X11 1
  30101. _ACEOF
  30102. cat >>confdefs.h <<_ACEOF
  30103. #define HAVE_X11_VERSION standard_path
  30104. _ACEOF
  30105. fi
  30106. fi
  30107. fi
  30108. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  30109. pbxlibdir=""
  30110. # if --with-X11=DIR has been specified, use it.
  30111. if test "x${X11_DIR}" != "x"; then
  30112. if test -d ${X11_DIR}/lib; then
  30113. pbxlibdir="-L${X11_DIR}/lib"
  30114. else
  30115. pbxlibdir="-L${X11_DIR}"
  30116. fi
  30117. fi
  30118. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  30119. CFLAGS="${CFLAGS} -I/usr/X11R6/include"
  30120. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XOpenDisplay in -lX11" >&5
  30121. printf %s "checking for XOpenDisplay in -lX11... " >&6; }
  30122. if test ${ac_cv_lib_X11_XOpenDisplay+y}
  30123. then :
  30124. printf %s "(cached) " >&6
  30125. else $as_nop
  30126. ac_check_lib_save_LIBS=$LIBS
  30127. LIBS="-lX11 ${pbxlibdir} $LIBS"
  30128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30129. /* end confdefs.h. */
  30130. /* Override any GCC internal prototype to avoid an error.
  30131. Use char because int might match the return type of a GCC
  30132. builtin and then its argument prototype would still apply. */
  30133. char XOpenDisplay ();
  30134. int
  30135. main (void)
  30136. {
  30137. return XOpenDisplay ();
  30138. ;
  30139. return 0;
  30140. }
  30141. _ACEOF
  30142. if ac_fn_c_try_link "$LINENO"
  30143. then :
  30144. ac_cv_lib_X11_XOpenDisplay=yes
  30145. else $as_nop
  30146. ac_cv_lib_X11_XOpenDisplay=no
  30147. fi
  30148. rm -f core conftest.err conftest.$ac_objext conftest.beam \
  30149. conftest$ac_exeext conftest.$ac_ext
  30150. LIBS=$ac_check_lib_save_LIBS
  30151. fi
  30152. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenDisplay" >&5
  30153. printf "%s\n" "$ac_cv_lib_X11_XOpenDisplay" >&6; }
  30154. if test "x$ac_cv_lib_X11_XOpenDisplay" = xyes
  30155. then :
  30156. AST_X11_FOUND=yes
  30157. else $as_nop
  30158. AST_X11_FOUND=no
  30159. fi
  30160. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  30161. # now check for the header.
  30162. if test "${AST_X11_FOUND}" = "yes"; then
  30163. X11_LIB="${pbxlibdir} -lX11 "
  30164. # if --with-X11=DIR has been specified, use it.
  30165. if test "x${X11_DIR}" != "x"; then
  30166. X11_INCLUDE="-I${X11_DIR}/include"
  30167. fi
  30168. X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
  30169. # check for the header
  30170. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  30171. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  30172. ac_fn_c_check_header_compile "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
  30173. if test "x$ac_cv_header_X11_Xlib_h" = xyes
  30174. then :
  30175. X11_HEADER_FOUND=1
  30176. else $as_nop
  30177. X11_HEADER_FOUND=0
  30178. fi
  30179. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  30180. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  30181. X11_LIB=""
  30182. X11_INCLUDE=""
  30183. else
  30184. PBX_X11=1
  30185. cat >>confdefs.h <<_ACEOF
  30186. #define HAVE_X11 1
  30187. _ACEOF
  30188. cat >>confdefs.h <<_ACEOF
  30189. #define HAVE_X11_VERSION X11R6
  30190. _ACEOF
  30191. fi
  30192. fi
  30193. fi
  30194. PBX_LAUNCHD=0
  30195. if test "${cross_compiling}" = "no";
  30196. then
  30197. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /sbin/launchd" >&5
  30198. printf %s "checking for /sbin/launchd... " >&6; }
  30199. if test ${ac_cv_file__sbin_launchd+y}
  30200. then :
  30201. printf %s "(cached) " >&6
  30202. else $as_nop
  30203. test "$cross_compiling" = yes &&
  30204. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  30205. if test -r "/sbin/launchd"; then
  30206. ac_cv_file__sbin_launchd=yes
  30207. else
  30208. ac_cv_file__sbin_launchd=no
  30209. fi
  30210. fi
  30211. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__sbin_launchd" >&5
  30212. printf "%s\n" "$ac_cv_file__sbin_launchd" >&6; }
  30213. if test "x$ac_cv_file__sbin_launchd" = xyes
  30214. then :
  30215. PBX_LAUNCHD=1
  30216. printf "%s\n" "#define HAVE_SBIN_LAUNCHD 1" >>confdefs.h
  30217. fi
  30218. fi
  30219. if test "x${PBX_GTK2}" != "x1" -a "${USE_GTK2}" != "no"; then
  30220. pkg_failed=no
  30221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0" >&5
  30222. printf %s "checking for gtk+-2.0... " >&6; }
  30223. if test -n "$GTK2_CFLAGS"; then
  30224. pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
  30225. elif test -n "$PKG_CONFIG"; then
  30226. if test -n "$PKG_CONFIG" && \
  30227. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  30228. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  30229. ac_status=$?
  30230. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30231. test $ac_status = 0; }; then
  30232. pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  30233. test "x$?" != "x0" && pkg_failed=yes
  30234. else
  30235. pkg_failed=yes
  30236. fi
  30237. else
  30238. pkg_failed=untried
  30239. fi
  30240. if test -n "$GTK2_LIBS"; then
  30241. pkg_cv_GTK2_LIBS="$GTK2_LIBS"
  30242. elif test -n "$PKG_CONFIG"; then
  30243. if test -n "$PKG_CONFIG" && \
  30244. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  30245. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  30246. ac_status=$?
  30247. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30248. test $ac_status = 0; }; then
  30249. pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  30250. test "x$?" != "x0" && pkg_failed=yes
  30251. else
  30252. pkg_failed=yes
  30253. fi
  30254. else
  30255. pkg_failed=untried
  30256. fi
  30257. if test $pkg_failed = yes; then
  30258. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30259. printf "%s\n" "no" >&6; }
  30260. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  30261. _pkg_short_errors_supported=yes
  30262. else
  30263. _pkg_short_errors_supported=no
  30264. fi
  30265. if test $_pkg_short_errors_supported = yes; then
  30266. GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
  30267. else
  30268. GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
  30269. fi
  30270. # Put the nasty error message in config.log where it belongs
  30271. echo "$GTK2_PKG_ERRORS" >&5
  30272. PBX_GTK2=0
  30273. elif test $pkg_failed = untried; then
  30274. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30275. printf "%s\n" "no" >&6; }
  30276. PBX_GTK2=0
  30277. else
  30278. GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
  30279. GTK2_LIBS=$pkg_cv_GTK2_LIBS
  30280. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30281. printf "%s\n" "yes" >&6; }
  30282. PBX_GTK2=1
  30283. GTK2_INCLUDE=$(echo ${GTK2_CFLAGS} | $SED -e "s|-std=c99||g")
  30284. GTK2_LIB="$GTK2_LIBS"
  30285. printf "%s\n" "#define HAVE_GTK2 1" >>confdefs.h
  30286. fi
  30287. fi
  30288. # build a GENERIC_ODBC result based on the presence of either UnixODBC (preferred)
  30289. # or iODBC
  30290. PBX_GENERIC_ODBC=0
  30291. if test "${PBX_UNIXODBC}" = 1; then
  30292. PBX_GENERIC_ODBC=1
  30293. GENERIC_ODBC_LIB="${UNIXODBC_LIB}"
  30294. GENERIC_ODBC_INCLUDE="${UNIXODBC_INCLUDE}"
  30295. elif test "${PBX_IODBC}" = 1; then
  30296. PBX_GENERIC_ODBC=1
  30297. GENERIC_ODBC_LIB="${IODBC_LIB}"
  30298. GENERIC_ODBC_INCLUDE="${IODBC_INCLUDE}"
  30299. fi
  30300. if test "x${PBX_SYSTEMD}" != "x1" -a "${USE_SYSTEMD}" != "no"; then
  30301. pkg_failed=no
  30302. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
  30303. printf %s "checking for libsystemd... " >&6; }
  30304. if test -n "$SYSTEMD_CFLAGS"; then
  30305. pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
  30306. elif test -n "$PKG_CONFIG"; then
  30307. if test -n "$PKG_CONFIG" && \
  30308. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
  30309. ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
  30310. ac_status=$?
  30311. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30312. test $ac_status = 0; }; then
  30313. pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
  30314. test "x$?" != "x0" && pkg_failed=yes
  30315. else
  30316. pkg_failed=yes
  30317. fi
  30318. else
  30319. pkg_failed=untried
  30320. fi
  30321. if test -n "$SYSTEMD_LIBS"; then
  30322. pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
  30323. elif test -n "$PKG_CONFIG"; then
  30324. if test -n "$PKG_CONFIG" && \
  30325. { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
  30326. ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
  30327. ac_status=$?
  30328. printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30329. test $ac_status = 0; }; then
  30330. pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
  30331. test "x$?" != "x0" && pkg_failed=yes
  30332. else
  30333. pkg_failed=yes
  30334. fi
  30335. else
  30336. pkg_failed=untried
  30337. fi
  30338. if test $pkg_failed = yes; then
  30339. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30340. printf "%s\n" "no" >&6; }
  30341. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  30342. _pkg_short_errors_supported=yes
  30343. else
  30344. _pkg_short_errors_supported=no
  30345. fi
  30346. if test $_pkg_short_errors_supported = yes; then
  30347. SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
  30348. else
  30349. SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
  30350. fi
  30351. # Put the nasty error message in config.log where it belongs
  30352. echo "$SYSTEMD_PKG_ERRORS" >&5
  30353. PBX_SYSTEMD=0
  30354. elif test $pkg_failed = untried; then
  30355. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30356. printf "%s\n" "no" >&6; }
  30357. PBX_SYSTEMD=0
  30358. else
  30359. SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
  30360. SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
  30361. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30362. printf "%s\n" "yes" >&6; }
  30363. PBX_SYSTEMD=1
  30364. SYSTEMD_INCLUDE=$(echo ${SYSTEMD_CFLAGS} | $SED -e "s|-std=c99||g")
  30365. SYSTEMD_LIB="$SYSTEMD_LIBS"
  30366. printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h
  30367. fi
  30368. fi
  30369. PBX_SYSLOG=0
  30370. if test "${ac_cv_header_syslog_h}" = "yes"; then
  30371. # syslog facilities
  30372. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTH}" != "x1"; then
  30373. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTH in syslog.h" >&5
  30374. printf %s "checking for LOG_AUTH in syslog.h... " >&6; }
  30375. saved_cppflags="${CPPFLAGS}"
  30376. if test "x${SYSLOG_FACILITY_LOG_AUTH_DIR}" != "x"; then
  30377. SYSLOG_FACILITY_LOG_AUTH_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTH_DIR}/include"
  30378. fi
  30379. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTH_INCLUDE}"
  30380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30381. /* end confdefs.h. */
  30382. #include <syslog.h>
  30383. int
  30384. main (void)
  30385. {
  30386. #if defined(LOG_AUTH)
  30387. int foo = 0;
  30388. #else
  30389. int foo = bar;
  30390. #endif
  30391. 0
  30392. ;
  30393. return 0;
  30394. }
  30395. _ACEOF
  30396. if ac_fn_c_try_compile "$LINENO"
  30397. then :
  30398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30399. printf "%s\n" "yes" >&6; }
  30400. PBX_SYSLOG_FACILITY_LOG_AUTH=1
  30401. printf "%s\n" "#define HAVE_SYSLOG_FACILITY_LOG_AUTH 1" >>confdefs.h
  30402. else $as_nop
  30403. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30404. printf "%s\n" "no" >&6; }
  30405. fi
  30406. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30407. CPPFLAGS="${saved_cppflags}"
  30408. fi
  30409. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTHPRIV}" != "x1"; then
  30410. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTHPRIV in syslog.h" >&5
  30411. printf %s "checking for LOG_AUTHPRIV in syslog.h... " >&6; }
  30412. saved_cppflags="${CPPFLAGS}"
  30413. if test "x${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}" != "x"; then
  30414. SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}/include"
  30415. fi
  30416. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE}"
  30417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30418. /* end confdefs.h. */
  30419. #include <syslog.h>
  30420. int
  30421. main (void)
  30422. {
  30423. #if defined(LOG_AUTHPRIV)
  30424. int foo = 0;
  30425. #else
  30426. int foo = bar;
  30427. #endif
  30428. 0
  30429. ;
  30430. return 0;
  30431. }
  30432. _ACEOF
  30433. if ac_fn_c_try_compile "$LINENO"
  30434. then :
  30435. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30436. printf "%s\n" "yes" >&6; }
  30437. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV=1
  30438. printf "%s\n" "#define HAVE_SYSLOG_FACILITY_LOG_AUTHPRIV 1" >>confdefs.h
  30439. else $as_nop
  30440. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30441. printf "%s\n" "no" >&6; }
  30442. fi
  30443. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30444. CPPFLAGS="${saved_cppflags}"
  30445. fi
  30446. if test "x${PBX_SYSLOG_FACILITY_LOG_CRON}" != "x1"; then
  30447. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LOG_CRON in syslog.h" >&5
  30448. printf %s "checking for LOG_CRON in syslog.h... " >&6; }
  30449. saved_cppflags="${CPPFLAGS}"
  30450. if test "x${SYSLOG_FACILITY_LOG_CRON_DIR}" != "x"; then
  30451. SYSLOG_FACILITY_LOG_CRON_INCLUDE="-I${SYSLOG_FACILITY_LOG_CRON_DIR}/include"
  30452. fi
  30453. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_CRON_INCLUDE}"
  30454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30455. /* end confdefs.h. */
  30456. #include <syslog.h>
  30457. int
  30458. main (void)
  30459. {
  30460. #if defined(LOG_CRON)
  30461. int foo = 0;
  30462. #else
  30463. int foo = bar;
  30464. #endif
  30465. 0
  30466. ;
  30467. return 0;
  30468. }
  30469. _ACEOF
  30470. if ac_fn_c_try_compile "$LINENO"
  30471. then :
  30472. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30473. printf "%s\n" "yes" >&6; }
  30474. PBX_SYSLOG_FACILITY_LOG_CRON=1
  30475. printf "%s\n" "#define HAVE_SYSLOG_FACILITY_LOG_CRON 1" >>confdefs.h
  30476. else $as_nop
  30477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30478. printf "%s\n" "no" >&6; }
  30479. fi
  30480. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30481. CPPFLAGS="${saved_cppflags}"
  30482. fi
  30483. if test "x${PBX_SYSLOG_FACILITY_LOG_DAEMON}" != "x1"; then
  30484. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LOG_DAEMON in syslog.h" >&5
  30485. printf %s "checking for LOG_DAEMON in syslog.h... " >&6; }
  30486. saved_cppflags="${CPPFLAGS}"
  30487. if test "x${SYSLOG_FACILITY_LOG_DAEMON_DIR}" != "x"; then
  30488. SYSLOG_FACILITY_LOG_DAEMON_INCLUDE="-I${SYSLOG_FACILITY_LOG_DAEMON_DIR}/include"
  30489. fi
  30490. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_DAEMON_INCLUDE}"
  30491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30492. /* end confdefs.h. */
  30493. #include <syslog.h>
  30494. int
  30495. main (void)
  30496. {
  30497. #if defined(LOG_DAEMON)
  30498. int foo = 0;
  30499. #else
  30500. int foo = bar;
  30501. #endif
  30502. 0
  30503. ;
  30504. return 0;
  30505. }
  30506. _ACEOF
  30507. if ac_fn_c_try_compile "$LINENO"
  30508. then :
  30509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30510. printf "%s\n" "yes" >&6; }
  30511. PBX_SYSLOG_FACILITY_LOG_DAEMON=1
  30512. printf "%s\n" "#define HAVE_SYSLOG_FACILITY_LOG_DAEMON 1" >>confdefs.h
  30513. else $as_nop
  30514. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30515. printf "%s\n" "no" >&6; }
  30516. fi
  30517. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30518. CPPFLAGS="${saved_cppflags}"
  30519. fi
  30520. if test "x${PBX_SYSLOG_FACILITY_LOG_FTP}" != "x1"; then
  30521. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LOG_FTP in syslog.h" >&5
  30522. printf %s "checking for LOG_FTP in syslog.h... " >&6; }
  30523. saved_cppflags="${CPPFLAGS}"
  30524. if test "x${SYSLOG_FACILITY_LOG_FTP_DIR}" != "x"; then
  30525. SYSLOG_FACILITY_LOG_FTP_INCLUDE="-I${SYSLOG_FACILITY_LOG_FTP_DIR}/include"
  30526. fi
  30527. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_FTP_INCLUDE}"
  30528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30529. /* end confdefs.h. */
  30530. #include <syslog.h>
  30531. int
  30532. main (void)
  30533. {
  30534. #if defined(LOG_FTP)
  30535. int foo = 0;
  30536. #else
  30537. int foo = bar;
  30538. #endif
  30539. 0
  30540. ;
  30541. return 0;
  30542. }
  30543. _ACEOF
  30544. if ac_fn_c_try_compile "$LINENO"
  30545. then :
  30546. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30547. printf "%s\n" "yes" >&6; }
  30548. PBX_SYSLOG_FACILITY_LOG_FTP=1
  30549. printf "%s\n" "#define HAVE_SYSLOG_FACILITY_LOG_FTP 1" >>confdefs.h
  30550. else $as_nop
  30551. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30552. printf "%s\n" "no" >&6; }
  30553. fi
  30554. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30555. CPPFLAGS="${saved_cppflags}"
  30556. fi
  30557. if test "x${PBX_SYSLOG_FACILITY_LOG_KERN}" != "x1"; then
  30558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LOG_KERN in syslog.h" >&5
  30559. printf %s "checking for LOG_KERN in syslog.h... " >&6; }
  30560. saved_cppflags="${CPPFLAGS}"
  30561. if test "x${SYSLOG_FACILITY_LOG_KERN_DIR}" != "x"; then
  30562. SYSLOG_FACILITY_LOG_KERN_INCLUDE="-I${SYSLOG_FACILITY_LOG_KERN_DIR}/include"
  30563. fi
  30564. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_KERN_INCLUDE}"
  30565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30566. /* end confdefs.h. */
  30567. #include <syslog.h>
  30568. int
  30569. main (void)
  30570. {
  30571. #if defined(LOG_KERN)
  30572. int foo = 0;
  30573. #else
  30574. int foo = bar;
  30575. #endif
  30576. 0
  30577. ;
  30578. return 0;
  30579. }
  30580. _ACEOF
  30581. if ac_fn_c_try_compile "$LINENO"
  30582. then :
  30583. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30584. printf "%s\n" "yes" >&6; }
  30585. PBX_SYSLOG_FACILITY_LOG_KERN=1
  30586. printf "%s\n" "#define HAVE_SYSLOG_FACILITY_LOG_KERN 1" >>confdefs.h
  30587. else $as_nop
  30588. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30589. printf "%s\n" "no" >&6; }
  30590. fi
  30591. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30592. CPPFLAGS="${saved_cppflags}"
  30593. fi
  30594. if test "x${PBX_SYSLOG_FACILITY_LOG_LPR}" != "x1"; then
  30595. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LOG_LPR in syslog.h" >&5
  30596. printf %s "checking for LOG_LPR in syslog.h... " >&6; }
  30597. saved_cppflags="${CPPFLAGS}"
  30598. if test "x${SYSLOG_FACILITY_LOG_LPR_DIR}" != "x"; then
  30599. SYSLOG_FACILITY_LOG_LPR_INCLUDE="-I${SYSLOG_FACILITY_LOG_LPR_DIR}/include"
  30600. fi
  30601. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_LPR_INCLUDE}"
  30602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30603. /* end confdefs.h. */
  30604. #include <syslog.h>
  30605. int
  30606. main (void)
  30607. {
  30608. #if defined(LOG_LPR)
  30609. int foo = 0;
  30610. #else
  30611. int foo = bar;
  30612. #endif
  30613. 0
  30614. ;
  30615. return 0;
  30616. }
  30617. _ACEOF
  30618. if ac_fn_c_try_compile "$LINENO"
  30619. then :
  30620. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30621. printf "%s\n" "yes" >&6; }
  30622. PBX_SYSLOG_FACILITY_LOG_LPR=1
  30623. printf "%s\n" "#define HAVE_SYSLOG_FACILITY_LOG_LPR 1" >>confdefs.h
  30624. else $as_nop
  30625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30626. printf "%s\n" "no" >&6; }
  30627. fi
  30628. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30629. CPPFLAGS="${saved_cppflags}"
  30630. fi
  30631. if test "x${PBX_SYSLOG_FACILITY_LOG_MAIL}" != "x1"; then
  30632. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LOG_MAIL in syslog.h" >&5
  30633. printf %s "checking for LOG_MAIL in syslog.h... " >&6; }
  30634. saved_cppflags="${CPPFLAGS}"
  30635. if test "x${SYSLOG_FACILITY_LOG_MAIL_DIR}" != "x"; then
  30636. SYSLOG_FACILITY_LOG_MAIL_INCLUDE="-I${SYSLOG_FACILITY_LOG_MAIL_DIR}/include"
  30637. fi
  30638. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_MAIL_INCLUDE}"
  30639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30640. /* end confdefs.h. */
  30641. #include <syslog.h>
  30642. int
  30643. main (void)
  30644. {
  30645. #if defined(LOG_MAIL)
  30646. int foo = 0;
  30647. #else
  30648. int foo = bar;
  30649. #endif
  30650. 0
  30651. ;
  30652. return 0;
  30653. }
  30654. _ACEOF
  30655. if ac_fn_c_try_compile "$LINENO"
  30656. then :
  30657. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30658. printf "%s\n" "yes" >&6; }
  30659. PBX_SYSLOG_FACILITY_LOG_MAIL=1
  30660. printf "%s\n" "#define HAVE_SYSLOG_FACILITY_LOG_MAIL 1" >>confdefs.h
  30661. else $as_nop
  30662. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30663. printf "%s\n" "no" >&6; }
  30664. fi
  30665. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30666. CPPFLAGS="${saved_cppflags}"
  30667. fi
  30668. if test "x${PBX_SYSLOG_FACILITY_LOG_NEWS}" != "x1"; then
  30669. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LOG_NEWS in syslog.h" >&5
  30670. printf %s "checking for LOG_NEWS in syslog.h... " >&6; }
  30671. saved_cppflags="${CPPFLAGS}"
  30672. if test "x${SYSLOG_FACILITY_LOG_NEWS_DIR}" != "x"; then
  30673. SYSLOG_FACILITY_LOG_NEWS_INCLUDE="-I${SYSLOG_FACILITY_LOG_NEWS_DIR}/include"
  30674. fi
  30675. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_NEWS_INCLUDE}"
  30676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30677. /* end confdefs.h. */
  30678. #include <syslog.h>
  30679. int
  30680. main (void)
  30681. {
  30682. #if defined(LOG_NEWS)
  30683. int foo = 0;
  30684. #else
  30685. int foo = bar;
  30686. #endif
  30687. 0
  30688. ;
  30689. return 0;
  30690. }
  30691. _ACEOF
  30692. if ac_fn_c_try_compile "$LINENO"
  30693. then :
  30694. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30695. printf "%s\n" "yes" >&6; }
  30696. PBX_SYSLOG_FACILITY_LOG_NEWS=1
  30697. printf "%s\n" "#define HAVE_SYSLOG_FACILITY_LOG_NEWS 1" >>confdefs.h
  30698. else $as_nop
  30699. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30700. printf "%s\n" "no" >&6; }
  30701. fi
  30702. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30703. CPPFLAGS="${saved_cppflags}"
  30704. fi
  30705. if test "x${PBX_SYSLOG_FACILITY_LOG_SYSLOG}" != "x1"; then
  30706. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LOG_SYSLOG in syslog.h" >&5
  30707. printf %s "checking for LOG_SYSLOG in syslog.h... " >&6; }
  30708. saved_cppflags="${CPPFLAGS}"
  30709. if test "x${SYSLOG_FACILITY_LOG_SYSLOG_DIR}" != "x"; then
  30710. SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE="-I${SYSLOG_FACILITY_LOG_SYSLOG_DIR}/include"
  30711. fi
  30712. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE}"
  30713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30714. /* end confdefs.h. */
  30715. #include <syslog.h>
  30716. int
  30717. main (void)
  30718. {
  30719. #if defined(LOG_SYSLOG)
  30720. int foo = 0;
  30721. #else
  30722. int foo = bar;
  30723. #endif
  30724. 0
  30725. ;
  30726. return 0;
  30727. }
  30728. _ACEOF
  30729. if ac_fn_c_try_compile "$LINENO"
  30730. then :
  30731. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30732. printf "%s\n" "yes" >&6; }
  30733. PBX_SYSLOG_FACILITY_LOG_SYSLOG=1
  30734. printf "%s\n" "#define HAVE_SYSLOG_FACILITY_LOG_SYSLOG 1" >>confdefs.h
  30735. else $as_nop
  30736. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30737. printf "%s\n" "no" >&6; }
  30738. fi
  30739. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30740. CPPFLAGS="${saved_cppflags}"
  30741. fi
  30742. if test "x${PBX_SYSLOG_FACILITY_LOG_UUCP}" != "x1"; then
  30743. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LOG_UUCP in syslog.h" >&5
  30744. printf %s "checking for LOG_UUCP in syslog.h... " >&6; }
  30745. saved_cppflags="${CPPFLAGS}"
  30746. if test "x${SYSLOG_FACILITY_LOG_UUCP_DIR}" != "x"; then
  30747. SYSLOG_FACILITY_LOG_UUCP_INCLUDE="-I${SYSLOG_FACILITY_LOG_UUCP_DIR}/include"
  30748. fi
  30749. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_UUCP_INCLUDE}"
  30750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30751. /* end confdefs.h. */
  30752. #include <syslog.h>
  30753. int
  30754. main (void)
  30755. {
  30756. #if defined(LOG_UUCP)
  30757. int foo = 0;
  30758. #else
  30759. int foo = bar;
  30760. #endif
  30761. 0
  30762. ;
  30763. return 0;
  30764. }
  30765. _ACEOF
  30766. if ac_fn_c_try_compile "$LINENO"
  30767. then :
  30768. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30769. printf "%s\n" "yes" >&6; }
  30770. PBX_SYSLOG_FACILITY_LOG_UUCP=1
  30771. printf "%s\n" "#define HAVE_SYSLOG_FACILITY_LOG_UUCP 1" >>confdefs.h
  30772. else $as_nop
  30773. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30774. printf "%s\n" "no" >&6; }
  30775. fi
  30776. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
  30777. CPPFLAGS="${saved_cppflags}"
  30778. fi
  30779. PBX_SYSLOG=1
  30780. fi
  30781. if test -f makeopts; then
  30782. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak
  30783. else
  30784. touch makeopts.acbak
  30785. fi
  30786. # conf_bridge (binaural rendering): check if HRIRs are available
  30787. # this check does not work when cross-compiling
  30788. if test "${cross_compiling}" = "no"; then
  30789. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bridges/bridge_softmix/include/hrirs.h" >&5
  30790. printf %s "checking for bridges/bridge_softmix/include/hrirs.h... " >&6; }
  30791. if test ${ac_cv_file_bridges_bridge_softmix_include_hrirs_h+y}
  30792. then :
  30793. printf %s "(cached) " >&6
  30794. else $as_nop
  30795. test "$cross_compiling" = yes &&
  30796. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  30797. if test -r "bridges/bridge_softmix/include/hrirs.h"; then
  30798. ac_cv_file_bridges_bridge_softmix_include_hrirs_h=yes
  30799. else
  30800. ac_cv_file_bridges_bridge_softmix_include_hrirs_h=no
  30801. fi
  30802. fi
  30803. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_bridges_bridge_softmix_include_hrirs_h" >&5
  30804. printf "%s\n" "$ac_cv_file_bridges_bridge_softmix_include_hrirs_h" >&6; }
  30805. if test "x$ac_cv_file_bridges_bridge_softmix_include_hrirs_h" = xyes
  30806. then :
  30807. printf "%s\n" "#define HAVE_BRIDGES_BRIDGE_SOFTMIX_INCLUDE_HRIRS_H 1" >>confdefs.h
  30808. fi
  30809. fi
  30810. ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts"
  30811. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mandatory modules: ${ac_mandatory_list}" >&5
  30812. printf %s "checking for mandatory modules: ${ac_mandatory_list}... " >&6; }
  30813. err=0;
  30814. for i in ${ac_mandatory_list}; do
  30815. eval "a=\${PBX_$i}"
  30816. if test "x${a}" = "x1" ; then continue; fi
  30817. if test ${err} = "0" ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fail" >&5
  30818. printf "%s\n" "fail" >&6; } ; fi
  30819. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
  30820. printf "%s\n" "" >&6; }
  30821. eval "a=\${${i}_OPTION}"
  30822. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ***" >&5
  30823. printf "%s\n" "$as_me: ***" >&6;}
  30824. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** The $i installation appears to be missing or broken." >&5
  30825. printf "%s\n" "$as_me: *** The $i installation appears to be missing or broken." >&6;}
  30826. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  30827. printf "%s\n" "$as_me: *** Either correct the installation, or run configure" >&6;}
  30828. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: *** including --without-${a}." >&5
  30829. printf "%s\n" "$as_me: *** including --without-${a}." >&6;}
  30830. err=1
  30831. done
  30832. if test $err = 1 ; then exit 1; fi
  30833. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  30834. printf "%s\n" "ok" >&6; }
  30835. if test -f build_tools/menuselect-deps; then
  30836. # extract old values of all PBX_ variables from menuselect-deps
  30837. # and preserve them so that menuselect can determine whether
  30838. # any previously-met dependencies are no longer met and warn
  30839. # the user appropriately
  30840. while IFS="=:" read var val old_val; do
  30841. eval "PBX_${var}=\${PBX_${var}}:${val}"
  30842. done < build_tools/menuselect-deps
  30843. fi
  30844. cat >confcache <<\_ACEOF
  30845. # This file is a shell script that caches the results of configure
  30846. # tests run on this system so they can be shared between configure
  30847. # scripts and configure runs, see configure's option --config-cache.
  30848. # It is not useful on other systems. If it contains results you don't
  30849. # want to keep, you may remove or edit it.
  30850. #
  30851. # config.status only pays attention to the cache file if you give it
  30852. # the --recheck option to rerun configure.
  30853. #
  30854. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  30855. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  30856. # following values.
  30857. _ACEOF
  30858. # The following way of writing the cache mishandles newlines in values,
  30859. # but we know of no workaround that is simple, portable, and efficient.
  30860. # So, we kill variables containing newlines.
  30861. # Ultrix sh set writes to stderr and can't be redirected directly,
  30862. # and sets the high bit in the cache file unless we assign to the vars.
  30863. (
  30864. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  30865. eval ac_val=\$$ac_var
  30866. case $ac_val in #(
  30867. *${as_nl}*)
  30868. case $ac_var in #(
  30869. *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  30870. printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  30871. esac
  30872. case $ac_var in #(
  30873. _ | IFS | as_nl) ;; #(
  30874. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  30875. *) { eval $ac_var=; unset $ac_var;} ;;
  30876. esac ;;
  30877. esac
  30878. done
  30879. (set) 2>&1 |
  30880. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  30881. *${as_nl}ac_space=\ *)
  30882. # `set' does not quote correctly, so add quotes: double-quote
  30883. # substitution turns \\\\ into \\, and sed turns \\ into \.
  30884. sed -n \
  30885. "s/'/'\\\\''/g;
  30886. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  30887. ;; #(
  30888. *)
  30889. # `set' quotes correctly as required by POSIX, so do not add quotes.
  30890. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  30891. ;;
  30892. esac |
  30893. sort
  30894. ) |
  30895. sed '
  30896. /^ac_cv_env_/b end
  30897. t clear
  30898. :clear
  30899. s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
  30900. t end
  30901. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  30902. :end' >>confcache
  30903. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  30904. if test -w "$cache_file"; then
  30905. if test "x$cache_file" != "x/dev/null"; then
  30906. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  30907. printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
  30908. if test ! -f "$cache_file" || test -h "$cache_file"; then
  30909. cat confcache >"$cache_file"
  30910. else
  30911. case $cache_file in #(
  30912. */* | ?:*)
  30913. mv -f confcache "$cache_file"$$ &&
  30914. mv -f "$cache_file"$$ "$cache_file" ;; #(
  30915. *)
  30916. mv -f confcache "$cache_file" ;;
  30917. esac
  30918. fi
  30919. fi
  30920. else
  30921. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  30922. printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
  30923. fi
  30924. fi
  30925. rm -f confcache
  30926. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  30927. # Let make expand exec_prefix.
  30928. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  30929. DEFS=-DHAVE_CONFIG_H
  30930. ac_libobjs=
  30931. ac_ltlibobjs=
  30932. U=
  30933. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  30934. # 1. Remove the extension, and $U if already installed.
  30935. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  30936. ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
  30937. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  30938. # will be set to the directory where LIBOBJS objects are built.
  30939. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  30940. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  30941. done
  30942. LIBOBJS=$ac_libobjs
  30943. LTLIBOBJS=$ac_ltlibobjs
  30944. : "${CONFIG_STATUS=./config.status}"
  30945. ac_write_fail=0
  30946. ac_clean_files_save=$ac_clean_files
  30947. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  30948. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  30949. printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
  30950. as_write_fail=0
  30951. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  30952. #! $SHELL
  30953. # Generated by $as_me.
  30954. # Run this file to recreate the current configuration.
  30955. # Compiler output produced by configure, useful for debugging
  30956. # configure, is in config.log if it exists.
  30957. debug=false
  30958. ac_cs_recheck=false
  30959. ac_cs_silent=false
  30960. SHELL=\${CONFIG_SHELL-$SHELL}
  30961. export SHELL
  30962. _ASEOF
  30963. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  30964. ## -------------------- ##
  30965. ## M4sh Initialization. ##
  30966. ## -------------------- ##
  30967. # Be more Bourne compatible
  30968. DUALCASE=1; export DUALCASE # for MKS sh
  30969. as_nop=:
  30970. if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  30971. then :
  30972. emulate sh
  30973. NULLCMD=:
  30974. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  30975. # is contrary to our usage. Disable this feature.
  30976. alias -g '${1+"$@"}'='"$@"'
  30977. setopt NO_GLOB_SUBST
  30978. else $as_nop
  30979. case `(set -o) 2>/dev/null` in #(
  30980. *posix*) :
  30981. set -o posix ;; #(
  30982. *) :
  30983. ;;
  30984. esac
  30985. fi
  30986. # Reset variables that may have inherited troublesome values from
  30987. # the environment.
  30988. # IFS needs to be set, to space, tab, and newline, in precisely that order.
  30989. # (If _AS_PATH_WALK were called with IFS unset, it would have the
  30990. # side effect of setting IFS to empty, thus disabling word splitting.)
  30991. # Quoting is to prevent editors from complaining about space-tab.
  30992. as_nl='
  30993. '
  30994. export as_nl
  30995. IFS=" "" $as_nl"
  30996. PS1='$ '
  30997. PS2='> '
  30998. PS4='+ '
  30999. # Ensure predictable behavior from utilities with locale-dependent output.
  31000. LC_ALL=C
  31001. export LC_ALL
  31002. LANGUAGE=C
  31003. export LANGUAGE
  31004. # We cannot yet rely on "unset" to work, but we need these variables
  31005. # to be unset--not just set to an empty or harmless value--now, to
  31006. # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
  31007. # also avoids known problems related to "unset" and subshell syntax
  31008. # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
  31009. for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
  31010. do eval test \${$as_var+y} \
  31011. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  31012. done
  31013. # Ensure that fds 0, 1, and 2 are open.
  31014. if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
  31015. if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
  31016. if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
  31017. # The user is always right.
  31018. if ${PATH_SEPARATOR+false} :; then
  31019. PATH_SEPARATOR=:
  31020. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  31021. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  31022. PATH_SEPARATOR=';'
  31023. }
  31024. fi
  31025. # Find who we are. Look in the path if we contain no directory separator.
  31026. as_myself=
  31027. case $0 in #((
  31028. *[\\/]* ) as_myself=$0 ;;
  31029. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  31030. for as_dir in $PATH
  31031. do
  31032. IFS=$as_save_IFS
  31033. case $as_dir in #(((
  31034. '') as_dir=./ ;;
  31035. */) ;;
  31036. *) as_dir=$as_dir/ ;;
  31037. esac
  31038. test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  31039. done
  31040. IFS=$as_save_IFS
  31041. ;;
  31042. esac
  31043. # We did not find ourselves, most probably we were run as `sh COMMAND'
  31044. # in which case we are not to be found in the path.
  31045. if test "x$as_myself" = x; then
  31046. as_myself=$0
  31047. fi
  31048. if test ! -f "$as_myself"; then
  31049. printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  31050. exit 1
  31051. fi
  31052. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  31053. # ----------------------------------------
  31054. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  31055. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  31056. # script with STATUS, using 1 if that was 0.
  31057. as_fn_error ()
  31058. {
  31059. as_status=$1; test $as_status -eq 0 && as_status=1
  31060. if test "$4"; then
  31061. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  31062. printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  31063. fi
  31064. printf "%s\n" "$as_me: error: $2" >&2
  31065. as_fn_exit $as_status
  31066. } # as_fn_error
  31067. # as_fn_set_status STATUS
  31068. # -----------------------
  31069. # Set $? to STATUS, without forking.
  31070. as_fn_set_status ()
  31071. {
  31072. return $1
  31073. } # as_fn_set_status
  31074. # as_fn_exit STATUS
  31075. # -----------------
  31076. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  31077. as_fn_exit ()
  31078. {
  31079. set +e
  31080. as_fn_set_status $1
  31081. exit $1
  31082. } # as_fn_exit
  31083. # as_fn_unset VAR
  31084. # ---------------
  31085. # Portably unset VAR.
  31086. as_fn_unset ()
  31087. {
  31088. { eval $1=; unset $1;}
  31089. }
  31090. as_unset=as_fn_unset
  31091. # as_fn_append VAR VALUE
  31092. # ----------------------
  31093. # Append the text in VALUE to the end of the definition contained in VAR. Take
  31094. # advantage of any shell optimizations that allow amortized linear growth over
  31095. # repeated appends, instead of the typical quadratic growth present in naive
  31096. # implementations.
  31097. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  31098. then :
  31099. eval 'as_fn_append ()
  31100. {
  31101. eval $1+=\$2
  31102. }'
  31103. else $as_nop
  31104. as_fn_append ()
  31105. {
  31106. eval $1=\$$1\$2
  31107. }
  31108. fi # as_fn_append
  31109. # as_fn_arith ARG...
  31110. # ------------------
  31111. # Perform arithmetic evaluation on the ARGs, and store the result in the
  31112. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  31113. # must be portable across $(()) and expr.
  31114. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  31115. then :
  31116. eval 'as_fn_arith ()
  31117. {
  31118. as_val=$(( $* ))
  31119. }'
  31120. else $as_nop
  31121. as_fn_arith ()
  31122. {
  31123. as_val=`expr "$@" || test $? -eq 1`
  31124. }
  31125. fi # as_fn_arith
  31126. if expr a : '\(a\)' >/dev/null 2>&1 &&
  31127. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  31128. as_expr=expr
  31129. else
  31130. as_expr=false
  31131. fi
  31132. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  31133. as_basename=basename
  31134. else
  31135. as_basename=false
  31136. fi
  31137. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  31138. as_dirname=dirname
  31139. else
  31140. as_dirname=false
  31141. fi
  31142. as_me=`$as_basename -- "$0" ||
  31143. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  31144. X"$0" : 'X\(//\)$' \| \
  31145. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  31146. printf "%s\n" X/"$0" |
  31147. sed '/^.*\/\([^/][^/]*\)\/*$/{
  31148. s//\1/
  31149. q
  31150. }
  31151. /^X\/\(\/\/\)$/{
  31152. s//\1/
  31153. q
  31154. }
  31155. /^X\/\(\/\).*/{
  31156. s//\1/
  31157. q
  31158. }
  31159. s/.*/./; q'`
  31160. # Avoid depending upon Character Ranges.
  31161. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31162. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31163. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31164. as_cr_digits='0123456789'
  31165. as_cr_alnum=$as_cr_Letters$as_cr_digits
  31166. # Determine whether it's possible to make 'echo' print without a newline.
  31167. # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  31168. # for compatibility with existing Makefiles.
  31169. ECHO_C= ECHO_N= ECHO_T=
  31170. case `echo -n x` in #(((((
  31171. -n*)
  31172. case `echo 'xy\c'` in
  31173. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  31174. xy) ECHO_C='\c';;
  31175. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  31176. ECHO_T=' ';;
  31177. esac;;
  31178. *)
  31179. ECHO_N='-n';;
  31180. esac
  31181. # For backward compatibility with old third-party macros, we provide
  31182. # the shell variables $as_echo and $as_echo_n. New code should use
  31183. # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  31184. as_echo='printf %s\n'
  31185. as_echo_n='printf %s'
  31186. rm -f conf$$ conf$$.exe conf$$.file
  31187. if test -d conf$$.dir; then
  31188. rm -f conf$$.dir/conf$$.file
  31189. else
  31190. rm -f conf$$.dir
  31191. mkdir conf$$.dir 2>/dev/null
  31192. fi
  31193. if (echo >conf$$.file) 2>/dev/null; then
  31194. if ln -s conf$$.file conf$$ 2>/dev/null; then
  31195. as_ln_s='ln -s'
  31196. # ... but there are two gotchas:
  31197. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  31198. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  31199. # In both cases, we have to default to `cp -pR'.
  31200. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  31201. as_ln_s='cp -pR'
  31202. elif ln conf$$.file conf$$ 2>/dev/null; then
  31203. as_ln_s=ln
  31204. else
  31205. as_ln_s='cp -pR'
  31206. fi
  31207. else
  31208. as_ln_s='cp -pR'
  31209. fi
  31210. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  31211. rmdir conf$$.dir 2>/dev/null
  31212. # as_fn_mkdir_p
  31213. # -------------
  31214. # Create "$as_dir" as a directory, including parents if necessary.
  31215. as_fn_mkdir_p ()
  31216. {
  31217. case $as_dir in #(
  31218. -*) as_dir=./$as_dir;;
  31219. esac
  31220. test -d "$as_dir" || eval $as_mkdir_p || {
  31221. as_dirs=
  31222. while :; do
  31223. case $as_dir in #(
  31224. *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  31225. *) as_qdir=$as_dir;;
  31226. esac
  31227. as_dirs="'$as_qdir' $as_dirs"
  31228. as_dir=`$as_dirname -- "$as_dir" ||
  31229. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31230. X"$as_dir" : 'X\(//\)[^/]' \| \
  31231. X"$as_dir" : 'X\(//\)$' \| \
  31232. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  31233. printf "%s\n" X"$as_dir" |
  31234. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  31235. s//\1/
  31236. q
  31237. }
  31238. /^X\(\/\/\)[^/].*/{
  31239. s//\1/
  31240. q
  31241. }
  31242. /^X\(\/\/\)$/{
  31243. s//\1/
  31244. q
  31245. }
  31246. /^X\(\/\).*/{
  31247. s//\1/
  31248. q
  31249. }
  31250. s/.*/./; q'`
  31251. test -d "$as_dir" && break
  31252. done
  31253. test -z "$as_dirs" || eval "mkdir $as_dirs"
  31254. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  31255. } # as_fn_mkdir_p
  31256. if mkdir -p . 2>/dev/null; then
  31257. as_mkdir_p='mkdir -p "$as_dir"'
  31258. else
  31259. test -d ./-p && rmdir ./-p
  31260. as_mkdir_p=false
  31261. fi
  31262. # as_fn_executable_p FILE
  31263. # -----------------------
  31264. # Test if FILE is an executable regular file.
  31265. as_fn_executable_p ()
  31266. {
  31267. test -f "$1" && test -x "$1"
  31268. } # as_fn_executable_p
  31269. as_test_x='test -x'
  31270. as_executable_p=as_fn_executable_p
  31271. # Sed expression to map a string onto a valid CPP name.
  31272. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  31273. # Sed expression to map a string onto a valid variable name.
  31274. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  31275. exec 6>&1
  31276. ## ----------------------------------- ##
  31277. ## Main body of $CONFIG_STATUS script. ##
  31278. ## ----------------------------------- ##
  31279. _ASEOF
  31280. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  31281. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31282. # Save the log message, to keep $0 and so on meaningful, and to
  31283. # report actual input values of CONFIG_FILES etc. instead of their
  31284. # values after options handling.
  31285. ac_log="
  31286. This file was extended by asterisk $as_me master, which was
  31287. generated by GNU Autoconf 2.71. Invocation command line was
  31288. CONFIG_FILES = $CONFIG_FILES
  31289. CONFIG_HEADERS = $CONFIG_HEADERS
  31290. CONFIG_LINKS = $CONFIG_LINKS
  31291. CONFIG_COMMANDS = $CONFIG_COMMANDS
  31292. $ $0 $@
  31293. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  31294. "
  31295. _ACEOF
  31296. case $ac_config_files in *"
  31297. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  31298. esac
  31299. case $ac_config_headers in *"
  31300. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  31301. esac
  31302. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31303. # Files that config.status was made for.
  31304. config_files="$ac_config_files"
  31305. config_headers="$ac_config_headers"
  31306. _ACEOF
  31307. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31308. ac_cs_usage="\
  31309. \`$as_me' instantiates files and other configuration actions
  31310. from templates according to the current configuration. Unless the files
  31311. and actions are specified as TAGs, all are instantiated by default.
  31312. Usage: $0 [OPTION]... [TAG]...
  31313. -h, --help print this help, then exit
  31314. -V, --version print version number and configuration settings, then exit
  31315. --config print configuration, then exit
  31316. -q, --quiet, --silent
  31317. do not print progress messages
  31318. -d, --debug don't remove temporary files
  31319. --recheck update $as_me by reconfiguring in the same conditions
  31320. --file=FILE[:TEMPLATE]
  31321. instantiate the configuration file FILE
  31322. --header=FILE[:TEMPLATE]
  31323. instantiate the configuration header FILE
  31324. Configuration files:
  31325. $config_files
  31326. Configuration headers:
  31327. $config_headers
  31328. Report bugs to <https://github.com/asterisk/asterisk/issues>."
  31329. _ACEOF
  31330. ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
  31331. ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
  31332. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31333. ac_cs_config='$ac_cs_config_escaped'
  31334. ac_cs_version="\\
  31335. asterisk config.status master
  31336. configured by $0, generated by GNU Autoconf 2.71,
  31337. with options \\"\$ac_cs_config\\"
  31338. Copyright (C) 2021 Free Software Foundation, Inc.
  31339. This config.status script is free software; the Free Software Foundation
  31340. gives unlimited permission to copy, distribute and modify it."
  31341. ac_pwd='$ac_pwd'
  31342. srcdir='$srcdir'
  31343. INSTALL='$INSTALL'
  31344. AWK='$AWK'
  31345. test -n "\$AWK" || AWK=awk
  31346. _ACEOF
  31347. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31348. # The default lists apply if the user does not specify any file.
  31349. ac_need_defaults=:
  31350. while test $# != 0
  31351. do
  31352. case $1 in
  31353. --*=?*)
  31354. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  31355. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  31356. ac_shift=:
  31357. ;;
  31358. --*=)
  31359. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  31360. ac_optarg=
  31361. ac_shift=:
  31362. ;;
  31363. *)
  31364. ac_option=$1
  31365. ac_optarg=$2
  31366. ac_shift=shift
  31367. ;;
  31368. esac
  31369. case $ac_option in
  31370. # Handling of the options.
  31371. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  31372. ac_cs_recheck=: ;;
  31373. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  31374. printf "%s\n" "$ac_cs_version"; exit ;;
  31375. --config | --confi | --conf | --con | --co | --c )
  31376. printf "%s\n" "$ac_cs_config"; exit ;;
  31377. --debug | --debu | --deb | --de | --d | -d )
  31378. debug=: ;;
  31379. --file | --fil | --fi | --f )
  31380. $ac_shift
  31381. case $ac_optarg in
  31382. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  31383. '') as_fn_error $? "missing file argument" ;;
  31384. esac
  31385. as_fn_append CONFIG_FILES " '$ac_optarg'"
  31386. ac_need_defaults=false;;
  31387. --header | --heade | --head | --hea )
  31388. $ac_shift
  31389. case $ac_optarg in
  31390. *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  31391. esac
  31392. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  31393. ac_need_defaults=false;;
  31394. --he | --h)
  31395. # Conflict between --help and --header
  31396. as_fn_error $? "ambiguous option: \`$1'
  31397. Try \`$0 --help' for more information.";;
  31398. --help | --hel | -h )
  31399. printf "%s\n" "$ac_cs_usage"; exit ;;
  31400. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  31401. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  31402. ac_cs_silent=: ;;
  31403. # This is an error.
  31404. -*) as_fn_error $? "unrecognized option: \`$1'
  31405. Try \`$0 --help' for more information." ;;
  31406. *) as_fn_append ac_config_targets " $1"
  31407. ac_need_defaults=false ;;
  31408. esac
  31409. shift
  31410. done
  31411. ac_configure_extra_args=
  31412. if $ac_cs_silent; then
  31413. exec 6>/dev/null
  31414. ac_configure_extra_args="$ac_configure_extra_args --silent"
  31415. fi
  31416. _ACEOF
  31417. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31418. if \$ac_cs_recheck; then
  31419. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  31420. shift
  31421. \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
  31422. CONFIG_SHELL='$SHELL'
  31423. export CONFIG_SHELL
  31424. exec "\$@"
  31425. fi
  31426. _ACEOF
  31427. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31428. exec 5>>config.log
  31429. {
  31430. echo
  31431. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  31432. ## Running $as_me. ##
  31433. _ASBOX
  31434. printf "%s\n" "$ac_log"
  31435. } >&5
  31436. _ACEOF
  31437. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31438. _ACEOF
  31439. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31440. # Handling of arguments.
  31441. for ac_config_target in $ac_config_targets
  31442. do
  31443. case $ac_config_target in
  31444. "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
  31445. "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
  31446. "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
  31447. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  31448. esac
  31449. done
  31450. # If the user did not use the arguments to specify the items to instantiate,
  31451. # then the envvar interface is used. Set only those that are not.
  31452. # We use the long form for the default assignment because of an extremely
  31453. # bizarre bug on SunOS 4.1.3.
  31454. if $ac_need_defaults; then
  31455. test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
  31456. test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
  31457. fi
  31458. # Have a temporary directory for convenience. Make it in the build tree
  31459. # simply because there is no reason against having it here, and in addition,
  31460. # creating and moving files from /tmp can sometimes cause problems.
  31461. # Hook for its removal unless debugging.
  31462. # Note that there is a small window in which the directory will not be cleaned:
  31463. # after its creation but before its name has been assigned to `$tmp'.
  31464. $debug ||
  31465. {
  31466. tmp= ac_tmp=
  31467. trap 'exit_status=$?
  31468. : "${ac_tmp:=$tmp}"
  31469. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  31470. ' 0
  31471. trap 'as_fn_exit 1' 1 2 13 15
  31472. }
  31473. # Create a (secure) tmp directory for tmp files.
  31474. {
  31475. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  31476. test -d "$tmp"
  31477. } ||
  31478. {
  31479. tmp=./conf$$-$RANDOM
  31480. (umask 077 && mkdir "$tmp")
  31481. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  31482. ac_tmp=$tmp
  31483. # Set up the scripts for CONFIG_FILES section.
  31484. # No need to generate them if there are no CONFIG_FILES.
  31485. # This happens for instance with `./config.status config.h'.
  31486. if test -n "$CONFIG_FILES"; then
  31487. ac_cr=`echo X | tr X '\015'`
  31488. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  31489. # But we know of no other shell where ac_cr would be empty at this
  31490. # point, so we can use a bashism as a fallback.
  31491. if test "x$ac_cr" = x; then
  31492. eval ac_cr=\$\'\\r\'
  31493. fi
  31494. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  31495. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  31496. ac_cs_awk_cr='\\r'
  31497. else
  31498. ac_cs_awk_cr=$ac_cr
  31499. fi
  31500. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  31501. _ACEOF
  31502. {
  31503. echo "cat >conf$$subs.awk <<_ACEOF" &&
  31504. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  31505. echo "_ACEOF"
  31506. } >conf$$subs.sh ||
  31507. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  31508. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  31509. ac_delim='%!_!# '
  31510. for ac_last_try in false false false false false :; do
  31511. . ./conf$$subs.sh ||
  31512. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  31513. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  31514. if test $ac_delim_n = $ac_delim_num; then
  31515. break
  31516. elif $ac_last_try; then
  31517. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  31518. else
  31519. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  31520. fi
  31521. done
  31522. rm -f conf$$subs.sh
  31523. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31524. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  31525. _ACEOF
  31526. sed -n '
  31527. h
  31528. s/^/S["/; s/!.*/"]=/
  31529. p
  31530. g
  31531. s/^[^!]*!//
  31532. :repl
  31533. t repl
  31534. s/'"$ac_delim"'$//
  31535. t delim
  31536. :nl
  31537. h
  31538. s/\(.\{148\}\)..*/\1/
  31539. t more1
  31540. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  31541. p
  31542. n
  31543. b repl
  31544. :more1
  31545. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  31546. p
  31547. g
  31548. s/.\{148\}//
  31549. t nl
  31550. :delim
  31551. h
  31552. s/\(.\{148\}\)..*/\1/
  31553. t more2
  31554. s/["\\]/\\&/g; s/^/"/; s/$/"/
  31555. p
  31556. b
  31557. :more2
  31558. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  31559. p
  31560. g
  31561. s/.\{148\}//
  31562. t delim
  31563. ' <conf$$subs.awk | sed '
  31564. /^[^""]/{
  31565. N
  31566. s/\n//
  31567. }
  31568. ' >>$CONFIG_STATUS || ac_write_fail=1
  31569. rm -f conf$$subs.awk
  31570. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31571. _ACAWK
  31572. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  31573. for (key in S) S_is_set[key] = 1
  31574. FS = ""
  31575. }
  31576. {
  31577. line = $ 0
  31578. nfields = split(line, field, "@")
  31579. substed = 0
  31580. len = length(field[1])
  31581. for (i = 2; i < nfields; i++) {
  31582. key = field[i]
  31583. keylen = length(key)
  31584. if (S_is_set[key]) {
  31585. value = S[key]
  31586. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  31587. len += length(value) + length(field[++i])
  31588. substed = 1
  31589. } else
  31590. len += 1 + keylen
  31591. }
  31592. print line
  31593. }
  31594. _ACAWK
  31595. _ACEOF
  31596. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31597. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  31598. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  31599. else
  31600. cat
  31601. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  31602. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  31603. _ACEOF
  31604. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  31605. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  31606. # trailing colons and then remove the whole line if VPATH becomes empty
  31607. # (actually we leave an empty line to preserve line numbers).
  31608. if test "x$srcdir" = x.; then
  31609. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  31610. h
  31611. s///
  31612. s/^/:/
  31613. s/[ ]*$/:/
  31614. s/:\$(srcdir):/:/g
  31615. s/:\${srcdir}:/:/g
  31616. s/:@srcdir@:/:/g
  31617. s/^:*//
  31618. s/:*$//
  31619. x
  31620. s/\(=[ ]*\).*/\1/
  31621. G
  31622. s/\n//
  31623. s/^[^=]*=[ ]*$//
  31624. }'
  31625. fi
  31626. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31627. fi # test -n "$CONFIG_FILES"
  31628. # Set up the scripts for CONFIG_HEADERS section.
  31629. # No need to generate them if there are no CONFIG_HEADERS.
  31630. # This happens for instance with `./config.status Makefile'.
  31631. if test -n "$CONFIG_HEADERS"; then
  31632. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  31633. BEGIN {
  31634. _ACEOF
  31635. # Transform confdefs.h into an awk script `defines.awk', embedded as
  31636. # here-document in config.status, that substitutes the proper values into
  31637. # config.h.in to produce config.h.
  31638. # Create a delimiter string that does not exist in confdefs.h, to ease
  31639. # handling of long lines.
  31640. ac_delim='%!_!# '
  31641. for ac_last_try in false false :; do
  31642. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  31643. if test -z "$ac_tt"; then
  31644. break
  31645. elif $ac_last_try; then
  31646. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  31647. else
  31648. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  31649. fi
  31650. done
  31651. # For the awk script, D is an array of macro values keyed by name,
  31652. # likewise P contains macro parameters if any. Preserve backslash
  31653. # newline sequences.
  31654. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  31655. sed -n '
  31656. s/.\{148\}/&'"$ac_delim"'/g
  31657. t rset
  31658. :rset
  31659. s/^[ ]*#[ ]*define[ ][ ]*/ /
  31660. t def
  31661. d
  31662. :def
  31663. s/\\$//
  31664. t bsnl
  31665. s/["\\]/\\&/g
  31666. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  31667. D["\1"]=" \3"/p
  31668. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  31669. d
  31670. :bsnl
  31671. s/["\\]/\\&/g
  31672. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  31673. D["\1"]=" \3\\\\\\n"\\/p
  31674. t cont
  31675. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  31676. t cont
  31677. d
  31678. :cont
  31679. n
  31680. s/.\{148\}/&'"$ac_delim"'/g
  31681. t clear
  31682. :clear
  31683. s/\\$//
  31684. t bsnlc
  31685. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  31686. d
  31687. :bsnlc
  31688. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  31689. b cont
  31690. ' <confdefs.h | sed '
  31691. s/'"$ac_delim"'/"\\\
  31692. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  31693. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31694. for (key in D) D_is_set[key] = 1
  31695. FS = ""
  31696. }
  31697. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  31698. line = \$ 0
  31699. split(line, arg, " ")
  31700. if (arg[1] == "#") {
  31701. defundef = arg[2]
  31702. mac1 = arg[3]
  31703. } else {
  31704. defundef = substr(arg[1], 2)
  31705. mac1 = arg[2]
  31706. }
  31707. split(mac1, mac2, "(") #)
  31708. macro = mac2[1]
  31709. prefix = substr(line, 1, index(line, defundef) - 1)
  31710. if (D_is_set[macro]) {
  31711. # Preserve the white space surrounding the "#".
  31712. print prefix "define", macro P[macro] D[macro]
  31713. next
  31714. } else {
  31715. # Replace #undef with comments. This is necessary, for example,
  31716. # in the case of _POSIX_SOURCE, which is predefined and required
  31717. # on some systems where configure will not decide to define it.
  31718. if (defundef == "undef") {
  31719. print "/*", prefix defundef, macro, "*/"
  31720. next
  31721. }
  31722. }
  31723. }
  31724. { print }
  31725. _ACAWK
  31726. _ACEOF
  31727. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31728. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  31729. fi # test -n "$CONFIG_HEADERS"
  31730. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  31731. shift
  31732. for ac_tag
  31733. do
  31734. case $ac_tag in
  31735. :[FHLC]) ac_mode=$ac_tag; continue;;
  31736. esac
  31737. case $ac_mode$ac_tag in
  31738. :[FHL]*:*);;
  31739. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  31740. :[FH]-) ac_tag=-:-;;
  31741. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  31742. esac
  31743. ac_save_IFS=$IFS
  31744. IFS=:
  31745. set x $ac_tag
  31746. IFS=$ac_save_IFS
  31747. shift
  31748. ac_file=$1
  31749. shift
  31750. case $ac_mode in
  31751. :L) ac_source=$1;;
  31752. :[FH])
  31753. ac_file_inputs=
  31754. for ac_f
  31755. do
  31756. case $ac_f in
  31757. -) ac_f="$ac_tmp/stdin";;
  31758. *) # Look for the file first in the build tree, then in the source tree
  31759. # (if the path is not absolute). The absolute path cannot be DOS-style,
  31760. # because $ac_f cannot contain `:'.
  31761. test -f "$ac_f" ||
  31762. case $ac_f in
  31763. [\\/$]*) false;;
  31764. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  31765. esac ||
  31766. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  31767. esac
  31768. case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  31769. as_fn_append ac_file_inputs " '$ac_f'"
  31770. done
  31771. # Let's still pretend it is `configure' which instantiates (i.e., don't
  31772. # use $as_me), people would be surprised to read:
  31773. # /* config.h. Generated by config.status. */
  31774. configure_input='Generated from '`
  31775. printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  31776. `' by configure.'
  31777. if test x"$ac_file" != x-; then
  31778. configure_input="$ac_file. $configure_input"
  31779. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  31780. printf "%s\n" "$as_me: creating $ac_file" >&6;}
  31781. fi
  31782. # Neutralize special characters interpreted by sed in replacement strings.
  31783. case $configure_input in #(
  31784. *\&* | *\|* | *\\* )
  31785. ac_sed_conf_input=`printf "%s\n" "$configure_input" |
  31786. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  31787. *) ac_sed_conf_input=$configure_input;;
  31788. esac
  31789. case $ac_tag in
  31790. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  31791. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  31792. esac
  31793. ;;
  31794. esac
  31795. ac_dir=`$as_dirname -- "$ac_file" ||
  31796. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  31797. X"$ac_file" : 'X\(//\)[^/]' \| \
  31798. X"$ac_file" : 'X\(//\)$' \| \
  31799. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  31800. printf "%s\n" X"$ac_file" |
  31801. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  31802. s//\1/
  31803. q
  31804. }
  31805. /^X\(\/\/\)[^/].*/{
  31806. s//\1/
  31807. q
  31808. }
  31809. /^X\(\/\/\)$/{
  31810. s//\1/
  31811. q
  31812. }
  31813. /^X\(\/\).*/{
  31814. s//\1/
  31815. q
  31816. }
  31817. s/.*/./; q'`
  31818. as_dir="$ac_dir"; as_fn_mkdir_p
  31819. ac_builddir=.
  31820. case "$ac_dir" in
  31821. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  31822. *)
  31823. ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
  31824. # A ".." for each directory in $ac_dir_suffix.
  31825. ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  31826. case $ac_top_builddir_sub in
  31827. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  31828. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  31829. esac ;;
  31830. esac
  31831. ac_abs_top_builddir=$ac_pwd
  31832. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  31833. # for backward compatibility:
  31834. ac_top_builddir=$ac_top_build_prefix
  31835. case $srcdir in
  31836. .) # We are building in place.
  31837. ac_srcdir=.
  31838. ac_top_srcdir=$ac_top_builddir_sub
  31839. ac_abs_top_srcdir=$ac_pwd ;;
  31840. [\\/]* | ?:[\\/]* ) # Absolute name.
  31841. ac_srcdir=$srcdir$ac_dir_suffix;
  31842. ac_top_srcdir=$srcdir
  31843. ac_abs_top_srcdir=$srcdir ;;
  31844. *) # Relative name.
  31845. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  31846. ac_top_srcdir=$ac_top_build_prefix$srcdir
  31847. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  31848. esac
  31849. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  31850. case $ac_mode in
  31851. :F)
  31852. #
  31853. # CONFIG_FILE
  31854. #
  31855. case $INSTALL in
  31856. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  31857. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  31858. esac
  31859. _ACEOF
  31860. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31861. # If the template does not know about datarootdir, expand it.
  31862. # FIXME: This hack should be removed a few years after 2.60.
  31863. ac_datarootdir_hack=; ac_datarootdir_seen=
  31864. ac_sed_dataroot='
  31865. /datarootdir/ {
  31866. p
  31867. q
  31868. }
  31869. /@datadir@/p
  31870. /@docdir@/p
  31871. /@infodir@/p
  31872. /@localedir@/p
  31873. /@mandir@/p'
  31874. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  31875. *datarootdir*) ac_datarootdir_seen=yes;;
  31876. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  31877. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  31878. printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  31879. _ACEOF
  31880. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31881. ac_datarootdir_hack='
  31882. s&@datadir@&$datadir&g
  31883. s&@docdir@&$docdir&g
  31884. s&@infodir@&$infodir&g
  31885. s&@localedir@&$localedir&g
  31886. s&@mandir@&$mandir&g
  31887. s&\\\${datarootdir}&$datarootdir&g' ;;
  31888. esac
  31889. _ACEOF
  31890. # Neutralize VPATH when `$srcdir' = `.'.
  31891. # Shell code in configure.ac might set extrasub.
  31892. # FIXME: do we really want to maintain this feature?
  31893. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  31894. ac_sed_extra="$ac_vpsub
  31895. $extrasub
  31896. _ACEOF
  31897. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  31898. :t
  31899. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  31900. s|@configure_input@|$ac_sed_conf_input|;t t
  31901. s&@top_builddir@&$ac_top_builddir_sub&;t t
  31902. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  31903. s&@srcdir@&$ac_srcdir&;t t
  31904. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  31905. s&@top_srcdir@&$ac_top_srcdir&;t t
  31906. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  31907. s&@builddir@&$ac_builddir&;t t
  31908. s&@abs_builddir@&$ac_abs_builddir&;t t
  31909. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  31910. s&@INSTALL@&$ac_INSTALL&;t t
  31911. $ac_datarootdir_hack
  31912. "
  31913. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  31914. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  31915. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  31916. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  31917. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  31918. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  31919. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  31920. which seems to be undefined. Please make sure it is defined" >&5
  31921. printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  31922. which seems to be undefined. Please make sure it is defined" >&2;}
  31923. rm -f "$ac_tmp/stdin"
  31924. case $ac_file in
  31925. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  31926. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  31927. esac \
  31928. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  31929. ;;
  31930. :H)
  31931. #
  31932. # CONFIG_HEADER
  31933. #
  31934. if test x"$ac_file" != x-; then
  31935. {
  31936. printf "%s\n" "/* $configure_input */" >&1 \
  31937. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  31938. } >"$ac_tmp/config.h" \
  31939. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  31940. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  31941. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  31942. printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
  31943. else
  31944. rm -f "$ac_file"
  31945. mv "$ac_tmp/config.h" "$ac_file" \
  31946. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  31947. fi
  31948. else
  31949. printf "%s\n" "/* $configure_input */" >&1 \
  31950. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  31951. || as_fn_error $? "could not create -" "$LINENO" 5
  31952. fi
  31953. ;;
  31954. esac
  31955. done # for ac_tag
  31956. as_fn_exit 0
  31957. _ACEOF
  31958. ac_clean_files=$ac_clean_files_save
  31959. test $ac_write_fail = 0 ||
  31960. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  31961. # configure is writing to config.log, and then calls config.status.
  31962. # config.status does its own redirection, appending to config.log.
  31963. # Unfortunately, on DOS this fails, as config.log is still kept open
  31964. # by configure, so config.status won't be able to write to it; its
  31965. # output is simply discarded. So we exec the FD to /dev/null,
  31966. # effectively closing config.log, so it can be properly (re)opened and
  31967. # appended to by config.status. When coming back to configure, we
  31968. # need to make the FD available again.
  31969. if test "$no_create" != yes; then
  31970. ac_cs_success=:
  31971. ac_config_status_args=
  31972. test "$silent" = yes &&
  31973. ac_config_status_args="$ac_config_status_args --quiet"
  31974. exec 5>/dev/null
  31975. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  31976. exec 5>>config.log
  31977. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  31978. # would make configure fail if this is the last instruction.
  31979. $ac_cs_success || as_fn_exit 1
  31980. fi
  31981. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  31982. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  31983. printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  31984. fi
  31985. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
  31986. if test "${ac_cv_path_CMP}" = ":"; then
  31987. ( cd "`pwd`/menuselect" && ./configure )
  31988. elif ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
  31989. ( cd "`pwd`/menuselect" && ./configure )
  31990. fi
  31991. rm makeopts.acbak makeopts.acbak2
  31992. if test "x${silent}" != "xyes" ; then
  31993. echo
  31994. echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
  31995. echo " .\$7\$7.. .7\$\$7:. "
  31996. echo " .\$\$:. ,\$7.7 "
  31997. echo " .\$7. 7\$\$\$\$ .\$\$77 "
  31998. echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
  31999. echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
  32000. echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
  32001. echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
  32002. echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
  32003. echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
  32004. echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
  32005. echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
  32006. echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
  32007. echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
  32008. echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
  32009. echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
  32010. echo " \$\$\$\$\$ \$\$\$ "
  32011. echo " \$\$\$\$7. \$\$ (TM) "
  32012. echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
  32013. echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
  32014. echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
  32015. echo
  32016. fi
  32017. if test "x${AST_IODBC_FOUND}" = "xyes"; then
  32018. echo "WARNING: iodbc libs/headers found!"
  32019. echo
  32020. echo " If you plan to use ODBC functionality, you should consider"
  32021. echo " switching to unixodbc instead."
  32022. echo " See: https://issues.asterisk.org/jira/browse/ASTERISK-22459"
  32023. echo
  32024. fi
  32025. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Package configured for: " >&5
  32026. printf "%s\n" "$as_me: Package configured for: " >&6;}
  32027. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OS type : $host_os" >&5
  32028. printf "%s\n" "$as_me: OS type : $host_os" >&6;}
  32029. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Host CPU : $host_cpu" >&5
  32030. printf "%s\n" "$as_me: Host CPU : $host_cpu" >&6;}
  32031. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
  32032. printf "%s\n" "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
  32033. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
  32034. printf "%s\n" "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
  32035. if test "${cross_compiling}" = "yes"; then
  32036. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Cross Compilation = YES" >&5
  32037. printf "%s\n" "$as_me: Cross Compilation = YES" >&6;}
  32038. fi