configure 881 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650
  1. #! /bin/sh
  2. # From configure.ac Revision: 421230 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69 for asterisk trunk.
  5. #
  6. # Report bugs to <https://issues.asterisk.org>.
  7. #
  8. #
  9. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, 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. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22. emulate sh
  23. NULLCMD=:
  24. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  25. # is contrary to our usage. Disable this feature.
  26. alias -g '${1+"$@"}'='"$@"'
  27. setopt NO_GLOB_SUBST
  28. else
  29. case `(set -o) 2>/dev/null` in #(
  30. *posix*) :
  31. set -o posix ;; #(
  32. *) :
  33. ;;
  34. esac
  35. fi
  36. as_nl='
  37. '
  38. export as_nl
  39. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  40. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  43. # Prefer a ksh shell builtin over an external printf program on Solaris,
  44. # but without wasting forks for bash or zsh.
  45. if test -z "$BASH_VERSION$ZSH_VERSION" \
  46. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='print -r --'
  48. as_echo_n='print -rn --'
  49. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50. as_echo='printf %s\n'
  51. as_echo_n='printf %s'
  52. else
  53. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55. as_echo_n='/usr/ucb/echo -n'
  56. else
  57. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58. as_echo_n_body='eval
  59. arg=$1;
  60. case $arg in #(
  61. *"$as_nl"*)
  62. expr "X$arg" : "X\\(.*\\)$as_nl";
  63. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64. esac;
  65. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66. '
  67. export as_echo_n_body
  68. as_echo_n='sh -c $as_echo_n_body as_echo'
  69. fi
  70. export as_echo_body
  71. as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73. # The user is always right.
  74. if test "${PATH_SEPARATOR+set}" != set; then
  75. PATH_SEPARATOR=:
  76. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  77. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  78. PATH_SEPARATOR=';'
  79. }
  80. fi
  81. # IFS
  82. # We need space, tab and new line, in precisely that order. Quoting is
  83. # there to prevent editors from complaining about space-tab.
  84. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  85. # splitting by setting IFS to empty value.)
  86. IFS=" "" $as_nl"
  87. # Find who we are. Look in the path if we contain no directory separator.
  88. as_myself=
  89. case $0 in #((
  90. *[\\/]* ) as_myself=$0 ;;
  91. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  92. for as_dir in $PATH
  93. do
  94. IFS=$as_save_IFS
  95. test -z "$as_dir" && as_dir=.
  96. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  97. done
  98. IFS=$as_save_IFS
  99. ;;
  100. esac
  101. # We did not find ourselves, most probably we were run as `sh COMMAND'
  102. # in which case we are not to be found in the path.
  103. if test "x$as_myself" = x; then
  104. as_myself=$0
  105. fi
  106. if test ! -f "$as_myself"; then
  107. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  108. exit 1
  109. fi
  110. # Unset variables that we do not need and which cause bugs (e.g. in
  111. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  112. # suppresses any "Segmentation fault" message there. '((' could
  113. # trigger a bug in pdksh 5.2.14.
  114. for as_var in BASH_ENV ENV MAIL MAILPATH
  115. do eval test x\${$as_var+set} = xset \
  116. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  117. done
  118. PS1='$ '
  119. PS2='> '
  120. PS4='+ '
  121. # NLS nuisances.
  122. LC_ALL=C
  123. export LC_ALL
  124. LANGUAGE=C
  125. export LANGUAGE
  126. # CDPATH.
  127. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  128. # Use a proper internal environment variable to ensure we don't fall
  129. # into an infinite loop, continuously re-executing ourselves.
  130. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  131. _as_can_reexec=no; export _as_can_reexec;
  132. # We cannot yet assume a decent shell, so we have to provide a
  133. # neutralization value for shells without unset; and this also
  134. # works around shells that cannot unset nonexistent variables.
  135. # Preserve -v and -x to the replacement shell.
  136. BASH_ENV=/dev/null
  137. ENV=/dev/null
  138. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  139. case $- in # ((((
  140. *v*x* | *x*v* ) as_opts=-vx ;;
  141. *v* ) as_opts=-v ;;
  142. *x* ) as_opts=-x ;;
  143. * ) as_opts= ;;
  144. esac
  145. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  146. # Admittedly, this is quite paranoid, since all the known shells bail
  147. # out after a failed `exec'.
  148. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  149. as_fn_exit 255
  150. fi
  151. # We don't want this to propagate to other subprocesses.
  152. { _as_can_reexec=; unset _as_can_reexec;}
  153. if test "x$CONFIG_SHELL" = x; then
  154. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  155. emulate sh
  156. NULLCMD=:
  157. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  158. # is contrary to our usage. Disable this feature.
  159. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  160. setopt NO_GLOB_SUBST
  161. else
  162. case \`(set -o) 2>/dev/null\` in #(
  163. *posix*) :
  164. set -o posix ;; #(
  165. *) :
  166. ;;
  167. esac
  168. fi
  169. "
  170. as_required="as_fn_return () { (exit \$1); }
  171. as_fn_success () { as_fn_return 0; }
  172. as_fn_failure () { as_fn_return 1; }
  173. as_fn_ret_success () { return 0; }
  174. as_fn_ret_failure () { return 1; }
  175. exitcode=0
  176. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  177. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  178. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  179. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  180. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  181. else
  182. exitcode=1; echo positional parameters were not saved.
  183. fi
  184. test x\$exitcode = x0 || exit 1
  185. test -x / || exit 1"
  186. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  187. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  188. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  189. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  190. test \$(( 1 + 1 )) = 2 || exit 1"
  191. if (eval "$as_required") 2>/dev/null; then :
  192. as_have_required=yes
  193. else
  194. as_have_required=no
  195. fi
  196. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  197. else
  198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  199. as_found=false
  200. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  201. do
  202. IFS=$as_save_IFS
  203. test -z "$as_dir" && as_dir=.
  204. as_found=:
  205. case $as_dir in #(
  206. /*)
  207. for as_base in sh bash ksh sh5; do
  208. # Try only shells that exist, to save several forks.
  209. as_shell=$as_dir/$as_base
  210. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  211. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. CONFIG_SHELL=$as_shell as_have_required=yes
  213. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. break 2
  215. fi
  216. fi
  217. done;;
  218. esac
  219. as_found=false
  220. done
  221. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  222. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  223. CONFIG_SHELL=$SHELL as_have_required=yes
  224. fi; }
  225. IFS=$as_save_IFS
  226. if test "x$CONFIG_SHELL" != x; then :
  227. export CONFIG_SHELL
  228. # We cannot yet assume a decent shell, so we have to provide a
  229. # neutralization value for shells without unset; and this also
  230. # works around shells that cannot unset nonexistent variables.
  231. # Preserve -v and -x to the replacement shell.
  232. BASH_ENV=/dev/null
  233. ENV=/dev/null
  234. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  235. case $- in # ((((
  236. *v*x* | *x*v* ) as_opts=-vx ;;
  237. *v* ) as_opts=-v ;;
  238. *x* ) as_opts=-x ;;
  239. * ) as_opts= ;;
  240. esac
  241. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  242. # Admittedly, this is quite paranoid, since all the known shells bail
  243. # out after a failed `exec'.
  244. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  245. exit 255
  246. fi
  247. if test x$as_have_required = xno; then :
  248. $as_echo "$0: This script requires a shell more modern than all"
  249. $as_echo "$0: the shells that I found on your system."
  250. if test x${ZSH_VERSION+set} = xset ; then
  251. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  252. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  253. else
  254. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  255. $0: https://issues.asterisk.org about your system,
  256. $0: including any error possibly output before this
  257. $0: message. Then install a modern shell, or manually run
  258. $0: the script under such a shell if you do have one."
  259. fi
  260. exit 1
  261. fi
  262. fi
  263. fi
  264. SHELL=${CONFIG_SHELL-/bin/sh}
  265. export SHELL
  266. # Unset more variables known to interfere with behavior of common tools.
  267. CLICOLOR_FORCE= GREP_OPTIONS=
  268. unset CLICOLOR_FORCE GREP_OPTIONS
  269. ## --------------------- ##
  270. ## M4sh Shell Functions. ##
  271. ## --------------------- ##
  272. # as_fn_unset VAR
  273. # ---------------
  274. # Portably unset VAR.
  275. as_fn_unset ()
  276. {
  277. { eval $1=; unset $1;}
  278. }
  279. as_unset=as_fn_unset
  280. # as_fn_set_status STATUS
  281. # -----------------------
  282. # Set $? to STATUS, without forking.
  283. as_fn_set_status ()
  284. {
  285. return $1
  286. } # as_fn_set_status
  287. # as_fn_exit STATUS
  288. # -----------------
  289. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  290. as_fn_exit ()
  291. {
  292. set +e
  293. as_fn_set_status $1
  294. exit $1
  295. } # as_fn_exit
  296. # as_fn_mkdir_p
  297. # -------------
  298. # Create "$as_dir" as a directory, including parents if necessary.
  299. as_fn_mkdir_p ()
  300. {
  301. case $as_dir in #(
  302. -*) as_dir=./$as_dir;;
  303. esac
  304. test -d "$as_dir" || eval $as_mkdir_p || {
  305. as_dirs=
  306. while :; do
  307. case $as_dir in #(
  308. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  309. *) as_qdir=$as_dir;;
  310. esac
  311. as_dirs="'$as_qdir' $as_dirs"
  312. as_dir=`$as_dirname -- "$as_dir" ||
  313. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  314. X"$as_dir" : 'X\(//\)[^/]' \| \
  315. X"$as_dir" : 'X\(//\)$' \| \
  316. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  317. $as_echo X"$as_dir" |
  318. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  319. s//\1/
  320. q
  321. }
  322. /^X\(\/\/\)[^/].*/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)$/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\).*/{
  331. s//\1/
  332. q
  333. }
  334. s/.*/./; q'`
  335. test -d "$as_dir" && break
  336. done
  337. test -z "$as_dirs" || eval "mkdir $as_dirs"
  338. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  339. } # as_fn_mkdir_p
  340. # as_fn_executable_p FILE
  341. # -----------------------
  342. # Test if FILE is an executable regular file.
  343. as_fn_executable_p ()
  344. {
  345. test -f "$1" && test -x "$1"
  346. } # as_fn_executable_p
  347. # as_fn_append VAR VALUE
  348. # ----------------------
  349. # Append the text in VALUE to the end of the definition contained in VAR. Take
  350. # advantage of any shell optimizations that allow amortized linear growth over
  351. # repeated appends, instead of the typical quadratic growth present in naive
  352. # implementations.
  353. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  354. eval 'as_fn_append ()
  355. {
  356. eval $1+=\$2
  357. }'
  358. else
  359. as_fn_append ()
  360. {
  361. eval $1=\$$1\$2
  362. }
  363. fi # as_fn_append
  364. # as_fn_arith ARG...
  365. # ------------------
  366. # Perform arithmetic evaluation on the ARGs, and store the result in the
  367. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  368. # must be portable across $(()) and expr.
  369. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  370. eval 'as_fn_arith ()
  371. {
  372. as_val=$(( $* ))
  373. }'
  374. else
  375. as_fn_arith ()
  376. {
  377. as_val=`expr "$@" || test $? -eq 1`
  378. }
  379. fi # as_fn_arith
  380. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  381. # ----------------------------------------
  382. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  383. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  384. # script with STATUS, using 1 if that was 0.
  385. as_fn_error ()
  386. {
  387. as_status=$1; test $as_status -eq 0 && as_status=1
  388. if test "$4"; then
  389. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  390. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  391. fi
  392. $as_echo "$as_me: error: $2" >&2
  393. as_fn_exit $as_status
  394. } # as_fn_error
  395. if expr a : '\(a\)' >/dev/null 2>&1 &&
  396. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  397. as_expr=expr
  398. else
  399. as_expr=false
  400. fi
  401. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  402. as_basename=basename
  403. else
  404. as_basename=false
  405. fi
  406. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  407. as_dirname=dirname
  408. else
  409. as_dirname=false
  410. fi
  411. as_me=`$as_basename -- "$0" ||
  412. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  413. X"$0" : 'X\(//\)$' \| \
  414. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  415. $as_echo X/"$0" |
  416. sed '/^.*\/\([^/][^/]*\)\/*$/{
  417. s//\1/
  418. q
  419. }
  420. /^X\/\(\/\/\)$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\).*/{
  425. s//\1/
  426. q
  427. }
  428. s/.*/./; q'`
  429. # Avoid depending upon Character Ranges.
  430. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  431. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  432. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  433. as_cr_digits='0123456789'
  434. as_cr_alnum=$as_cr_Letters$as_cr_digits
  435. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  436. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  437. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  438. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  439. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  440. sed -n '
  441. p
  442. /[$]LINENO/=
  443. ' <$as_myself |
  444. sed '
  445. s/[$]LINENO.*/&-/
  446. t lineno
  447. b
  448. :lineno
  449. N
  450. :loop
  451. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  452. t loop
  453. s/-\n.*//
  454. ' >$as_me.lineno &&
  455. chmod +x "$as_me.lineno" ||
  456. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  457. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  458. # already done that, so ensure we don't try to do so again and fall
  459. # in an infinite loop. This has already happened in practice.
  460. _as_can_reexec=no; export _as_can_reexec
  461. # Don't try to exec as it changes $[0], causing all sort of problems
  462. # (the dirname of $[0] is not the place where we might find the
  463. # original and so on. Autoconf is especially sensitive to this).
  464. . "./$as_me.lineno"
  465. # Exit status is that of the last command.
  466. exit
  467. }
  468. ECHO_C= ECHO_N= ECHO_T=
  469. case `echo -n x` in #(((((
  470. -n*)
  471. case `echo 'xy\c'` in
  472. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  473. xy) ECHO_C='\c';;
  474. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  475. ECHO_T=' ';;
  476. esac;;
  477. *)
  478. ECHO_N='-n';;
  479. esac
  480. rm -f conf$$ conf$$.exe conf$$.file
  481. if test -d conf$$.dir; then
  482. rm -f conf$$.dir/conf$$.file
  483. else
  484. rm -f conf$$.dir
  485. mkdir conf$$.dir 2>/dev/null
  486. fi
  487. if (echo >conf$$.file) 2>/dev/null; then
  488. if ln -s conf$$.file conf$$ 2>/dev/null; then
  489. as_ln_s='ln -s'
  490. # ... but there are two gotchas:
  491. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  492. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  493. # In both cases, we have to default to `cp -pR'.
  494. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  495. as_ln_s='cp -pR'
  496. elif ln conf$$.file conf$$ 2>/dev/null; then
  497. as_ln_s=ln
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. else
  502. as_ln_s='cp -pR'
  503. fi
  504. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  505. rmdir conf$$.dir 2>/dev/null
  506. if mkdir -p . 2>/dev/null; then
  507. as_mkdir_p='mkdir -p "$as_dir"'
  508. else
  509. test -d ./-p && rmdir ./-p
  510. as_mkdir_p=false
  511. fi
  512. as_test_x='test -x'
  513. as_executable_p=as_fn_executable_p
  514. # Sed expression to map a string onto a valid CPP name.
  515. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  516. # Sed expression to map a string onto a valid variable name.
  517. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  518. test -n "$DJDIR" || exec 7<&0 </dev/null
  519. exec 6>&1
  520. # Name of the host.
  521. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  522. # so uname gets run too.
  523. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  524. #
  525. # Initializations.
  526. #
  527. ac_default_prefix=/usr/local
  528. ac_clean_files=
  529. ac_config_libobj_dir=.
  530. LIBOBJS=
  531. cross_compiling=no
  532. subdirs=
  533. MFLAGS=
  534. MAKEFLAGS=
  535. # Identity of this package.
  536. PACKAGE_NAME='asterisk'
  537. PACKAGE_TARNAME='asterisk'
  538. PACKAGE_VERSION='trunk'
  539. PACKAGE_STRING='asterisk trunk'
  540. PACKAGE_BUGREPORT='https://issues.asterisk.org'
  541. PACKAGE_URL=''
  542. ac_unique_file="main/asterisk.c"
  543. # Factoring default headers for most tests.
  544. ac_includes_default="\
  545. #include <stdio.h>
  546. #ifdef HAVE_SYS_TYPES_H
  547. # include <sys/types.h>
  548. #endif
  549. #ifdef HAVE_SYS_STAT_H
  550. # include <sys/stat.h>
  551. #endif
  552. #ifdef STDC_HEADERS
  553. # include <stdlib.h>
  554. # include <stddef.h>
  555. #else
  556. # ifdef HAVE_STDLIB_H
  557. # include <stdlib.h>
  558. # endif
  559. #endif
  560. #ifdef HAVE_STRING_H
  561. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  562. # include <memory.h>
  563. # endif
  564. # include <string.h>
  565. #endif
  566. #ifdef HAVE_STRINGS_H
  567. # include <strings.h>
  568. #endif
  569. #ifdef HAVE_INTTYPES_H
  570. # include <inttypes.h>
  571. #endif
  572. #ifdef HAVE_STDINT_H
  573. # include <stdint.h>
  574. #endif
  575. #ifdef HAVE_UNISTD_H
  576. # include <unistd.h>
  577. #endif"
  578. ac_header_list=
  579. ac_subst_vars='LTLIBOBJS
  580. PBX_SYSLOG
  581. PBX_SYSLOG_FACILITY_LOG_UUCP
  582. PBX_SYSLOG_FACILITY_LOG_SYSLOG
  583. PBX_SYSLOG_FACILITY_LOG_NEWS
  584. PBX_SYSLOG_FACILITY_LOG_MAIL
  585. PBX_SYSLOG_FACILITY_LOG_LPR
  586. PBX_SYSLOG_FACILITY_LOG_KERN
  587. PBX_SYSLOG_FACILITY_LOG_FTP
  588. PBX_SYSLOG_FACILITY_LOG_DAEMON
  589. PBX_SYSLOG_FACILITY_LOG_CRON
  590. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
  591. PBX_SYSLOG_FACILITY_LOG_AUTH
  592. PBX_GENERIC_ODBC
  593. GENERIC_ODBC_INCLUDE
  594. GENERIC_ODBC_LIB
  595. GTK2_LIBS
  596. GTK2_CFLAGS
  597. PBX_LAUNCHD
  598. CONFIG_SDL
  599. PBX_SO_NOSIGPIPE
  600. PBX_MSG_NOSIGNAL
  601. PBX_IXJUSER
  602. GMIME_LIBS
  603. GMIME_CFLAGS
  604. OPENH323_BUILD
  605. OPENH323_SUFFIX
  606. OPENH323_LIBDIR
  607. OPENH323_INCDIR
  608. OPENH323DIR
  609. PWLIB_PLATFORM
  610. PWLIB_LIBDIR
  611. PWLIB_INCDIR
  612. PWLIBDIR
  613. PTLIB_CONFIG
  614. PJPROJECT_LIBS
  615. PJPROJECT_CFLAGS
  616. PG_CONFIG
  617. CONFIG_NETSNMP
  618. CONFIG_NEON29
  619. CONFIG_NEON
  620. CONFIG_MYSQLCLIENT
  621. PBX_MISDN_FAC_ERROR
  622. PBX_MISDN_FAC_RESULT
  623. LIBEDIT_LIBS
  624. LIBEDIT_CFLAGS
  625. LIBEDIT_INTERNAL
  626. ILBC_LIBS
  627. ILBC_CFLAGS
  628. ILBC_INTERNAL
  629. GSM_INTERNAL
  630. PBX_DAHDI_HALF_FULL
  631. PKG_CONFIG_LIBDIR
  632. PKG_CONFIG_PATH
  633. PKG_CONFIG
  634. PBX_DLADDR
  635. PBX_IP_MTU_DISCOVER
  636. PBX_RTLD_NOLOAD
  637. PBX_GLOB_BRACE
  638. PBX_GLOB_NOMAGIC
  639. AST_RPATH
  640. AST_NESTED_FUNCTIONS
  641. AST_NATIVE_ARCH
  642. AST_SHADOW_WARNINGS
  643. AST_NO_STRICT_OVERFLOW
  644. AST_FORTIFY_SOURCE
  645. AST_TRAMPOLINES
  646. AST_DECLARATION_AFTER_STATEMENT
  647. GC_LDFLAGS
  648. GC_CFLAGS
  649. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
  650. PBX_PTHREAD_RWLOCK_INITIALIZER
  651. AST_ASTERISKSSL
  652. HAS_POLL
  653. PBX_DYNAMIC_LIST
  654. POW_LIB
  655. PBX_WORKING_FORK
  656. LIBOBJS
  657. CONFIG_LIBXML2
  658. UUID_LIB
  659. UUID_INCLUDE
  660. EDITLINE_LIB
  661. ALLOCA
  662. PBX_ZLIB
  663. ZLIB_DIR
  664. ZLIB_INCLUDE
  665. ZLIB_LIB
  666. PBX_X11
  667. X11_DIR
  668. X11_INCLUDE
  669. X11_LIB
  670. PBX_VPB
  671. VPB_DIR
  672. VPB_INCLUDE
  673. VPB_LIB
  674. PBX_VORBIS
  675. VORBIS_DIR
  676. VORBIS_INCLUDE
  677. VORBIS_LIB
  678. PBX_UNIXODBC
  679. UNIXODBC_DIR
  680. UNIXODBC_INCLUDE
  681. UNIXODBC_LIB
  682. PBX_TONEZONE
  683. TONEZONE_DIR
  684. TONEZONE_INCLUDE
  685. TONEZONE_LIB
  686. PBX_TINFO
  687. TINFO_DIR
  688. TINFO_INCLUDE
  689. TINFO_LIB
  690. PBX_TIMERFD
  691. TIMERFD_DIR
  692. TIMERFD_INCLUDE
  693. TIMERFD_LIB
  694. PBX_TERMCAP
  695. TERMCAP_DIR
  696. TERMCAP_INCLUDE
  697. TERMCAP_LIB
  698. PBX_FREETDS
  699. FREETDS_DIR
  700. FREETDS_INCLUDE
  701. FREETDS_LIB
  702. PBX_SUPPSERV
  703. SUPPSERV_DIR
  704. SUPPSERV_INCLUDE
  705. SUPPSERV_LIB
  706. PBX_OPENSSL
  707. OPENSSL_DIR
  708. OPENSSL_INCLUDE
  709. OPENSSL_LIB
  710. PBX_SRTP_SHUTDOWN
  711. SRTP_SHUTDOWN_DIR
  712. SRTP_SHUTDOWN_INCLUDE
  713. SRTP_SHUTDOWN_LIB
  714. PBX_SRTP
  715. SRTP_DIR
  716. SRTP_INCLUDE
  717. SRTP_LIB
  718. PBX_SQLITE3
  719. SQLITE3_DIR
  720. SQLITE3_INCLUDE
  721. SQLITE3_LIB
  722. PBX_SQLITE
  723. SQLITE_DIR
  724. SQLITE_INCLUDE
  725. SQLITE_LIB
  726. PBX_SPEEXDSP
  727. SPEEXDSP_DIR
  728. SPEEXDSP_INCLUDE
  729. SPEEXDSP_LIB
  730. PBX_SPEEX_PREPROCESS
  731. SPEEX_PREPROCESS_DIR
  732. SPEEX_PREPROCESS_INCLUDE
  733. SPEEX_PREPROCESS_LIB
  734. PBX_SPEEX
  735. SPEEX_DIR
  736. SPEEX_INCLUDE
  737. SPEEX_LIB
  738. PBX_SS7
  739. SS7_DIR
  740. SS7_INCLUDE
  741. SS7_LIB
  742. PBX_SPANDSP
  743. SPANDSP_DIR
  744. SPANDSP_INCLUDE
  745. SPANDSP_LIB
  746. SOUNDS_CACHE_DIR
  747. PBX_SDL_IMAGE
  748. SDL_IMAGE_DIR
  749. SDL_IMAGE_INCLUDE
  750. SDL_IMAGE_LIB
  751. PBX_SDL
  752. SDL_DIR
  753. SDL_INCLUDE
  754. SDL_LIB
  755. PBX_RESAMPLE
  756. RESAMPLE_DIR
  757. RESAMPLE_INCLUDE
  758. RESAMPLE_LIB
  759. PBX_RADIUS
  760. RADIUS_DIR
  761. RADIUS_INCLUDE
  762. RADIUS_LIB
  763. PBX_PWLIB
  764. PWLIB_DIR
  765. PWLIB_INCLUDE
  766. PWLIB_LIB
  767. PBX_PRI_REVERSE_CHARGE
  768. PRI_REVERSE_CHARGE_DIR
  769. PRI_REVERSE_CHARGE_INCLUDE
  770. PRI_REVERSE_CHARGE_LIB
  771. PBX_PRI_SERVICE_MESSAGES
  772. PRI_SERVICE_MESSAGES_DIR
  773. PRI_SERVICE_MESSAGES_INCLUDE
  774. PRI_SERVICE_MESSAGES_LIB
  775. PBX_PRI_PROG_W_CAUSE
  776. PRI_PROG_W_CAUSE_DIR
  777. PRI_PROG_W_CAUSE_INCLUDE
  778. PRI_PROG_W_CAUSE_LIB
  779. PBX_PRI_INBANDDISCONNECT
  780. PRI_INBANDDISCONNECT_DIR
  781. PRI_INBANDDISCONNECT_INCLUDE
  782. PRI_INBANDDISCONNECT_LIB
  783. PBX_PRI_SETUP_KEYPAD
  784. PRI_SETUP_KEYPAD_DIR
  785. PRI_SETUP_KEYPAD_INCLUDE
  786. PRI_SETUP_KEYPAD_LIB
  787. PBX_PRI_CALL_REROUTING
  788. PRI_CALL_REROUTING_DIR
  789. PRI_CALL_REROUTING_INCLUDE
  790. PRI_CALL_REROUTING_LIB
  791. PBX_PRI_CALL_HOLD
  792. PRI_CALL_HOLD_DIR
  793. PRI_CALL_HOLD_INCLUDE
  794. PRI_CALL_HOLD_LIB
  795. PBX_PRI_SUBADDR
  796. PRI_SUBADDR_DIR
  797. PRI_SUBADDR_INCLUDE
  798. PRI_SUBADDR_LIB
  799. PBX_PRI_HANGUP_FIX
  800. PRI_HANGUP_FIX_DIR
  801. PRI_HANGUP_FIX_INCLUDE
  802. PRI_HANGUP_FIX_LIB
  803. PBX_PRI_CCSS
  804. PRI_CCSS_DIR
  805. PRI_CCSS_INCLUDE
  806. PRI_CCSS_LIB
  807. PBX_PRI_TRANSFER
  808. PRI_TRANSFER_DIR
  809. PRI_TRANSFER_INCLUDE
  810. PRI_TRANSFER_LIB
  811. PBX_PRI_AOC_EVENTS
  812. PRI_AOC_EVENTS_DIR
  813. PRI_AOC_EVENTS_INCLUDE
  814. PRI_AOC_EVENTS_LIB
  815. PBX_PRI_CALL_WAITING
  816. PRI_CALL_WAITING_DIR
  817. PRI_CALL_WAITING_INCLUDE
  818. PRI_CALL_WAITING_LIB
  819. PBX_PRI_MCID
  820. PRI_MCID_DIR
  821. PRI_MCID_INCLUDE
  822. PRI_MCID_LIB
  823. PBX_PRI_MWI
  824. PRI_MWI_DIR
  825. PRI_MWI_INCLUDE
  826. PRI_MWI_LIB
  827. PBX_PRI_DISPLAY_TEXT
  828. PRI_DISPLAY_TEXT_DIR
  829. PRI_DISPLAY_TEXT_INCLUDE
  830. PRI_DISPLAY_TEXT_LIB
  831. PBX_PRI_MWI_V2
  832. PRI_MWI_V2_DIR
  833. PRI_MWI_V2_INCLUDE
  834. PRI_MWI_V2_LIB
  835. PBX_PRI_DATETIME_SEND
  836. PRI_DATETIME_SEND_DIR
  837. PRI_DATETIME_SEND_INCLUDE
  838. PRI_DATETIME_SEND_LIB
  839. PBX_PRI_L2_PERSISTENCE
  840. PRI_L2_PERSISTENCE_DIR
  841. PRI_L2_PERSISTENCE_INCLUDE
  842. PRI_L2_PERSISTENCE_LIB
  843. PBX_PRI_SETUP_ACK_INBAND
  844. PRI_SETUP_ACK_INBAND_DIR
  845. PRI_SETUP_ACK_INBAND_INCLUDE
  846. PRI_SETUP_ACK_INBAND_LIB
  847. PBX_PRI
  848. PRI_DIR
  849. PRI_INCLUDE
  850. PRI_LIB
  851. PBX_PORTAUDIO
  852. PORTAUDIO_DIR
  853. PORTAUDIO_INCLUDE
  854. PORTAUDIO_LIB
  855. PBX_PJSIP_REPLACE_MEDIA_STREAM
  856. PJSIP_REPLACE_MEDIA_STREAM_DIR
  857. PJSIP_REPLACE_MEDIA_STREAM_INCLUDE
  858. PJSIP_REPLACE_MEDIA_STREAM_LIB
  859. PBX_PJ_TRANSACTION_GRP_LOCK
  860. PJ_TRANSACTION_GRP_LOCK_DIR
  861. PJ_TRANSACTION_GRP_LOCK_INCLUDE
  862. PJ_TRANSACTION_GRP_LOCK_LIB
  863. PBX_POPT
  864. POPT_DIR
  865. POPT_INCLUDE
  866. POPT_LIB
  867. PBX_PJPROJECT
  868. PJPROJECT_DIR
  869. PJPROJECT_INCLUDE
  870. PJPROJECT_LIB
  871. PBX_PGSQL
  872. PGSQL_DIR
  873. PGSQL_INCLUDE
  874. PGSQL_LIB
  875. PBX_OSS
  876. OSS_DIR
  877. OSS_INCLUDE
  878. OSS_LIB
  879. PBX_OSPTK
  880. OSPTK_DIR
  881. OSPTK_INCLUDE
  882. OSPTK_LIB
  883. PBX_OPENR2
  884. OPENR2_DIR
  885. OPENR2_INCLUDE
  886. OPENR2_LIB
  887. PBX_OGG
  888. OGG_DIR
  889. OGG_INCLUDE
  890. OGG_LIB
  891. PBX_NEWT
  892. NEWT_DIR
  893. NEWT_INCLUDE
  894. NEWT_LIB
  895. PBX_NETSNMP
  896. NETSNMP_DIR
  897. NETSNMP_INCLUDE
  898. NETSNMP_LIB
  899. PBX_NEON29
  900. NEON29_DIR
  901. NEON29_INCLUDE
  902. NEON29_LIB
  903. PBX_NEON
  904. NEON_DIR
  905. NEON_INCLUDE
  906. NEON_LIB
  907. PBX_NCURSES
  908. NCURSES_DIR
  909. NCURSES_INCLUDE
  910. NCURSES_LIB
  911. PBX_NBS
  912. NBS_DIR
  913. NBS_INCLUDE
  914. NBS_LIB
  915. PBX_MYSQLCLIENT
  916. MYSQLCLIENT_DIR
  917. MYSQLCLIENT_INCLUDE
  918. MYSQLCLIENT_LIB
  919. PBX_MISDN
  920. MISDN_DIR
  921. MISDN_INCLUDE
  922. MISDN_LIB
  923. PBX_LUA
  924. LUA_DIR
  925. LUA_INCLUDE
  926. LUA_LIB
  927. PBX_LTDL
  928. LTDL_DIR
  929. LTDL_INCLUDE
  930. LTDL_LIB
  931. PBX_LIBXSLT_CLEANUP
  932. LIBXSLT_CLEANUP_DIR
  933. LIBXSLT_CLEANUP_INCLUDE
  934. LIBXSLT_CLEANUP_LIB
  935. PBX_LIBXSLT
  936. LIBXSLT_DIR
  937. LIBXSLT_INCLUDE
  938. LIBXSLT_LIB
  939. PBX_LIBXML2
  940. LIBXML2_DIR
  941. LIBXML2_INCLUDE
  942. LIBXML2_LIB
  943. PBX_LIBEDIT
  944. LIBEDIT_DIR
  945. LIBEDIT_INCLUDE
  946. LIBEDIT_LIB
  947. CURL_LIB
  948. CURL_INCLUDE
  949. _libcurl_config
  950. PBX_CURL
  951. PBX_LDAP
  952. LDAP_DIR
  953. LDAP_INCLUDE
  954. LDAP_LIB
  955. PBX_KQUEUE
  956. KQUEUE_DIR
  957. KQUEUE_INCLUDE
  958. KQUEUE_LIB
  959. PBX_URIPARSER
  960. URIPARSER_DIR
  961. URIPARSER_INCLUDE
  962. URIPARSER_LIB
  963. PBX_JANSSON
  964. JANSSON_DIR
  965. JANSSON_INCLUDE
  966. JANSSON_LIB
  967. PBX_JACK
  968. JACK_DIR
  969. JACK_INCLUDE
  970. JACK_LIB
  971. PBX_ISDNNET
  972. ISDNNET_DIR
  973. ISDNNET_INCLUDE
  974. ISDNNET_LIB
  975. PBX_IODBC
  976. IODBC_DIR
  977. IODBC_INCLUDE
  978. IODBC_LIB
  979. PBX_INOTIFY
  980. INOTIFY_DIR
  981. INOTIFY_INCLUDE
  982. INOTIFY_LIB
  983. PBX_IMAP_TK
  984. IMAP_TK_DIR
  985. IMAP_TK_INCLUDE
  986. IMAP_TK_LIB
  987. PBX_IKSEMEL
  988. IKSEMEL_DIR
  989. IKSEMEL_INCLUDE
  990. IKSEMEL_LIB
  991. PBX_ICONV
  992. ICONV_DIR
  993. ICONV_INCLUDE
  994. ICONV_LIB
  995. PBX_ICAL
  996. ICAL_DIR
  997. ICAL_INCLUDE
  998. ICAL_LIB
  999. PBX_HOARD
  1000. HOARD_DIR
  1001. HOARD_INCLUDE
  1002. HOARD_LIB
  1003. PBX_OPENH323
  1004. OPENH323_DIR
  1005. OPENH323_INCLUDE
  1006. OPENH323_LIB
  1007. PBX_GMIME
  1008. GMIME_DIR
  1009. GMIME_INCLUDE
  1010. GMIME_LIB
  1011. PBX_GTK2
  1012. GTK2_DIR
  1013. GTK2_INCLUDE
  1014. GTK2_LIB
  1015. PBX_ILBC
  1016. ILBC_DIR
  1017. ILBC_INCLUDE
  1018. ILBC_LIB
  1019. PBX_GSM
  1020. GSM_DIR
  1021. GSM_INCLUDE
  1022. GSM_LIB
  1023. PBX_FFMPEG
  1024. FFMPEG_DIR
  1025. FFMPEG_INCLUDE
  1026. FFMPEG_LIB
  1027. PBX_DAHDI
  1028. DAHDI_DIR
  1029. DAHDI_INCLUDE
  1030. DAHDI_LIB
  1031. PBX_OPENSSL_EC
  1032. OPENSSL_EC_DIR
  1033. OPENSSL_EC_INCLUDE
  1034. OPENSSL_EC_LIB
  1035. PBX_OPENSSL_SRTP
  1036. OPENSSL_SRTP_DIR
  1037. OPENSSL_SRTP_INCLUDE
  1038. OPENSSL_SRTP_LIB
  1039. PBX_CRYPTO
  1040. CRYPTO_DIR
  1041. CRYPTO_INCLUDE
  1042. CRYPTO_LIB
  1043. PBX_CRYPT
  1044. CRYPT_DIR
  1045. CRYPT_INCLUDE
  1046. CRYPT_LIB
  1047. PBX_CURSES
  1048. CURSES_DIR
  1049. CURSES_INCLUDE
  1050. CURSES_LIB
  1051. PBX_COROSYNC_CFG_STATE_TRACK
  1052. COROSYNC_CFG_STATE_TRACK_DIR
  1053. COROSYNC_CFG_STATE_TRACK_INCLUDE
  1054. COROSYNC_CFG_STATE_TRACK_LIB
  1055. PBX_COROSYNC
  1056. COROSYNC_DIR
  1057. COROSYNC_INCLUDE
  1058. COROSYNC_LIB
  1059. PBX_CAP
  1060. CAP_DIR
  1061. CAP_INCLUDE
  1062. CAP_LIB
  1063. PBX_BLUETOOTH
  1064. BLUETOOTH_DIR
  1065. BLUETOOTH_INCLUDE
  1066. BLUETOOTH_LIB
  1067. PBX_BKTR
  1068. BKTR_DIR
  1069. BKTR_INCLUDE
  1070. BKTR_LIB
  1071. PBX_BFD
  1072. BFD_DIR
  1073. BFD_INCLUDE
  1074. BFD_LIB
  1075. PBX_ALSA
  1076. ALSA_DIR
  1077. ALSA_INCLUDE
  1078. ALSA_LIB
  1079. AST_CODE_COVERAGE
  1080. AST_DEVMODE_STRICT
  1081. AST_DEVMODE
  1082. NOISY_BUILD
  1083. PTHREAD_CFLAGS
  1084. PTHREAD_LIBS
  1085. PTHREAD_CC
  1086. acx_pthread_config
  1087. MD5
  1088. SOXMIX
  1089. PBX_FLEX
  1090. PBX_BISON
  1091. OPENSSL
  1092. SHA1SUM
  1093. LDCONFIG
  1094. DOWNLOAD
  1095. FETCH
  1096. GIT
  1097. XMLSTARLET
  1098. XMLLINT
  1099. KPATHSEA
  1100. CATDVI
  1101. RUBBER
  1102. CURL
  1103. WGET
  1104. DOT
  1105. DOXYGEN
  1106. LN
  1107. DIRNAME
  1108. BASENAME
  1109. COMPRESS
  1110. FIND
  1111. PYTHON
  1112. FLEX
  1113. CMP
  1114. BISON
  1115. GNU_LD
  1116. ac_ct_AR
  1117. AR
  1118. ac_ct_STRIP
  1119. STRIP
  1120. GNU_MAKE
  1121. LN_S
  1122. INSTALL_DATA
  1123. INSTALL_SCRIPT
  1124. INSTALL_PROGRAM
  1125. AWK
  1126. SED
  1127. CXXCPP
  1128. ac_ct_CXX
  1129. CXXFLAGS
  1130. RANLIB
  1131. LD
  1132. CXX
  1133. PBX_OSREV
  1134. UNAME
  1135. CONFIG_SIGNED_CHAR
  1136. PBX_WINARCH
  1137. OSARCH
  1138. HOST_OS
  1139. HOST_VENDOR
  1140. HOST_CPU
  1141. HOST_PLATFORM
  1142. BUILD_OS
  1143. BUILD_VENDOR
  1144. BUILD_CPU
  1145. BUILD_PLATFORM
  1146. astvarrundir
  1147. astlogdir
  1148. astspooldir
  1149. astkeydir
  1150. astdbdir
  1151. astdatadir
  1152. astvarlibdir
  1153. astmandir
  1154. astmoddir
  1155. astlibdir
  1156. astheaderdir
  1157. astetcdir
  1158. astsbindir
  1159. EGREP
  1160. GREP
  1161. CPP
  1162. OBJEXT
  1163. EXEEXT
  1164. ac_ct_CC
  1165. CPPFLAGS
  1166. LDFLAGS
  1167. CFLAGS
  1168. CC
  1169. CONFIG_LDFLAGS
  1170. CONFIG_CFLAGS
  1171. host_os
  1172. host_vendor
  1173. host_cpu
  1174. host
  1175. build_os
  1176. build_vendor
  1177. build_cpu
  1178. build
  1179. target_alias
  1180. host_alias
  1181. build_alias
  1182. LIBS
  1183. ECHO_T
  1184. ECHO_N
  1185. ECHO_C
  1186. DEFS
  1187. mandir
  1188. localedir
  1189. libdir
  1190. psdir
  1191. pdfdir
  1192. dvidir
  1193. htmldir
  1194. infodir
  1195. docdir
  1196. oldincludedir
  1197. includedir
  1198. localstatedir
  1199. sharedstatedir
  1200. sysconfdir
  1201. datadir
  1202. datarootdir
  1203. libexecdir
  1204. sbindir
  1205. bindir
  1206. program_transform_name
  1207. prefix
  1208. exec_prefix
  1209. PACKAGE_URL
  1210. PACKAGE_BUGREPORT
  1211. PACKAGE_STRING
  1212. PACKAGE_VERSION
  1213. PACKAGE_TARNAME
  1214. PACKAGE_NAME
  1215. PATH_SEPARATOR
  1216. SHELL'
  1217. ac_subst_files=''
  1218. ac_user_opts='
  1219. enable_option_checking
  1220. with_gnu_ld
  1221. enable_dev_mode
  1222. enable_coverage
  1223. with_asound
  1224. with_bfd
  1225. with_execinfo
  1226. with_bluetooth
  1227. with_cap
  1228. with_cpg
  1229. with_curses
  1230. with_crypt
  1231. with_crypto
  1232. with_dahdi
  1233. with_avcodec
  1234. with_gsm
  1235. with_ilbc
  1236. with_gtk2
  1237. with_gmime
  1238. with_h323
  1239. with_hoard
  1240. with_ical
  1241. with_iconv
  1242. with_iksemel
  1243. with_imap
  1244. with_inotify
  1245. with_iodbc
  1246. with_isdnnet
  1247. with_jack
  1248. with_jansson
  1249. with_uriparser
  1250. with_kqueue
  1251. with_ldap
  1252. with_libcurl
  1253. with_libedit
  1254. with_libxml2
  1255. with_libxslt
  1256. with_ltdl
  1257. with_lua
  1258. with_misdn
  1259. with_mysqlclient
  1260. with_nbs
  1261. with_ncurses
  1262. with_neon
  1263. with_neon29
  1264. with_netsnmp
  1265. with_newt
  1266. with_ogg
  1267. with_openr2
  1268. with_osptk
  1269. with_oss
  1270. with_postgres
  1271. with_pjproject
  1272. with_popt
  1273. with_portaudio
  1274. with_pri
  1275. with_pwlib
  1276. with_radius
  1277. with_resample
  1278. with_sdl
  1279. with_SDL_image
  1280. with_sounds_cache
  1281. with_spandsp
  1282. with_ss7
  1283. with_speex
  1284. with_speexdsp
  1285. with_sqlite
  1286. with_sqlite3
  1287. with_srtp
  1288. with_ssl
  1289. with_suppserv
  1290. with_tds
  1291. with_termcap
  1292. with_timerfd
  1293. with_tinfo
  1294. with_tonezone
  1295. with_unixodbc
  1296. with_vorbis
  1297. with_vpb
  1298. with_x11
  1299. with_z
  1300. enable_xmldoc
  1301. enable_largefile
  1302. enable_internal_poll
  1303. enable_asteriskssl
  1304. enable_rpath
  1305. '
  1306. ac_precious_vars='build_alias
  1307. host_alias
  1308. target_alias
  1309. CC
  1310. CFLAGS
  1311. LDFLAGS
  1312. LIBS
  1313. CPPFLAGS
  1314. CPP
  1315. CXX
  1316. CXXFLAGS
  1317. CCC
  1318. CXXCPP
  1319. PKG_CONFIG
  1320. PKG_CONFIG_PATH
  1321. PKG_CONFIG_LIBDIR
  1322. ILBC_CFLAGS
  1323. ILBC_LIBS
  1324. LIBEDIT_CFLAGS
  1325. LIBEDIT_LIBS
  1326. PJPROJECT_CFLAGS
  1327. PJPROJECT_LIBS
  1328. GMIME_CFLAGS
  1329. GMIME_LIBS
  1330. GTK2_CFLAGS
  1331. GTK2_LIBS'
  1332. # Initialize some variables set by options.
  1333. ac_init_help=
  1334. ac_init_version=false
  1335. ac_unrecognized_opts=
  1336. ac_unrecognized_sep=
  1337. # The variables have the same names as the options, with
  1338. # dashes changed to underlines.
  1339. cache_file=/dev/null
  1340. exec_prefix=NONE
  1341. no_create=
  1342. no_recursion=
  1343. prefix=NONE
  1344. program_prefix=NONE
  1345. program_suffix=NONE
  1346. program_transform_name=s,x,x,
  1347. silent=
  1348. site=
  1349. srcdir=
  1350. verbose=
  1351. x_includes=NONE
  1352. x_libraries=NONE
  1353. # Installation directory options.
  1354. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1355. # and all the variables that are supposed to be based on exec_prefix
  1356. # by default will actually change.
  1357. # Use braces instead of parens because sh, perl, etc. also accept them.
  1358. # (The list follows the same order as the GNU Coding Standards.)
  1359. bindir='${exec_prefix}/bin'
  1360. sbindir='${exec_prefix}/sbin'
  1361. libexecdir='${exec_prefix}/libexec'
  1362. datarootdir='${prefix}/share'
  1363. datadir='${datarootdir}'
  1364. sysconfdir='${prefix}/etc'
  1365. sharedstatedir='${prefix}/com'
  1366. localstatedir='${prefix}/var'
  1367. includedir='${prefix}/include'
  1368. oldincludedir='/usr/include'
  1369. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1370. infodir='${datarootdir}/info'
  1371. htmldir='${docdir}'
  1372. dvidir='${docdir}'
  1373. pdfdir='${docdir}'
  1374. psdir='${docdir}'
  1375. libdir='${exec_prefix}/lib'
  1376. localedir='${datarootdir}/locale'
  1377. mandir='${datarootdir}/man'
  1378. ac_prev=
  1379. ac_dashdash=
  1380. for ac_option
  1381. do
  1382. # If the previous option needs an argument, assign it.
  1383. if test -n "$ac_prev"; then
  1384. eval $ac_prev=\$ac_option
  1385. ac_prev=
  1386. continue
  1387. fi
  1388. case $ac_option in
  1389. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1390. *=) ac_optarg= ;;
  1391. *) ac_optarg=yes ;;
  1392. esac
  1393. # Accept the important Cygnus configure options, so we can diagnose typos.
  1394. case $ac_dashdash$ac_option in
  1395. --)
  1396. ac_dashdash=yes ;;
  1397. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1398. ac_prev=bindir ;;
  1399. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1400. bindir=$ac_optarg ;;
  1401. -build | --build | --buil | --bui | --bu)
  1402. ac_prev=build_alias ;;
  1403. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1404. build_alias=$ac_optarg ;;
  1405. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1406. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1407. ac_prev=cache_file ;;
  1408. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1409. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1410. cache_file=$ac_optarg ;;
  1411. --config-cache | -C)
  1412. cache_file=config.cache ;;
  1413. -datadir | --datadir | --datadi | --datad)
  1414. ac_prev=datadir ;;
  1415. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1416. datadir=$ac_optarg ;;
  1417. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1418. | --dataroo | --dataro | --datar)
  1419. ac_prev=datarootdir ;;
  1420. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1421. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1422. datarootdir=$ac_optarg ;;
  1423. -disable-* | --disable-*)
  1424. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1425. # Reject names that are not valid shell variable names.
  1426. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1427. as_fn_error $? "invalid feature name: $ac_useropt"
  1428. ac_useropt_orig=$ac_useropt
  1429. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1430. case $ac_user_opts in
  1431. *"
  1432. "enable_$ac_useropt"
  1433. "*) ;;
  1434. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1435. ac_unrecognized_sep=', ';;
  1436. esac
  1437. eval enable_$ac_useropt=no ;;
  1438. -docdir | --docdir | --docdi | --doc | --do)
  1439. ac_prev=docdir ;;
  1440. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1441. docdir=$ac_optarg ;;
  1442. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1443. ac_prev=dvidir ;;
  1444. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1445. dvidir=$ac_optarg ;;
  1446. -enable-* | --enable-*)
  1447. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1448. # Reject names that are not valid shell variable names.
  1449. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1450. as_fn_error $? "invalid feature name: $ac_useropt"
  1451. ac_useropt_orig=$ac_useropt
  1452. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1453. case $ac_user_opts in
  1454. *"
  1455. "enable_$ac_useropt"
  1456. "*) ;;
  1457. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1458. ac_unrecognized_sep=', ';;
  1459. esac
  1460. eval enable_$ac_useropt=\$ac_optarg ;;
  1461. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1462. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1463. | --exec | --exe | --ex)
  1464. ac_prev=exec_prefix ;;
  1465. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1466. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1467. | --exec=* | --exe=* | --ex=*)
  1468. exec_prefix=$ac_optarg ;;
  1469. -gas | --gas | --ga | --g)
  1470. # Obsolete; use --with-gas.
  1471. with_gas=yes ;;
  1472. -help | --help | --hel | --he | -h)
  1473. ac_init_help=long ;;
  1474. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1475. ac_init_help=recursive ;;
  1476. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1477. ac_init_help=short ;;
  1478. -host | --host | --hos | --ho)
  1479. ac_prev=host_alias ;;
  1480. -host=* | --host=* | --hos=* | --ho=*)
  1481. host_alias=$ac_optarg ;;
  1482. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1483. ac_prev=htmldir ;;
  1484. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1485. | --ht=*)
  1486. htmldir=$ac_optarg ;;
  1487. -includedir | --includedir | --includedi | --included | --include \
  1488. | --includ | --inclu | --incl | --inc)
  1489. ac_prev=includedir ;;
  1490. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1491. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1492. includedir=$ac_optarg ;;
  1493. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1494. ac_prev=infodir ;;
  1495. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1496. infodir=$ac_optarg ;;
  1497. -libdir | --libdir | --libdi | --libd)
  1498. ac_prev=libdir ;;
  1499. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1500. libdir=$ac_optarg ;;
  1501. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1502. | --libexe | --libex | --libe)
  1503. ac_prev=libexecdir ;;
  1504. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1505. | --libexe=* | --libex=* | --libe=*)
  1506. libexecdir=$ac_optarg ;;
  1507. -localedir | --localedir | --localedi | --localed | --locale)
  1508. ac_prev=localedir ;;
  1509. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1510. localedir=$ac_optarg ;;
  1511. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1512. | --localstate | --localstat | --localsta | --localst | --locals)
  1513. ac_prev=localstatedir ;;
  1514. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1515. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1516. localstatedir=$ac_optarg ;;
  1517. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1518. ac_prev=mandir ;;
  1519. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1520. mandir=$ac_optarg ;;
  1521. -nfp | --nfp | --nf)
  1522. # Obsolete; use --without-fp.
  1523. with_fp=no ;;
  1524. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1525. | --no-cr | --no-c | -n)
  1526. no_create=yes ;;
  1527. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1528. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1529. no_recursion=yes ;;
  1530. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1531. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1532. | --oldin | --oldi | --old | --ol | --o)
  1533. ac_prev=oldincludedir ;;
  1534. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1535. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1536. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1537. oldincludedir=$ac_optarg ;;
  1538. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1539. ac_prev=prefix ;;
  1540. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1541. prefix=$ac_optarg ;;
  1542. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1543. | --program-pre | --program-pr | --program-p)
  1544. ac_prev=program_prefix ;;
  1545. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1546. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1547. program_prefix=$ac_optarg ;;
  1548. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1549. | --program-suf | --program-su | --program-s)
  1550. ac_prev=program_suffix ;;
  1551. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1552. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1553. program_suffix=$ac_optarg ;;
  1554. -program-transform-name | --program-transform-name \
  1555. | --program-transform-nam | --program-transform-na \
  1556. | --program-transform-n | --program-transform- \
  1557. | --program-transform | --program-transfor \
  1558. | --program-transfo | --program-transf \
  1559. | --program-trans | --program-tran \
  1560. | --progr-tra | --program-tr | --program-t)
  1561. ac_prev=program_transform_name ;;
  1562. -program-transform-name=* | --program-transform-name=* \
  1563. | --program-transform-nam=* | --program-transform-na=* \
  1564. | --program-transform-n=* | --program-transform-=* \
  1565. | --program-transform=* | --program-transfor=* \
  1566. | --program-transfo=* | --program-transf=* \
  1567. | --program-trans=* | --program-tran=* \
  1568. | --progr-tra=* | --program-tr=* | --program-t=*)
  1569. program_transform_name=$ac_optarg ;;
  1570. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1571. ac_prev=pdfdir ;;
  1572. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1573. pdfdir=$ac_optarg ;;
  1574. -psdir | --psdir | --psdi | --psd | --ps)
  1575. ac_prev=psdir ;;
  1576. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1577. psdir=$ac_optarg ;;
  1578. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1579. | -silent | --silent | --silen | --sile | --sil)
  1580. silent=yes ;;
  1581. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1582. ac_prev=sbindir ;;
  1583. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1584. | --sbi=* | --sb=*)
  1585. sbindir=$ac_optarg ;;
  1586. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1587. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1588. | --sharedst | --shareds | --shared | --share | --shar \
  1589. | --sha | --sh)
  1590. ac_prev=sharedstatedir ;;
  1591. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1592. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1593. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1594. | --sha=* | --sh=*)
  1595. sharedstatedir=$ac_optarg ;;
  1596. -site | --site | --sit)
  1597. ac_prev=site ;;
  1598. -site=* | --site=* | --sit=*)
  1599. site=$ac_optarg ;;
  1600. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1601. ac_prev=srcdir ;;
  1602. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1603. srcdir=$ac_optarg ;;
  1604. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1605. | --syscon | --sysco | --sysc | --sys | --sy)
  1606. ac_prev=sysconfdir ;;
  1607. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1608. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1609. sysconfdir=$ac_optarg ;;
  1610. -target | --target | --targe | --targ | --tar | --ta | --t)
  1611. ac_prev=target_alias ;;
  1612. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1613. target_alias=$ac_optarg ;;
  1614. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1615. verbose=yes ;;
  1616. -version | --version | --versio | --versi | --vers | -V)
  1617. ac_init_version=: ;;
  1618. -with-* | --with-*)
  1619. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1620. # Reject names that are not valid shell variable names.
  1621. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1622. as_fn_error $? "invalid package name: $ac_useropt"
  1623. ac_useropt_orig=$ac_useropt
  1624. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1625. case $ac_user_opts in
  1626. *"
  1627. "with_$ac_useropt"
  1628. "*) ;;
  1629. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1630. ac_unrecognized_sep=', ';;
  1631. esac
  1632. eval with_$ac_useropt=\$ac_optarg ;;
  1633. -without-* | --without-*)
  1634. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1635. # Reject names that are not valid shell variable names.
  1636. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1637. as_fn_error $? "invalid package name: $ac_useropt"
  1638. ac_useropt_orig=$ac_useropt
  1639. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1640. case $ac_user_opts in
  1641. *"
  1642. "with_$ac_useropt"
  1643. "*) ;;
  1644. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1645. ac_unrecognized_sep=', ';;
  1646. esac
  1647. eval with_$ac_useropt=no ;;
  1648. --x)
  1649. # Obsolete; use --with-x.
  1650. with_x=yes ;;
  1651. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1652. | --x-incl | --x-inc | --x-in | --x-i)
  1653. ac_prev=x_includes ;;
  1654. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1655. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1656. x_includes=$ac_optarg ;;
  1657. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1658. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1659. ac_prev=x_libraries ;;
  1660. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1661. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1662. x_libraries=$ac_optarg ;;
  1663. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1664. Try \`$0 --help' for more information"
  1665. ;;
  1666. *=*)
  1667. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1668. # Reject names that are not valid shell variable names.
  1669. case $ac_envvar in #(
  1670. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1671. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1672. esac
  1673. eval $ac_envvar=\$ac_optarg
  1674. export $ac_envvar ;;
  1675. *)
  1676. # FIXME: should be removed in autoconf 3.0.
  1677. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1678. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1679. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1680. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1681. ;;
  1682. esac
  1683. done
  1684. if test -n "$ac_prev"; then
  1685. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1686. as_fn_error $? "missing argument to $ac_option"
  1687. fi
  1688. if test -n "$ac_unrecognized_opts"; then
  1689. case $enable_option_checking in
  1690. no) ;;
  1691. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1692. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1693. esac
  1694. fi
  1695. # Check all directory arguments for consistency.
  1696. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1697. datadir sysconfdir sharedstatedir localstatedir includedir \
  1698. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1699. libdir localedir mandir
  1700. do
  1701. eval ac_val=\$$ac_var
  1702. # Remove trailing slashes.
  1703. case $ac_val in
  1704. */ )
  1705. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1706. eval $ac_var=\$ac_val;;
  1707. esac
  1708. # Be sure to have absolute directory names.
  1709. case $ac_val in
  1710. [\\/$]* | ?:[\\/]* ) continue;;
  1711. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1712. esac
  1713. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1714. done
  1715. # There might be people who depend on the old broken behavior: `$host'
  1716. # used to hold the argument of --host etc.
  1717. # FIXME: To remove some day.
  1718. build=$build_alias
  1719. host=$host_alias
  1720. target=$target_alias
  1721. # FIXME: To remove some day.
  1722. if test "x$host_alias" != x; then
  1723. if test "x$build_alias" = x; then
  1724. cross_compiling=maybe
  1725. elif test "x$build_alias" != "x$host_alias"; then
  1726. cross_compiling=yes
  1727. fi
  1728. fi
  1729. ac_tool_prefix=
  1730. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1731. test "$silent" = yes && exec 6>/dev/null
  1732. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1733. ac_ls_di=`ls -di .` &&
  1734. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1735. as_fn_error $? "working directory cannot be determined"
  1736. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1737. as_fn_error $? "pwd does not report name of working directory"
  1738. # Find the source files, if location was not specified.
  1739. if test -z "$srcdir"; then
  1740. ac_srcdir_defaulted=yes
  1741. # Try the directory containing this script, then the parent directory.
  1742. ac_confdir=`$as_dirname -- "$as_myself" ||
  1743. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1744. X"$as_myself" : 'X\(//\)[^/]' \| \
  1745. X"$as_myself" : 'X\(//\)$' \| \
  1746. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1747. $as_echo X"$as_myself" |
  1748. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1749. s//\1/
  1750. q
  1751. }
  1752. /^X\(\/\/\)[^/].*/{
  1753. s//\1/
  1754. q
  1755. }
  1756. /^X\(\/\/\)$/{
  1757. s//\1/
  1758. q
  1759. }
  1760. /^X\(\/\).*/{
  1761. s//\1/
  1762. q
  1763. }
  1764. s/.*/./; q'`
  1765. srcdir=$ac_confdir
  1766. if test ! -r "$srcdir/$ac_unique_file"; then
  1767. srcdir=..
  1768. fi
  1769. else
  1770. ac_srcdir_defaulted=no
  1771. fi
  1772. if test ! -r "$srcdir/$ac_unique_file"; then
  1773. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1774. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1775. fi
  1776. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1777. ac_abs_confdir=`(
  1778. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1779. pwd)`
  1780. # When building in place, set srcdir=.
  1781. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1782. srcdir=.
  1783. fi
  1784. # Remove unnecessary trailing slashes from srcdir.
  1785. # Double slashes in file names in object file debugging info
  1786. # mess up M-x gdb in Emacs.
  1787. case $srcdir in
  1788. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1789. esac
  1790. for ac_var in $ac_precious_vars; do
  1791. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1792. eval ac_env_${ac_var}_value=\$${ac_var}
  1793. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1794. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1795. done
  1796. #
  1797. # Report the --help message.
  1798. #
  1799. if test "$ac_init_help" = "long"; then
  1800. # Omit some internal or obsolete options to make the list less imposing.
  1801. # This message is too long to be a string in the A/UX 3.1 sh.
  1802. cat <<_ACEOF
  1803. \`configure' configures asterisk trunk to adapt to many kinds of systems.
  1804. Usage: $0 [OPTION]... [VAR=VALUE]...
  1805. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1806. VAR=VALUE. See below for descriptions of some of the useful variables.
  1807. Defaults for the options are specified in brackets.
  1808. Configuration:
  1809. -h, --help display this help and exit
  1810. --help=short display options specific to this package
  1811. --help=recursive display the short help of all the included packages
  1812. -V, --version display version information and exit
  1813. -q, --quiet, --silent do not print \`checking ...' messages
  1814. --cache-file=FILE cache test results in FILE [disabled]
  1815. -C, --config-cache alias for \`--cache-file=config.cache'
  1816. -n, --no-create do not create output files
  1817. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1818. Installation directories:
  1819. --prefix=PREFIX install architecture-independent files in PREFIX
  1820. [$ac_default_prefix]
  1821. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1822. [PREFIX]
  1823. By default, \`make install' will install all the files in
  1824. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1825. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1826. for instance \`--prefix=\$HOME'.
  1827. For better control, use the options below.
  1828. Fine tuning of the installation directories:
  1829. --bindir=DIR user executables [EPREFIX/bin]
  1830. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1831. --libexecdir=DIR program executables [EPREFIX/libexec]
  1832. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1833. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1834. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1835. --libdir=DIR object code libraries [EPREFIX/lib]
  1836. --includedir=DIR C header files [PREFIX/include]
  1837. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1838. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1839. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1840. --infodir=DIR info documentation [DATAROOTDIR/info]
  1841. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1842. --mandir=DIR man documentation [DATAROOTDIR/man]
  1843. --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
  1844. --htmldir=DIR html documentation [DOCDIR]
  1845. --dvidir=DIR dvi documentation [DOCDIR]
  1846. --pdfdir=DIR pdf documentation [DOCDIR]
  1847. --psdir=DIR ps documentation [DOCDIR]
  1848. _ACEOF
  1849. cat <<\_ACEOF
  1850. System types:
  1851. --build=BUILD configure for building on BUILD [guessed]
  1852. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1853. _ACEOF
  1854. fi
  1855. if test -n "$ac_init_help"; then
  1856. case $ac_init_help in
  1857. short | recursive ) echo "Configuration of asterisk trunk:";;
  1858. esac
  1859. cat <<\_ACEOF
  1860. Optional Features:
  1861. --disable-option-checking ignore unrecognized --enable/--with options
  1862. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1863. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1864. --enable-dev-mode Turn on developer mode
  1865. --enable-coverage Turn on code coverage tracking (for gcov)
  1866. --disable-xmldoc Explicitly disable XML documentation
  1867. --disable-largefile omit support for large files
  1868. --enable-internal-poll Use Asterisk's poll implementation
  1869. --disable-asteriskssl Disable Asterisk's SSL wrapper library
  1870. --disable-rpath Disables rpath linker option checking
  1871. Optional Packages:
  1872. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1873. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1874. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1875. --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
  1876. --with-bfd=PATH use Debug symbol decoding files in PATH
  1877. --with-execinfo=PATH use Stack Backtrace files in PATH
  1878. --with-bluetooth=PATH use Bluetooth files in PATH
  1879. --with-cap=PATH use POSIX 1.e capabilities files in PATH
  1880. --with-cpg=PATH use Corosync files in PATH
  1881. --with-curses=PATH use curses files in PATH
  1882. --with-crypt=PATH use password and data encryption files in PATH
  1883. --with-crypto=PATH use OpenSSL Cryptography files in PATH
  1884. --with-dahdi=PATH use DAHDI files in PATH
  1885. --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
  1886. --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
  1887. otherwise
  1888. --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
  1889. otherwise
  1890. --with-gtk2=PATH use gtk2 files in PATH
  1891. --with-gmime=PATH use GMime files in PATH
  1892. --with-h323=PATH use OpenH323 files in PATH
  1893. --with-hoard=PATH use Hoard Memory Allocator files in PATH
  1894. --with-ical=PATH use iCal files in PATH
  1895. --with-iconv=PATH use Iconv files in PATH
  1896. --with-iksemel=PATH use Iksemel Jabber files in PATH
  1897. --with-imap=PATH use UW IMAP Toolkit files in PATH
  1898. --with-inotify=PATH use inotify support files in PATH
  1899. --with-iodbc=PATH use iODBC files in PATH
  1900. --with-isdnnet=PATH use ISDN4Linux files in PATH
  1901. --with-jack=PATH use Jack Audio Connection Kit files in PATH
  1902. --with-jansson=PATH use Jansson JSON library files in PATH
  1903. --with-uriparser=PATH use uriparser library files in PATH
  1904. --with-kqueue=PATH use kqueue support files in PATH
  1905. --with-ldap=PATH use OpenLDAP files in PATH
  1906. --with-libcurl=DIR look for the curl library in DIR
  1907. --with-libedit=PATH use NetBSD Editline library files in PATH, use
  1908. 'internal' Editline otherwise
  1909. --with-libxml2=PATH use LibXML2 files in PATH
  1910. --with-libxslt=PATH use LibXSLT files in PATH
  1911. --with-ltdl=PATH use libtool files in PATH
  1912. --with-lua=PATH use Lua files in PATH
  1913. --with-misdn=PATH use mISDN user files in PATH
  1914. --with-mysqlclient=PATH use MySQL client files in PATH
  1915. --with-nbs=PATH use Network Broadcast Sound files in PATH
  1916. --with-ncurses=PATH use ncurses files in PATH
  1917. --with-neon=PATH use neon files in PATH
  1918. --with-neon29=PATH use neon29 files in PATH
  1919. --with-netsnmp=PATH use Net-SNMP files in PATH
  1920. --with-newt=PATH use newt files in PATH
  1921. --with-ogg=PATH use OGG files in PATH
  1922. --with-openr2=PATH use MFR2 files in PATH
  1923. --with-osptk=PATH use OSP Toolkit files in PATH
  1924. --with-oss=PATH use Open Sound System files in PATH
  1925. --with-postgres=PATH use PostgreSQL files in PATH
  1926. --with-pjproject=PATH use PJPROJECT files in PATH
  1927. --with-popt=PATH use popt files in PATH
  1928. --with-portaudio=PATH use PortAudio files in PATH
  1929. --with-pri=PATH use ISDN PRI files in PATH
  1930. --with-pwlib=PATH use PWlib files in PATH
  1931. --with-radius=PATH use Radius Client files in PATH
  1932. --with-resample=PATH use LIBRESAMPLE files in PATH
  1933. --with-sdl=PATH use Sdl files in PATH
  1934. --with-SDL_image=PATH use Sdl Image files in PATH
  1935. --with-sounds-cache=PATH
  1936. use cached sound tarfiles in PATH
  1937. --with-spandsp=PATH use SPANDSP files in PATH
  1938. --with-ss7=PATH use ISDN SS7 files in PATH
  1939. --with-speex=PATH use Speex files in PATH
  1940. --with-speex=PATH use Speex preprocess routines files in PATH
  1941. --with-speexdsp=PATH use SpeexDSP files in PATH
  1942. --with-sqlite=PATH use SQLite files in PATH
  1943. --with-sqlite3=PATH use SQLite files in PATH
  1944. --with-srtp=PATH use Secure RTP files in PATH
  1945. --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
  1946. --with-suppserv=PATH use mISDN Supplemental Services files in PATH
  1947. --with-tds=PATH use FreeTDS files in PATH
  1948. --with-termcap=PATH use Termcap files in PATH
  1949. --with-timerfd=PATH use timerfd files in PATH
  1950. --with-tinfo=PATH use Term Info files in PATH
  1951. --with-tonezone=PATH use tonezone files in PATH
  1952. --with-unixodbc=PATH use unixODBC files in PATH
  1953. --with-vorbis=PATH use Vorbis files in PATH
  1954. --with-vpb=PATH use Voicetronix API files in PATH
  1955. --with-x11=PATH use X11 files in PATH
  1956. --with-z=PATH use zlib compression files in PATH
  1957. Some influential environment variables:
  1958. CC C compiler command
  1959. CFLAGS C compiler flags
  1960. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1961. nonstandard directory <lib dir>
  1962. LIBS libraries to pass to the linker, e.g. -l<library>
  1963. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1964. you have headers in a nonstandard directory <include dir>
  1965. CPP C preprocessor
  1966. CXX C++ compiler command
  1967. CXXFLAGS C++ compiler flags
  1968. CXXCPP C++ preprocessor
  1969. PKG_CONFIG path to pkg-config utility
  1970. PKG_CONFIG_PATH
  1971. directories to add to pkg-config's search path
  1972. PKG_CONFIG_LIBDIR
  1973. path overriding pkg-config's built-in search path
  1974. ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
  1975. ILBC_LIBS linker flags for ILBC, overriding pkg-config
  1976. LIBEDIT_CFLAGS
  1977. C compiler flags for LIBEDIT, overriding pkg-config
  1978. LIBEDIT_LIBS
  1979. linker flags for LIBEDIT, overriding pkg-config
  1980. PJPROJECT_CFLAGS
  1981. C compiler flags for PJPROJECT, overriding pkg-config
  1982. PJPROJECT_LIBS
  1983. linker flags for PJPROJECT, overriding pkg-config
  1984. GMIME_CFLAGS
  1985. C compiler flags for GMIME, overriding pkg-config
  1986. GMIME_LIBS linker flags for GMIME, overriding pkg-config
  1987. GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
  1988. GTK2_LIBS linker flags for GTK2, overriding pkg-config
  1989. Use these variables to override the choices made by `configure' or to help
  1990. it to find libraries and programs with nonstandard names/locations.
  1991. Report bugs to <https://issues.asterisk.org>.
  1992. _ACEOF
  1993. ac_status=$?
  1994. fi
  1995. if test "$ac_init_help" = "recursive"; then
  1996. # If there are subdirs, report their specific --help.
  1997. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1998. test -d "$ac_dir" ||
  1999. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  2000. continue
  2001. ac_builddir=.
  2002. case "$ac_dir" in
  2003. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2004. *)
  2005. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  2006. # A ".." for each directory in $ac_dir_suffix.
  2007. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2008. case $ac_top_builddir_sub in
  2009. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2010. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2011. esac ;;
  2012. esac
  2013. ac_abs_top_builddir=$ac_pwd
  2014. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2015. # for backward compatibility:
  2016. ac_top_builddir=$ac_top_build_prefix
  2017. case $srcdir in
  2018. .) # We are building in place.
  2019. ac_srcdir=.
  2020. ac_top_srcdir=$ac_top_builddir_sub
  2021. ac_abs_top_srcdir=$ac_pwd ;;
  2022. [\\/]* | ?:[\\/]* ) # Absolute name.
  2023. ac_srcdir=$srcdir$ac_dir_suffix;
  2024. ac_top_srcdir=$srcdir
  2025. ac_abs_top_srcdir=$srcdir ;;
  2026. *) # Relative name.
  2027. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2028. ac_top_srcdir=$ac_top_build_prefix$srcdir
  2029. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2030. esac
  2031. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2032. cd "$ac_dir" || { ac_status=$?; continue; }
  2033. # Check for guested configure.
  2034. if test -f "$ac_srcdir/configure.gnu"; then
  2035. echo &&
  2036. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  2037. elif test -f "$ac_srcdir/configure"; then
  2038. echo &&
  2039. $SHELL "$ac_srcdir/configure" --help=recursive
  2040. else
  2041. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2042. fi || ac_status=$?
  2043. cd "$ac_pwd" || { ac_status=$?; break; }
  2044. done
  2045. fi
  2046. test -n "$ac_init_help" && exit $ac_status
  2047. if $ac_init_version; then
  2048. cat <<\_ACEOF
  2049. asterisk configure trunk
  2050. generated by GNU Autoconf 2.69
  2051. Copyright (C) 2012 Free Software Foundation, Inc.
  2052. This configure script is free software; the Free Software Foundation
  2053. gives unlimited permission to copy, distribute and modify it.
  2054. "Asterisk"
  2055. _ACEOF
  2056. exit
  2057. fi
  2058. ## ------------------------ ##
  2059. ## Autoconf initialization. ##
  2060. ## ------------------------ ##
  2061. # ac_fn_c_try_compile LINENO
  2062. # --------------------------
  2063. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2064. ac_fn_c_try_compile ()
  2065. {
  2066. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2067. rm -f conftest.$ac_objext
  2068. if { { ac_try="$ac_compile"
  2069. case "(($ac_try" in
  2070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2071. *) ac_try_echo=$ac_try;;
  2072. esac
  2073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2074. $as_echo "$ac_try_echo"; } >&5
  2075. (eval "$ac_compile") 2>conftest.err
  2076. ac_status=$?
  2077. if test -s conftest.err; then
  2078. grep -v '^ *+' conftest.err >conftest.er1
  2079. cat conftest.er1 >&5
  2080. mv -f conftest.er1 conftest.err
  2081. fi
  2082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2083. test $ac_status = 0; } && {
  2084. test -z "$ac_c_werror_flag" ||
  2085. test ! -s conftest.err
  2086. } && test -s conftest.$ac_objext; then :
  2087. ac_retval=0
  2088. else
  2089. $as_echo "$as_me: failed program was:" >&5
  2090. sed 's/^/| /' conftest.$ac_ext >&5
  2091. ac_retval=1
  2092. fi
  2093. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2094. as_fn_set_status $ac_retval
  2095. } # ac_fn_c_try_compile
  2096. # ac_fn_c_try_cpp LINENO
  2097. # ----------------------
  2098. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2099. ac_fn_c_try_cpp ()
  2100. {
  2101. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2102. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2103. case "(($ac_try" in
  2104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2105. *) ac_try_echo=$ac_try;;
  2106. esac
  2107. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2108. $as_echo "$ac_try_echo"; } >&5
  2109. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2110. ac_status=$?
  2111. if test -s conftest.err; then
  2112. grep -v '^ *+' conftest.err >conftest.er1
  2113. cat conftest.er1 >&5
  2114. mv -f conftest.er1 conftest.err
  2115. fi
  2116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2117. test $ac_status = 0; } > conftest.i && {
  2118. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2119. test ! -s conftest.err
  2120. }; then :
  2121. ac_retval=0
  2122. else
  2123. $as_echo "$as_me: failed program was:" >&5
  2124. sed 's/^/| /' conftest.$ac_ext >&5
  2125. ac_retval=1
  2126. fi
  2127. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2128. as_fn_set_status $ac_retval
  2129. } # ac_fn_c_try_cpp
  2130. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2131. # -------------------------------------------------------
  2132. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2133. # the include files in INCLUDES and setting the cache variable VAR
  2134. # accordingly.
  2135. ac_fn_c_check_header_mongrel ()
  2136. {
  2137. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2138. if eval \${$3+:} false; then :
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2140. $as_echo_n "checking for $2... " >&6; }
  2141. if eval \${$3+:} false; then :
  2142. $as_echo_n "(cached) " >&6
  2143. fi
  2144. eval ac_res=\$$3
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2146. $as_echo "$ac_res" >&6; }
  2147. else
  2148. # Is the header compilable?
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2150. $as_echo_n "checking $2 usability... " >&6; }
  2151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2152. /* end confdefs.h. */
  2153. $4
  2154. #include <$2>
  2155. _ACEOF
  2156. if ac_fn_c_try_compile "$LINENO"; then :
  2157. ac_header_compiler=yes
  2158. else
  2159. ac_header_compiler=no
  2160. fi
  2161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2163. $as_echo "$ac_header_compiler" >&6; }
  2164. # Is the header present?
  2165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2166. $as_echo_n "checking $2 presence... " >&6; }
  2167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2168. /* end confdefs.h. */
  2169. #include <$2>
  2170. _ACEOF
  2171. if ac_fn_c_try_cpp "$LINENO"; then :
  2172. ac_header_preproc=yes
  2173. else
  2174. ac_header_preproc=no
  2175. fi
  2176. rm -f conftest.err conftest.i conftest.$ac_ext
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2178. $as_echo "$ac_header_preproc" >&6; }
  2179. # So? What about this header?
  2180. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2181. yes:no: )
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2183. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2185. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2186. ;;
  2187. no:yes:* )
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2189. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2191. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2193. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2194. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2195. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2197. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2198. ( $as_echo "## ------------------------------------------ ##
  2199. ## Report this to https://issues.asterisk.org ##
  2200. ## ------------------------------------------ ##"
  2201. ) | sed "s/^/$as_me: WARNING: /" >&2
  2202. ;;
  2203. esac
  2204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2205. $as_echo_n "checking for $2... " >&6; }
  2206. if eval \${$3+:} false; then :
  2207. $as_echo_n "(cached) " >&6
  2208. else
  2209. eval "$3=\$ac_header_compiler"
  2210. fi
  2211. eval ac_res=\$$3
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2213. $as_echo "$ac_res" >&6; }
  2214. fi
  2215. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2216. } # ac_fn_c_check_header_mongrel
  2217. # ac_fn_c_try_run LINENO
  2218. # ----------------------
  2219. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2220. # that executables *can* be run.
  2221. ac_fn_c_try_run ()
  2222. {
  2223. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2224. if { { ac_try="$ac_link"
  2225. case "(($ac_try" in
  2226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2227. *) ac_try_echo=$ac_try;;
  2228. esac
  2229. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2230. $as_echo "$ac_try_echo"; } >&5
  2231. (eval "$ac_link") 2>&5
  2232. ac_status=$?
  2233. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2234. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2235. { { case "(($ac_try" in
  2236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2237. *) ac_try_echo=$ac_try;;
  2238. esac
  2239. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2240. $as_echo "$ac_try_echo"; } >&5
  2241. (eval "$ac_try") 2>&5
  2242. ac_status=$?
  2243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2244. test $ac_status = 0; }; }; then :
  2245. ac_retval=0
  2246. else
  2247. $as_echo "$as_me: program exited with status $ac_status" >&5
  2248. $as_echo "$as_me: failed program was:" >&5
  2249. sed 's/^/| /' conftest.$ac_ext >&5
  2250. ac_retval=$ac_status
  2251. fi
  2252. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2253. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2254. as_fn_set_status $ac_retval
  2255. } # ac_fn_c_try_run
  2256. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2257. # -------------------------------------------------------
  2258. # Tests whether HEADER exists and can be compiled using the include files in
  2259. # INCLUDES, setting the cache variable VAR accordingly.
  2260. ac_fn_c_check_header_compile ()
  2261. {
  2262. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2264. $as_echo_n "checking for $2... " >&6; }
  2265. if eval \${$3+:} false; then :
  2266. $as_echo_n "(cached) " >&6
  2267. else
  2268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2269. /* end confdefs.h. */
  2270. $4
  2271. #include <$2>
  2272. _ACEOF
  2273. if ac_fn_c_try_compile "$LINENO"; then :
  2274. eval "$3=yes"
  2275. else
  2276. eval "$3=no"
  2277. fi
  2278. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2279. fi
  2280. eval ac_res=\$$3
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2282. $as_echo "$ac_res" >&6; }
  2283. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2284. } # ac_fn_c_check_header_compile
  2285. # ac_fn_cxx_try_compile LINENO
  2286. # ----------------------------
  2287. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2288. ac_fn_cxx_try_compile ()
  2289. {
  2290. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2291. rm -f conftest.$ac_objext
  2292. if { { ac_try="$ac_compile"
  2293. case "(($ac_try" in
  2294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2295. *) ac_try_echo=$ac_try;;
  2296. esac
  2297. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2298. $as_echo "$ac_try_echo"; } >&5
  2299. (eval "$ac_compile") 2>conftest.err
  2300. ac_status=$?
  2301. if test -s conftest.err; then
  2302. grep -v '^ *+' conftest.err >conftest.er1
  2303. cat conftest.er1 >&5
  2304. mv -f conftest.er1 conftest.err
  2305. fi
  2306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2307. test $ac_status = 0; } && {
  2308. test -z "$ac_cxx_werror_flag" ||
  2309. test ! -s conftest.err
  2310. } && test -s conftest.$ac_objext; then :
  2311. ac_retval=0
  2312. else
  2313. $as_echo "$as_me: failed program was:" >&5
  2314. sed 's/^/| /' conftest.$ac_ext >&5
  2315. ac_retval=1
  2316. fi
  2317. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2318. as_fn_set_status $ac_retval
  2319. } # ac_fn_cxx_try_compile
  2320. # ac_fn_cxx_try_cpp LINENO
  2321. # ------------------------
  2322. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2323. ac_fn_cxx_try_cpp ()
  2324. {
  2325. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2326. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2327. case "(($ac_try" in
  2328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2329. *) ac_try_echo=$ac_try;;
  2330. esac
  2331. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2332. $as_echo "$ac_try_echo"; } >&5
  2333. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2334. ac_status=$?
  2335. if test -s conftest.err; then
  2336. grep -v '^ *+' conftest.err >conftest.er1
  2337. cat conftest.er1 >&5
  2338. mv -f conftest.er1 conftest.err
  2339. fi
  2340. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2341. test $ac_status = 0; } > conftest.i && {
  2342. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2343. test ! -s conftest.err
  2344. }; then :
  2345. ac_retval=0
  2346. else
  2347. $as_echo "$as_me: failed program was:" >&5
  2348. sed 's/^/| /' conftest.$ac_ext >&5
  2349. ac_retval=1
  2350. fi
  2351. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2352. as_fn_set_status $ac_retval
  2353. } # ac_fn_cxx_try_cpp
  2354. # ac_fn_c_try_link LINENO
  2355. # -----------------------
  2356. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2357. ac_fn_c_try_link ()
  2358. {
  2359. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2360. rm -f conftest.$ac_objext conftest$ac_exeext
  2361. if { { ac_try="$ac_link"
  2362. case "(($ac_try" in
  2363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2364. *) ac_try_echo=$ac_try;;
  2365. esac
  2366. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2367. $as_echo "$ac_try_echo"; } >&5
  2368. (eval "$ac_link") 2>conftest.err
  2369. ac_status=$?
  2370. if test -s conftest.err; then
  2371. grep -v '^ *+' conftest.err >conftest.er1
  2372. cat conftest.er1 >&5
  2373. mv -f conftest.er1 conftest.err
  2374. fi
  2375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2376. test $ac_status = 0; } && {
  2377. test -z "$ac_c_werror_flag" ||
  2378. test ! -s conftest.err
  2379. } && test -s conftest$ac_exeext && {
  2380. test "$cross_compiling" = yes ||
  2381. test -x conftest$ac_exeext
  2382. }; then :
  2383. ac_retval=0
  2384. else
  2385. $as_echo "$as_me: failed program was:" >&5
  2386. sed 's/^/| /' conftest.$ac_ext >&5
  2387. ac_retval=1
  2388. fi
  2389. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2390. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2391. # interfere with the next link command; also delete a directory that is
  2392. # left behind by Apple's compiler. We do this before executing the actions.
  2393. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2394. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2395. as_fn_set_status $ac_retval
  2396. } # ac_fn_c_try_link
  2397. # ac_fn_c_check_func LINENO FUNC VAR
  2398. # ----------------------------------
  2399. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2400. ac_fn_c_check_func ()
  2401. {
  2402. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2404. $as_echo_n "checking for $2... " >&6; }
  2405. if eval \${$3+:} false; then :
  2406. $as_echo_n "(cached) " >&6
  2407. else
  2408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2409. /* end confdefs.h. */
  2410. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2411. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2412. #define $2 innocuous_$2
  2413. /* System header to define __stub macros and hopefully few prototypes,
  2414. which can conflict with char $2 (); below.
  2415. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2416. <limits.h> exists even on freestanding compilers. */
  2417. #ifdef __STDC__
  2418. # include <limits.h>
  2419. #else
  2420. # include <assert.h>
  2421. #endif
  2422. #undef $2
  2423. /* Override any GCC internal prototype to avoid an error.
  2424. Use char because int might match the return type of a GCC
  2425. builtin and then its argument prototype would still apply. */
  2426. #ifdef __cplusplus
  2427. extern "C"
  2428. #endif
  2429. char $2 ();
  2430. /* The GNU C library defines this for functions which it implements
  2431. to always fail with ENOSYS. Some functions are actually named
  2432. something starting with __ and the normal name is an alias. */
  2433. #if defined __stub_$2 || defined __stub___$2
  2434. choke me
  2435. #endif
  2436. int
  2437. main ()
  2438. {
  2439. return $2 ();
  2440. ;
  2441. return 0;
  2442. }
  2443. _ACEOF
  2444. if ac_fn_c_try_link "$LINENO"; then :
  2445. eval "$3=yes"
  2446. else
  2447. eval "$3=no"
  2448. fi
  2449. rm -f core conftest.err conftest.$ac_objext \
  2450. conftest$ac_exeext conftest.$ac_ext
  2451. fi
  2452. eval ac_res=\$$3
  2453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2454. $as_echo "$ac_res" >&6; }
  2455. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2456. } # ac_fn_c_check_func
  2457. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2458. # -------------------------------------------
  2459. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2460. # variable VAR accordingly.
  2461. ac_fn_c_check_type ()
  2462. {
  2463. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2465. $as_echo_n "checking for $2... " >&6; }
  2466. if eval \${$3+:} false; then :
  2467. $as_echo_n "(cached) " >&6
  2468. else
  2469. eval "$3=no"
  2470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2471. /* end confdefs.h. */
  2472. $4
  2473. int
  2474. main ()
  2475. {
  2476. if (sizeof ($2))
  2477. return 0;
  2478. ;
  2479. return 0;
  2480. }
  2481. _ACEOF
  2482. if ac_fn_c_try_compile "$LINENO"; then :
  2483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2484. /* end confdefs.h. */
  2485. $4
  2486. int
  2487. main ()
  2488. {
  2489. if (sizeof (($2)))
  2490. return 0;
  2491. ;
  2492. return 0;
  2493. }
  2494. _ACEOF
  2495. if ac_fn_c_try_compile "$LINENO"; then :
  2496. else
  2497. eval "$3=yes"
  2498. fi
  2499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2500. fi
  2501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2502. fi
  2503. eval ac_res=\$$3
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2505. $as_echo "$ac_res" >&6; }
  2506. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2507. } # ac_fn_c_check_type
  2508. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2509. # ----------------------------------------------------
  2510. # Tries to find if the field MEMBER exists in type AGGR, after including
  2511. # INCLUDES, setting cache variable VAR accordingly.
  2512. ac_fn_c_check_member ()
  2513. {
  2514. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2516. $as_echo_n "checking for $2.$3... " >&6; }
  2517. if eval \${$4+:} false; then :
  2518. $as_echo_n "(cached) " >&6
  2519. else
  2520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2521. /* end confdefs.h. */
  2522. $5
  2523. int
  2524. main ()
  2525. {
  2526. static $2 ac_aggr;
  2527. if (ac_aggr.$3)
  2528. return 0;
  2529. ;
  2530. return 0;
  2531. }
  2532. _ACEOF
  2533. if ac_fn_c_try_compile "$LINENO"; then :
  2534. eval "$4=yes"
  2535. else
  2536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2537. /* end confdefs.h. */
  2538. $5
  2539. int
  2540. main ()
  2541. {
  2542. static $2 ac_aggr;
  2543. if (sizeof ac_aggr.$3)
  2544. return 0;
  2545. ;
  2546. return 0;
  2547. }
  2548. _ACEOF
  2549. if ac_fn_c_try_compile "$LINENO"; then :
  2550. eval "$4=yes"
  2551. else
  2552. eval "$4=no"
  2553. fi
  2554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2555. fi
  2556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2557. fi
  2558. eval ac_res=\$$4
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2560. $as_echo "$ac_res" >&6; }
  2561. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2562. } # ac_fn_c_check_member
  2563. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2564. # --------------------------------------------
  2565. # Tries to find the compile-time value of EXPR in a program that includes
  2566. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2567. # computed
  2568. ac_fn_c_compute_int ()
  2569. {
  2570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2571. if test "$cross_compiling" = yes; then
  2572. # Depending upon the size, compute the lo and hi bounds.
  2573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2574. /* end confdefs.h. */
  2575. $4
  2576. int
  2577. main ()
  2578. {
  2579. static int test_array [1 - 2 * !(($2) >= 0)];
  2580. test_array [0] = 0;
  2581. return test_array [0];
  2582. ;
  2583. return 0;
  2584. }
  2585. _ACEOF
  2586. if ac_fn_c_try_compile "$LINENO"; then :
  2587. ac_lo=0 ac_mid=0
  2588. while :; do
  2589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2590. /* end confdefs.h. */
  2591. $4
  2592. int
  2593. main ()
  2594. {
  2595. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2596. test_array [0] = 0;
  2597. return test_array [0];
  2598. ;
  2599. return 0;
  2600. }
  2601. _ACEOF
  2602. if ac_fn_c_try_compile "$LINENO"; then :
  2603. ac_hi=$ac_mid; break
  2604. else
  2605. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2606. if test $ac_lo -le $ac_mid; then
  2607. ac_lo= ac_hi=
  2608. break
  2609. fi
  2610. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2611. fi
  2612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2613. done
  2614. else
  2615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2616. /* end confdefs.h. */
  2617. $4
  2618. int
  2619. main ()
  2620. {
  2621. static int test_array [1 - 2 * !(($2) < 0)];
  2622. test_array [0] = 0;
  2623. return test_array [0];
  2624. ;
  2625. return 0;
  2626. }
  2627. _ACEOF
  2628. if ac_fn_c_try_compile "$LINENO"; then :
  2629. ac_hi=-1 ac_mid=-1
  2630. while :; do
  2631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2632. /* end confdefs.h. */
  2633. $4
  2634. int
  2635. main ()
  2636. {
  2637. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2638. test_array [0] = 0;
  2639. return test_array [0];
  2640. ;
  2641. return 0;
  2642. }
  2643. _ACEOF
  2644. if ac_fn_c_try_compile "$LINENO"; then :
  2645. ac_lo=$ac_mid; break
  2646. else
  2647. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2648. if test $ac_mid -le $ac_hi; then
  2649. ac_lo= ac_hi=
  2650. break
  2651. fi
  2652. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2653. fi
  2654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2655. done
  2656. else
  2657. ac_lo= ac_hi=
  2658. fi
  2659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2660. fi
  2661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2662. # Binary search between lo and hi bounds.
  2663. while test "x$ac_lo" != "x$ac_hi"; do
  2664. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2666. /* end confdefs.h. */
  2667. $4
  2668. int
  2669. main ()
  2670. {
  2671. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2672. test_array [0] = 0;
  2673. return test_array [0];
  2674. ;
  2675. return 0;
  2676. }
  2677. _ACEOF
  2678. if ac_fn_c_try_compile "$LINENO"; then :
  2679. ac_hi=$ac_mid
  2680. else
  2681. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2682. fi
  2683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2684. done
  2685. case $ac_lo in #((
  2686. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2687. '') ac_retval=1 ;;
  2688. esac
  2689. else
  2690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2691. /* end confdefs.h. */
  2692. $4
  2693. static long int longval () { return $2; }
  2694. static unsigned long int ulongval () { return $2; }
  2695. #include <stdio.h>
  2696. #include <stdlib.h>
  2697. int
  2698. main ()
  2699. {
  2700. FILE *f = fopen ("conftest.val", "w");
  2701. if (! f)
  2702. return 1;
  2703. if (($2) < 0)
  2704. {
  2705. long int i = longval ();
  2706. if (i != ($2))
  2707. return 1;
  2708. fprintf (f, "%ld", i);
  2709. }
  2710. else
  2711. {
  2712. unsigned long int i = ulongval ();
  2713. if (i != ($2))
  2714. return 1;
  2715. fprintf (f, "%lu", i);
  2716. }
  2717. /* Do not output a trailing newline, as this causes \r\n confusion
  2718. on some platforms. */
  2719. return ferror (f) || fclose (f) != 0;
  2720. ;
  2721. return 0;
  2722. }
  2723. _ACEOF
  2724. if ac_fn_c_try_run "$LINENO"; then :
  2725. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2726. else
  2727. ac_retval=1
  2728. fi
  2729. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2730. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2731. rm -f conftest.val
  2732. fi
  2733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2734. as_fn_set_status $ac_retval
  2735. } # ac_fn_c_compute_int
  2736. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  2737. # ---------------------------------------------------------
  2738. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2739. # the include files in INCLUDES and setting the cache variable VAR
  2740. # accordingly.
  2741. ac_fn_cxx_check_header_mongrel ()
  2742. {
  2743. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2744. if eval \${$3+:} false; then :
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2746. $as_echo_n "checking for $2... " >&6; }
  2747. if eval \${$3+:} false; then :
  2748. $as_echo_n "(cached) " >&6
  2749. fi
  2750. eval ac_res=\$$3
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2752. $as_echo "$ac_res" >&6; }
  2753. else
  2754. # Is the header compilable?
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2756. $as_echo_n "checking $2 usability... " >&6; }
  2757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2758. /* end confdefs.h. */
  2759. $4
  2760. #include <$2>
  2761. _ACEOF
  2762. if ac_fn_cxx_try_compile "$LINENO"; then :
  2763. ac_header_compiler=yes
  2764. else
  2765. ac_header_compiler=no
  2766. fi
  2767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2769. $as_echo "$ac_header_compiler" >&6; }
  2770. # Is the header present?
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2772. $as_echo_n "checking $2 presence... " >&6; }
  2773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2774. /* end confdefs.h. */
  2775. #include <$2>
  2776. _ACEOF
  2777. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2778. ac_header_preproc=yes
  2779. else
  2780. ac_header_preproc=no
  2781. fi
  2782. rm -f conftest.err conftest.i conftest.$ac_ext
  2783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2784. $as_echo "$ac_header_preproc" >&6; }
  2785. # So? What about this header?
  2786. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  2787. yes:no: )
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2789. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2791. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2792. ;;
  2793. no:yes:* )
  2794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2795. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2797. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2799. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2801. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2803. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2804. ( $as_echo "## ------------------------------------------ ##
  2805. ## Report this to https://issues.asterisk.org ##
  2806. ## ------------------------------------------ ##"
  2807. ) | sed "s/^/$as_me: WARNING: /" >&2
  2808. ;;
  2809. esac
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2811. $as_echo_n "checking for $2... " >&6; }
  2812. if eval \${$3+:} false; then :
  2813. $as_echo_n "(cached) " >&6
  2814. else
  2815. eval "$3=\$ac_header_compiler"
  2816. fi
  2817. eval ac_res=\$$3
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2819. $as_echo "$ac_res" >&6; }
  2820. fi
  2821. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2822. } # ac_fn_cxx_check_header_mongrel
  2823. # ac_fn_cxx_try_link LINENO
  2824. # -------------------------
  2825. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2826. ac_fn_cxx_try_link ()
  2827. {
  2828. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2829. rm -f conftest.$ac_objext conftest$ac_exeext
  2830. if { { ac_try="$ac_link"
  2831. case "(($ac_try" in
  2832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2833. *) ac_try_echo=$ac_try;;
  2834. esac
  2835. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2836. $as_echo "$ac_try_echo"; } >&5
  2837. (eval "$ac_link") 2>conftest.err
  2838. ac_status=$?
  2839. if test -s conftest.err; then
  2840. grep -v '^ *+' conftest.err >conftest.er1
  2841. cat conftest.er1 >&5
  2842. mv -f conftest.er1 conftest.err
  2843. fi
  2844. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2845. test $ac_status = 0; } && {
  2846. test -z "$ac_cxx_werror_flag" ||
  2847. test ! -s conftest.err
  2848. } && test -s conftest$ac_exeext && {
  2849. test "$cross_compiling" = yes ||
  2850. test -x conftest$ac_exeext
  2851. }; then :
  2852. ac_retval=0
  2853. else
  2854. $as_echo "$as_me: failed program was:" >&5
  2855. sed 's/^/| /' conftest.$ac_ext >&5
  2856. ac_retval=1
  2857. fi
  2858. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2859. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2860. # interfere with the next link command; also delete a directory that is
  2861. # left behind by Apple's compiler. We do this before executing the actions.
  2862. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2863. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2864. as_fn_set_status $ac_retval
  2865. } # ac_fn_cxx_try_link
  2866. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  2867. # ---------------------------------------------------------
  2868. # Tests whether HEADER exists and can be compiled using the include files in
  2869. # INCLUDES, setting the cache variable VAR accordingly.
  2870. ac_fn_cxx_check_header_compile ()
  2871. {
  2872. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2874. $as_echo_n "checking for $2... " >&6; }
  2875. if eval \${$3+:} false; then :
  2876. $as_echo_n "(cached) " >&6
  2877. else
  2878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2879. /* end confdefs.h. */
  2880. $4
  2881. #include <$2>
  2882. _ACEOF
  2883. if ac_fn_cxx_try_compile "$LINENO"; then :
  2884. eval "$3=yes"
  2885. else
  2886. eval "$3=no"
  2887. fi
  2888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2889. fi
  2890. eval ac_res=\$$3
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2892. $as_echo "$ac_res" >&6; }
  2893. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2894. } # ac_fn_cxx_check_header_compile
  2895. cat >config.log <<_ACEOF
  2896. This file contains any messages produced by compilers while
  2897. running configure, to aid debugging if configure makes a mistake.
  2898. It was created by asterisk $as_me trunk, which was
  2899. generated by GNU Autoconf 2.69. Invocation command line was
  2900. $ $0 $@
  2901. _ACEOF
  2902. exec 5>>config.log
  2903. {
  2904. cat <<_ASUNAME
  2905. ## --------- ##
  2906. ## Platform. ##
  2907. ## --------- ##
  2908. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2909. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2910. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2911. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2912. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2913. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2914. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2915. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2916. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2917. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2918. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2919. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2920. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2921. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2922. _ASUNAME
  2923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2924. for as_dir in $PATH
  2925. do
  2926. IFS=$as_save_IFS
  2927. test -z "$as_dir" && as_dir=.
  2928. $as_echo "PATH: $as_dir"
  2929. done
  2930. IFS=$as_save_IFS
  2931. } >&5
  2932. cat >&5 <<_ACEOF
  2933. ## ----------- ##
  2934. ## Core tests. ##
  2935. ## ----------- ##
  2936. _ACEOF
  2937. # Keep a trace of the command line.
  2938. # Strip out --no-create and --no-recursion so they do not pile up.
  2939. # Strip out --silent because we don't want to record it for future runs.
  2940. # Also quote any args containing shell meta-characters.
  2941. # Make two passes to allow for proper duplicate-argument suppression.
  2942. ac_configure_args=
  2943. ac_configure_args0=
  2944. ac_configure_args1=
  2945. ac_must_keep_next=false
  2946. for ac_pass in 1 2
  2947. do
  2948. for ac_arg
  2949. do
  2950. case $ac_arg in
  2951. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2952. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2953. | -silent | --silent | --silen | --sile | --sil)
  2954. continue ;;
  2955. *\'*)
  2956. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2957. esac
  2958. case $ac_pass in
  2959. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2960. 2)
  2961. as_fn_append ac_configure_args1 " '$ac_arg'"
  2962. if test $ac_must_keep_next = true; then
  2963. ac_must_keep_next=false # Got value, back to normal.
  2964. else
  2965. case $ac_arg in
  2966. *=* | --config-cache | -C | -disable-* | --disable-* \
  2967. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2968. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2969. | -with-* | --with-* | -without-* | --without-* | --x)
  2970. case "$ac_configure_args0 " in
  2971. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2972. esac
  2973. ;;
  2974. -* ) ac_must_keep_next=true ;;
  2975. esac
  2976. fi
  2977. as_fn_append ac_configure_args " '$ac_arg'"
  2978. ;;
  2979. esac
  2980. done
  2981. done
  2982. { ac_configure_args0=; unset ac_configure_args0;}
  2983. { ac_configure_args1=; unset ac_configure_args1;}
  2984. # When interrupted or exit'd, cleanup temporary files, and complete
  2985. # config.log. We remove comments because anyway the quotes in there
  2986. # would cause problems or look ugly.
  2987. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2988. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2989. trap 'exit_status=$?
  2990. # Save into config.log some information that might help in debugging.
  2991. {
  2992. echo
  2993. $as_echo "## ---------------- ##
  2994. ## Cache variables. ##
  2995. ## ---------------- ##"
  2996. echo
  2997. # The following way of writing the cache mishandles newlines in values,
  2998. (
  2999. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  3000. eval ac_val=\$$ac_var
  3001. case $ac_val in #(
  3002. *${as_nl}*)
  3003. case $ac_var in #(
  3004. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3005. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3006. esac
  3007. case $ac_var in #(
  3008. _ | IFS | as_nl) ;; #(
  3009. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3010. *) { eval $ac_var=; unset $ac_var;} ;;
  3011. esac ;;
  3012. esac
  3013. done
  3014. (set) 2>&1 |
  3015. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  3016. *${as_nl}ac_space=\ *)
  3017. sed -n \
  3018. "s/'\''/'\''\\\\'\'''\''/g;
  3019. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  3020. ;; #(
  3021. *)
  3022. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3023. ;;
  3024. esac |
  3025. sort
  3026. )
  3027. echo
  3028. $as_echo "## ----------------- ##
  3029. ## Output variables. ##
  3030. ## ----------------- ##"
  3031. echo
  3032. for ac_var in $ac_subst_vars
  3033. do
  3034. eval ac_val=\$$ac_var
  3035. case $ac_val in
  3036. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3037. esac
  3038. $as_echo "$ac_var='\''$ac_val'\''"
  3039. done | sort
  3040. echo
  3041. if test -n "$ac_subst_files"; then
  3042. $as_echo "## ------------------- ##
  3043. ## File substitutions. ##
  3044. ## ------------------- ##"
  3045. echo
  3046. for ac_var in $ac_subst_files
  3047. do
  3048. eval ac_val=\$$ac_var
  3049. case $ac_val in
  3050. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3051. esac
  3052. $as_echo "$ac_var='\''$ac_val'\''"
  3053. done | sort
  3054. echo
  3055. fi
  3056. if test -s confdefs.h; then
  3057. $as_echo "## ----------- ##
  3058. ## confdefs.h. ##
  3059. ## ----------- ##"
  3060. echo
  3061. cat confdefs.h
  3062. echo
  3063. fi
  3064. test "$ac_signal" != 0 &&
  3065. $as_echo "$as_me: caught signal $ac_signal"
  3066. $as_echo "$as_me: exit $exit_status"
  3067. } >&5
  3068. rm -f core *.core core.conftest.* &&
  3069. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  3070. exit $exit_status
  3071. ' 0
  3072. for ac_signal in 1 2 13 15; do
  3073. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  3074. done
  3075. ac_signal=0
  3076. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  3077. rm -f -r conftest* confdefs.h
  3078. $as_echo "/* confdefs.h */" > confdefs.h
  3079. # Predefined preprocessor variables.
  3080. cat >>confdefs.h <<_ACEOF
  3081. #define PACKAGE_NAME "$PACKAGE_NAME"
  3082. _ACEOF
  3083. cat >>confdefs.h <<_ACEOF
  3084. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  3085. _ACEOF
  3086. cat >>confdefs.h <<_ACEOF
  3087. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  3088. _ACEOF
  3089. cat >>confdefs.h <<_ACEOF
  3090. #define PACKAGE_STRING "$PACKAGE_STRING"
  3091. _ACEOF
  3092. cat >>confdefs.h <<_ACEOF
  3093. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  3094. _ACEOF
  3095. cat >>confdefs.h <<_ACEOF
  3096. #define PACKAGE_URL "$PACKAGE_URL"
  3097. _ACEOF
  3098. # Let the site file select an alternate cache file if it wants to.
  3099. # Prefer an explicitly selected file to automatically selected ones.
  3100. ac_site_file1=NONE
  3101. ac_site_file2=NONE
  3102. if test -n "$CONFIG_SITE"; then
  3103. # We do not want a PATH search for config.site.
  3104. case $CONFIG_SITE in #((
  3105. -*) ac_site_file1=./$CONFIG_SITE;;
  3106. */*) ac_site_file1=$CONFIG_SITE;;
  3107. *) ac_site_file1=./$CONFIG_SITE;;
  3108. esac
  3109. elif test "x$prefix" != xNONE; then
  3110. ac_site_file1=$prefix/share/config.site
  3111. ac_site_file2=$prefix/etc/config.site
  3112. else
  3113. ac_site_file1=$ac_default_prefix/share/config.site
  3114. ac_site_file2=$ac_default_prefix/etc/config.site
  3115. fi
  3116. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  3117. do
  3118. test "x$ac_site_file" = xNONE && continue
  3119. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  3121. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  3122. sed 's/^/| /' "$ac_site_file" >&5
  3123. . "$ac_site_file" \
  3124. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3126. as_fn_error $? "failed to load site script $ac_site_file
  3127. See \`config.log' for more details" "$LINENO" 5; }
  3128. fi
  3129. done
  3130. if test -r "$cache_file"; then
  3131. # Some versions of bash will fail to source /dev/null (special files
  3132. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  3133. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  3135. $as_echo "$as_me: loading cache $cache_file" >&6;}
  3136. case $cache_file in
  3137. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  3138. *) . "./$cache_file";;
  3139. esac
  3140. fi
  3141. else
  3142. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  3143. $as_echo "$as_me: creating cache $cache_file" >&6;}
  3144. >$cache_file
  3145. fi
  3146. as_fn_append ac_header_list " stdlib.h"
  3147. as_fn_append ac_header_list " unistd.h"
  3148. as_fn_append ac_header_list " sys/param.h"
  3149. as_fn_append ac_header_list " utime.h"
  3150. # Check that the precious variables saved in the cache have kept the same
  3151. # value.
  3152. ac_cache_corrupted=false
  3153. for ac_var in $ac_precious_vars; do
  3154. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3155. eval ac_new_set=\$ac_env_${ac_var}_set
  3156. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3157. eval ac_new_val=\$ac_env_${ac_var}_value
  3158. case $ac_old_set,$ac_new_set in
  3159. set,)
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3161. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3162. ac_cache_corrupted=: ;;
  3163. ,set)
  3164. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3165. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3166. ac_cache_corrupted=: ;;
  3167. ,);;
  3168. *)
  3169. if test "x$ac_old_val" != "x$ac_new_val"; then
  3170. # differences in whitespace do not lead to failure.
  3171. ac_old_val_w=`echo x $ac_old_val`
  3172. ac_new_val_w=`echo x $ac_new_val`
  3173. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3175. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3176. ac_cache_corrupted=:
  3177. else
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3179. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3180. eval $ac_var=\$ac_old_val
  3181. fi
  3182. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3183. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3185. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  3186. fi;;
  3187. esac
  3188. # Pass precious variables to config.status.
  3189. if test "$ac_new_set" = set; then
  3190. case $ac_new_val in
  3191. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3192. *) ac_arg=$ac_var=$ac_new_val ;;
  3193. esac
  3194. case " $ac_configure_args " in
  3195. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3196. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3197. esac
  3198. fi
  3199. done
  3200. if $ac_cache_corrupted; then
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3202. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3204. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  3205. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  3206. fi
  3207. ## -------------------- ##
  3208. ## Main body of script. ##
  3209. ## -------------------- ##
  3210. ac_ext=c
  3211. ac_cpp='$CPP $CPPFLAGS'
  3212. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3213. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3214. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3215. # cross-compile macros
  3216. ac_aux_dir=
  3217. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3218. if test -f "$ac_dir/install-sh"; then
  3219. ac_aux_dir=$ac_dir
  3220. ac_install_sh="$ac_aux_dir/install-sh -c"
  3221. break
  3222. elif test -f "$ac_dir/install.sh"; then
  3223. ac_aux_dir=$ac_dir
  3224. ac_install_sh="$ac_aux_dir/install.sh -c"
  3225. break
  3226. elif test -f "$ac_dir/shtool"; then
  3227. ac_aux_dir=$ac_dir
  3228. ac_install_sh="$ac_aux_dir/shtool install -c"
  3229. break
  3230. fi
  3231. done
  3232. if test -z "$ac_aux_dir"; then
  3233. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3234. fi
  3235. # These three variables are undocumented and unsupported,
  3236. # and are intended to be withdrawn in a future Autoconf release.
  3237. # They can cause serious problems if a builder's source tree is in a directory
  3238. # whose full name contains unusual characters.
  3239. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3240. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3241. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3242. # Make sure we can run config.sub.
  3243. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3244. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3246. $as_echo_n "checking build system type... " >&6; }
  3247. if ${ac_cv_build+:} false; then :
  3248. $as_echo_n "(cached) " >&6
  3249. else
  3250. ac_build_alias=$build_alias
  3251. test "x$ac_build_alias" = x &&
  3252. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3253. test "x$ac_build_alias" = x &&
  3254. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3255. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3256. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3257. fi
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3259. $as_echo "$ac_cv_build" >&6; }
  3260. case $ac_cv_build in
  3261. *-*-*) ;;
  3262. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3263. esac
  3264. build=$ac_cv_build
  3265. ac_save_IFS=$IFS; IFS='-'
  3266. set x $ac_cv_build
  3267. shift
  3268. build_cpu=$1
  3269. build_vendor=$2
  3270. shift; shift
  3271. # Remember, the first character of IFS is used to create $*,
  3272. # except with old shells:
  3273. build_os=$*
  3274. IFS=$ac_save_IFS
  3275. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3277. $as_echo_n "checking host system type... " >&6; }
  3278. if ${ac_cv_host+:} false; then :
  3279. $as_echo_n "(cached) " >&6
  3280. else
  3281. if test "x$host_alias" = x; then
  3282. ac_cv_host=$ac_cv_build
  3283. else
  3284. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3285. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3286. fi
  3287. fi
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3289. $as_echo "$ac_cv_host" >&6; }
  3290. case $ac_cv_host in
  3291. *-*-*) ;;
  3292. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3293. esac
  3294. host=$ac_cv_host
  3295. ac_save_IFS=$IFS; IFS='-'
  3296. set x $ac_cv_host
  3297. shift
  3298. host_cpu=$1
  3299. host_vendor=$2
  3300. shift; shift
  3301. # Remember, the first character of IFS is used to create $*,
  3302. # except with old shells:
  3303. host_os=$*
  3304. IFS=$ac_save_IFS
  3305. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3306. # check existence of the package
  3307. ac_aux_dir=
  3308. for ac_dir in `pwd` "$srcdir"/`pwd`; do
  3309. if test -f "$ac_dir/install-sh"; then
  3310. ac_aux_dir=$ac_dir
  3311. ac_install_sh="$ac_aux_dir/install-sh -c"
  3312. break
  3313. elif test -f "$ac_dir/install.sh"; then
  3314. ac_aux_dir=$ac_dir
  3315. ac_install_sh="$ac_aux_dir/install.sh -c"
  3316. break
  3317. elif test -f "$ac_dir/shtool"; then
  3318. ac_aux_dir=$ac_dir
  3319. ac_install_sh="$ac_aux_dir/shtool install -c"
  3320. break
  3321. fi
  3322. done
  3323. if test -z "$ac_aux_dir"; then
  3324. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
  3325. fi
  3326. # These three variables are undocumented and unsupported,
  3327. # and are intended to be withdrawn in a future Autoconf release.
  3328. # They can cause serious problems if a builder's source tree is in a directory
  3329. # whose full name contains unusual characters.
  3330. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3331. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3332. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3333. # preserve any CFLAGS or LDFLAGS that may be set
  3334. # NOTE: This must be done before calling any macros that end up
  3335. # calling AC_PROG_CC or the like, since they will set a default
  3336. # set of CFLAGS ("-g -O2") if the user did not supply any, and
  3337. # we don't want those default flags to be carried over into the
  3338. # rest of the build system since we have other means of controlling
  3339. # debugging symbol generation and optimization.
  3340. CONFIG_CFLAGS="${CFLAGS}"
  3341. CONFIG_LDFLAGS="${LDFLAGS}"
  3342. # specify output header file
  3343. ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
  3344. # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
  3345. # other macro that uses the C compiler, or the default order will be used.
  3346. ac_ext=c
  3347. ac_cpp='$CPP $CPPFLAGS'
  3348. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3349. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3350. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3351. if test -n "$ac_tool_prefix"; then
  3352. for ac_prog in gcc cc
  3353. do
  3354. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3355. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3357. $as_echo_n "checking for $ac_word... " >&6; }
  3358. if ${ac_cv_prog_CC+:} false; then :
  3359. $as_echo_n "(cached) " >&6
  3360. else
  3361. if test -n "$CC"; then
  3362. ac_cv_prog_CC="$CC" # Let the user override the test.
  3363. else
  3364. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3365. for as_dir in $PATH
  3366. do
  3367. IFS=$as_save_IFS
  3368. test -z "$as_dir" && as_dir=.
  3369. for ac_exec_ext in '' $ac_executable_extensions; do
  3370. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3371. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3372. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3373. break 2
  3374. fi
  3375. done
  3376. done
  3377. IFS=$as_save_IFS
  3378. fi
  3379. fi
  3380. CC=$ac_cv_prog_CC
  3381. if test -n "$CC"; then
  3382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3383. $as_echo "$CC" >&6; }
  3384. else
  3385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3386. $as_echo "no" >&6; }
  3387. fi
  3388. test -n "$CC" && break
  3389. done
  3390. fi
  3391. if test -z "$CC"; then
  3392. ac_ct_CC=$CC
  3393. for ac_prog in gcc cc
  3394. do
  3395. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3396. set dummy $ac_prog; ac_word=$2
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3398. $as_echo_n "checking for $ac_word... " >&6; }
  3399. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3400. $as_echo_n "(cached) " >&6
  3401. else
  3402. if test -n "$ac_ct_CC"; then
  3403. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3404. else
  3405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3406. for as_dir in $PATH
  3407. do
  3408. IFS=$as_save_IFS
  3409. test -z "$as_dir" && as_dir=.
  3410. for ac_exec_ext in '' $ac_executable_extensions; do
  3411. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3412. ac_cv_prog_ac_ct_CC="$ac_prog"
  3413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3414. break 2
  3415. fi
  3416. done
  3417. done
  3418. IFS=$as_save_IFS
  3419. fi
  3420. fi
  3421. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3422. if test -n "$ac_ct_CC"; then
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3424. $as_echo "$ac_ct_CC" >&6; }
  3425. else
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3427. $as_echo "no" >&6; }
  3428. fi
  3429. test -n "$ac_ct_CC" && break
  3430. done
  3431. if test "x$ac_ct_CC" = x; then
  3432. CC=""
  3433. else
  3434. case $cross_compiling:$ac_tool_warned in
  3435. yes:)
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3437. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3438. ac_tool_warned=yes ;;
  3439. esac
  3440. CC=$ac_ct_CC
  3441. fi
  3442. fi
  3443. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3444. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3445. as_fn_error $? "no acceptable C compiler found in \$PATH
  3446. See \`config.log' for more details" "$LINENO" 5; }
  3447. # Provide some information about the compiler.
  3448. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3449. set X $ac_compile
  3450. ac_compiler=$2
  3451. for ac_option in --version -v -V -qversion; do
  3452. { { ac_try="$ac_compiler $ac_option >&5"
  3453. case "(($ac_try" in
  3454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3455. *) ac_try_echo=$ac_try;;
  3456. esac
  3457. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3458. $as_echo "$ac_try_echo"; } >&5
  3459. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3460. ac_status=$?
  3461. if test -s conftest.err; then
  3462. sed '10a\
  3463. ... rest of stderr output deleted ...
  3464. 10q' conftest.err >conftest.er1
  3465. cat conftest.er1 >&5
  3466. fi
  3467. rm -f conftest.er1 conftest.err
  3468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3469. test $ac_status = 0; }
  3470. done
  3471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3472. /* end confdefs.h. */
  3473. int
  3474. main ()
  3475. {
  3476. ;
  3477. return 0;
  3478. }
  3479. _ACEOF
  3480. ac_clean_files_save=$ac_clean_files
  3481. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3482. # Try to create an executable without -o first, disregard a.out.
  3483. # It will help us diagnose broken compilers, and finding out an intuition
  3484. # of exeext.
  3485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3486. $as_echo_n "checking whether the C compiler works... " >&6; }
  3487. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3488. # The possible output files:
  3489. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3490. ac_rmfiles=
  3491. for ac_file in $ac_files
  3492. do
  3493. case $ac_file in
  3494. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3495. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3496. esac
  3497. done
  3498. rm -f $ac_rmfiles
  3499. if { { ac_try="$ac_link_default"
  3500. case "(($ac_try" in
  3501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3502. *) ac_try_echo=$ac_try;;
  3503. esac
  3504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3505. $as_echo "$ac_try_echo"; } >&5
  3506. (eval "$ac_link_default") 2>&5
  3507. ac_status=$?
  3508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3509. test $ac_status = 0; }; then :
  3510. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3511. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3512. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3513. # so that the user can short-circuit this test for compilers unknown to
  3514. # Autoconf.
  3515. for ac_file in $ac_files ''
  3516. do
  3517. test -f "$ac_file" || continue
  3518. case $ac_file in
  3519. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3520. ;;
  3521. [ab].out )
  3522. # We found the default executable, but exeext='' is most
  3523. # certainly right.
  3524. break;;
  3525. *.* )
  3526. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3527. then :; else
  3528. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3529. fi
  3530. # We set ac_cv_exeext here because the later test for it is not
  3531. # safe: cross compilers may not add the suffix if given an `-o'
  3532. # argument, so we may need to know it at that point already.
  3533. # Even if this section looks crufty: it has the advantage of
  3534. # actually working.
  3535. break;;
  3536. * )
  3537. break;;
  3538. esac
  3539. done
  3540. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3541. else
  3542. ac_file=''
  3543. fi
  3544. if test -z "$ac_file"; then :
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3546. $as_echo "no" >&6; }
  3547. $as_echo "$as_me: failed program was:" >&5
  3548. sed 's/^/| /' conftest.$ac_ext >&5
  3549. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3550. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3551. as_fn_error 77 "C compiler cannot create executables
  3552. See \`config.log' for more details" "$LINENO" 5; }
  3553. else
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3555. $as_echo "yes" >&6; }
  3556. fi
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3558. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3560. $as_echo "$ac_file" >&6; }
  3561. ac_exeext=$ac_cv_exeext
  3562. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3563. ac_clean_files=$ac_clean_files_save
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3565. $as_echo_n "checking for suffix of executables... " >&6; }
  3566. if { { ac_try="$ac_link"
  3567. case "(($ac_try" in
  3568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3569. *) ac_try_echo=$ac_try;;
  3570. esac
  3571. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3572. $as_echo "$ac_try_echo"; } >&5
  3573. (eval "$ac_link") 2>&5
  3574. ac_status=$?
  3575. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3576. test $ac_status = 0; }; then :
  3577. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3578. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3579. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3580. # `rm'.
  3581. for ac_file in conftest.exe conftest conftest.*; do
  3582. test -f "$ac_file" || continue
  3583. case $ac_file in
  3584. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3585. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3586. break;;
  3587. * ) break;;
  3588. esac
  3589. done
  3590. else
  3591. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3592. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3593. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3594. See \`config.log' for more details" "$LINENO" 5; }
  3595. fi
  3596. rm -f conftest conftest$ac_cv_exeext
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3598. $as_echo "$ac_cv_exeext" >&6; }
  3599. rm -f conftest.$ac_ext
  3600. EXEEXT=$ac_cv_exeext
  3601. ac_exeext=$EXEEXT
  3602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3603. /* end confdefs.h. */
  3604. #include <stdio.h>
  3605. int
  3606. main ()
  3607. {
  3608. FILE *f = fopen ("conftest.out", "w");
  3609. return ferror (f) || fclose (f) != 0;
  3610. ;
  3611. return 0;
  3612. }
  3613. _ACEOF
  3614. ac_clean_files="$ac_clean_files conftest.out"
  3615. # Check that the compiler produces executables we can run. If not, either
  3616. # the compiler is broken, or we cross compile.
  3617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3618. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3619. if test "$cross_compiling" != yes; then
  3620. { { ac_try="$ac_link"
  3621. case "(($ac_try" in
  3622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3623. *) ac_try_echo=$ac_try;;
  3624. esac
  3625. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3626. $as_echo "$ac_try_echo"; } >&5
  3627. (eval "$ac_link") 2>&5
  3628. ac_status=$?
  3629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3630. test $ac_status = 0; }
  3631. if { ac_try='./conftest$ac_cv_exeext'
  3632. { { case "(($ac_try" in
  3633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3634. *) ac_try_echo=$ac_try;;
  3635. esac
  3636. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3637. $as_echo "$ac_try_echo"; } >&5
  3638. (eval "$ac_try") 2>&5
  3639. ac_status=$?
  3640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3641. test $ac_status = 0; }; }; then
  3642. cross_compiling=no
  3643. else
  3644. if test "$cross_compiling" = maybe; then
  3645. cross_compiling=yes
  3646. else
  3647. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3648. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3649. as_fn_error $? "cannot run C compiled programs.
  3650. If you meant to cross compile, use \`--host'.
  3651. See \`config.log' for more details" "$LINENO" 5; }
  3652. fi
  3653. fi
  3654. fi
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3656. $as_echo "$cross_compiling" >&6; }
  3657. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3658. ac_clean_files=$ac_clean_files_save
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3660. $as_echo_n "checking for suffix of object files... " >&6; }
  3661. if ${ac_cv_objext+:} false; then :
  3662. $as_echo_n "(cached) " >&6
  3663. else
  3664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3665. /* end confdefs.h. */
  3666. int
  3667. main ()
  3668. {
  3669. ;
  3670. return 0;
  3671. }
  3672. _ACEOF
  3673. rm -f conftest.o conftest.obj
  3674. if { { ac_try="$ac_compile"
  3675. case "(($ac_try" in
  3676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3677. *) ac_try_echo=$ac_try;;
  3678. esac
  3679. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3680. $as_echo "$ac_try_echo"; } >&5
  3681. (eval "$ac_compile") 2>&5
  3682. ac_status=$?
  3683. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3684. test $ac_status = 0; }; then :
  3685. for ac_file in conftest.o conftest.obj conftest.*; do
  3686. test -f "$ac_file" || continue;
  3687. case $ac_file in
  3688. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3689. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3690. break;;
  3691. esac
  3692. done
  3693. else
  3694. $as_echo "$as_me: failed program was:" >&5
  3695. sed 's/^/| /' conftest.$ac_ext >&5
  3696. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3697. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3698. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3699. See \`config.log' for more details" "$LINENO" 5; }
  3700. fi
  3701. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3702. fi
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3704. $as_echo "$ac_cv_objext" >&6; }
  3705. OBJEXT=$ac_cv_objext
  3706. ac_objext=$OBJEXT
  3707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3708. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3709. if ${ac_cv_c_compiler_gnu+:} false; then :
  3710. $as_echo_n "(cached) " >&6
  3711. else
  3712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3713. /* end confdefs.h. */
  3714. int
  3715. main ()
  3716. {
  3717. #ifndef __GNUC__
  3718. choke me
  3719. #endif
  3720. ;
  3721. return 0;
  3722. }
  3723. _ACEOF
  3724. if ac_fn_c_try_compile "$LINENO"; then :
  3725. ac_compiler_gnu=yes
  3726. else
  3727. ac_compiler_gnu=no
  3728. fi
  3729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3730. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3731. fi
  3732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3733. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3734. if test $ac_compiler_gnu = yes; then
  3735. GCC=yes
  3736. else
  3737. GCC=
  3738. fi
  3739. ac_test_CFLAGS=${CFLAGS+set}
  3740. ac_save_CFLAGS=$CFLAGS
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3742. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3743. if ${ac_cv_prog_cc_g+:} false; then :
  3744. $as_echo_n "(cached) " >&6
  3745. else
  3746. ac_save_c_werror_flag=$ac_c_werror_flag
  3747. ac_c_werror_flag=yes
  3748. ac_cv_prog_cc_g=no
  3749. CFLAGS="-g"
  3750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3751. /* end confdefs.h. */
  3752. int
  3753. main ()
  3754. {
  3755. ;
  3756. return 0;
  3757. }
  3758. _ACEOF
  3759. if ac_fn_c_try_compile "$LINENO"; then :
  3760. ac_cv_prog_cc_g=yes
  3761. else
  3762. CFLAGS=""
  3763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3764. /* end confdefs.h. */
  3765. int
  3766. main ()
  3767. {
  3768. ;
  3769. return 0;
  3770. }
  3771. _ACEOF
  3772. if ac_fn_c_try_compile "$LINENO"; then :
  3773. else
  3774. ac_c_werror_flag=$ac_save_c_werror_flag
  3775. CFLAGS="-g"
  3776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3777. /* end confdefs.h. */
  3778. int
  3779. main ()
  3780. {
  3781. ;
  3782. return 0;
  3783. }
  3784. _ACEOF
  3785. if ac_fn_c_try_compile "$LINENO"; then :
  3786. ac_cv_prog_cc_g=yes
  3787. fi
  3788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3789. fi
  3790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3791. fi
  3792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3793. ac_c_werror_flag=$ac_save_c_werror_flag
  3794. fi
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3796. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3797. if test "$ac_test_CFLAGS" = set; then
  3798. CFLAGS=$ac_save_CFLAGS
  3799. elif test $ac_cv_prog_cc_g = yes; then
  3800. if test "$GCC" = yes; then
  3801. CFLAGS="-g -O2"
  3802. else
  3803. CFLAGS="-g"
  3804. fi
  3805. else
  3806. if test "$GCC" = yes; then
  3807. CFLAGS="-O2"
  3808. else
  3809. CFLAGS=
  3810. fi
  3811. fi
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3813. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3814. if ${ac_cv_prog_cc_c89+:} false; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. ac_cv_prog_cc_c89=no
  3818. ac_save_CC=$CC
  3819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3820. /* end confdefs.h. */
  3821. #include <stdarg.h>
  3822. #include <stdio.h>
  3823. struct stat;
  3824. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3825. struct buf { int x; };
  3826. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3827. static char *e (p, i)
  3828. char **p;
  3829. int i;
  3830. {
  3831. return p[i];
  3832. }
  3833. static char *f (char * (*g) (char **, int), char **p, ...)
  3834. {
  3835. char *s;
  3836. va_list v;
  3837. va_start (v,p);
  3838. s = g (p, va_arg (v,int));
  3839. va_end (v);
  3840. return s;
  3841. }
  3842. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3843. function prototypes and stuff, but not '\xHH' hex character constants.
  3844. These don't provoke an error unfortunately, instead are silently treated
  3845. as 'x'. The following induces an error, until -std is added to get
  3846. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3847. array size at least. It's necessary to write '\x00'==0 to get something
  3848. that's true only with -std. */
  3849. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3850. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3851. inside strings and character constants. */
  3852. #define FOO(x) 'x'
  3853. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3854. int test (int i, double x);
  3855. struct s1 {int (*f) (int a);};
  3856. struct s2 {int (*f) (double a);};
  3857. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3858. int argc;
  3859. char **argv;
  3860. int
  3861. main ()
  3862. {
  3863. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3864. ;
  3865. return 0;
  3866. }
  3867. _ACEOF
  3868. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3869. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3870. do
  3871. CC="$ac_save_CC $ac_arg"
  3872. if ac_fn_c_try_compile "$LINENO"; then :
  3873. ac_cv_prog_cc_c89=$ac_arg
  3874. fi
  3875. rm -f core conftest.err conftest.$ac_objext
  3876. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3877. done
  3878. rm -f conftest.$ac_ext
  3879. CC=$ac_save_CC
  3880. fi
  3881. # AC_CACHE_VAL
  3882. case "x$ac_cv_prog_cc_c89" in
  3883. x)
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3885. $as_echo "none needed" >&6; } ;;
  3886. xno)
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3888. $as_echo "unsupported" >&6; } ;;
  3889. *)
  3890. CC="$CC $ac_cv_prog_cc_c89"
  3891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3892. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3893. esac
  3894. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3895. fi
  3896. ac_ext=c
  3897. ac_cpp='$CPP $CPPFLAGS'
  3898. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3899. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3900. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3901. ac_ext=c
  3902. ac_cpp='$CPP $CPPFLAGS'
  3903. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3904. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3905. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3907. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3908. # On Suns, sometimes $CPP names a directory.
  3909. if test -n "$CPP" && test -d "$CPP"; then
  3910. CPP=
  3911. fi
  3912. if test -z "$CPP"; then
  3913. if ${ac_cv_prog_CPP+:} false; then :
  3914. $as_echo_n "(cached) " >&6
  3915. else
  3916. # Double quotes because CPP needs to be expanded
  3917. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3918. do
  3919. ac_preproc_ok=false
  3920. for ac_c_preproc_warn_flag in '' yes
  3921. do
  3922. # Use a header file that comes with gcc, so configuring glibc
  3923. # with a fresh cross-compiler works.
  3924. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3925. # <limits.h> exists even on freestanding compilers.
  3926. # On the NeXT, cc -E runs the code through the compiler's parser,
  3927. # not just through cpp. "Syntax error" is here to catch this case.
  3928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3929. /* end confdefs.h. */
  3930. #ifdef __STDC__
  3931. # include <limits.h>
  3932. #else
  3933. # include <assert.h>
  3934. #endif
  3935. Syntax error
  3936. _ACEOF
  3937. if ac_fn_c_try_cpp "$LINENO"; then :
  3938. else
  3939. # Broken: fails on valid input.
  3940. continue
  3941. fi
  3942. rm -f conftest.err conftest.i conftest.$ac_ext
  3943. # OK, works on sane cases. Now check whether nonexistent headers
  3944. # can be detected and how.
  3945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3946. /* end confdefs.h. */
  3947. #include <ac_nonexistent.h>
  3948. _ACEOF
  3949. if ac_fn_c_try_cpp "$LINENO"; then :
  3950. # Broken: success on invalid input.
  3951. continue
  3952. else
  3953. # Passes both tests.
  3954. ac_preproc_ok=:
  3955. break
  3956. fi
  3957. rm -f conftest.err conftest.i conftest.$ac_ext
  3958. done
  3959. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3960. rm -f conftest.i conftest.err conftest.$ac_ext
  3961. if $ac_preproc_ok; then :
  3962. break
  3963. fi
  3964. done
  3965. ac_cv_prog_CPP=$CPP
  3966. fi
  3967. CPP=$ac_cv_prog_CPP
  3968. else
  3969. ac_cv_prog_CPP=$CPP
  3970. fi
  3971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3972. $as_echo "$CPP" >&6; }
  3973. ac_preproc_ok=false
  3974. for ac_c_preproc_warn_flag in '' yes
  3975. do
  3976. # Use a header file that comes with gcc, so configuring glibc
  3977. # with a fresh cross-compiler works.
  3978. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3979. # <limits.h> exists even on freestanding compilers.
  3980. # On the NeXT, cc -E runs the code through the compiler's parser,
  3981. # not just through cpp. "Syntax error" is here to catch this case.
  3982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3983. /* end confdefs.h. */
  3984. #ifdef __STDC__
  3985. # include <limits.h>
  3986. #else
  3987. # include <assert.h>
  3988. #endif
  3989. Syntax error
  3990. _ACEOF
  3991. if ac_fn_c_try_cpp "$LINENO"; then :
  3992. else
  3993. # Broken: fails on valid input.
  3994. continue
  3995. fi
  3996. rm -f conftest.err conftest.i conftest.$ac_ext
  3997. # OK, works on sane cases. Now check whether nonexistent headers
  3998. # can be detected and how.
  3999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4000. /* end confdefs.h. */
  4001. #include <ac_nonexistent.h>
  4002. _ACEOF
  4003. if ac_fn_c_try_cpp "$LINENO"; then :
  4004. # Broken: success on invalid input.
  4005. continue
  4006. else
  4007. # Passes both tests.
  4008. ac_preproc_ok=:
  4009. break
  4010. fi
  4011. rm -f conftest.err conftest.i conftest.$ac_ext
  4012. done
  4013. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4014. rm -f conftest.i conftest.err conftest.$ac_ext
  4015. if $ac_preproc_ok; then :
  4016. else
  4017. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4018. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4019. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4020. See \`config.log' for more details" "$LINENO" 5; }
  4021. fi
  4022. ac_ext=c
  4023. ac_cpp='$CPP $CPPFLAGS'
  4024. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4025. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4026. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4028. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4029. if ${ac_cv_path_GREP+:} false; then :
  4030. $as_echo_n "(cached) " >&6
  4031. else
  4032. if test -z "$GREP"; then
  4033. ac_path_GREP_found=false
  4034. # Loop through the user's path and test for each of PROGNAME-LIST
  4035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4036. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4037. do
  4038. IFS=$as_save_IFS
  4039. test -z "$as_dir" && as_dir=.
  4040. for ac_prog in grep ggrep; do
  4041. for ac_exec_ext in '' $ac_executable_extensions; do
  4042. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4043. as_fn_executable_p "$ac_path_GREP" || continue
  4044. # Check for GNU ac_path_GREP and select it if it is found.
  4045. # Check for GNU $ac_path_GREP
  4046. case `"$ac_path_GREP" --version 2>&1` in
  4047. *GNU*)
  4048. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4049. *)
  4050. ac_count=0
  4051. $as_echo_n 0123456789 >"conftest.in"
  4052. while :
  4053. do
  4054. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4055. mv "conftest.tmp" "conftest.in"
  4056. cp "conftest.in" "conftest.nl"
  4057. $as_echo 'GREP' >> "conftest.nl"
  4058. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4059. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4060. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4061. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4062. # Best one so far, save it but keep looking for a better one
  4063. ac_cv_path_GREP="$ac_path_GREP"
  4064. ac_path_GREP_max=$ac_count
  4065. fi
  4066. # 10*(2^10) chars as input seems more than enough
  4067. test $ac_count -gt 10 && break
  4068. done
  4069. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4070. esac
  4071. $ac_path_GREP_found && break 3
  4072. done
  4073. done
  4074. done
  4075. IFS=$as_save_IFS
  4076. if test -z "$ac_cv_path_GREP"; then
  4077. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4078. fi
  4079. else
  4080. ac_cv_path_GREP=$GREP
  4081. fi
  4082. fi
  4083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4084. $as_echo "$ac_cv_path_GREP" >&6; }
  4085. GREP="$ac_cv_path_GREP"
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4087. $as_echo_n "checking for egrep... " >&6; }
  4088. if ${ac_cv_path_EGREP+:} false; then :
  4089. $as_echo_n "(cached) " >&6
  4090. else
  4091. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4092. then ac_cv_path_EGREP="$GREP -E"
  4093. else
  4094. if test -z "$EGREP"; then
  4095. ac_path_EGREP_found=false
  4096. # Loop through the user's path and test for each of PROGNAME-LIST
  4097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4098. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4099. do
  4100. IFS=$as_save_IFS
  4101. test -z "$as_dir" && as_dir=.
  4102. for ac_prog in egrep; do
  4103. for ac_exec_ext in '' $ac_executable_extensions; do
  4104. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4105. as_fn_executable_p "$ac_path_EGREP" || continue
  4106. # Check for GNU ac_path_EGREP and select it if it is found.
  4107. # Check for GNU $ac_path_EGREP
  4108. case `"$ac_path_EGREP" --version 2>&1` in
  4109. *GNU*)
  4110. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4111. *)
  4112. ac_count=0
  4113. $as_echo_n 0123456789 >"conftest.in"
  4114. while :
  4115. do
  4116. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4117. mv "conftest.tmp" "conftest.in"
  4118. cp "conftest.in" "conftest.nl"
  4119. $as_echo 'EGREP' >> "conftest.nl"
  4120. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4121. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4122. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4123. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4124. # Best one so far, save it but keep looking for a better one
  4125. ac_cv_path_EGREP="$ac_path_EGREP"
  4126. ac_path_EGREP_max=$ac_count
  4127. fi
  4128. # 10*(2^10) chars as input seems more than enough
  4129. test $ac_count -gt 10 && break
  4130. done
  4131. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4132. esac
  4133. $ac_path_EGREP_found && break 3
  4134. done
  4135. done
  4136. done
  4137. IFS=$as_save_IFS
  4138. if test -z "$ac_cv_path_EGREP"; then
  4139. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4140. fi
  4141. else
  4142. ac_cv_path_EGREP=$EGREP
  4143. fi
  4144. fi
  4145. fi
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4147. $as_echo "$ac_cv_path_EGREP" >&6; }
  4148. EGREP="$ac_cv_path_EGREP"
  4149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4150. $as_echo_n "checking for ANSI C header files... " >&6; }
  4151. if ${ac_cv_header_stdc+:} false; then :
  4152. $as_echo_n "(cached) " >&6
  4153. else
  4154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4155. /* end confdefs.h. */
  4156. #include <stdlib.h>
  4157. #include <stdarg.h>
  4158. #include <string.h>
  4159. #include <float.h>
  4160. int
  4161. main ()
  4162. {
  4163. ;
  4164. return 0;
  4165. }
  4166. _ACEOF
  4167. if ac_fn_c_try_compile "$LINENO"; then :
  4168. ac_cv_header_stdc=yes
  4169. else
  4170. ac_cv_header_stdc=no
  4171. fi
  4172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4173. if test $ac_cv_header_stdc = yes; then
  4174. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4176. /* end confdefs.h. */
  4177. #include <string.h>
  4178. _ACEOF
  4179. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4180. $EGREP "memchr" >/dev/null 2>&1; then :
  4181. else
  4182. ac_cv_header_stdc=no
  4183. fi
  4184. rm -f conftest*
  4185. fi
  4186. if test $ac_cv_header_stdc = yes; then
  4187. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4189. /* end confdefs.h. */
  4190. #include <stdlib.h>
  4191. _ACEOF
  4192. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4193. $EGREP "free" >/dev/null 2>&1; then :
  4194. else
  4195. ac_cv_header_stdc=no
  4196. fi
  4197. rm -f conftest*
  4198. fi
  4199. if test $ac_cv_header_stdc = yes; then
  4200. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4201. if test "$cross_compiling" = yes; then :
  4202. :
  4203. else
  4204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4205. /* end confdefs.h. */
  4206. #include <ctype.h>
  4207. #include <stdlib.h>
  4208. #if ((' ' & 0x0FF) == 0x020)
  4209. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4210. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4211. #else
  4212. # define ISLOWER(c) \
  4213. (('a' <= (c) && (c) <= 'i') \
  4214. || ('j' <= (c) && (c) <= 'r') \
  4215. || ('s' <= (c) && (c) <= 'z'))
  4216. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4217. #endif
  4218. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4219. int
  4220. main ()
  4221. {
  4222. int i;
  4223. for (i = 0; i < 256; i++)
  4224. if (XOR (islower (i), ISLOWER (i))
  4225. || toupper (i) != TOUPPER (i))
  4226. return 2;
  4227. return 0;
  4228. }
  4229. _ACEOF
  4230. if ac_fn_c_try_run "$LINENO"; then :
  4231. else
  4232. ac_cv_header_stdc=no
  4233. fi
  4234. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4235. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4236. fi
  4237. fi
  4238. fi
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4240. $as_echo "$ac_cv_header_stdc" >&6; }
  4241. if test $ac_cv_header_stdc = yes; then
  4242. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4243. fi
  4244. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4245. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4246. inttypes.h stdint.h unistd.h
  4247. do :
  4248. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4249. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4250. "
  4251. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4252. cat >>confdefs.h <<_ACEOF
  4253. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4254. _ACEOF
  4255. fi
  4256. done
  4257. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4258. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4259. MINIX=yes
  4260. else
  4261. MINIX=
  4262. fi
  4263. if test "$MINIX" = yes; then
  4264. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4265. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4266. $as_echo "#define _MINIX 1" >>confdefs.h
  4267. fi
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4269. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4270. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4271. $as_echo_n "(cached) " >&6
  4272. else
  4273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4274. /* end confdefs.h. */
  4275. # define __EXTENSIONS__ 1
  4276. $ac_includes_default
  4277. int
  4278. main ()
  4279. {
  4280. ;
  4281. return 0;
  4282. }
  4283. _ACEOF
  4284. if ac_fn_c_try_compile "$LINENO"; then :
  4285. ac_cv_safe_to_define___extensions__=yes
  4286. else
  4287. ac_cv_safe_to_define___extensions__=no
  4288. fi
  4289. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4290. fi
  4291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4292. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4293. test $ac_cv_safe_to_define___extensions__ = yes &&
  4294. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4295. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4296. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4297. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4298. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4299. # System default paths
  4300. astsbindir='${sbindir}'
  4301. astetcdir='${sysconfdir}/asterisk'
  4302. astheaderdir='${includedir}/asterisk'
  4303. astlibdir='${libdir}'
  4304. astmoddir='${libdir}/asterisk/modules'
  4305. astmandir='${mandir}'
  4306. astvarlibdir='${localstatedir}/lib/asterisk'
  4307. astdatadir='${astvarlibdir}'
  4308. astdbdir='${astvarlibdir}'
  4309. astkeydir='${astvarlibdir}'
  4310. astspooldir='${localstatedir}/spool/asterisk'
  4311. astlogdir='${localstatedir}/log/asterisk'
  4312. astvarrundir='${localstatedir}/run/asterisk'
  4313. case "${host_os}" in
  4314. *bsd*)
  4315. if test ${prefix} = 'NONE'; then
  4316. astvarlibdir='${prefix}/share/asterisk'
  4317. astdbdir='${localstatedir}/db/asterisk'
  4318. fi
  4319. ;;
  4320. darwin*)
  4321. if test ${prefix} = 'NONE'; then
  4322. astvarrundir='/Library/Application Support/Asterisk/Run'
  4323. fi
  4324. ;;
  4325. esac
  4326. case "${host_os}" in
  4327. freebsd*)
  4328. ac_default_prefix=/usr/local
  4329. CPPFLAGS=-I/usr/local/include
  4330. LDFLAGS=-L/usr/local/lib
  4331. ;;
  4332. openbsd*)
  4333. ac_default_prefix=/usr/local
  4334. if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
  4335. if test ${sysconfdir} = '${prefix}/etc'; then
  4336. astetcdir=/etc/asterisk
  4337. fi
  4338. if test ${mandir} = '${prefix}/man'; then
  4339. astmandir=/usr/share/man
  4340. fi
  4341. fi
  4342. CPPFLAGS=-I/usr/local/include
  4343. LDFLAGS=-L/usr/local/lib
  4344. ;;
  4345. darwin*)
  4346. ac_default_prefix=/usr/local
  4347. if test ${prefix} = 'NONE'; then
  4348. astmoddir='/Library/Application Support/Asterisk/Modules'
  4349. astvarlibdir='/Library/Application Support/Asterisk'
  4350. astlogdir=/Library/Logs/Asterisk
  4351. astvarrundir='/Library/Application Support/Asterisk/Run'
  4352. fi
  4353. $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
  4354. $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
  4355. ;;
  4356. solaris*)
  4357. if test ${prefix} = 'NONE'; then
  4358. astetcdir=/var/etc/asterisk
  4359. astsbindir=/opt/asterisk/sbin
  4360. astlibdir=/opt/asterisk/lib
  4361. astmoddir=/opt/asterisk/lib/modules
  4362. astheaderdir=/opt/asterisk/include
  4363. astmandir=/opt/asterisk/man
  4364. astvarlibdir=/var/opt/asterisk
  4365. astspooldir=/var/spool/asterisk
  4366. astlogdir=/var/log/asterisk
  4367. astvarrundir=/var/run/asterisk
  4368. fi
  4369. ;;
  4370. *)
  4371. ac_default_prefix=/usr
  4372. if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
  4373. if test ${sysconfdir} = '${prefix}/etc'; then
  4374. sysconfdir=/etc
  4375. fi
  4376. if test ${mandir} = '${prefix}/man'; then
  4377. mandir=/usr/share/man
  4378. fi
  4379. fi
  4380. ;;
  4381. esac
  4382. if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
  4383. if test ${localstatedir} = '${prefix}/var'; then
  4384. localstatedir=/var
  4385. fi
  4386. fi
  4387. BUILD_PLATFORM=${build}
  4388. BUILD_CPU=${build_cpu}
  4389. BUILD_VENDOR=${build_vendor}
  4390. BUILD_OS=${build_os}
  4391. HOST_PLATFORM=${host}
  4392. HOST_CPU=${host_cpu}
  4393. HOST_VENDOR=${host_vendor}
  4394. HOST_OS=${host_os}
  4395. PBX_WINARCH=0
  4396. case "${host_os}" in
  4397. freebsd*)
  4398. OSARCH=FreeBSD
  4399. ;;
  4400. netbsd*)
  4401. OSARCH=NetBSD
  4402. ;;
  4403. openbsd*)
  4404. OSARCH=OpenBSD
  4405. ;;
  4406. solaris*)
  4407. OSARCH=SunOS
  4408. ;;
  4409. mingw32)
  4410. OSARCH=mingw32
  4411. PBX_WINARCH=1
  4412. ;;
  4413. cygwin)
  4414. OSARCH=cygwin
  4415. PBX_WINARCH=1
  4416. ;;
  4417. linux-gnueabi* | linux-gnuspe)
  4418. OSARCH=linux-gnu
  4419. ;;
  4420. kfreebsd*-gnu)
  4421. OSARCH=kfreebsd-gnu
  4422. ;;
  4423. *)
  4424. OSARCH=${host_os}
  4425. ;;
  4426. esac
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  4428. $as_echo_n "checking whether char is unsigned... " >&6; }
  4429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4430. /* end confdefs.h. */
  4431. #include <limits.h>
  4432. #if CHAR_MIN == 0
  4433. #error
  4434. #endif
  4435. _ACEOF
  4436. if ac_fn_c_try_compile "$LINENO"; then :
  4437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4438. $as_echo "no" >&6; }
  4439. CONFIG_SIGNED_CHAR=""
  4440. else
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4442. $as_echo "yes" >&6; }
  4443. CONFIG_SIGNED_CHAR="-fsigned-char"
  4444. fi
  4445. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4446. # check for uname
  4447. if test -n "$ac_tool_prefix"; then
  4448. # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
  4449. set dummy ${ac_tool_prefix}uname; ac_word=$2
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4451. $as_echo_n "checking for $ac_word... " >&6; }
  4452. if ${ac_cv_path_UNAME+:} false; then :
  4453. $as_echo_n "(cached) " >&6
  4454. else
  4455. case $UNAME in
  4456. [\\/]* | ?:[\\/]*)
  4457. ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
  4458. ;;
  4459. *)
  4460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4461. for as_dir in $PATH
  4462. do
  4463. IFS=$as_save_IFS
  4464. test -z "$as_dir" && as_dir=.
  4465. for ac_exec_ext in '' $ac_executable_extensions; do
  4466. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4467. ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4469. break 2
  4470. fi
  4471. done
  4472. done
  4473. IFS=$as_save_IFS
  4474. ;;
  4475. esac
  4476. fi
  4477. UNAME=$ac_cv_path_UNAME
  4478. if test -n "$UNAME"; then
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4480. $as_echo "$UNAME" >&6; }
  4481. else
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4483. $as_echo "no" >&6; }
  4484. fi
  4485. fi
  4486. if test -z "$ac_cv_path_UNAME"; then
  4487. ac_pt_UNAME=$UNAME
  4488. # Extract the first word of "uname", so it can be a program name with args.
  4489. set dummy uname; ac_word=$2
  4490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4491. $as_echo_n "checking for $ac_word... " >&6; }
  4492. if ${ac_cv_path_ac_pt_UNAME+:} false; then :
  4493. $as_echo_n "(cached) " >&6
  4494. else
  4495. case $ac_pt_UNAME in
  4496. [\\/]* | ?:[\\/]*)
  4497. ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
  4498. ;;
  4499. *)
  4500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4501. for as_dir in $PATH
  4502. do
  4503. IFS=$as_save_IFS
  4504. test -z "$as_dir" && as_dir=.
  4505. for ac_exec_ext in '' $ac_executable_extensions; do
  4506. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4507. ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
  4508. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4509. break 2
  4510. fi
  4511. done
  4512. done
  4513. IFS=$as_save_IFS
  4514. ;;
  4515. esac
  4516. fi
  4517. ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
  4518. if test -n "$ac_pt_UNAME"; then
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_UNAME" >&5
  4520. $as_echo "$ac_pt_UNAME" >&6; }
  4521. else
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4523. $as_echo "no" >&6; }
  4524. fi
  4525. if test "x$ac_pt_UNAME" = x; then
  4526. UNAME="No"
  4527. else
  4528. case $cross_compiling:$ac_tool_warned in
  4529. yes:)
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4531. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4532. ac_tool_warned=yes ;;
  4533. esac
  4534. UNAME=$ac_pt_UNAME
  4535. fi
  4536. else
  4537. UNAME="$ac_cv_path_UNAME"
  4538. fi
  4539. if test ! x"${UNAME}" = xNo; then
  4540. PBX_OSREV=$(${UNAME} -r)
  4541. fi
  4542. # cross-compile checks
  4543. if test "${cross_compiling}" = "yes";
  4544. then
  4545. if test -n "$ac_tool_prefix"; then
  4546. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4547. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4549. $as_echo_n "checking for $ac_word... " >&6; }
  4550. if ${ac_cv_prog_CC+:} false; then :
  4551. $as_echo_n "(cached) " >&6
  4552. else
  4553. if test -n "$CC"; then
  4554. ac_cv_prog_CC="$CC" # Let the user override the test.
  4555. else
  4556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4557. for as_dir in $PATH
  4558. do
  4559. IFS=$as_save_IFS
  4560. test -z "$as_dir" && as_dir=.
  4561. for ac_exec_ext in '' $ac_executable_extensions; do
  4562. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4563. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4564. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4565. break 2
  4566. fi
  4567. done
  4568. done
  4569. IFS=$as_save_IFS
  4570. fi
  4571. fi
  4572. CC=$ac_cv_prog_CC
  4573. if test -n "$CC"; then
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4575. $as_echo "$CC" >&6; }
  4576. else
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4578. $as_echo "no" >&6; }
  4579. fi
  4580. fi
  4581. if test -z "$ac_cv_prog_CC"; then
  4582. ac_ct_CC=$CC
  4583. # Extract the first word of "gcc", so it can be a program name with args.
  4584. set dummy gcc; ac_word=$2
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4586. $as_echo_n "checking for $ac_word... " >&6; }
  4587. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4588. $as_echo_n "(cached) " >&6
  4589. else
  4590. if test -n "$ac_ct_CC"; then
  4591. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4592. else
  4593. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4594. for as_dir in $PATH
  4595. do
  4596. IFS=$as_save_IFS
  4597. test -z "$as_dir" && as_dir=.
  4598. for ac_exec_ext in '' $ac_executable_extensions; do
  4599. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4600. ac_cv_prog_ac_ct_CC="gcc"
  4601. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4602. break 2
  4603. fi
  4604. done
  4605. done
  4606. IFS=$as_save_IFS
  4607. fi
  4608. fi
  4609. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4610. if test -n "$ac_ct_CC"; then
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4612. $as_echo "$ac_ct_CC" >&6; }
  4613. else
  4614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4615. $as_echo "no" >&6; }
  4616. fi
  4617. if test "x$ac_ct_CC" = x; then
  4618. CC=":"
  4619. else
  4620. case $cross_compiling:$ac_tool_warned in
  4621. yes:)
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4623. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4624. ac_tool_warned=yes ;;
  4625. esac
  4626. CC=$ac_ct_CC
  4627. fi
  4628. else
  4629. CC="$ac_cv_prog_CC"
  4630. fi
  4631. if test -n "$ac_tool_prefix"; then
  4632. # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
  4633. set dummy ${ac_tool_prefix}g++; ac_word=$2
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4635. $as_echo_n "checking for $ac_word... " >&6; }
  4636. if ${ac_cv_prog_CXX+:} false; then :
  4637. $as_echo_n "(cached) " >&6
  4638. else
  4639. if test -n "$CXX"; then
  4640. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4641. else
  4642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4643. for as_dir in $PATH
  4644. do
  4645. IFS=$as_save_IFS
  4646. test -z "$as_dir" && as_dir=.
  4647. for ac_exec_ext in '' $ac_executable_extensions; do
  4648. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4649. ac_cv_prog_CXX="${ac_tool_prefix}g++"
  4650. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4651. break 2
  4652. fi
  4653. done
  4654. done
  4655. IFS=$as_save_IFS
  4656. fi
  4657. fi
  4658. CXX=$ac_cv_prog_CXX
  4659. if test -n "$CXX"; then
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4661. $as_echo "$CXX" >&6; }
  4662. else
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4664. $as_echo "no" >&6; }
  4665. fi
  4666. fi
  4667. if test -z "$ac_cv_prog_CXX"; then
  4668. ac_ct_CXX=$CXX
  4669. # Extract the first word of "g++", so it can be a program name with args.
  4670. set dummy g++; ac_word=$2
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4672. $as_echo_n "checking for $ac_word... " >&6; }
  4673. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4674. $as_echo_n "(cached) " >&6
  4675. else
  4676. if test -n "$ac_ct_CXX"; then
  4677. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4678. else
  4679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4680. for as_dir in $PATH
  4681. do
  4682. IFS=$as_save_IFS
  4683. test -z "$as_dir" && as_dir=.
  4684. for ac_exec_ext in '' $ac_executable_extensions; do
  4685. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4686. ac_cv_prog_ac_ct_CXX="g++"
  4687. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4688. break 2
  4689. fi
  4690. done
  4691. done
  4692. IFS=$as_save_IFS
  4693. fi
  4694. fi
  4695. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4696. if test -n "$ac_ct_CXX"; then
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4698. $as_echo "$ac_ct_CXX" >&6; }
  4699. else
  4700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4701. $as_echo "no" >&6; }
  4702. fi
  4703. if test "x$ac_ct_CXX" = x; then
  4704. CXX=":"
  4705. else
  4706. case $cross_compiling:$ac_tool_warned in
  4707. yes:)
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4709. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4710. ac_tool_warned=yes ;;
  4711. esac
  4712. CXX=$ac_ct_CXX
  4713. fi
  4714. else
  4715. CXX="$ac_cv_prog_CXX"
  4716. fi
  4717. if test -n "$ac_tool_prefix"; then
  4718. # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
  4719. set dummy ${ac_tool_prefix}ld; ac_word=$2
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4721. $as_echo_n "checking for $ac_word... " >&6; }
  4722. if ${ac_cv_prog_LD+:} false; then :
  4723. $as_echo_n "(cached) " >&6
  4724. else
  4725. if test -n "$LD"; then
  4726. ac_cv_prog_LD="$LD" # Let the user override the test.
  4727. else
  4728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4729. for as_dir in $PATH
  4730. do
  4731. IFS=$as_save_IFS
  4732. test -z "$as_dir" && as_dir=.
  4733. for ac_exec_ext in '' $ac_executable_extensions; do
  4734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4735. ac_cv_prog_LD="${ac_tool_prefix}ld"
  4736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4737. break 2
  4738. fi
  4739. done
  4740. done
  4741. IFS=$as_save_IFS
  4742. fi
  4743. fi
  4744. LD=$ac_cv_prog_LD
  4745. if test -n "$LD"; then
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4747. $as_echo "$LD" >&6; }
  4748. else
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4750. $as_echo "no" >&6; }
  4751. fi
  4752. fi
  4753. if test -z "$ac_cv_prog_LD"; then
  4754. ac_ct_LD=$LD
  4755. # Extract the first word of "ld", so it can be a program name with args.
  4756. set dummy ld; ac_word=$2
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4758. $as_echo_n "checking for $ac_word... " >&6; }
  4759. if ${ac_cv_prog_ac_ct_LD+:} false; then :
  4760. $as_echo_n "(cached) " >&6
  4761. else
  4762. if test -n "$ac_ct_LD"; then
  4763. ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
  4764. else
  4765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4766. for as_dir in $PATH
  4767. do
  4768. IFS=$as_save_IFS
  4769. test -z "$as_dir" && as_dir=.
  4770. for ac_exec_ext in '' $ac_executable_extensions; do
  4771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4772. ac_cv_prog_ac_ct_LD="ld"
  4773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4774. break 2
  4775. fi
  4776. done
  4777. done
  4778. IFS=$as_save_IFS
  4779. fi
  4780. fi
  4781. ac_ct_LD=$ac_cv_prog_ac_ct_LD
  4782. if test -n "$ac_ct_LD"; then
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
  4784. $as_echo "$ac_ct_LD" >&6; }
  4785. else
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4787. $as_echo "no" >&6; }
  4788. fi
  4789. if test "x$ac_ct_LD" = x; then
  4790. LD=":"
  4791. else
  4792. case $cross_compiling:$ac_tool_warned in
  4793. yes:)
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4795. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4796. ac_tool_warned=yes ;;
  4797. esac
  4798. LD=$ac_ct_LD
  4799. fi
  4800. else
  4801. LD="$ac_cv_prog_LD"
  4802. fi
  4803. if test -n "$ac_tool_prefix"; then
  4804. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4805. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4807. $as_echo_n "checking for $ac_word... " >&6; }
  4808. if ${ac_cv_prog_RANLIB+:} false; then :
  4809. $as_echo_n "(cached) " >&6
  4810. else
  4811. if test -n "$RANLIB"; then
  4812. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4813. else
  4814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4815. for as_dir in $PATH
  4816. do
  4817. IFS=$as_save_IFS
  4818. test -z "$as_dir" && as_dir=.
  4819. for ac_exec_ext in '' $ac_executable_extensions; do
  4820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4821. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4823. break 2
  4824. fi
  4825. done
  4826. done
  4827. IFS=$as_save_IFS
  4828. fi
  4829. fi
  4830. RANLIB=$ac_cv_prog_RANLIB
  4831. if test -n "$RANLIB"; then
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4833. $as_echo "$RANLIB" >&6; }
  4834. else
  4835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4836. $as_echo "no" >&6; }
  4837. fi
  4838. fi
  4839. if test -z "$ac_cv_prog_RANLIB"; then
  4840. ac_ct_RANLIB=$RANLIB
  4841. # Extract the first word of "ranlib", so it can be a program name with args.
  4842. set dummy ranlib; ac_word=$2
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4844. $as_echo_n "checking for $ac_word... " >&6; }
  4845. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4846. $as_echo_n "(cached) " >&6
  4847. else
  4848. if test -n "$ac_ct_RANLIB"; then
  4849. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4850. else
  4851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4852. for as_dir in $PATH
  4853. do
  4854. IFS=$as_save_IFS
  4855. test -z "$as_dir" && as_dir=.
  4856. for ac_exec_ext in '' $ac_executable_extensions; do
  4857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4858. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4860. break 2
  4861. fi
  4862. done
  4863. done
  4864. IFS=$as_save_IFS
  4865. fi
  4866. fi
  4867. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4868. if test -n "$ac_ct_RANLIB"; then
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4870. $as_echo "$ac_ct_RANLIB" >&6; }
  4871. else
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4873. $as_echo "no" >&6; }
  4874. fi
  4875. if test "x$ac_ct_RANLIB" = x; then
  4876. RANLIB=":"
  4877. else
  4878. case $cross_compiling:$ac_tool_warned in
  4879. yes:)
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4881. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4882. ac_tool_warned=yes ;;
  4883. esac
  4884. RANLIB=$ac_ct_RANLIB
  4885. fi
  4886. else
  4887. RANLIB="$ac_cv_prog_RANLIB"
  4888. fi
  4889. fi
  4890. # Checks for programs.
  4891. ac_ext=cpp
  4892. ac_cpp='$CXXCPP $CPPFLAGS'
  4893. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4894. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4895. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4896. if test -z "$CXX"; then
  4897. if test -n "$CCC"; then
  4898. CXX=$CCC
  4899. else
  4900. if test -n "$ac_tool_prefix"; then
  4901. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4902. do
  4903. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4904. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4906. $as_echo_n "checking for $ac_word... " >&6; }
  4907. if ${ac_cv_prog_CXX+:} false; then :
  4908. $as_echo_n "(cached) " >&6
  4909. else
  4910. if test -n "$CXX"; then
  4911. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4912. else
  4913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4914. for as_dir in $PATH
  4915. do
  4916. IFS=$as_save_IFS
  4917. test -z "$as_dir" && as_dir=.
  4918. for ac_exec_ext in '' $ac_executable_extensions; do
  4919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4920. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4922. break 2
  4923. fi
  4924. done
  4925. done
  4926. IFS=$as_save_IFS
  4927. fi
  4928. fi
  4929. CXX=$ac_cv_prog_CXX
  4930. if test -n "$CXX"; then
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4932. $as_echo "$CXX" >&6; }
  4933. else
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4935. $as_echo "no" >&6; }
  4936. fi
  4937. test -n "$CXX" && break
  4938. done
  4939. fi
  4940. if test -z "$CXX"; then
  4941. ac_ct_CXX=$CXX
  4942. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4943. do
  4944. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4945. set dummy $ac_prog; ac_word=$2
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4947. $as_echo_n "checking for $ac_word... " >&6; }
  4948. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4949. $as_echo_n "(cached) " >&6
  4950. else
  4951. if test -n "$ac_ct_CXX"; then
  4952. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4953. else
  4954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4955. for as_dir in $PATH
  4956. do
  4957. IFS=$as_save_IFS
  4958. test -z "$as_dir" && as_dir=.
  4959. for ac_exec_ext in '' $ac_executable_extensions; do
  4960. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4961. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4963. break 2
  4964. fi
  4965. done
  4966. done
  4967. IFS=$as_save_IFS
  4968. fi
  4969. fi
  4970. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4971. if test -n "$ac_ct_CXX"; then
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4973. $as_echo "$ac_ct_CXX" >&6; }
  4974. else
  4975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4976. $as_echo "no" >&6; }
  4977. fi
  4978. test -n "$ac_ct_CXX" && break
  4979. done
  4980. if test "x$ac_ct_CXX" = x; then
  4981. CXX="g++"
  4982. else
  4983. case $cross_compiling:$ac_tool_warned in
  4984. yes:)
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4986. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4987. ac_tool_warned=yes ;;
  4988. esac
  4989. CXX=$ac_ct_CXX
  4990. fi
  4991. fi
  4992. fi
  4993. fi
  4994. # Provide some information about the compiler.
  4995. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4996. set X $ac_compile
  4997. ac_compiler=$2
  4998. for ac_option in --version -v -V -qversion; do
  4999. { { ac_try="$ac_compiler $ac_option >&5"
  5000. case "(($ac_try" in
  5001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5002. *) ac_try_echo=$ac_try;;
  5003. esac
  5004. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5005. $as_echo "$ac_try_echo"; } >&5
  5006. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5007. ac_status=$?
  5008. if test -s conftest.err; then
  5009. sed '10a\
  5010. ... rest of stderr output deleted ...
  5011. 10q' conftest.err >conftest.er1
  5012. cat conftest.er1 >&5
  5013. fi
  5014. rm -f conftest.er1 conftest.err
  5015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5016. test $ac_status = 0; }
  5017. done
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  5019. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  5020. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  5021. $as_echo_n "(cached) " >&6
  5022. else
  5023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5024. /* end confdefs.h. */
  5025. int
  5026. main ()
  5027. {
  5028. #ifndef __GNUC__
  5029. choke me
  5030. #endif
  5031. ;
  5032. return 0;
  5033. }
  5034. _ACEOF
  5035. if ac_fn_cxx_try_compile "$LINENO"; then :
  5036. ac_compiler_gnu=yes
  5037. else
  5038. ac_compiler_gnu=no
  5039. fi
  5040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5041. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5042. fi
  5043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5044. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5045. if test $ac_compiler_gnu = yes; then
  5046. GXX=yes
  5047. else
  5048. GXX=
  5049. fi
  5050. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5051. ac_save_CXXFLAGS=$CXXFLAGS
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5053. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5054. if ${ac_cv_prog_cxx_g+:} false; then :
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5058. ac_cxx_werror_flag=yes
  5059. ac_cv_prog_cxx_g=no
  5060. CXXFLAGS="-g"
  5061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5062. /* end confdefs.h. */
  5063. int
  5064. main ()
  5065. {
  5066. ;
  5067. return 0;
  5068. }
  5069. _ACEOF
  5070. if ac_fn_cxx_try_compile "$LINENO"; then :
  5071. ac_cv_prog_cxx_g=yes
  5072. else
  5073. CXXFLAGS=""
  5074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5075. /* end confdefs.h. */
  5076. int
  5077. main ()
  5078. {
  5079. ;
  5080. return 0;
  5081. }
  5082. _ACEOF
  5083. if ac_fn_cxx_try_compile "$LINENO"; then :
  5084. else
  5085. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5086. CXXFLAGS="-g"
  5087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5088. /* end confdefs.h. */
  5089. int
  5090. main ()
  5091. {
  5092. ;
  5093. return 0;
  5094. }
  5095. _ACEOF
  5096. if ac_fn_cxx_try_compile "$LINENO"; then :
  5097. ac_cv_prog_cxx_g=yes
  5098. fi
  5099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5100. fi
  5101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5102. fi
  5103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5104. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5105. fi
  5106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5107. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5108. if test "$ac_test_CXXFLAGS" = set; then
  5109. CXXFLAGS=$ac_save_CXXFLAGS
  5110. elif test $ac_cv_prog_cxx_g = yes; then
  5111. if test "$GXX" = yes; then
  5112. CXXFLAGS="-g -O2"
  5113. else
  5114. CXXFLAGS="-g"
  5115. fi
  5116. else
  5117. if test "$GXX" = yes; then
  5118. CXXFLAGS="-O2"
  5119. else
  5120. CXXFLAGS=
  5121. fi
  5122. fi
  5123. ac_ext=c
  5124. ac_cpp='$CPP $CPPFLAGS'
  5125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5128. ac_ext=c
  5129. ac_cpp='$CPP $CPPFLAGS'
  5130. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5131. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5132. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5134. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5135. # On Suns, sometimes $CPP names a directory.
  5136. if test -n "$CPP" && test -d "$CPP"; then
  5137. CPP=
  5138. fi
  5139. if test -z "$CPP"; then
  5140. if ${ac_cv_prog_CPP+:} false; then :
  5141. $as_echo_n "(cached) " >&6
  5142. else
  5143. # Double quotes because CPP needs to be expanded
  5144. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5145. do
  5146. ac_preproc_ok=false
  5147. for ac_c_preproc_warn_flag in '' yes
  5148. do
  5149. # Use a header file that comes with gcc, so configuring glibc
  5150. # with a fresh cross-compiler works.
  5151. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5152. # <limits.h> exists even on freestanding compilers.
  5153. # On the NeXT, cc -E runs the code through the compiler's parser,
  5154. # not just through cpp. "Syntax error" is here to catch this case.
  5155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5156. /* end confdefs.h. */
  5157. #ifdef __STDC__
  5158. # include <limits.h>
  5159. #else
  5160. # include <assert.h>
  5161. #endif
  5162. Syntax error
  5163. _ACEOF
  5164. if ac_fn_c_try_cpp "$LINENO"; then :
  5165. else
  5166. # Broken: fails on valid input.
  5167. continue
  5168. fi
  5169. rm -f conftest.err conftest.i conftest.$ac_ext
  5170. # OK, works on sane cases. Now check whether nonexistent headers
  5171. # can be detected and how.
  5172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5173. /* end confdefs.h. */
  5174. #include <ac_nonexistent.h>
  5175. _ACEOF
  5176. if ac_fn_c_try_cpp "$LINENO"; then :
  5177. # Broken: success on invalid input.
  5178. continue
  5179. else
  5180. # Passes both tests.
  5181. ac_preproc_ok=:
  5182. break
  5183. fi
  5184. rm -f conftest.err conftest.i conftest.$ac_ext
  5185. done
  5186. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5187. rm -f conftest.i conftest.err conftest.$ac_ext
  5188. if $ac_preproc_ok; then :
  5189. break
  5190. fi
  5191. done
  5192. ac_cv_prog_CPP=$CPP
  5193. fi
  5194. CPP=$ac_cv_prog_CPP
  5195. else
  5196. ac_cv_prog_CPP=$CPP
  5197. fi
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5199. $as_echo "$CPP" >&6; }
  5200. ac_preproc_ok=false
  5201. for ac_c_preproc_warn_flag in '' yes
  5202. do
  5203. # Use a header file that comes with gcc, so configuring glibc
  5204. # with a fresh cross-compiler works.
  5205. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5206. # <limits.h> exists even on freestanding compilers.
  5207. # On the NeXT, cc -E runs the code through the compiler's parser,
  5208. # not just through cpp. "Syntax error" is here to catch this case.
  5209. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5210. /* end confdefs.h. */
  5211. #ifdef __STDC__
  5212. # include <limits.h>
  5213. #else
  5214. # include <assert.h>
  5215. #endif
  5216. Syntax error
  5217. _ACEOF
  5218. if ac_fn_c_try_cpp "$LINENO"; then :
  5219. else
  5220. # Broken: fails on valid input.
  5221. continue
  5222. fi
  5223. rm -f conftest.err conftest.i conftest.$ac_ext
  5224. # OK, works on sane cases. Now check whether nonexistent headers
  5225. # can be detected and how.
  5226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5227. /* end confdefs.h. */
  5228. #include <ac_nonexistent.h>
  5229. _ACEOF
  5230. if ac_fn_c_try_cpp "$LINENO"; then :
  5231. # Broken: success on invalid input.
  5232. continue
  5233. else
  5234. # Passes both tests.
  5235. ac_preproc_ok=:
  5236. break
  5237. fi
  5238. rm -f conftest.err conftest.i conftest.$ac_ext
  5239. done
  5240. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5241. rm -f conftest.i conftest.err conftest.$ac_ext
  5242. if $ac_preproc_ok; then :
  5243. else
  5244. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5245. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5246. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  5247. See \`config.log' for more details" "$LINENO" 5; }
  5248. fi
  5249. ac_ext=c
  5250. ac_cpp='$CPP $CPPFLAGS'
  5251. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5252. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5253. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5254. ac_ext=cpp
  5255. ac_cpp='$CXXCPP $CPPFLAGS'
  5256. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5257. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5258. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  5260. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  5261. if test -z "$CXXCPP"; then
  5262. if ${ac_cv_prog_CXXCPP+:} false; then :
  5263. $as_echo_n "(cached) " >&6
  5264. else
  5265. # Double quotes because CXXCPP needs to be expanded
  5266. for CXXCPP in "$CXX -E" "/lib/cpp"
  5267. do
  5268. ac_preproc_ok=false
  5269. for ac_cxx_preproc_warn_flag in '' yes
  5270. do
  5271. # Use a header file that comes with gcc, so configuring glibc
  5272. # with a fresh cross-compiler works.
  5273. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5274. # <limits.h> exists even on freestanding compilers.
  5275. # On the NeXT, cc -E runs the code through the compiler's parser,
  5276. # not just through cpp. "Syntax error" is here to catch this case.
  5277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5278. /* end confdefs.h. */
  5279. #ifdef __STDC__
  5280. # include <limits.h>
  5281. #else
  5282. # include <assert.h>
  5283. #endif
  5284. Syntax error
  5285. _ACEOF
  5286. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5287. else
  5288. # Broken: fails on valid input.
  5289. continue
  5290. fi
  5291. rm -f conftest.err conftest.i conftest.$ac_ext
  5292. # OK, works on sane cases. Now check whether nonexistent headers
  5293. # can be detected and how.
  5294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5295. /* end confdefs.h. */
  5296. #include <ac_nonexistent.h>
  5297. _ACEOF
  5298. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5299. # Broken: success on invalid input.
  5300. continue
  5301. else
  5302. # Passes both tests.
  5303. ac_preproc_ok=:
  5304. break
  5305. fi
  5306. rm -f conftest.err conftest.i conftest.$ac_ext
  5307. done
  5308. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5309. rm -f conftest.i conftest.err conftest.$ac_ext
  5310. if $ac_preproc_ok; then :
  5311. break
  5312. fi
  5313. done
  5314. ac_cv_prog_CXXCPP=$CXXCPP
  5315. fi
  5316. CXXCPP=$ac_cv_prog_CXXCPP
  5317. else
  5318. ac_cv_prog_CXXCPP=$CXXCPP
  5319. fi
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  5321. $as_echo "$CXXCPP" >&6; }
  5322. ac_preproc_ok=false
  5323. for ac_cxx_preproc_warn_flag in '' yes
  5324. do
  5325. # Use a header file that comes with gcc, so configuring glibc
  5326. # with a fresh cross-compiler works.
  5327. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5328. # <limits.h> exists even on freestanding compilers.
  5329. # On the NeXT, cc -E runs the code through the compiler's parser,
  5330. # not just through cpp. "Syntax error" is here to catch this case.
  5331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5332. /* end confdefs.h. */
  5333. #ifdef __STDC__
  5334. # include <limits.h>
  5335. #else
  5336. # include <assert.h>
  5337. #endif
  5338. Syntax error
  5339. _ACEOF
  5340. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5341. else
  5342. # Broken: fails on valid input.
  5343. continue
  5344. fi
  5345. rm -f conftest.err conftest.i conftest.$ac_ext
  5346. # OK, works on sane cases. Now check whether nonexistent headers
  5347. # can be detected and how.
  5348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5349. /* end confdefs.h. */
  5350. #include <ac_nonexistent.h>
  5351. _ACEOF
  5352. if ac_fn_cxx_try_cpp "$LINENO"; then :
  5353. # Broken: success on invalid input.
  5354. continue
  5355. else
  5356. # Passes both tests.
  5357. ac_preproc_ok=:
  5358. break
  5359. fi
  5360. rm -f conftest.err conftest.i conftest.$ac_ext
  5361. done
  5362. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5363. rm -f conftest.i conftest.err conftest.$ac_ext
  5364. if $ac_preproc_ok; then :
  5365. else
  5366. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5367. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5368. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  5369. See \`config.log' for more details" "$LINENO" 5; }
  5370. fi
  5371. ac_ext=c
  5372. ac_cpp='$CPP $CPPFLAGS'
  5373. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5374. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5375. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5376. # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
  5377. # the developers regenerating the configure script don't have to install libtool.
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5379. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5380. if ${ac_cv_path_SED+:} false; then :
  5381. $as_echo_n "(cached) " >&6
  5382. else
  5383. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5384. for ac_i in 1 2 3 4 5 6 7; do
  5385. ac_script="$ac_script$as_nl$ac_script"
  5386. done
  5387. echo "$ac_script" | sed 99q >conftest.sed
  5388. $as_unset ac_script || ac_script=
  5389. if test -z "$SED"; then
  5390. ac_path_SED_found=false
  5391. # Loop through the user's path and test for each of PROGNAME-LIST
  5392. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5393. for as_dir in $PATH
  5394. do
  5395. IFS=$as_save_IFS
  5396. test -z "$as_dir" && as_dir=.
  5397. for ac_prog in sed gsed; do
  5398. for ac_exec_ext in '' $ac_executable_extensions; do
  5399. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5400. as_fn_executable_p "$ac_path_SED" || continue
  5401. # Check for GNU ac_path_SED and select it if it is found.
  5402. # Check for GNU $ac_path_SED
  5403. case `"$ac_path_SED" --version 2>&1` in
  5404. *GNU*)
  5405. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5406. *)
  5407. ac_count=0
  5408. $as_echo_n 0123456789 >"conftest.in"
  5409. while :
  5410. do
  5411. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5412. mv "conftest.tmp" "conftest.in"
  5413. cp "conftest.in" "conftest.nl"
  5414. $as_echo '' >> "conftest.nl"
  5415. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5416. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5417. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5418. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5419. # Best one so far, save it but keep looking for a better one
  5420. ac_cv_path_SED="$ac_path_SED"
  5421. ac_path_SED_max=$ac_count
  5422. fi
  5423. # 10*(2^10) chars as input seems more than enough
  5424. test $ac_count -gt 10 && break
  5425. done
  5426. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5427. esac
  5428. $ac_path_SED_found && break 3
  5429. done
  5430. done
  5431. done
  5432. IFS=$as_save_IFS
  5433. if test -z "$ac_cv_path_SED"; then
  5434. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5435. fi
  5436. else
  5437. ac_cv_path_SED=$SED
  5438. fi
  5439. fi
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5441. $as_echo "$ac_cv_path_SED" >&6; }
  5442. SED="$ac_cv_path_SED"
  5443. rm -f conftest.sed
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5445. $as_echo_n "checking for egrep... " >&6; }
  5446. if ${ac_cv_prog_egrep+:} false; then :
  5447. $as_echo_n "(cached) " >&6
  5448. else
  5449. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5450. then ac_cv_prog_egrep='grep -E'
  5451. else ac_cv_prog_egrep='egrep'
  5452. fi
  5453. fi
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_egrep" >&5
  5455. $as_echo "$ac_cv_prog_egrep" >&6; }
  5456. EGREP=$ac_cv_prog_egrep
  5457. # Check whether --with-gnu-ld was given.
  5458. if test "${with_gnu_ld+set}" = set; then :
  5459. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5460. else
  5461. with_gnu_ld=no
  5462. fi
  5463. ac_prog=ld
  5464. if test "$GCC" = yes; then
  5465. # Check if gcc -print-prog-name=ld gives a path.
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5467. $as_echo_n "checking for ld used by $CC... " >&6; }
  5468. case $host in
  5469. *-*-mingw*)
  5470. # gcc leaves a trailing carriage return which upsets mingw
  5471. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5472. *)
  5473. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5474. esac
  5475. case $ac_prog in
  5476. # Accept absolute paths.
  5477. [\\/]* | ?:[\\/]*)
  5478. re_direlt='/[^/][^/]*/\.\./'
  5479. # Canonicalize the pathname of ld
  5480. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  5481. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5482. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  5483. done
  5484. test -z "$LD" && LD="$ac_prog"
  5485. ;;
  5486. "")
  5487. # If it fails, then pretend we aren't using GCC.
  5488. ac_prog=ld
  5489. ;;
  5490. *)
  5491. # If it is relative, then search for the first ld in PATH.
  5492. with_gnu_ld=unknown
  5493. ;;
  5494. esac
  5495. elif test "$with_gnu_ld" = yes; then
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5497. $as_echo_n "checking for GNU ld... " >&6; }
  5498. else
  5499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5500. $as_echo_n "checking for non-GNU ld... " >&6; }
  5501. fi
  5502. if ${lt_cv_path_LD+:} false; then :
  5503. $as_echo_n "(cached) " >&6
  5504. else
  5505. if test -z "$LD"; then
  5506. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5507. for ac_dir in $PATH; do
  5508. IFS="$lt_save_ifs"
  5509. test -z "$ac_dir" && ac_dir=.
  5510. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5511. lt_cv_path_LD="$ac_dir/$ac_prog"
  5512. # Check to see if the program is GNU ld. I'd rather use --version,
  5513. # but apparently some variants of GNU ld only accept -v.
  5514. # Break only if it was the GNU/non-GNU ld that we prefer.
  5515. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5516. *GNU* | *'with BFD'*)
  5517. test "$with_gnu_ld" != no && break
  5518. ;;
  5519. *)
  5520. test "$with_gnu_ld" != yes && break
  5521. ;;
  5522. esac
  5523. fi
  5524. done
  5525. IFS="$lt_save_ifs"
  5526. else
  5527. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5528. fi
  5529. fi
  5530. LD="$lt_cv_path_LD"
  5531. if test -n "$LD"; then
  5532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5533. $as_echo "$LD" >&6; }
  5534. else
  5535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5536. $as_echo "no" >&6; }
  5537. fi
  5538. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5540. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5541. if ${lt_cv_prog_gnu_ld+:} false; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5545. case `$LD -v 2>&1 </dev/null` in
  5546. *GNU* | *'with BFD'*)
  5547. lt_cv_prog_gnu_ld=yes
  5548. ;;
  5549. *)
  5550. lt_cv_prog_gnu_ld=no
  5551. ;;
  5552. esac
  5553. fi
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5555. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5556. with_gnu_ld=$lt_cv_prog_gnu_ld
  5557. # note, does not work on FreeBSD
  5558. for ac_prog in gawk mawk nawk awk
  5559. do
  5560. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5561. set dummy $ac_prog; ac_word=$2
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5563. $as_echo_n "checking for $ac_word... " >&6; }
  5564. if ${ac_cv_prog_AWK+:} false; then :
  5565. $as_echo_n "(cached) " >&6
  5566. else
  5567. if test -n "$AWK"; then
  5568. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5569. else
  5570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5571. for as_dir in $PATH
  5572. do
  5573. IFS=$as_save_IFS
  5574. test -z "$as_dir" && as_dir=.
  5575. for ac_exec_ext in '' $ac_executable_extensions; do
  5576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5577. ac_cv_prog_AWK="$ac_prog"
  5578. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5579. break 2
  5580. fi
  5581. done
  5582. done
  5583. IFS=$as_save_IFS
  5584. fi
  5585. fi
  5586. AWK=$ac_cv_prog_AWK
  5587. if test -n "$AWK"; then
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5589. $as_echo "$AWK" >&6; }
  5590. else
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5592. $as_echo "no" >&6; }
  5593. fi
  5594. test -n "$AWK" && break
  5595. done
  5596. # Find a good install program. We prefer a C program (faster),
  5597. # so one script is as good as another. But avoid the broken or
  5598. # incompatible versions:
  5599. # SysV /etc/install, /usr/sbin/install
  5600. # SunOS /usr/etc/install
  5601. # IRIX /sbin/install
  5602. # AIX /bin/install
  5603. # AmigaOS /C/install, which installs bootblocks on floppy discs
  5604. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5605. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5606. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5607. # OS/2's system install, which has a completely different semantic
  5608. # ./install, which can be erroneously created by make from ./install.sh.
  5609. # Reject install programs that cannot install multiple files.
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  5611. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  5612. if test -z "$INSTALL"; then
  5613. if ${ac_cv_path_install+:} false; then :
  5614. $as_echo_n "(cached) " >&6
  5615. else
  5616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5617. for as_dir in $PATH
  5618. do
  5619. IFS=$as_save_IFS
  5620. test -z "$as_dir" && as_dir=.
  5621. # Account for people who put trailing slashes in PATH elements.
  5622. case $as_dir/ in #((
  5623. ./ | .// | /[cC]/* | \
  5624. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5625. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  5626. /usr/ucb/* ) ;;
  5627. *)
  5628. # OSF1 and SCO ODT 3.0 have their own names for install.
  5629. # Don't use installbsd from OSF since it installs stuff as root
  5630. # by default.
  5631. for ac_prog in ginstall scoinst install; do
  5632. for ac_exec_ext in '' $ac_executable_extensions; do
  5633. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  5634. if test $ac_prog = install &&
  5635. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5636. # AIX install. It has an incompatible calling convention.
  5637. :
  5638. elif test $ac_prog = install &&
  5639. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5640. # program-specific install script used by HP pwplus--don't use.
  5641. :
  5642. else
  5643. rm -rf conftest.one conftest.two conftest.dir
  5644. echo one > conftest.one
  5645. echo two > conftest.two
  5646. mkdir conftest.dir
  5647. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  5648. test -s conftest.one && test -s conftest.two &&
  5649. test -s conftest.dir/conftest.one &&
  5650. test -s conftest.dir/conftest.two
  5651. then
  5652. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5653. break 3
  5654. fi
  5655. fi
  5656. fi
  5657. done
  5658. done
  5659. ;;
  5660. esac
  5661. done
  5662. IFS=$as_save_IFS
  5663. rm -rf conftest.one conftest.two conftest.dir
  5664. fi
  5665. if test "${ac_cv_path_install+set}" = set; then
  5666. INSTALL=$ac_cv_path_install
  5667. else
  5668. # As a last resort, use the slow shell script. Don't cache a
  5669. # value for INSTALL within a source directory, because that will
  5670. # break other packages using the cache if that directory is
  5671. # removed, or if the value is a relative name.
  5672. INSTALL=$ac_install_sh
  5673. fi
  5674. fi
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  5676. $as_echo "$INSTALL" >&6; }
  5677. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5678. # It thinks the first close brace ends the variable substitution.
  5679. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  5680. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  5681. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5683. $as_echo_n "checking whether ln -s works... " >&6; }
  5684. LN_S=$as_ln_s
  5685. if test "$LN_S" = "ln -s"; then
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5687. $as_echo "yes" >&6; }
  5688. else
  5689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5690. $as_echo "no, using $LN_S" >&6; }
  5691. fi
  5692. if test -n "$ac_tool_prefix"; then
  5693. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5694. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5696. $as_echo_n "checking for $ac_word... " >&6; }
  5697. if ${ac_cv_prog_RANLIB+:} false; then :
  5698. $as_echo_n "(cached) " >&6
  5699. else
  5700. if test -n "$RANLIB"; then
  5701. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5702. else
  5703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5704. for as_dir in $PATH
  5705. do
  5706. IFS=$as_save_IFS
  5707. test -z "$as_dir" && as_dir=.
  5708. for ac_exec_ext in '' $ac_executable_extensions; do
  5709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5710. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5712. break 2
  5713. fi
  5714. done
  5715. done
  5716. IFS=$as_save_IFS
  5717. fi
  5718. fi
  5719. RANLIB=$ac_cv_prog_RANLIB
  5720. if test -n "$RANLIB"; then
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5722. $as_echo "$RANLIB" >&6; }
  5723. else
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5725. $as_echo "no" >&6; }
  5726. fi
  5727. fi
  5728. if test -z "$ac_cv_prog_RANLIB"; then
  5729. ac_ct_RANLIB=$RANLIB
  5730. # Extract the first word of "ranlib", so it can be a program name with args.
  5731. set dummy ranlib; ac_word=$2
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5733. $as_echo_n "checking for $ac_word... " >&6; }
  5734. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5735. $as_echo_n "(cached) " >&6
  5736. else
  5737. if test -n "$ac_ct_RANLIB"; then
  5738. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5739. else
  5740. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5741. for as_dir in $PATH
  5742. do
  5743. IFS=$as_save_IFS
  5744. test -z "$as_dir" && as_dir=.
  5745. for ac_exec_ext in '' $ac_executable_extensions; do
  5746. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5747. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5748. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5749. break 2
  5750. fi
  5751. done
  5752. done
  5753. IFS=$as_save_IFS
  5754. fi
  5755. fi
  5756. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5757. if test -n "$ac_ct_RANLIB"; then
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5759. $as_echo "$ac_ct_RANLIB" >&6; }
  5760. else
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5762. $as_echo "no" >&6; }
  5763. fi
  5764. if test "x$ac_ct_RANLIB" = x; then
  5765. RANLIB=":"
  5766. else
  5767. case $cross_compiling:$ac_tool_warned in
  5768. yes:)
  5769. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5770. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5771. ac_tool_warned=yes ;;
  5772. esac
  5773. RANLIB=$ac_ct_RANLIB
  5774. fi
  5775. else
  5776. RANLIB="$ac_cv_prog_RANLIB"
  5777. fi
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  5779. $as_echo_n "checking for GNU make... " >&6; }
  5780. if ${ac_cv_GNU_MAKE+:} false; then :
  5781. $as_echo_n "(cached) " >&6
  5782. else
  5783. ac_cv_GNU_MAKE='Not Found' ;
  5784. ac_cv_GNU_MAKE_VERSION_MAJOR=0 ;
  5785. ac_cv_GNU_MAKE_VERSION_MINOR=0 ;
  5786. for a in make gmake gnumake ; do
  5787. if test -z "$a" ; then continue ; fi ;
  5788. if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
  5789. ac_cv_GNU_MAKE=$a ;
  5790. ac_cv_GNU_MAKE_VERSION_MAJOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f3 -d' ' | cut -f1 -d'.'`
  5791. ac_cv_GNU_MAKE_VERSION_MINOR=`$ac_cv_GNU_MAKE --version | grep "GNU Make" | cut -f2 -d'.' | cut -c1-2`
  5792. break;
  5793. fi
  5794. done ;
  5795. fi
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_GNU_MAKE" >&5
  5797. $as_echo "$ac_cv_GNU_MAKE" >&6; } ;
  5798. if test "x$ac_cv_GNU_MAKE" = "xNot Found" ; then
  5799. as_fn_error $? "*** Please install GNU make. It is required to build Asterisk!" "$LINENO" 5
  5800. exit 1
  5801. fi
  5802. GNU_MAKE=$ac_cv_GNU_MAKE
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5804. $as_echo_n "checking for egrep... " >&6; }
  5805. if ${ac_cv_path_EGREP+:} false; then :
  5806. $as_echo_n "(cached) " >&6
  5807. else
  5808. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5809. then ac_cv_path_EGREP="$GREP -E"
  5810. else
  5811. if test -z "$EGREP"; then
  5812. ac_path_EGREP_found=false
  5813. # Loop through the user's path and test for each of PROGNAME-LIST
  5814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5815. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5816. do
  5817. IFS=$as_save_IFS
  5818. test -z "$as_dir" && as_dir=.
  5819. for ac_prog in egrep; do
  5820. for ac_exec_ext in '' $ac_executable_extensions; do
  5821. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5822. as_fn_executable_p "$ac_path_EGREP" || continue
  5823. # Check for GNU ac_path_EGREP and select it if it is found.
  5824. # Check for GNU $ac_path_EGREP
  5825. case `"$ac_path_EGREP" --version 2>&1` in
  5826. *GNU*)
  5827. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5828. *)
  5829. ac_count=0
  5830. $as_echo_n 0123456789 >"conftest.in"
  5831. while :
  5832. do
  5833. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5834. mv "conftest.tmp" "conftest.in"
  5835. cp "conftest.in" "conftest.nl"
  5836. $as_echo 'EGREP' >> "conftest.nl"
  5837. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5838. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5839. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5840. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5841. # Best one so far, save it but keep looking for a better one
  5842. ac_cv_path_EGREP="$ac_path_EGREP"
  5843. ac_path_EGREP_max=$ac_count
  5844. fi
  5845. # 10*(2^10) chars as input seems more than enough
  5846. test $ac_count -gt 10 && break
  5847. done
  5848. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5849. esac
  5850. $ac_path_EGREP_found && break 3
  5851. done
  5852. done
  5853. done
  5854. IFS=$as_save_IFS
  5855. if test -z "$ac_cv_path_EGREP"; then
  5856. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5857. fi
  5858. else
  5859. ac_cv_path_EGREP=$EGREP
  5860. fi
  5861. fi
  5862. fi
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5864. $as_echo "$ac_cv_path_EGREP" >&6; }
  5865. EGREP="$ac_cv_path_EGREP"
  5866. if test -n "$ac_tool_prefix"; then
  5867. for ac_prog in strip gstrip
  5868. do
  5869. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5870. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5872. $as_echo_n "checking for $ac_word... " >&6; }
  5873. if ${ac_cv_prog_STRIP+:} false; then :
  5874. $as_echo_n "(cached) " >&6
  5875. else
  5876. if test -n "$STRIP"; then
  5877. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5878. else
  5879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5880. for as_dir in $PATH
  5881. do
  5882. IFS=$as_save_IFS
  5883. test -z "$as_dir" && as_dir=.
  5884. for ac_exec_ext in '' $ac_executable_extensions; do
  5885. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5886. ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog"
  5887. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5888. break 2
  5889. fi
  5890. done
  5891. done
  5892. IFS=$as_save_IFS
  5893. fi
  5894. fi
  5895. STRIP=$ac_cv_prog_STRIP
  5896. if test -n "$STRIP"; then
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5898. $as_echo "$STRIP" >&6; }
  5899. else
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5901. $as_echo "no" >&6; }
  5902. fi
  5903. test -n "$STRIP" && break
  5904. done
  5905. fi
  5906. if test -z "$STRIP"; then
  5907. ac_ct_STRIP=$STRIP
  5908. for ac_prog in strip gstrip
  5909. do
  5910. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5911. set dummy $ac_prog; ac_word=$2
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5913. $as_echo_n "checking for $ac_word... " >&6; }
  5914. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5915. $as_echo_n "(cached) " >&6
  5916. else
  5917. if test -n "$ac_ct_STRIP"; then
  5918. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5919. else
  5920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5921. for as_dir in $PATH
  5922. do
  5923. IFS=$as_save_IFS
  5924. test -z "$as_dir" && as_dir=.
  5925. for ac_exec_ext in '' $ac_executable_extensions; do
  5926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5927. ac_cv_prog_ac_ct_STRIP="$ac_prog"
  5928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5929. break 2
  5930. fi
  5931. done
  5932. done
  5933. IFS=$as_save_IFS
  5934. fi
  5935. fi
  5936. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5937. if test -n "$ac_ct_STRIP"; then
  5938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5939. $as_echo "$ac_ct_STRIP" >&6; }
  5940. else
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5942. $as_echo "no" >&6; }
  5943. fi
  5944. test -n "$ac_ct_STRIP" && break
  5945. done
  5946. if test "x$ac_ct_STRIP" = x; then
  5947. STRIP=":"
  5948. else
  5949. case $cross_compiling:$ac_tool_warned in
  5950. yes:)
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5953. ac_tool_warned=yes ;;
  5954. esac
  5955. STRIP=$ac_ct_STRIP
  5956. fi
  5957. fi
  5958. if test -n "$ac_tool_prefix"; then
  5959. for ac_prog in ar gar
  5960. do
  5961. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5962. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5964. $as_echo_n "checking for $ac_word... " >&6; }
  5965. if ${ac_cv_prog_AR+:} false; then :
  5966. $as_echo_n "(cached) " >&6
  5967. else
  5968. if test -n "$AR"; then
  5969. ac_cv_prog_AR="$AR" # Let the user override the test.
  5970. else
  5971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5972. for as_dir in $PATH
  5973. do
  5974. IFS=$as_save_IFS
  5975. test -z "$as_dir" && as_dir=.
  5976. for ac_exec_ext in '' $ac_executable_extensions; do
  5977. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5978. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5980. break 2
  5981. fi
  5982. done
  5983. done
  5984. IFS=$as_save_IFS
  5985. fi
  5986. fi
  5987. AR=$ac_cv_prog_AR
  5988. if test -n "$AR"; then
  5989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5990. $as_echo "$AR" >&6; }
  5991. else
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5993. $as_echo "no" >&6; }
  5994. fi
  5995. test -n "$AR" && break
  5996. done
  5997. fi
  5998. if test -z "$AR"; then
  5999. ac_ct_AR=$AR
  6000. for ac_prog in ar gar
  6001. do
  6002. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6003. set dummy $ac_prog; ac_word=$2
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6005. $as_echo_n "checking for $ac_word... " >&6; }
  6006. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6007. $as_echo_n "(cached) " >&6
  6008. else
  6009. if test -n "$ac_ct_AR"; then
  6010. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6011. else
  6012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6013. for as_dir in $PATH
  6014. do
  6015. IFS=$as_save_IFS
  6016. test -z "$as_dir" && as_dir=.
  6017. for ac_exec_ext in '' $ac_executable_extensions; do
  6018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6019. ac_cv_prog_ac_ct_AR="$ac_prog"
  6020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6021. break 2
  6022. fi
  6023. done
  6024. done
  6025. IFS=$as_save_IFS
  6026. fi
  6027. fi
  6028. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6029. if test -n "$ac_ct_AR"; then
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6031. $as_echo "$ac_ct_AR" >&6; }
  6032. else
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6034. $as_echo "no" >&6; }
  6035. fi
  6036. test -n "$ac_ct_AR" && break
  6037. done
  6038. if test "x$ac_ct_AR" = x; then
  6039. AR=":"
  6040. else
  6041. case $cross_compiling:$ac_tool_warned in
  6042. yes:)
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6044. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6045. ac_tool_warned=yes ;;
  6046. esac
  6047. AR=$ac_ct_AR
  6048. fi
  6049. fi
  6050. GNU_LD=0
  6051. if test "x$with_gnu_ld" = "xyes" ; then
  6052. GNU_LD=1
  6053. fi
  6054. # Extract the first word of "bison", so it can be a program name with args.
  6055. set dummy bison; ac_word=$2
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6057. $as_echo_n "checking for $ac_word... " >&6; }
  6058. if ${ac_cv_path_BISON+:} false; then :
  6059. $as_echo_n "(cached) " >&6
  6060. else
  6061. case $BISON in
  6062. [\\/]* | ?:[\\/]*)
  6063. ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
  6064. ;;
  6065. *)
  6066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6067. for as_dir in $PATH
  6068. do
  6069. IFS=$as_save_IFS
  6070. test -z "$as_dir" && as_dir=.
  6071. for ac_exec_ext in '' $ac_executable_extensions; do
  6072. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6073. ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
  6074. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6075. break 2
  6076. fi
  6077. done
  6078. done
  6079. IFS=$as_save_IFS
  6080. test -z "$ac_cv_path_BISON" && ac_cv_path_BISON=":"
  6081. ;;
  6082. esac
  6083. fi
  6084. BISON=$ac_cv_path_BISON
  6085. if test -n "$BISON"; then
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6087. $as_echo "$BISON" >&6; }
  6088. else
  6089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6090. $as_echo "no" >&6; }
  6091. fi
  6092. # Extract the first word of "cmp", so it can be a program name with args.
  6093. set dummy cmp; ac_word=$2
  6094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6095. $as_echo_n "checking for $ac_word... " >&6; }
  6096. if ${ac_cv_path_CMP+:} false; then :
  6097. $as_echo_n "(cached) " >&6
  6098. else
  6099. case $CMP in
  6100. [\\/]* | ?:[\\/]*)
  6101. ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
  6102. ;;
  6103. *)
  6104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6105. for as_dir in $PATH
  6106. do
  6107. IFS=$as_save_IFS
  6108. test -z "$as_dir" && as_dir=.
  6109. for ac_exec_ext in '' $ac_executable_extensions; do
  6110. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6111. ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
  6112. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6113. break 2
  6114. fi
  6115. done
  6116. done
  6117. IFS=$as_save_IFS
  6118. test -z "$ac_cv_path_CMP" && ac_cv_path_CMP=":"
  6119. ;;
  6120. esac
  6121. fi
  6122. CMP=$ac_cv_path_CMP
  6123. if test -n "$CMP"; then
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
  6125. $as_echo "$CMP" >&6; }
  6126. else
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6128. $as_echo "no" >&6; }
  6129. fi
  6130. # Extract the first word of "flex", so it can be a program name with args.
  6131. set dummy flex; ac_word=$2
  6132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6133. $as_echo_n "checking for $ac_word... " >&6; }
  6134. if ${ac_cv_path_FLEX+:} false; then :
  6135. $as_echo_n "(cached) " >&6
  6136. else
  6137. case $FLEX in
  6138. [\\/]* | ?:[\\/]*)
  6139. ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
  6140. ;;
  6141. *)
  6142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6143. for as_dir in $PATH
  6144. do
  6145. IFS=$as_save_IFS
  6146. test -z "$as_dir" && as_dir=.
  6147. for ac_exec_ext in '' $ac_executable_extensions; do
  6148. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6149. ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
  6150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6151. break 2
  6152. fi
  6153. done
  6154. done
  6155. IFS=$as_save_IFS
  6156. test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX=":"
  6157. ;;
  6158. esac
  6159. fi
  6160. FLEX=$ac_cv_path_FLEX
  6161. if test -n "$FLEX"; then
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  6163. $as_echo "$FLEX" >&6; }
  6164. else
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6166. $as_echo "no" >&6; }
  6167. fi
  6168. # Extract the first word of "grep", so it can be a program name with args.
  6169. set dummy grep; ac_word=$2
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6171. $as_echo_n "checking for $ac_word... " >&6; }
  6172. if ${ac_cv_path_GREP+:} false; then :
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. case $GREP in
  6176. [\\/]* | ?:[\\/]*)
  6177. ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
  6178. ;;
  6179. *)
  6180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6181. for as_dir in $PATH
  6182. do
  6183. IFS=$as_save_IFS
  6184. test -z "$as_dir" && as_dir=.
  6185. for ac_exec_ext in '' $ac_executable_extensions; do
  6186. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6187. ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
  6188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6189. break 2
  6190. fi
  6191. done
  6192. done
  6193. IFS=$as_save_IFS
  6194. test -z "$ac_cv_path_GREP" && ac_cv_path_GREP=":"
  6195. ;;
  6196. esac
  6197. fi
  6198. GREP=$ac_cv_path_GREP
  6199. if test -n "$GREP"; then
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
  6201. $as_echo "$GREP" >&6; }
  6202. else
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6204. $as_echo "no" >&6; }
  6205. fi
  6206. # Extract the first word of "python", so it can be a program name with args.
  6207. set dummy python; ac_word=$2
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6209. $as_echo_n "checking for $ac_word... " >&6; }
  6210. if ${ac_cv_path_PYTHON+:} false; then :
  6211. $as_echo_n "(cached) " >&6
  6212. else
  6213. case $PYTHON in
  6214. [\\/]* | ?:[\\/]*)
  6215. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  6216. ;;
  6217. *)
  6218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6219. for as_dir in $PATH
  6220. do
  6221. IFS=$as_save_IFS
  6222. test -z "$as_dir" && as_dir=.
  6223. for ac_exec_ext in '' $ac_executable_extensions; do
  6224. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6225. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  6226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6227. break 2
  6228. fi
  6229. done
  6230. done
  6231. IFS=$as_save_IFS
  6232. test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
  6233. ;;
  6234. esac
  6235. fi
  6236. PYTHON=$ac_cv_path_PYTHON
  6237. if test -n "$PYTHON"; then
  6238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  6239. $as_echo "$PYTHON" >&6; }
  6240. else
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6242. $as_echo "no" >&6; }
  6243. fi
  6244. # Extract the first word of "find", so it can be a program name with args.
  6245. set dummy find; ac_word=$2
  6246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6247. $as_echo_n "checking for $ac_word... " >&6; }
  6248. if ${ac_cv_path_FIND+:} false; then :
  6249. $as_echo_n "(cached) " >&6
  6250. else
  6251. case $FIND in
  6252. [\\/]* | ?:[\\/]*)
  6253. ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
  6254. ;;
  6255. *)
  6256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6257. for as_dir in $PATH
  6258. do
  6259. IFS=$as_save_IFS
  6260. test -z "$as_dir" && as_dir=.
  6261. for ac_exec_ext in '' $ac_executable_extensions; do
  6262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6263. ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
  6264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6265. break 2
  6266. fi
  6267. done
  6268. done
  6269. IFS=$as_save_IFS
  6270. test -z "$ac_cv_path_FIND" && ac_cv_path_FIND=":"
  6271. ;;
  6272. esac
  6273. fi
  6274. FIND=$ac_cv_path_FIND
  6275. if test -n "$FIND"; then
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
  6277. $as_echo "$FIND" >&6; }
  6278. else
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6280. $as_echo "no" >&6; }
  6281. fi
  6282. # Extract the first word of "compress", so it can be a program name with args.
  6283. set dummy compress; ac_word=$2
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6285. $as_echo_n "checking for $ac_word... " >&6; }
  6286. if ${ac_cv_path_COMPRESS+:} false; then :
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. case $COMPRESS in
  6290. [\\/]* | ?:[\\/]*)
  6291. ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
  6292. ;;
  6293. *)
  6294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6295. for as_dir in $PATH
  6296. do
  6297. IFS=$as_save_IFS
  6298. test -z "$as_dir" && as_dir=.
  6299. for ac_exec_ext in '' $ac_executable_extensions; do
  6300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6301. ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
  6302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6303. break 2
  6304. fi
  6305. done
  6306. done
  6307. IFS=$as_save_IFS
  6308. test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS=":"
  6309. ;;
  6310. esac
  6311. fi
  6312. COMPRESS=$ac_cv_path_COMPRESS
  6313. if test -n "$COMPRESS"; then
  6314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESS" >&5
  6315. $as_echo "$COMPRESS" >&6; }
  6316. else
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6318. $as_echo "no" >&6; }
  6319. fi
  6320. # Extract the first word of "basename", so it can be a program name with args.
  6321. set dummy basename; ac_word=$2
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6323. $as_echo_n "checking for $ac_word... " >&6; }
  6324. if ${ac_cv_path_BASENAME+:} false; then :
  6325. $as_echo_n "(cached) " >&6
  6326. else
  6327. case $BASENAME in
  6328. [\\/]* | ?:[\\/]*)
  6329. ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
  6330. ;;
  6331. *)
  6332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6333. for as_dir in $PATH
  6334. do
  6335. IFS=$as_save_IFS
  6336. test -z "$as_dir" && as_dir=.
  6337. for ac_exec_ext in '' $ac_executable_extensions; do
  6338. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6339. ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
  6340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6341. break 2
  6342. fi
  6343. done
  6344. done
  6345. IFS=$as_save_IFS
  6346. test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME=":"
  6347. ;;
  6348. esac
  6349. fi
  6350. BASENAME=$ac_cv_path_BASENAME
  6351. if test -n "$BASENAME"; then
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  6353. $as_echo "$BASENAME" >&6; }
  6354. else
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6356. $as_echo "no" >&6; }
  6357. fi
  6358. # Extract the first word of "dirname", so it can be a program name with args.
  6359. set dummy dirname; ac_word=$2
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6361. $as_echo_n "checking for $ac_word... " >&6; }
  6362. if ${ac_cv_path_DIRNAME+:} false; then :
  6363. $as_echo_n "(cached) " >&6
  6364. else
  6365. case $DIRNAME in
  6366. [\\/]* | ?:[\\/]*)
  6367. ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
  6368. ;;
  6369. *)
  6370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6371. for as_dir in $PATH
  6372. do
  6373. IFS=$as_save_IFS
  6374. test -z "$as_dir" && as_dir=.
  6375. for ac_exec_ext in '' $ac_executable_extensions; do
  6376. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6377. ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
  6378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6379. break 2
  6380. fi
  6381. done
  6382. done
  6383. IFS=$as_save_IFS
  6384. test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME=":"
  6385. ;;
  6386. esac
  6387. fi
  6388. DIRNAME=$ac_cv_path_DIRNAME
  6389. if test -n "$DIRNAME"; then
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
  6391. $as_echo "$DIRNAME" >&6; }
  6392. else
  6393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6394. $as_echo "no" >&6; }
  6395. fi
  6396. # Extract the first word of "sh", so it can be a program name with args.
  6397. set dummy sh; ac_word=$2
  6398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6399. $as_echo_n "checking for $ac_word... " >&6; }
  6400. if ${ac_cv_path_SHELL+:} false; then :
  6401. $as_echo_n "(cached) " >&6
  6402. else
  6403. case $SHELL in
  6404. [\\/]* | ?:[\\/]*)
  6405. ac_cv_path_SHELL="$SHELL" # Let the user override the test with a path.
  6406. ;;
  6407. *)
  6408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6409. for as_dir in $PATH
  6410. do
  6411. IFS=$as_save_IFS
  6412. test -z "$as_dir" && as_dir=.
  6413. for ac_exec_ext in '' $ac_executable_extensions; do
  6414. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6415. ac_cv_path_SHELL="$as_dir/$ac_word$ac_exec_ext"
  6416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6417. break 2
  6418. fi
  6419. done
  6420. done
  6421. IFS=$as_save_IFS
  6422. test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL=":"
  6423. ;;
  6424. esac
  6425. fi
  6426. SHELL=$ac_cv_path_SHELL
  6427. if test -n "$SHELL"; then
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELL" >&5
  6429. $as_echo "$SHELL" >&6; }
  6430. else
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6432. $as_echo "no" >&6; }
  6433. fi
  6434. # Extract the first word of "ln", so it can be a program name with args.
  6435. set dummy ln; ac_word=$2
  6436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6437. $as_echo_n "checking for $ac_word... " >&6; }
  6438. if ${ac_cv_path_LN+:} false; then :
  6439. $as_echo_n "(cached) " >&6
  6440. else
  6441. case $LN in
  6442. [\\/]* | ?:[\\/]*)
  6443. ac_cv_path_LN="$LN" # Let the user override the test with a path.
  6444. ;;
  6445. *)
  6446. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6447. for as_dir in $PATH
  6448. do
  6449. IFS=$as_save_IFS
  6450. test -z "$as_dir" && as_dir=.
  6451. for ac_exec_ext in '' $ac_executable_extensions; do
  6452. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6453. ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
  6454. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6455. break 2
  6456. fi
  6457. done
  6458. done
  6459. IFS=$as_save_IFS
  6460. test -z "$ac_cv_path_LN" && ac_cv_path_LN=":"
  6461. ;;
  6462. esac
  6463. fi
  6464. LN=$ac_cv_path_LN
  6465. if test -n "$LN"; then
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
  6467. $as_echo "$LN" >&6; }
  6468. else
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6470. $as_echo "no" >&6; }
  6471. fi
  6472. # Extract the first word of "doxygen", so it can be a program name with args.
  6473. set dummy doxygen; ac_word=$2
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6475. $as_echo_n "checking for $ac_word... " >&6; }
  6476. if ${ac_cv_path_DOXYGEN+:} false; then :
  6477. $as_echo_n "(cached) " >&6
  6478. else
  6479. case $DOXYGEN in
  6480. [\\/]* | ?:[\\/]*)
  6481. ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
  6482. ;;
  6483. *)
  6484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6485. for as_dir in $PATH
  6486. do
  6487. IFS=$as_save_IFS
  6488. test -z "$as_dir" && as_dir=.
  6489. for ac_exec_ext in '' $ac_executable_extensions; do
  6490. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6491. ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
  6492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6493. break 2
  6494. fi
  6495. done
  6496. done
  6497. IFS=$as_save_IFS
  6498. test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=":"
  6499. ;;
  6500. esac
  6501. fi
  6502. DOXYGEN=$ac_cv_path_DOXYGEN
  6503. if test -n "$DOXYGEN"; then
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
  6505. $as_echo "$DOXYGEN" >&6; }
  6506. else
  6507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6508. $as_echo "no" >&6; }
  6509. fi
  6510. # Extract the first word of "dot", so it can be a program name with args.
  6511. set dummy dot; ac_word=$2
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6513. $as_echo_n "checking for $ac_word... " >&6; }
  6514. if ${ac_cv_path_DOT+:} false; then :
  6515. $as_echo_n "(cached) " >&6
  6516. else
  6517. case $DOT in
  6518. [\\/]* | ?:[\\/]*)
  6519. ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
  6520. ;;
  6521. *)
  6522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6523. for as_dir in $PATH
  6524. do
  6525. IFS=$as_save_IFS
  6526. test -z "$as_dir" && as_dir=.
  6527. for ac_exec_ext in '' $ac_executable_extensions; do
  6528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6529. ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
  6530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6531. break 2
  6532. fi
  6533. done
  6534. done
  6535. IFS=$as_save_IFS
  6536. test -z "$ac_cv_path_DOT" && ac_cv_path_DOT=":"
  6537. ;;
  6538. esac
  6539. fi
  6540. DOT=$ac_cv_path_DOT
  6541. if test -n "$DOT"; then
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
  6543. $as_echo "$DOT" >&6; }
  6544. else
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6546. $as_echo "no" >&6; }
  6547. fi
  6548. # Extract the first word of "wget", so it can be a program name with args.
  6549. set dummy wget; ac_word=$2
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6551. $as_echo_n "checking for $ac_word... " >&6; }
  6552. if ${ac_cv_path_WGET+:} false; then :
  6553. $as_echo_n "(cached) " >&6
  6554. else
  6555. case $WGET in
  6556. [\\/]* | ?:[\\/]*)
  6557. ac_cv_path_WGET="$WGET" # Let the user override the test with a path.
  6558. ;;
  6559. *)
  6560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6561. for as_dir in $PATH
  6562. do
  6563. IFS=$as_save_IFS
  6564. test -z "$as_dir" && as_dir=.
  6565. for ac_exec_ext in '' $ac_executable_extensions; do
  6566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6567. ac_cv_path_WGET="$as_dir/$ac_word$ac_exec_ext"
  6568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6569. break 2
  6570. fi
  6571. done
  6572. done
  6573. IFS=$as_save_IFS
  6574. test -z "$ac_cv_path_WGET" && ac_cv_path_WGET=":"
  6575. ;;
  6576. esac
  6577. fi
  6578. WGET=$ac_cv_path_WGET
  6579. if test -n "$WGET"; then
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WGET" >&5
  6581. $as_echo "$WGET" >&6; }
  6582. else
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6584. $as_echo "no" >&6; }
  6585. fi
  6586. # Extract the first word of "curl", so it can be a program name with args.
  6587. set dummy curl; ac_word=$2
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6589. $as_echo_n "checking for $ac_word... " >&6; }
  6590. if ${ac_cv_path_CURL+:} false; then :
  6591. $as_echo_n "(cached) " >&6
  6592. else
  6593. case $CURL in
  6594. [\\/]* | ?:[\\/]*)
  6595. ac_cv_path_CURL="$CURL" # Let the user override the test with a path.
  6596. ;;
  6597. *)
  6598. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6599. for as_dir in $PATH
  6600. do
  6601. IFS=$as_save_IFS
  6602. test -z "$as_dir" && as_dir=.
  6603. for ac_exec_ext in '' $ac_executable_extensions; do
  6604. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6605. ac_cv_path_CURL="$as_dir/$ac_word$ac_exec_ext"
  6606. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6607. break 2
  6608. fi
  6609. done
  6610. done
  6611. IFS=$as_save_IFS
  6612. test -z "$ac_cv_path_CURL" && ac_cv_path_CURL=":"
  6613. ;;
  6614. esac
  6615. fi
  6616. CURL=$ac_cv_path_CURL
  6617. if test -n "$CURL"; then
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURL" >&5
  6619. $as_echo "$CURL" >&6; }
  6620. else
  6621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6622. $as_echo "no" >&6; }
  6623. fi
  6624. # Extract the first word of "rubber", so it can be a program name with args.
  6625. set dummy rubber; ac_word=$2
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6627. $as_echo_n "checking for $ac_word... " >&6; }
  6628. if ${ac_cv_path_RUBBER+:} false; then :
  6629. $as_echo_n "(cached) " >&6
  6630. else
  6631. case $RUBBER in
  6632. [\\/]* | ?:[\\/]*)
  6633. ac_cv_path_RUBBER="$RUBBER" # Let the user override the test with a path.
  6634. ;;
  6635. *)
  6636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6637. for as_dir in $PATH
  6638. do
  6639. IFS=$as_save_IFS
  6640. test -z "$as_dir" && as_dir=.
  6641. for ac_exec_ext in '' $ac_executable_extensions; do
  6642. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6643. ac_cv_path_RUBBER="$as_dir/$ac_word$ac_exec_ext"
  6644. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6645. break 2
  6646. fi
  6647. done
  6648. done
  6649. IFS=$as_save_IFS
  6650. test -z "$ac_cv_path_RUBBER" && ac_cv_path_RUBBER=":"
  6651. ;;
  6652. esac
  6653. fi
  6654. RUBBER=$ac_cv_path_RUBBER
  6655. if test -n "$RUBBER"; then
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBBER" >&5
  6657. $as_echo "$RUBBER" >&6; }
  6658. else
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6660. $as_echo "no" >&6; }
  6661. fi
  6662. # Extract the first word of "catdvi", so it can be a program name with args.
  6663. set dummy catdvi; ac_word=$2
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6665. $as_echo_n "checking for $ac_word... " >&6; }
  6666. if ${ac_cv_path_CATDVI+:} false; then :
  6667. $as_echo_n "(cached) " >&6
  6668. else
  6669. case $CATDVI in
  6670. [\\/]* | ?:[\\/]*)
  6671. ac_cv_path_CATDVI="$CATDVI" # 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. test -z "$as_dir" && as_dir=.
  6679. for ac_exec_ext in '' $ac_executable_extensions; do
  6680. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6681. ac_cv_path_CATDVI="$as_dir/$ac_word$ac_exec_ext"
  6682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6683. break 2
  6684. fi
  6685. done
  6686. done
  6687. IFS=$as_save_IFS
  6688. test -z "$ac_cv_path_CATDVI" && ac_cv_path_CATDVI=":"
  6689. ;;
  6690. esac
  6691. fi
  6692. CATDVI=$ac_cv_path_CATDVI
  6693. if test -n "$CATDVI"; then
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CATDVI" >&5
  6695. $as_echo "$CATDVI" >&6; }
  6696. else
  6697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6698. $as_echo "no" >&6; }
  6699. fi
  6700. # Extract the first word of "kpsewhich", so it can be a program name with args.
  6701. set dummy kpsewhich; ac_word=$2
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6703. $as_echo_n "checking for $ac_word... " >&6; }
  6704. if ${ac_cv_path_KPATHSEA+:} false; then :
  6705. $as_echo_n "(cached) " >&6
  6706. else
  6707. case $KPATHSEA in
  6708. [\\/]* | ?:[\\/]*)
  6709. ac_cv_path_KPATHSEA="$KPATHSEA" # Let the user override the test with a path.
  6710. ;;
  6711. *)
  6712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6713. for as_dir in $PATH
  6714. do
  6715. IFS=$as_save_IFS
  6716. test -z "$as_dir" && as_dir=.
  6717. for ac_exec_ext in '' $ac_executable_extensions; do
  6718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6719. ac_cv_path_KPATHSEA="$as_dir/$ac_word$ac_exec_ext"
  6720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6721. break 2
  6722. fi
  6723. done
  6724. done
  6725. IFS=$as_save_IFS
  6726. test -z "$ac_cv_path_KPATHSEA" && ac_cv_path_KPATHSEA=":"
  6727. ;;
  6728. esac
  6729. fi
  6730. KPATHSEA=$ac_cv_path_KPATHSEA
  6731. if test -n "$KPATHSEA"; then
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KPATHSEA" >&5
  6733. $as_echo "$KPATHSEA" >&6; }
  6734. else
  6735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6736. $as_echo "no" >&6; }
  6737. fi
  6738. # Extract the first word of "xmllint", so it can be a program name with args.
  6739. set dummy xmllint; ac_word=$2
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6741. $as_echo_n "checking for $ac_word... " >&6; }
  6742. if ${ac_cv_path_XMLLINT+:} false; then :
  6743. $as_echo_n "(cached) " >&6
  6744. else
  6745. case $XMLLINT in
  6746. [\\/]* | ?:[\\/]*)
  6747. ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
  6748. ;;
  6749. *)
  6750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6751. for as_dir in $PATH
  6752. do
  6753. IFS=$as_save_IFS
  6754. test -z "$as_dir" && as_dir=.
  6755. for ac_exec_ext in '' $ac_executable_extensions; do
  6756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6757. ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
  6758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6759. break 2
  6760. fi
  6761. done
  6762. done
  6763. IFS=$as_save_IFS
  6764. test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT=":"
  6765. ;;
  6766. esac
  6767. fi
  6768. XMLLINT=$ac_cv_path_XMLLINT
  6769. if test -n "$XMLLINT"; then
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
  6771. $as_echo "$XMLLINT" >&6; }
  6772. else
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6774. $as_echo "no" >&6; }
  6775. fi
  6776. # Extract the first word of "xmlstarlet", so it can be a program name with args.
  6777. set dummy xmlstarlet; ac_word=$2
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6779. $as_echo_n "checking for $ac_word... " >&6; }
  6780. if ${ac_cv_path_XMLSTARLET+:} false; then :
  6781. $as_echo_n "(cached) " >&6
  6782. else
  6783. case $XMLSTARLET in
  6784. [\\/]* | ?:[\\/]*)
  6785. ac_cv_path_XMLSTARLET="$XMLSTARLET" # Let the user override the test with a path.
  6786. ;;
  6787. *)
  6788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6789. for as_dir in $PATH
  6790. do
  6791. IFS=$as_save_IFS
  6792. test -z "$as_dir" && as_dir=.
  6793. for ac_exec_ext in '' $ac_executable_extensions; do
  6794. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6795. ac_cv_path_XMLSTARLET="$as_dir/$ac_word$ac_exec_ext"
  6796. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6797. break 2
  6798. fi
  6799. done
  6800. done
  6801. IFS=$as_save_IFS
  6802. test -z "$ac_cv_path_XMLSTARLET" && ac_cv_path_XMLSTARLET=":"
  6803. ;;
  6804. esac
  6805. fi
  6806. XMLSTARLET=$ac_cv_path_XMLSTARLET
  6807. if test -n "$XMLSTARLET"; then
  6808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLSTARLET" >&5
  6809. $as_echo "$XMLSTARLET" >&6; }
  6810. else
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6812. $as_echo "no" >&6; }
  6813. fi
  6814. # Extract the first word of "git", so it can be a program name with args.
  6815. set dummy git; ac_word=$2
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6817. $as_echo_n "checking for $ac_word... " >&6; }
  6818. if ${ac_cv_path_GIT+:} false; then :
  6819. $as_echo_n "(cached) " >&6
  6820. else
  6821. case $GIT in
  6822. [\\/]* | ?:[\\/]*)
  6823. ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
  6824. ;;
  6825. *)
  6826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6827. for as_dir in $PATH
  6828. do
  6829. IFS=$as_save_IFS
  6830. test -z "$as_dir" && as_dir=.
  6831. for ac_exec_ext in '' $ac_executable_extensions; do
  6832. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6833. ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
  6834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6835. break 2
  6836. fi
  6837. done
  6838. done
  6839. IFS=$as_save_IFS
  6840. test -z "$ac_cv_path_GIT" && ac_cv_path_GIT=":"
  6841. ;;
  6842. esac
  6843. fi
  6844. GIT=$ac_cv_path_GIT
  6845. if test -n "$GIT"; then
  6846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
  6847. $as_echo "$GIT" >&6; }
  6848. else
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6850. $as_echo "no" >&6; }
  6851. fi
  6852. if test "${WGET}" != ":" ; then
  6853. DOWNLOAD=${WGET}
  6854. else if test "${CURL}" != ":" ; then
  6855. DOWNLOAD="${CURL} -O --progress-bar -w \"%{url_effective}\n\""
  6856. else
  6857. # Extract the first word of "fetch", so it can be a program name with args.
  6858. set dummy fetch; ac_word=$2
  6859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6860. $as_echo_n "checking for $ac_word... " >&6; }
  6861. if ${ac_cv_path_FETCH+:} false; then :
  6862. $as_echo_n "(cached) " >&6
  6863. else
  6864. case $FETCH in
  6865. [\\/]* | ?:[\\/]*)
  6866. ac_cv_path_FETCH="$FETCH" # Let the user override the test with a path.
  6867. ;;
  6868. *)
  6869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6870. for as_dir in $PATH
  6871. do
  6872. IFS=$as_save_IFS
  6873. test -z "$as_dir" && as_dir=.
  6874. for ac_exec_ext in '' $ac_executable_extensions; do
  6875. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6876. ac_cv_path_FETCH="$as_dir/$ac_word$ac_exec_ext"
  6877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6878. break 2
  6879. fi
  6880. done
  6881. done
  6882. IFS=$as_save_IFS
  6883. test -z "$ac_cv_path_FETCH" && ac_cv_path_FETCH=":"
  6884. ;;
  6885. esac
  6886. fi
  6887. FETCH=$ac_cv_path_FETCH
  6888. if test -n "$FETCH"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FETCH" >&5
  6890. $as_echo "$FETCH" >&6; }
  6891. else
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6893. $as_echo "no" >&6; }
  6894. fi
  6895. DOWNLOAD=${FETCH}
  6896. fi
  6897. fi
  6898. # Extract the first word of "ldconfig", so it can be a program name with args.
  6899. set dummy ldconfig; ac_word=$2
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6901. $as_echo_n "checking for $ac_word... " >&6; }
  6902. if ${ac_cv_path_LDCONFIG+:} false; then :
  6903. $as_echo_n "(cached) " >&6
  6904. else
  6905. case $LDCONFIG in
  6906. [\\/]* | ?:[\\/]*)
  6907. ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
  6908. ;;
  6909. *)
  6910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6911. for as_dir in $PATH
  6912. do
  6913. IFS=$as_save_IFS
  6914. test -z "$as_dir" && as_dir=.
  6915. for ac_exec_ext in '' $ac_executable_extensions; do
  6916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6917. ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
  6918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6919. break 2
  6920. fi
  6921. done
  6922. done
  6923. IFS=$as_save_IFS
  6924. test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
  6925. ;;
  6926. esac
  6927. fi
  6928. LDCONFIG=$ac_cv_path_LDCONFIG
  6929. if test -n "$LDCONFIG"; then
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
  6931. $as_echo "$LDCONFIG" >&6; }
  6932. else
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6934. $as_echo "no" >&6; }
  6935. fi
  6936. # Extract the first word of "sha1sum", so it can be a program name with args.
  6937. set dummy sha1sum; ac_word=$2
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6939. $as_echo_n "checking for $ac_word... " >&6; }
  6940. if ${ac_cv_path_SHA1SUM+:} false; then :
  6941. $as_echo_n "(cached) " >&6
  6942. else
  6943. case $SHA1SUM in
  6944. [\\/]* | ?:[\\/]*)
  6945. ac_cv_path_SHA1SUM="$SHA1SUM" # Let the user override the test with a path.
  6946. ;;
  6947. *)
  6948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6949. for as_dir in $PATH
  6950. do
  6951. IFS=$as_save_IFS
  6952. test -z "$as_dir" && as_dir=.
  6953. for ac_exec_ext in '' $ac_executable_extensions; do
  6954. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6955. ac_cv_path_SHA1SUM="$as_dir/$ac_word$ac_exec_ext"
  6956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6957. break 2
  6958. fi
  6959. done
  6960. done
  6961. IFS=$as_save_IFS
  6962. test -z "$ac_cv_path_SHA1SUM" && ac_cv_path_SHA1SUM="$ac_aux_dir/build_tools/sha1sum-sh"
  6963. ;;
  6964. esac
  6965. fi
  6966. SHA1SUM=$ac_cv_path_SHA1SUM
  6967. if test -n "$SHA1SUM"; then
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHA1SUM" >&5
  6969. $as_echo "$SHA1SUM" >&6; }
  6970. else
  6971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6972. $as_echo "no" >&6; }
  6973. fi
  6974. # Extract the first word of "openssl", so it can be a program name with args.
  6975. set dummy openssl; ac_word=$2
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6977. $as_echo_n "checking for $ac_word... " >&6; }
  6978. if ${ac_cv_path_OPENSSL+:} false; then :
  6979. $as_echo_n "(cached) " >&6
  6980. else
  6981. case $OPENSSL in
  6982. [\\/]* | ?:[\\/]*)
  6983. ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
  6984. ;;
  6985. *)
  6986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6987. for as_dir in $PATH
  6988. do
  6989. IFS=$as_save_IFS
  6990. test -z "$as_dir" && as_dir=.
  6991. for ac_exec_ext in '' $ac_executable_extensions; do
  6992. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6993. ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
  6994. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6995. break 2
  6996. fi
  6997. done
  6998. done
  6999. IFS=$as_save_IFS
  7000. test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL=":"
  7001. ;;
  7002. esac
  7003. fi
  7004. OPENSSL=$ac_cv_path_OPENSSL
  7005. if test -n "$OPENSSL"; then
  7006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
  7007. $as_echo "$OPENSSL" >&6; }
  7008. else
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7010. $as_echo "no" >&6; }
  7011. fi
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison that supports parse-param" >&5
  7013. $as_echo_n "checking for bison that supports parse-param... " >&6; }
  7014. if ${ac_cv_path_BISON2+:} false; then :
  7015. $as_echo_n "(cached) " >&6
  7016. else
  7017. if test "x$BISON" != "x:" ; then
  7018. # Create a temporary directory $tmp in $TMPDIR (default /tmp).
  7019. # Use mktemp if possible; otherwise fall back on mkdir,
  7020. # with $RANDOM to make collisions less likely.
  7021. : ${TMPDIR=/tmp}
  7022. {
  7023. tmp=`
  7024. (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
  7025. ` &&
  7026. test -n "$tmp" && test -d "$tmp"
  7027. } || {
  7028. tmp=$TMPDIR/foo$$-$RANDOM
  7029. (umask 077 && mkdir "$tmp")
  7030. } || exit $?
  7031. cat >$tmp/test.y <<__EOL__
  7032. %parse-param {struct parse_io *parseio}
  7033. %%
  7034. file : { \$\$ = parseio->pval = 1; }
  7035. ;
  7036. %%
  7037. __EOL__
  7038. ${BISON} -o ${tmp}/test.tab.c ${tmp}/test.y >/dev/null 2>&1
  7039. if test -e "${tmp}/test.tab.c"; then
  7040. ac_cv_path_BISON2=${BISON}
  7041. fi
  7042. rm -rf ${tmp}
  7043. fi
  7044. fi
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_BISON2" >&5
  7046. $as_echo "$ac_cv_path_BISON2" >&6; }
  7047. if test "x${ac_cv_path_BISON2}" = "x" ; then
  7048. BISON=:
  7049. PBX_BISON=0
  7050. else
  7051. PBX_BISON=1
  7052. fi
  7053. if test "x${FLEX}" = "x:" ; then
  7054. PBX_FLEX=0
  7055. else
  7056. PBX_FLEX=1
  7057. fi
  7058. if test -n "$ac_tool_prefix"; then
  7059. # Extract the first word of "${ac_tool_prefix}soxmix", so it can be a program name with args.
  7060. set dummy ${ac_tool_prefix}soxmix; ac_word=$2
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7062. $as_echo_n "checking for $ac_word... " >&6; }
  7063. if ${ac_cv_prog_SOXMIX+:} false; then :
  7064. $as_echo_n "(cached) " >&6
  7065. else
  7066. if test -n "$SOXMIX"; then
  7067. ac_cv_prog_SOXMIX="$SOXMIX" # Let the user override the test.
  7068. else
  7069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7070. for as_dir in $PATH
  7071. do
  7072. IFS=$as_save_IFS
  7073. test -z "$as_dir" && as_dir=.
  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_prog_SOXMIX="${ac_tool_prefix}soxmix"
  7077. $as_echo "$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. fi
  7084. fi
  7085. SOXMIX=$ac_cv_prog_SOXMIX
  7086. if test -n "$SOXMIX"; then
  7087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOXMIX" >&5
  7088. $as_echo "$SOXMIX" >&6; }
  7089. else
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7091. $as_echo "no" >&6; }
  7092. fi
  7093. fi
  7094. if test -z "$ac_cv_prog_SOXMIX"; then
  7095. ac_ct_SOXMIX=$SOXMIX
  7096. # Extract the first word of "soxmix", so it can be a program name with args.
  7097. set dummy soxmix; ac_word=$2
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7099. $as_echo_n "checking for $ac_word... " >&6; }
  7100. if ${ac_cv_prog_ac_ct_SOXMIX+:} false; then :
  7101. $as_echo_n "(cached) " >&6
  7102. else
  7103. if test -n "$ac_ct_SOXMIX"; then
  7104. ac_cv_prog_ac_ct_SOXMIX="$ac_ct_SOXMIX" # Let the user override the test.
  7105. else
  7106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7107. for as_dir in $PATH
  7108. do
  7109. IFS=$as_save_IFS
  7110. test -z "$as_dir" && as_dir=.
  7111. for ac_exec_ext in '' $ac_executable_extensions; do
  7112. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7113. ac_cv_prog_ac_ct_SOXMIX="soxmix"
  7114. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7115. break 2
  7116. fi
  7117. done
  7118. done
  7119. IFS=$as_save_IFS
  7120. fi
  7121. fi
  7122. ac_ct_SOXMIX=$ac_cv_prog_ac_ct_SOXMIX
  7123. if test -n "$ac_ct_SOXMIX"; then
  7124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_SOXMIX" >&5
  7125. $as_echo "$ac_ct_SOXMIX" >&6; }
  7126. else
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7128. $as_echo "no" >&6; }
  7129. fi
  7130. if test "x$ac_ct_SOXMIX" = x; then
  7131. SOXMIX=":"
  7132. else
  7133. case $cross_compiling:$ac_tool_warned in
  7134. yes:)
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7136. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7137. ac_tool_warned=yes ;;
  7138. esac
  7139. SOXMIX=$ac_ct_SOXMIX
  7140. fi
  7141. else
  7142. SOXMIX="$ac_cv_prog_SOXMIX"
  7143. fi
  7144. if test "${SOXMIX}" != ":" ; then
  7145. $as_echo "#define HAVE_SOXMIX 1" >>confdefs.h
  7146. fi
  7147. for ac_prog in md5 md5sum gmd5sum digest
  7148. do
  7149. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7150. set dummy $ac_prog; ac_word=$2
  7151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7152. $as_echo_n "checking for $ac_word... " >&6; }
  7153. if ${ac_cv_prog_MD5+:} false; then :
  7154. $as_echo_n "(cached) " >&6
  7155. else
  7156. if test -n "$MD5"; then
  7157. ac_cv_prog_MD5="$MD5" # Let the user override the test.
  7158. else
  7159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7160. for as_dir in $PATH
  7161. do
  7162. IFS=$as_save_IFS
  7163. test -z "$as_dir" && as_dir=.
  7164. for ac_exec_ext in '' $ac_executable_extensions; do
  7165. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7166. ac_cv_prog_MD5="$ac_prog"
  7167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7168. break 2
  7169. fi
  7170. done
  7171. done
  7172. IFS=$as_save_IFS
  7173. fi
  7174. fi
  7175. MD5=$ac_cv_prog_MD5
  7176. if test -n "$MD5"; then
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5" >&5
  7178. $as_echo "$MD5" >&6; }
  7179. else
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7181. $as_echo "no" >&6; }
  7182. fi
  7183. test -n "$MD5" && break
  7184. done
  7185. if test "${MD5}" = "digest" ; then
  7186. MD5="${MD5} -a md5"
  7187. fi
  7188. ac_ext=c
  7189. ac_cpp='$CPP $CPPFLAGS'
  7190. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7191. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7192. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7193. acx_pthread_ok=no
  7194. # We used to check for pthread.h first, but this fails if pthread.h
  7195. # requires special compiler flags (e.g. on True64 or Sequent).
  7196. # It gets checked for in the link test anyway.
  7197. # First of all, check if the user has set any of the PTHREAD_LIBS,
  7198. # etcetera environment variables, and if threads linking works using
  7199. # them:
  7200. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  7201. save_CFLAGS="$CFLAGS"
  7202. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7203. save_LIBS="$LIBS"
  7204. LIBS="$PTHREAD_LIBS $LIBS"
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  7206. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  7207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7208. /* end confdefs.h. */
  7209. /* Override any GCC internal prototype to avoid an error.
  7210. Use char because int might match the return type of a GCC
  7211. builtin and then its argument prototype would still apply. */
  7212. #ifdef __cplusplus
  7213. extern "C"
  7214. #endif
  7215. char pthread_join ();
  7216. int
  7217. main ()
  7218. {
  7219. return pthread_join ();
  7220. ;
  7221. return 0;
  7222. }
  7223. _ACEOF
  7224. if ac_fn_c_try_link "$LINENO"; then :
  7225. acx_pthread_ok=yes
  7226. fi
  7227. rm -f core conftest.err conftest.$ac_objext \
  7228. conftest$ac_exeext conftest.$ac_ext
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  7230. $as_echo "$acx_pthread_ok" >&6; }
  7231. if test x"$acx_pthread_ok" = xno; then
  7232. PTHREAD_LIBS=""
  7233. PTHREAD_CFLAGS=""
  7234. fi
  7235. LIBS="$save_LIBS"
  7236. CFLAGS="$save_CFLAGS"
  7237. fi
  7238. # We must check for the threads library under a number of different
  7239. # names; the ordering is very important because some systems
  7240. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  7241. # libraries is broken (non-POSIX).
  7242. # Create a list of thread flags to try. Items starting with a "-" are
  7243. # C compiler flags, and other items are library names, except for "none"
  7244. # which indicates that we try without any flags at all, and "pthread-config"
  7245. # which is a program returning the flags for the Pth emulation library.
  7246. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  7247. # The ordering *is* (sometimes) important. Some notes on the
  7248. # individual items follow:
  7249. # pthreads: AIX (must check this before -lpthread)
  7250. # none: in case threads are in libc; should be tried before -Kthread and
  7251. # other compiler flags to prevent continual compiler warnings
  7252. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  7253. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  7254. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  7255. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  7256. # -pthreads: Solaris/gcc
  7257. # -mthreads: Mingw32/gcc, Lynx/gcc
  7258. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  7259. # doesn't hurt to check since this sometimes defines pthreads too;
  7260. # also defines -D_REENTRANT)
  7261. # ... -mt is also the pthreads flag for HP/aCC
  7262. # pthread: Linux, etcetera
  7263. # --thread-safe: KAI C++
  7264. # pthread-config: use pthread-config program (for GNU Pth library)
  7265. case "${host_cpu}-${host_os}" in
  7266. *solaris*)
  7267. # On Solaris (at least, for some versions), libc contains stubbed
  7268. # (non-functional) versions of the pthreads routines, so link-based
  7269. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  7270. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  7271. # a function called by this macro, so we could check for that, but
  7272. # who knows whether they'll stub that too in a future libc.) So,
  7273. # we'll just look for -pthreads and -lpthread first:
  7274. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  7275. ;;
  7276. esac
  7277. if test x"$acx_pthread_ok" = xno; then
  7278. for flag in $acx_pthread_flags; do
  7279. case $flag in
  7280. none)
  7281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  7282. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  7283. ;;
  7284. -*)
  7285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  7286. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  7287. PTHREAD_CFLAGS="$flag"
  7288. ;;
  7289. pthread-config)
  7290. # Extract the first word of "pthread-config", so it can be a program name with args.
  7291. set dummy pthread-config; ac_word=$2
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7293. $as_echo_n "checking for $ac_word... " >&6; }
  7294. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  7295. $as_echo_n "(cached) " >&6
  7296. else
  7297. if test -n "$acx_pthread_config"; then
  7298. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  7299. else
  7300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7301. for as_dir in $PATH
  7302. do
  7303. IFS=$as_save_IFS
  7304. test -z "$as_dir" && as_dir=.
  7305. for ac_exec_ext in '' $ac_executable_extensions; do
  7306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7307. ac_cv_prog_acx_pthread_config="yes"
  7308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7309. break 2
  7310. fi
  7311. done
  7312. done
  7313. IFS=$as_save_IFS
  7314. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  7315. fi
  7316. fi
  7317. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  7318. if test -n "$acx_pthread_config"; then
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  7320. $as_echo "$acx_pthread_config" >&6; }
  7321. else
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7323. $as_echo "no" >&6; }
  7324. fi
  7325. if test x"$acx_pthread_config" = xno; then continue; fi
  7326. PTHREAD_CFLAGS="`pthread-config --cflags`"
  7327. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  7328. ;;
  7329. *)
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  7331. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  7332. PTHREAD_LIBS="-l$flag"
  7333. ;;
  7334. esac
  7335. save_LIBS="$LIBS"
  7336. save_CFLAGS="$CFLAGS"
  7337. LIBS="$PTHREAD_LIBS $LIBS"
  7338. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7339. # Check for various functions. We must include pthread.h,
  7340. # since some functions may be macros. (On the Sequent, we
  7341. # need a special flag -Kthread to make this header compile.)
  7342. # We check for pthread_join because it is in -lpthread on IRIX
  7343. # while pthread_create is in libc. We check for pthread_attr_init
  7344. # due to DEC craziness with -lpthreads. We check for
  7345. # pthread_cleanup_push because it is one of the few pthread
  7346. # functions on Solaris that doesn't have a non-functional libc stub.
  7347. # We try pthread_create on general principles.
  7348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7349. /* end confdefs.h. */
  7350. #include <pthread.h>
  7351. int
  7352. main ()
  7353. {
  7354. pthread_t th; pthread_join(th, 0);
  7355. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  7356. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  7357. ;
  7358. return 0;
  7359. }
  7360. _ACEOF
  7361. if ac_fn_c_try_link "$LINENO"; then :
  7362. acx_pthread_ok=yes
  7363. fi
  7364. rm -f core conftest.err conftest.$ac_objext \
  7365. conftest$ac_exeext conftest.$ac_ext
  7366. LIBS="$save_LIBS"
  7367. CFLAGS="$save_CFLAGS"
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  7369. $as_echo "$acx_pthread_ok" >&6; }
  7370. if test "x$acx_pthread_ok" = xyes; then
  7371. break;
  7372. fi
  7373. PTHREAD_LIBS=""
  7374. PTHREAD_CFLAGS=""
  7375. done
  7376. fi
  7377. # Various other checks:
  7378. if test "x$acx_pthread_ok" = xyes; then
  7379. save_LIBS="$LIBS"
  7380. LIBS="$PTHREAD_LIBS $LIBS"
  7381. save_CFLAGS="$CFLAGS"
  7382. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  7383. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  7384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  7385. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  7386. attr_name=unknown
  7387. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  7388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7389. /* end confdefs.h. */
  7390. #include <pthread.h>
  7391. int
  7392. main ()
  7393. {
  7394. int attr=$attr; return attr;
  7395. ;
  7396. return 0;
  7397. }
  7398. _ACEOF
  7399. if ac_fn_c_try_link "$LINENO"; then :
  7400. attr_name=$attr; break
  7401. fi
  7402. rm -f core conftest.err conftest.$ac_objext \
  7403. conftest$ac_exeext conftest.$ac_ext
  7404. done
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  7406. $as_echo "$attr_name" >&6; }
  7407. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  7408. cat >>confdefs.h <<_ACEOF
  7409. #define PTHREAD_CREATE_JOINABLE $attr_name
  7410. _ACEOF
  7411. fi
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  7413. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  7414. flag=no
  7415. case "${host_cpu}-${host_os}" in
  7416. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  7417. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  7418. esac
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  7420. $as_echo "${flag}" >&6; }
  7421. if test "x$flag" != xno; then
  7422. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  7423. fi
  7424. LIBS="$save_LIBS"
  7425. CFLAGS="$save_CFLAGS"
  7426. # More AIX lossage: must compile with xlc_r or cc_r
  7427. if test x"$GCC" != xyes; then
  7428. for ac_prog in xlc_r cc_r
  7429. do
  7430. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7431. set dummy $ac_prog; ac_word=$2
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7433. $as_echo_n "checking for $ac_word... " >&6; }
  7434. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  7435. $as_echo_n "(cached) " >&6
  7436. else
  7437. if test -n "$PTHREAD_CC"; then
  7438. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  7439. else
  7440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7441. for as_dir in $PATH
  7442. do
  7443. IFS=$as_save_IFS
  7444. test -z "$as_dir" && as_dir=.
  7445. for ac_exec_ext in '' $ac_executable_extensions; do
  7446. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7447. ac_cv_prog_PTHREAD_CC="$ac_prog"
  7448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7449. break 2
  7450. fi
  7451. done
  7452. done
  7453. IFS=$as_save_IFS
  7454. fi
  7455. fi
  7456. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  7457. if test -n "$PTHREAD_CC"; then
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  7459. $as_echo "$PTHREAD_CC" >&6; }
  7460. else
  7461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7462. $as_echo "no" >&6; }
  7463. fi
  7464. test -n "$PTHREAD_CC" && break
  7465. done
  7466. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  7467. else
  7468. PTHREAD_CC=$CC
  7469. fi
  7470. else
  7471. PTHREAD_CC="$CC"
  7472. fi
  7473. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  7474. if test x"$acx_pthread_ok" = xyes; then
  7475. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  7476. :
  7477. else
  7478. acx_pthread_ok=no
  7479. fi
  7480. ac_ext=c
  7481. ac_cpp='$CPP $CPPFLAGS'
  7482. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7483. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7484. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7485. ac_ext=c
  7486. ac_cpp='$CPP $CPPFLAGS'
  7487. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7488. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7489. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7490. # Check whether --enable-dev-mode was given.
  7491. if test "${enable_dev_mode+set}" = set; then :
  7492. enableval=$enable_dev_mode; case "${enableval}" in
  7493. y|ye|yes) AST_DEVMODE=yes ;;
  7494. n|no) AST_DEVMODE=no ;;
  7495. noisy)
  7496. AST_DEVMODE=yes
  7497. NOISY_BUILD=yes
  7498. ;;
  7499. strict)
  7500. AST_DEVMODE=yes
  7501. AST_DEVMODE_STRICT=yes
  7502. ;;
  7503. *) as_fn_error $? "bad value ${enableval} for --enable-dev-mode" "$LINENO" 5 ;;
  7504. esac
  7505. fi
  7506. AST_CODE_COVERAGE=no
  7507. # Check whether --enable-coverage was given.
  7508. if test "${enable_coverage+set}" = set; then :
  7509. enableval=$enable_coverage; case "${enableval}" in
  7510. y|ye|yes) AST_CODE_COVERAGE=yes ;;
  7511. n|no) AST_CODE_COVERAGE=no ;;
  7512. *) as_fn_error $? "bad value ${enableval} for --enable-coverage" "$LINENO" 5 ;;
  7513. esac
  7514. fi
  7515. # AST_EXT_LIB_SETUP is used to tell configure to handle variables for
  7516. # various packages.
  7517. # $1 is the prefix for the variables in makeopts and autoconfig.h
  7518. # $2 is the short comment, $4 is the long comment
  7519. # $3 is the name used in --with- or --without- flags for configure.
  7520. #
  7521. # Package option names should be in alphabetical order
  7522. # by the --with option name (the third field),
  7523. # to make things easier for the users.
  7524. ALSA_DESCRIP="Advanced Linux Sound Architecture"
  7525. ALSA_OPTION="asound"
  7526. PBX_ALSA=0
  7527. # Check whether --with-asound was given.
  7528. if test "${with_asound+set}" = set; then :
  7529. withval=$with_asound;
  7530. case ${withval} in
  7531. n|no)
  7532. USE_ALSA=no
  7533. # -1 is a magic value used by menuselect to know that the package
  7534. # was disabled, other than 'not found'
  7535. PBX_ALSA=-1
  7536. ;;
  7537. y|ye|yes)
  7538. ac_mandatory_list="${ac_mandatory_list} ALSA"
  7539. ;;
  7540. *)
  7541. ALSA_DIR="${withval}"
  7542. ac_mandatory_list="${ac_mandatory_list} ALSA"
  7543. ;;
  7544. esac
  7545. fi
  7546. BFD_DESCRIP="Debug symbol decoding"
  7547. BFD_OPTION="bfd"
  7548. PBX_BFD=0
  7549. # Check whether --with-bfd was given.
  7550. if test "${with_bfd+set}" = set; then :
  7551. withval=$with_bfd;
  7552. case ${withval} in
  7553. n|no)
  7554. USE_BFD=no
  7555. # -1 is a magic value used by menuselect to know that the package
  7556. # was disabled, other than 'not found'
  7557. PBX_BFD=-1
  7558. ;;
  7559. y|ye|yes)
  7560. ac_mandatory_list="${ac_mandatory_list} BFD"
  7561. ;;
  7562. *)
  7563. BFD_DIR="${withval}"
  7564. ac_mandatory_list="${ac_mandatory_list} BFD"
  7565. ;;
  7566. esac
  7567. fi
  7568. # BKTR is used for backtrace support on platforms that do not
  7569. # have it natively.
  7570. BKTR_DESCRIP="Stack Backtrace"
  7571. BKTR_OPTION="execinfo"
  7572. PBX_BKTR=0
  7573. # Check whether --with-execinfo was given.
  7574. if test "${with_execinfo+set}" = set; then :
  7575. withval=$with_execinfo;
  7576. case ${withval} in
  7577. n|no)
  7578. USE_BKTR=no
  7579. # -1 is a magic value used by menuselect to know that the package
  7580. # was disabled, other than 'not found'
  7581. PBX_BKTR=-1
  7582. ;;
  7583. y|ye|yes)
  7584. ac_mandatory_list="${ac_mandatory_list} BKTR"
  7585. ;;
  7586. *)
  7587. BKTR_DIR="${withval}"
  7588. ac_mandatory_list="${ac_mandatory_list} BKTR"
  7589. ;;
  7590. esac
  7591. fi
  7592. BLUETOOTH_DESCRIP="Bluetooth"
  7593. BLUETOOTH_OPTION="bluetooth"
  7594. PBX_BLUETOOTH=0
  7595. # Check whether --with-bluetooth was given.
  7596. if test "${with_bluetooth+set}" = set; then :
  7597. withval=$with_bluetooth;
  7598. case ${withval} in
  7599. n|no)
  7600. USE_BLUETOOTH=no
  7601. # -1 is a magic value used by menuselect to know that the package
  7602. # was disabled, other than 'not found'
  7603. PBX_BLUETOOTH=-1
  7604. ;;
  7605. y|ye|yes)
  7606. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  7607. ;;
  7608. *)
  7609. BLUETOOTH_DIR="${withval}"
  7610. ac_mandatory_list="${ac_mandatory_list} BLUETOOTH"
  7611. ;;
  7612. esac
  7613. fi
  7614. CAP_DESCRIP="POSIX 1.e capabilities"
  7615. CAP_OPTION="cap"
  7616. PBX_CAP=0
  7617. # Check whether --with-cap was given.
  7618. if test "${with_cap+set}" = set; then :
  7619. withval=$with_cap;
  7620. case ${withval} in
  7621. n|no)
  7622. USE_CAP=no
  7623. # -1 is a magic value used by menuselect to know that the package
  7624. # was disabled, other than 'not found'
  7625. PBX_CAP=-1
  7626. ;;
  7627. y|ye|yes)
  7628. ac_mandatory_list="${ac_mandatory_list} CAP"
  7629. ;;
  7630. *)
  7631. CAP_DIR="${withval}"
  7632. ac_mandatory_list="${ac_mandatory_list} CAP"
  7633. ;;
  7634. esac
  7635. fi
  7636. COROSYNC_DESCRIP="Corosync"
  7637. COROSYNC_OPTION="cpg"
  7638. PBX_COROSYNC=0
  7639. # Check whether --with-cpg was given.
  7640. if test "${with_cpg+set}" = set; then :
  7641. withval=$with_cpg;
  7642. case ${withval} in
  7643. n|no)
  7644. USE_COROSYNC=no
  7645. # -1 is a magic value used by menuselect to know that the package
  7646. # was disabled, other than 'not found'
  7647. PBX_COROSYNC=-1
  7648. ;;
  7649. y|ye|yes)
  7650. ac_mandatory_list="${ac_mandatory_list} COROSYNC"
  7651. ;;
  7652. *)
  7653. COROSYNC_DIR="${withval}"
  7654. ac_mandatory_list="${ac_mandatory_list} COROSYNC"
  7655. ;;
  7656. esac
  7657. fi
  7658. COROSYNC_CFG_STATE_TRACK_DESCRIP="A callback only in corosync 1.x"
  7659. COROSYNC_CFG_STATE_TRACK_OPTION=cfg
  7660. COROSYNC_CFG_STATE_TRACK_DIR=${COROSYNC_DIR}
  7661. PBX_COROSYNC_CFG_STATE_TRACK=0
  7662. CURSES_DESCRIP="curses"
  7663. CURSES_OPTION="curses"
  7664. PBX_CURSES=0
  7665. # Check whether --with-curses was given.
  7666. if test "${with_curses+set}" = set; then :
  7667. withval=$with_curses;
  7668. case ${withval} in
  7669. n|no)
  7670. USE_CURSES=no
  7671. # -1 is a magic value used by menuselect to know that the package
  7672. # was disabled, other than 'not found'
  7673. PBX_CURSES=-1
  7674. ;;
  7675. y|ye|yes)
  7676. ac_mandatory_list="${ac_mandatory_list} CURSES"
  7677. ;;
  7678. *)
  7679. CURSES_DIR="${withval}"
  7680. ac_mandatory_list="${ac_mandatory_list} CURSES"
  7681. ;;
  7682. esac
  7683. fi
  7684. CRYPT_DESCRIP="password and data encryption"
  7685. CRYPT_OPTION="crypt"
  7686. PBX_CRYPT=0
  7687. # Check whether --with-crypt was given.
  7688. if test "${with_crypt+set}" = set; then :
  7689. withval=$with_crypt;
  7690. case ${withval} in
  7691. n|no)
  7692. USE_CRYPT=no
  7693. # -1 is a magic value used by menuselect to know that the package
  7694. # was disabled, other than 'not found'
  7695. PBX_CRYPT=-1
  7696. ;;
  7697. y|ye|yes)
  7698. ac_mandatory_list="${ac_mandatory_list} CRYPT"
  7699. ;;
  7700. *)
  7701. CRYPT_DIR="${withval}"
  7702. ac_mandatory_list="${ac_mandatory_list} CRYPT"
  7703. ;;
  7704. esac
  7705. fi
  7706. CRYPTO_DESCRIP="OpenSSL Cryptography"
  7707. CRYPTO_OPTION="crypto"
  7708. PBX_CRYPTO=0
  7709. # Check whether --with-crypto was given.
  7710. if test "${with_crypto+set}" = set; then :
  7711. withval=$with_crypto;
  7712. case ${withval} in
  7713. n|no)
  7714. USE_CRYPTO=no
  7715. # -1 is a magic value used by menuselect to know that the package
  7716. # was disabled, other than 'not found'
  7717. PBX_CRYPTO=-1
  7718. ;;
  7719. y|ye|yes)
  7720. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  7721. ;;
  7722. *)
  7723. CRYPTO_DIR="${withval}"
  7724. ac_mandatory_list="${ac_mandatory_list} CRYPTO"
  7725. ;;
  7726. esac
  7727. fi
  7728. OPENSSL_SRTP_DESCRIP="OpenSSL SRTP Extension Support"
  7729. OPENSSL_SRTP_OPTION=crypto
  7730. OPENSSL_SRTP_DIR=${CRYPTO_DIR}
  7731. PBX_OPENSSL_SRTP=0
  7732. OPENSSL_EC_DESCRIP="OpenSSL Elliptic Curve Support"
  7733. OPENSSL_EC_OPTION=crypto
  7734. OPENSSL_EC_DIR=${CRYPTO_DIR}
  7735. PBX_OPENSSL_EC=0
  7736. DAHDI_DESCRIP="DAHDI"
  7737. DAHDI_OPTION="dahdi"
  7738. PBX_DAHDI=0
  7739. # Check whether --with-dahdi was given.
  7740. if test "${with_dahdi+set}" = set; then :
  7741. withval=$with_dahdi;
  7742. case ${withval} in
  7743. n|no)
  7744. USE_DAHDI=no
  7745. # -1 is a magic value used by menuselect to know that the package
  7746. # was disabled, other than 'not found'
  7747. PBX_DAHDI=-1
  7748. ;;
  7749. y|ye|yes)
  7750. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  7751. ;;
  7752. *)
  7753. DAHDI_DIR="${withval}"
  7754. ac_mandatory_list="${ac_mandatory_list} DAHDI"
  7755. ;;
  7756. esac
  7757. fi
  7758. FFMPEG_DESCRIP="Ffmpeg and avcodec"
  7759. FFMPEG_OPTION="avcodec"
  7760. PBX_FFMPEG=0
  7761. # Check whether --with-avcodec was given.
  7762. if test "${with_avcodec+set}" = set; then :
  7763. withval=$with_avcodec;
  7764. case ${withval} in
  7765. n|no)
  7766. USE_FFMPEG=no
  7767. # -1 is a magic value used by menuselect to know that the package
  7768. # was disabled, other than 'not found'
  7769. PBX_FFMPEG=-1
  7770. ;;
  7771. y|ye|yes)
  7772. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  7773. ;;
  7774. *)
  7775. FFMPEG_DIR="${withval}"
  7776. ac_mandatory_list="${ac_mandatory_list} FFMPEG"
  7777. ;;
  7778. esac
  7779. fi
  7780. GSM_DESCRIP="External GSM"
  7781. GSM_OPTION="gsm"
  7782. PBX_GSM=0
  7783. # Check whether --with-gsm was given.
  7784. if test "${with_gsm+set}" = set; then :
  7785. withval=$with_gsm;
  7786. case ${withval} in
  7787. n|no)
  7788. USE_GSM=no
  7789. # -1 is a magic value used by menuselect to know that the package
  7790. # was disabled, other than 'not found'
  7791. PBX_GSM=-1
  7792. ;;
  7793. y|ye|yes)
  7794. ac_mandatory_list="${ac_mandatory_list} GSM"
  7795. ;;
  7796. *)
  7797. GSM_DIR="${withval}"
  7798. ac_mandatory_list="${ac_mandatory_list} GSM"
  7799. ;;
  7800. esac
  7801. fi
  7802. ILBC_DESCRIP="System iLBC"
  7803. ILBC_OPTION="ilbc"
  7804. PBX_ILBC=0
  7805. # Check whether --with-ilbc was given.
  7806. if test "${with_ilbc+set}" = set; then :
  7807. withval=$with_ilbc;
  7808. case ${withval} in
  7809. n|no)
  7810. USE_ILBC=no
  7811. # -1 is a magic value used by menuselect to know that the package
  7812. # was disabled, other than 'not found'
  7813. PBX_ILBC=-1
  7814. ;;
  7815. y|ye|yes)
  7816. ac_mandatory_list="${ac_mandatory_list} ILBC"
  7817. ;;
  7818. *)
  7819. ILBC_DIR="${withval}"
  7820. ac_mandatory_list="${ac_mandatory_list} ILBC"
  7821. ;;
  7822. esac
  7823. fi
  7824. GTK2_DESCRIP="gtk2"
  7825. GTK2_OPTION="gtk2"
  7826. PBX_GTK2=0
  7827. # Check whether --with-gtk2 was given.
  7828. if test "${with_gtk2+set}" = set; then :
  7829. withval=$with_gtk2;
  7830. case ${withval} in
  7831. n|no)
  7832. USE_GTK2=no
  7833. # -1 is a magic value used by menuselect to know that the package
  7834. # was disabled, other than 'not found'
  7835. PBX_GTK2=-1
  7836. ;;
  7837. y|ye|yes)
  7838. ac_mandatory_list="${ac_mandatory_list} GTK2"
  7839. ;;
  7840. *)
  7841. GTK2_DIR="${withval}"
  7842. ac_mandatory_list="${ac_mandatory_list} GTK2"
  7843. ;;
  7844. esac
  7845. fi
  7846. GMIME_DESCRIP="GMime"
  7847. GMIME_OPTION="gmime"
  7848. PBX_GMIME=0
  7849. # Check whether --with-gmime was given.
  7850. if test "${with_gmime+set}" = set; then :
  7851. withval=$with_gmime;
  7852. case ${withval} in
  7853. n|no)
  7854. USE_GMIME=no
  7855. # -1 is a magic value used by menuselect to know that the package
  7856. # was disabled, other than 'not found'
  7857. PBX_GMIME=-1
  7858. ;;
  7859. y|ye|yes)
  7860. ac_mandatory_list="${ac_mandatory_list} GMIME"
  7861. ;;
  7862. *)
  7863. GMIME_DIR="${withval}"
  7864. ac_mandatory_list="${ac_mandatory_list} GMIME"
  7865. ;;
  7866. esac
  7867. fi
  7868. OPENH323_DESCRIP="OpenH323"
  7869. OPENH323_OPTION="h323"
  7870. PBX_OPENH323=0
  7871. # Check whether --with-h323 was given.
  7872. if test "${with_h323+set}" = set; then :
  7873. withval=$with_h323;
  7874. case ${withval} in
  7875. n|no)
  7876. USE_OPENH323=no
  7877. # -1 is a magic value used by menuselect to know that the package
  7878. # was disabled, other than 'not found'
  7879. PBX_OPENH323=-1
  7880. ;;
  7881. y|ye|yes)
  7882. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  7883. ;;
  7884. *)
  7885. OPENH323_DIR="${withval}"
  7886. ac_mandatory_list="${ac_mandatory_list} OPENH323"
  7887. ;;
  7888. esac
  7889. fi
  7890. HOARD_DESCRIP="Hoard Memory Allocator"
  7891. HOARD_OPTION="hoard"
  7892. PBX_HOARD=0
  7893. # Check whether --with-hoard was given.
  7894. if test "${with_hoard+set}" = set; then :
  7895. withval=$with_hoard;
  7896. case ${withval} in
  7897. n|no)
  7898. USE_HOARD=no
  7899. # -1 is a magic value used by menuselect to know that the package
  7900. # was disabled, other than 'not found'
  7901. PBX_HOARD=-1
  7902. ;;
  7903. y|ye|yes)
  7904. ac_mandatory_list="${ac_mandatory_list} HOARD"
  7905. ;;
  7906. *)
  7907. HOARD_DIR="${withval}"
  7908. ac_mandatory_list="${ac_mandatory_list} HOARD"
  7909. ;;
  7910. esac
  7911. fi
  7912. ICAL_DESCRIP="iCal"
  7913. ICAL_OPTION="ical"
  7914. PBX_ICAL=0
  7915. # Check whether --with-ical was given.
  7916. if test "${with_ical+set}" = set; then :
  7917. withval=$with_ical;
  7918. case ${withval} in
  7919. n|no)
  7920. USE_ICAL=no
  7921. # -1 is a magic value used by menuselect to know that the package
  7922. # was disabled, other than 'not found'
  7923. PBX_ICAL=-1
  7924. ;;
  7925. y|ye|yes)
  7926. ac_mandatory_list="${ac_mandatory_list} ICAL"
  7927. ;;
  7928. *)
  7929. ICAL_DIR="${withval}"
  7930. ac_mandatory_list="${ac_mandatory_list} ICAL"
  7931. ;;
  7932. esac
  7933. fi
  7934. ICONV_DESCRIP="Iconv"
  7935. ICONV_OPTION="iconv"
  7936. PBX_ICONV=0
  7937. # Check whether --with-iconv was given.
  7938. if test "${with_iconv+set}" = set; then :
  7939. withval=$with_iconv;
  7940. case ${withval} in
  7941. n|no)
  7942. USE_ICONV=no
  7943. # -1 is a magic value used by menuselect to know that the package
  7944. # was disabled, other than 'not found'
  7945. PBX_ICONV=-1
  7946. ;;
  7947. y|ye|yes)
  7948. ac_mandatory_list="${ac_mandatory_list} ICONV"
  7949. ;;
  7950. *)
  7951. ICONV_DIR="${withval}"
  7952. ac_mandatory_list="${ac_mandatory_list} ICONV"
  7953. ;;
  7954. esac
  7955. fi
  7956. IKSEMEL_DESCRIP="Iksemel Jabber"
  7957. IKSEMEL_OPTION="iksemel"
  7958. PBX_IKSEMEL=0
  7959. # Check whether --with-iksemel was given.
  7960. if test "${with_iksemel+set}" = set; then :
  7961. withval=$with_iksemel;
  7962. case ${withval} in
  7963. n|no)
  7964. USE_IKSEMEL=no
  7965. # -1 is a magic value used by menuselect to know that the package
  7966. # was disabled, other than 'not found'
  7967. PBX_IKSEMEL=-1
  7968. ;;
  7969. y|ye|yes)
  7970. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  7971. ;;
  7972. *)
  7973. IKSEMEL_DIR="${withval}"
  7974. ac_mandatory_list="${ac_mandatory_list} IKSEMEL"
  7975. ;;
  7976. esac
  7977. fi
  7978. IMAP_TK_DESCRIP="UW IMAP Toolkit"
  7979. IMAP_TK_OPTION="imap"
  7980. PBX_IMAP_TK=0
  7981. # Check whether --with-imap was given.
  7982. if test "${with_imap+set}" = set; then :
  7983. withval=$with_imap;
  7984. case ${withval} in
  7985. n|no)
  7986. USE_IMAP_TK=no
  7987. # -1 is a magic value used by menuselect to know that the package
  7988. # was disabled, other than 'not found'
  7989. PBX_IMAP_TK=-1
  7990. ;;
  7991. y|ye|yes)
  7992. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  7993. ;;
  7994. *)
  7995. IMAP_TK_DIR="${withval}"
  7996. ac_mandatory_list="${ac_mandatory_list} IMAP_TK"
  7997. ;;
  7998. esac
  7999. fi
  8000. INOTIFY_DESCRIP="inotify support"
  8001. INOTIFY_OPTION="inotify"
  8002. PBX_INOTIFY=0
  8003. # Check whether --with-inotify was given.
  8004. if test "${with_inotify+set}" = set; then :
  8005. withval=$with_inotify;
  8006. case ${withval} in
  8007. n|no)
  8008. USE_INOTIFY=no
  8009. # -1 is a magic value used by menuselect to know that the package
  8010. # was disabled, other than 'not found'
  8011. PBX_INOTIFY=-1
  8012. ;;
  8013. y|ye|yes)
  8014. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  8015. ;;
  8016. *)
  8017. INOTIFY_DIR="${withval}"
  8018. ac_mandatory_list="${ac_mandatory_list} INOTIFY"
  8019. ;;
  8020. esac
  8021. fi
  8022. IODBC_DESCRIP="iODBC"
  8023. IODBC_OPTION="iodbc"
  8024. PBX_IODBC=0
  8025. # Check whether --with-iodbc was given.
  8026. if test "${with_iodbc+set}" = set; then :
  8027. withval=$with_iodbc;
  8028. case ${withval} in
  8029. n|no)
  8030. USE_IODBC=no
  8031. # -1 is a magic value used by menuselect to know that the package
  8032. # was disabled, other than 'not found'
  8033. PBX_IODBC=-1
  8034. ;;
  8035. y|ye|yes)
  8036. ac_mandatory_list="${ac_mandatory_list} IODBC"
  8037. ;;
  8038. *)
  8039. IODBC_DIR="${withval}"
  8040. ac_mandatory_list="${ac_mandatory_list} IODBC"
  8041. ;;
  8042. esac
  8043. fi
  8044. ISDNNET_DESCRIP="ISDN4Linux"
  8045. ISDNNET_OPTION="isdnnet"
  8046. PBX_ISDNNET=0
  8047. # Check whether --with-isdnnet was given.
  8048. if test "${with_isdnnet+set}" = set; then :
  8049. withval=$with_isdnnet;
  8050. case ${withval} in
  8051. n|no)
  8052. USE_ISDNNET=no
  8053. # -1 is a magic value used by menuselect to know that the package
  8054. # was disabled, other than 'not found'
  8055. PBX_ISDNNET=-1
  8056. ;;
  8057. y|ye|yes)
  8058. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  8059. ;;
  8060. *)
  8061. ISDNNET_DIR="${withval}"
  8062. ac_mandatory_list="${ac_mandatory_list} ISDNNET"
  8063. ;;
  8064. esac
  8065. fi
  8066. JACK_DESCRIP="Jack Audio Connection Kit"
  8067. JACK_OPTION="jack"
  8068. PBX_JACK=0
  8069. # Check whether --with-jack was given.
  8070. if test "${with_jack+set}" = set; then :
  8071. withval=$with_jack;
  8072. case ${withval} in
  8073. n|no)
  8074. USE_JACK=no
  8075. # -1 is a magic value used by menuselect to know that the package
  8076. # was disabled, other than 'not found'
  8077. PBX_JACK=-1
  8078. ;;
  8079. y|ye|yes)
  8080. ac_mandatory_list="${ac_mandatory_list} JACK"
  8081. ;;
  8082. *)
  8083. JACK_DIR="${withval}"
  8084. ac_mandatory_list="${ac_mandatory_list} JACK"
  8085. ;;
  8086. esac
  8087. fi
  8088. JANSSON_DESCRIP="Jansson JSON library"
  8089. JANSSON_OPTION="jansson"
  8090. PBX_JANSSON=0
  8091. # Check whether --with-jansson was given.
  8092. if test "${with_jansson+set}" = set; then :
  8093. withval=$with_jansson;
  8094. case ${withval} in
  8095. n|no)
  8096. USE_JANSSON=no
  8097. # -1 is a magic value used by menuselect to know that the package
  8098. # was disabled, other than 'not found'
  8099. PBX_JANSSON=-1
  8100. ;;
  8101. y|ye|yes)
  8102. ac_mandatory_list="${ac_mandatory_list} JANSSON"
  8103. ;;
  8104. *)
  8105. JANSSON_DIR="${withval}"
  8106. ac_mandatory_list="${ac_mandatory_list} JANSSON"
  8107. ;;
  8108. esac
  8109. fi
  8110. URIPARSER_DESCRIP="uriparser library"
  8111. URIPARSER_OPTION="uriparser"
  8112. PBX_URIPARSER=0
  8113. # Check whether --with-uriparser was given.
  8114. if test "${with_uriparser+set}" = set; then :
  8115. withval=$with_uriparser;
  8116. case ${withval} in
  8117. n|no)
  8118. USE_URIPARSER=no
  8119. # -1 is a magic value used by menuselect to know that the package
  8120. # was disabled, other than 'not found'
  8121. PBX_URIPARSER=-1
  8122. ;;
  8123. y|ye|yes)
  8124. ac_mandatory_list="${ac_mandatory_list} URIPARSER"
  8125. ;;
  8126. *)
  8127. URIPARSER_DIR="${withval}"
  8128. ac_mandatory_list="${ac_mandatory_list} URIPARSER"
  8129. ;;
  8130. esac
  8131. fi
  8132. KQUEUE_DESCRIP="kqueue support"
  8133. KQUEUE_OPTION="kqueue"
  8134. PBX_KQUEUE=0
  8135. # Check whether --with-kqueue was given.
  8136. if test "${with_kqueue+set}" = set; then :
  8137. withval=$with_kqueue;
  8138. case ${withval} in
  8139. n|no)
  8140. USE_KQUEUE=no
  8141. # -1 is a magic value used by menuselect to know that the package
  8142. # was disabled, other than 'not found'
  8143. PBX_KQUEUE=-1
  8144. ;;
  8145. y|ye|yes)
  8146. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  8147. ;;
  8148. *)
  8149. KQUEUE_DIR="${withval}"
  8150. ac_mandatory_list="${ac_mandatory_list} KQUEUE"
  8151. ;;
  8152. esac
  8153. fi
  8154. LDAP_DESCRIP="OpenLDAP"
  8155. LDAP_OPTION="ldap"
  8156. PBX_LDAP=0
  8157. # Check whether --with-ldap was given.
  8158. if test "${with_ldap+set}" = set; then :
  8159. withval=$with_ldap;
  8160. case ${withval} in
  8161. n|no)
  8162. USE_LDAP=no
  8163. # -1 is a magic value used by menuselect to know that the package
  8164. # was disabled, other than 'not found'
  8165. PBX_LDAP=-1
  8166. ;;
  8167. y|ye|yes)
  8168. ac_mandatory_list="${ac_mandatory_list} LDAP"
  8169. ;;
  8170. *)
  8171. LDAP_DIR="${withval}"
  8172. ac_mandatory_list="${ac_mandatory_list} LDAP"
  8173. ;;
  8174. esac
  8175. fi
  8176. # Check whether --with-libcurl was given.
  8177. if test "${with_libcurl+set}" = set; then :
  8178. withval=$with_libcurl; _libcurl_with=$withval
  8179. else
  8180. _libcurl_with=yes
  8181. fi
  8182. if test "$_libcurl_with" != "no" ; then
  8183. for ac_prog in gawk mawk nawk awk
  8184. do
  8185. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8186. set dummy $ac_prog; ac_word=$2
  8187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8188. $as_echo_n "checking for $ac_word... " >&6; }
  8189. if ${ac_cv_prog_AWK+:} false; then :
  8190. $as_echo_n "(cached) " >&6
  8191. else
  8192. if test -n "$AWK"; then
  8193. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  8194. else
  8195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8196. for as_dir in $PATH
  8197. do
  8198. IFS=$as_save_IFS
  8199. test -z "$as_dir" && as_dir=.
  8200. for ac_exec_ext in '' $ac_executable_extensions; do
  8201. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8202. ac_cv_prog_AWK="$ac_prog"
  8203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8204. break 2
  8205. fi
  8206. done
  8207. done
  8208. IFS=$as_save_IFS
  8209. fi
  8210. fi
  8211. AWK=$ac_cv_prog_AWK
  8212. if test -n "$AWK"; then
  8213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  8214. $as_echo "$AWK" >&6; }
  8215. else
  8216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8217. $as_echo "no" >&6; }
  8218. fi
  8219. test -n "$AWK" && break
  8220. done
  8221. _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
  8222. _libcurl_try_link=yes
  8223. if test -d "$_libcurl_with" ; then
  8224. CURL_INCLUDE="-I$withval/include"
  8225. _libcurl_ldflags="-L$withval/lib"
  8226. # Extract the first word of "curl-config", so it can be a program name with args.
  8227. set dummy curl-config; ac_word=$2
  8228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8229. $as_echo_n "checking for $ac_word... " >&6; }
  8230. if ${ac_cv_path__libcurl_config+:} false; then :
  8231. $as_echo_n "(cached) " >&6
  8232. else
  8233. case $_libcurl_config in
  8234. [\\/]* | ?:[\\/]*)
  8235. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  8236. ;;
  8237. *)
  8238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8239. for as_dir in "$withval/bin"
  8240. do
  8241. IFS=$as_save_IFS
  8242. test -z "$as_dir" && as_dir=.
  8243. for ac_exec_ext in '' $ac_executable_extensions; do
  8244. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8245. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  8246. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8247. break 2
  8248. fi
  8249. done
  8250. done
  8251. IFS=$as_save_IFS
  8252. test -z "$ac_cv_path__libcurl_config" && ac_cv_path__libcurl_config=""$withval/bin""
  8253. ;;
  8254. esac
  8255. fi
  8256. _libcurl_config=$ac_cv_path__libcurl_config
  8257. if test -n "$_libcurl_config"; then
  8258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  8259. $as_echo "$_libcurl_config" >&6; }
  8260. else
  8261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8262. $as_echo "no" >&6; }
  8263. fi
  8264. else
  8265. # Extract the first word of "curl-config", so it can be a program name with args.
  8266. set dummy curl-config; ac_word=$2
  8267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8268. $as_echo_n "checking for $ac_word... " >&6; }
  8269. if ${ac_cv_path__libcurl_config+:} false; then :
  8270. $as_echo_n "(cached) " >&6
  8271. else
  8272. case $_libcurl_config in
  8273. [\\/]* | ?:[\\/]*)
  8274. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  8275. ;;
  8276. *)
  8277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8278. for as_dir in $PATH
  8279. do
  8280. IFS=$as_save_IFS
  8281. test -z "$as_dir" && as_dir=.
  8282. for ac_exec_ext in '' $ac_executable_extensions; do
  8283. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8284. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  8285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8286. break 2
  8287. fi
  8288. done
  8289. done
  8290. IFS=$as_save_IFS
  8291. ;;
  8292. esac
  8293. fi
  8294. _libcurl_config=$ac_cv_path__libcurl_config
  8295. if test -n "$_libcurl_config"; then
  8296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  8297. $as_echo "$_libcurl_config" >&6; }
  8298. else
  8299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8300. $as_echo "no" >&6; }
  8301. fi
  8302. fi
  8303. if test x$_libcurl_config != "x" ; then
  8304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
  8305. $as_echo_n "checking for the version of libcurl... " >&6; }
  8306. if ${libcurl_cv_lib_curl_version+:} false; then :
  8307. $as_echo_n "(cached) " >&6
  8308. else
  8309. libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
  8310. fi
  8311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
  8312. $as_echo "$libcurl_cv_lib_curl_version" >&6; }
  8313. _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
  8314. _libcurl_wanted=`echo 7.10.1 | $_libcurl_version_parse`
  8315. if test $_libcurl_wanted -gt 0 ; then
  8316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.10.1" >&5
  8317. $as_echo_n "checking for libcurl >= version 7.10.1... " >&6; }
  8318. if ${libcurl_cv_lib_version_ok+:} false; then :
  8319. $as_echo_n "(cached) " >&6
  8320. else
  8321. if test $_libcurl_version -ge $_libcurl_wanted ; then
  8322. libcurl_cv_lib_version_ok=yes
  8323. else
  8324. libcurl_cv_lib_version_ok=no
  8325. fi
  8326. fi
  8327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
  8328. $as_echo "$libcurl_cv_lib_version_ok" >&6; }
  8329. fi
  8330. if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
  8331. if test x"$CURL_INCLUDE" = "x" ; then
  8332. CURL_INCLUDE=`$_libcurl_config --cflags`
  8333. fi
  8334. if test x"$CURL_LIB" = "x" ; then
  8335. CURL_LIB=`$_libcurl_config --libs`
  8336. # This is so silly, but Apple actually has a bug in their
  8337. # curl-config script. Fixed in Tiger, but there are still
  8338. # lots of Panther installs around.
  8339. case "${host}" in
  8340. powerpc-apple-darwin7*)
  8341. CURL_LIB=`echo $CURL_LIB | sed -e 's|-arch i386||g'`
  8342. ;;
  8343. esac
  8344. fi
  8345. # All curl-config scripts support --feature
  8346. _libcurl_features=`$_libcurl_config --feature`
  8347. # Is it modern enough to have --protocols? (7.12.4)
  8348. if test $_libcurl_version -ge 461828 ; then
  8349. _libcurl_protocols=`$_libcurl_config --protocols`
  8350. fi
  8351. else
  8352. _libcurl_try_link=no
  8353. fi
  8354. unset _libcurl_wanted
  8355. fi
  8356. if test $_libcurl_try_link = yes ; then
  8357. # we didn't find curl-config, so let's see if the user-supplied
  8358. # link line (or failing that, "-lcurl") is enough.
  8359. CURL_LIB=${CURL_LIB-"$_libcurl_ldflags -lcurl"}
  8360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
  8361. $as_echo_n "checking whether libcurl is usable... " >&6; }
  8362. if ${libcurl_cv_lib_curl_usable+:} false; then :
  8363. $as_echo_n "(cached) " >&6
  8364. else
  8365. _libcurl_save_cppflags=$CPPFLAGS
  8366. CPPFLAGS="$CURL_INCLUDE $CPPFLAGS"
  8367. _libcurl_save_libs=$LIBS
  8368. LIBS="$CURL_LIB $LIBS"
  8369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8370. /* end confdefs.h. */
  8371. #include <curl/curl.h>
  8372. int
  8373. main ()
  8374. {
  8375. /* Try and use a few common options to force a failure if we are
  8376. missing symbols or can't link. */
  8377. int x;
  8378. curl_easy_setopt(NULL,CURLOPT_URL,NULL);
  8379. x=CURL_ERROR_SIZE;
  8380. x=CURLOPT_WRITEFUNCTION;
  8381. x=CURLOPT_FILE;
  8382. x=CURLOPT_ERRORBUFFER;
  8383. x=CURLOPT_STDERR;
  8384. x=CURLOPT_VERBOSE;
  8385. ;
  8386. return 0;
  8387. }
  8388. _ACEOF
  8389. if ac_fn_c_try_link "$LINENO"; then :
  8390. libcurl_cv_lib_curl_usable=yes
  8391. else
  8392. libcurl_cv_lib_curl_usable=no
  8393. fi
  8394. rm -f core conftest.err conftest.$ac_objext \
  8395. conftest$ac_exeext conftest.$ac_ext
  8396. CPPFLAGS=$_libcurl_save_cppflags
  8397. LIBS=$_libcurl_save_libs
  8398. unset _libcurl_save_cppflags
  8399. unset _libcurl_save_libs
  8400. fi
  8401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
  8402. $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
  8403. if test $libcurl_cv_lib_curl_usable = yes ; then
  8404. # Does curl_free() exist in this version of libcurl?
  8405. # If not, fake it with free()
  8406. _libcurl_save_cppflags=$CPPFLAGS
  8407. CPPFLAGS="$CPPFLAGS $CURL_INCLUDE"
  8408. _libcurl_save_libs=$LIBS
  8409. LIBS="$LIBS $CURL_LIB"
  8410. ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
  8411. if test "x$ac_cv_func_curl_free" = xyes; then :
  8412. else
  8413. $as_echo "#define curl_free free" >>confdefs.h
  8414. fi
  8415. CPPFLAGS=$_libcurl_save_cppflags
  8416. LIBS=$_libcurl_save_libs
  8417. unset _libcurl_save_cppflags
  8418. unset _libcurl_save_libs
  8419. $as_echo "#define HAVE_CURL 1" >>confdefs.h
  8420. PBX_CURL=1
  8421. for _libcurl_feature in $_libcurl_features ; do
  8422. cat >>confdefs.h <<_ACEOF
  8423. #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
  8424. _ACEOF
  8425. eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
  8426. done
  8427. if test "x$_libcurl_protocols" = "x" ; then
  8428. # We don't have --protocols, so just assume that all
  8429. # protocols are available
  8430. _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
  8431. if test x$libcurl_feature_SSL = xyes ; then
  8432. _libcurl_protocols="$_libcurl_protocols HTTPS"
  8433. # FTPS wasn't standards-compliant until version
  8434. # 7.11.0
  8435. if test $_libcurl_version -ge 461568; then
  8436. _libcurl_protocols="$_libcurl_protocols FTPS"
  8437. fi
  8438. fi
  8439. fi
  8440. for _libcurl_protocol in $_libcurl_protocols ; do
  8441. cat >>confdefs.h <<_ACEOF
  8442. #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
  8443. _ACEOF
  8444. eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
  8445. done
  8446. else
  8447. unset CURL_LIB
  8448. unset CURL_INCLUDE
  8449. PBX_CURL=0
  8450. fi
  8451. fi
  8452. unset _libcurl_try_link
  8453. unset _libcurl_version_parse
  8454. unset _libcurl_config
  8455. unset _libcurl_feature
  8456. unset _libcurl_features
  8457. unset _libcurl_protocol
  8458. unset _libcurl_protocols
  8459. unset _libcurl_version
  8460. unset _libcurl_ldflags
  8461. fi
  8462. if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
  8463. # This is the IF-NO path
  8464. :
  8465. else
  8466. # This is the IF-YES path
  8467. :
  8468. fi
  8469. unset _libcurl_with
  8470. LIBEDIT_DESCRIP="NetBSD Editline library"
  8471. LIBEDIT_OPTION="libedit"
  8472. PBX_LIBEDIT=0
  8473. # Check whether --with-libedit was given.
  8474. if test "${with_libedit+set}" = set; then :
  8475. withval=$with_libedit;
  8476. case ${withval} in
  8477. n|no)
  8478. USE_LIBEDIT=no
  8479. # -1 is a magic value used by menuselect to know that the package
  8480. # was disabled, other than 'not found'
  8481. PBX_LIBEDIT=-1
  8482. ;;
  8483. y|ye|yes)
  8484. ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
  8485. ;;
  8486. *)
  8487. LIBEDIT_DIR="${withval}"
  8488. ac_mandatory_list="${ac_mandatory_list} LIBEDIT"
  8489. ;;
  8490. esac
  8491. fi
  8492. LIBXML2_DESCRIP="LibXML2"
  8493. LIBXML2_OPTION="libxml2"
  8494. PBX_LIBXML2=0
  8495. # Check whether --with-libxml2 was given.
  8496. if test "${with_libxml2+set}" = set; then :
  8497. withval=$with_libxml2;
  8498. case ${withval} in
  8499. n|no)
  8500. USE_LIBXML2=no
  8501. # -1 is a magic value used by menuselect to know that the package
  8502. # was disabled, other than 'not found'
  8503. PBX_LIBXML2=-1
  8504. ;;
  8505. y|ye|yes)
  8506. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  8507. ;;
  8508. *)
  8509. LIBXML2_DIR="${withval}"
  8510. ac_mandatory_list="${ac_mandatory_list} LIBXML2"
  8511. ;;
  8512. esac
  8513. fi
  8514. LIBXSLT_DESCRIP="LibXSLT"
  8515. LIBXSLT_OPTION="libxslt"
  8516. PBX_LIBXSLT=0
  8517. # Check whether --with-libxslt was given.
  8518. if test "${with_libxslt+set}" = set; then :
  8519. withval=$with_libxslt;
  8520. case ${withval} in
  8521. n|no)
  8522. USE_LIBXSLT=no
  8523. # -1 is a magic value used by menuselect to know that the package
  8524. # was disabled, other than 'not found'
  8525. PBX_LIBXSLT=-1
  8526. ;;
  8527. y|ye|yes)
  8528. ac_mandatory_list="${ac_mandatory_list} LIBXSLT"
  8529. ;;
  8530. *)
  8531. LIBXSLT_DIR="${withval}"
  8532. ac_mandatory_list="${ac_mandatory_list} LIBXSLT"
  8533. ;;
  8534. esac
  8535. fi
  8536. LIBXSLT_CLEANUP_DESCRIP="LibXSLT Library Cleanup Function"
  8537. LIBXSLT_CLEANUP_OPTION=libxslt
  8538. LIBXSLT_CLEANUP_DIR=${LIBXSLT_DIR}
  8539. PBX_LIBXSLT_CLEANUP=0
  8540. LTDL_DESCRIP="libtool"
  8541. LTDL_OPTION="ltdl"
  8542. PBX_LTDL=0
  8543. # Check whether --with-ltdl was given.
  8544. if test "${with_ltdl+set}" = set; then :
  8545. withval=$with_ltdl;
  8546. case ${withval} in
  8547. n|no)
  8548. USE_LTDL=no
  8549. # -1 is a magic value used by menuselect to know that the package
  8550. # was disabled, other than 'not found'
  8551. PBX_LTDL=-1
  8552. ;;
  8553. y|ye|yes)
  8554. ac_mandatory_list="${ac_mandatory_list} LTDL"
  8555. ;;
  8556. *)
  8557. LTDL_DIR="${withval}"
  8558. ac_mandatory_list="${ac_mandatory_list} LTDL"
  8559. ;;
  8560. esac
  8561. fi
  8562. LUA_DESCRIP="Lua"
  8563. LUA_OPTION="lua"
  8564. PBX_LUA=0
  8565. # Check whether --with-lua was given.
  8566. if test "${with_lua+set}" = set; then :
  8567. withval=$with_lua;
  8568. case ${withval} in
  8569. n|no)
  8570. USE_LUA=no
  8571. # -1 is a magic value used by menuselect to know that the package
  8572. # was disabled, other than 'not found'
  8573. PBX_LUA=-1
  8574. ;;
  8575. y|ye|yes)
  8576. ac_mandatory_list="${ac_mandatory_list} LUA"
  8577. ;;
  8578. *)
  8579. LUA_DIR="${withval}"
  8580. ac_mandatory_list="${ac_mandatory_list} LUA"
  8581. ;;
  8582. esac
  8583. fi
  8584. MISDN_DESCRIP="mISDN user"
  8585. MISDN_OPTION="misdn"
  8586. PBX_MISDN=0
  8587. # Check whether --with-misdn was given.
  8588. if test "${with_misdn+set}" = set; then :
  8589. withval=$with_misdn;
  8590. case ${withval} in
  8591. n|no)
  8592. USE_MISDN=no
  8593. # -1 is a magic value used by menuselect to know that the package
  8594. # was disabled, other than 'not found'
  8595. PBX_MISDN=-1
  8596. ;;
  8597. y|ye|yes)
  8598. ac_mandatory_list="${ac_mandatory_list} MISDN"
  8599. ;;
  8600. *)
  8601. MISDN_DIR="${withval}"
  8602. ac_mandatory_list="${ac_mandatory_list} MISDN"
  8603. ;;
  8604. esac
  8605. fi
  8606. MYSQLCLIENT_DESCRIP="MySQL client"
  8607. MYSQLCLIENT_OPTION="mysqlclient"
  8608. PBX_MYSQLCLIENT=0
  8609. # Check whether --with-mysqlclient was given.
  8610. if test "${with_mysqlclient+set}" = set; then :
  8611. withval=$with_mysqlclient;
  8612. case ${withval} in
  8613. n|no)
  8614. USE_MYSQLCLIENT=no
  8615. # -1 is a magic value used by menuselect to know that the package
  8616. # was disabled, other than 'not found'
  8617. PBX_MYSQLCLIENT=-1
  8618. ;;
  8619. y|ye|yes)
  8620. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  8621. ;;
  8622. *)
  8623. MYSQLCLIENT_DIR="${withval}"
  8624. ac_mandatory_list="${ac_mandatory_list} MYSQLCLIENT"
  8625. ;;
  8626. esac
  8627. fi
  8628. NBS_DESCRIP="Network Broadcast Sound"
  8629. NBS_OPTION="nbs"
  8630. PBX_NBS=0
  8631. # Check whether --with-nbs was given.
  8632. if test "${with_nbs+set}" = set; then :
  8633. withval=$with_nbs;
  8634. case ${withval} in
  8635. n|no)
  8636. USE_NBS=no
  8637. # -1 is a magic value used by menuselect to know that the package
  8638. # was disabled, other than 'not found'
  8639. PBX_NBS=-1
  8640. ;;
  8641. y|ye|yes)
  8642. ac_mandatory_list="${ac_mandatory_list} NBS"
  8643. ;;
  8644. *)
  8645. NBS_DIR="${withval}"
  8646. ac_mandatory_list="${ac_mandatory_list} NBS"
  8647. ;;
  8648. esac
  8649. fi
  8650. NCURSES_DESCRIP="ncurses"
  8651. NCURSES_OPTION="ncurses"
  8652. PBX_NCURSES=0
  8653. # Check whether --with-ncurses was given.
  8654. if test "${with_ncurses+set}" = set; then :
  8655. withval=$with_ncurses;
  8656. case ${withval} in
  8657. n|no)
  8658. USE_NCURSES=no
  8659. # -1 is a magic value used by menuselect to know that the package
  8660. # was disabled, other than 'not found'
  8661. PBX_NCURSES=-1
  8662. ;;
  8663. y|ye|yes)
  8664. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  8665. ;;
  8666. *)
  8667. NCURSES_DIR="${withval}"
  8668. ac_mandatory_list="${ac_mandatory_list} NCURSES"
  8669. ;;
  8670. esac
  8671. fi
  8672. NEON_DESCRIP="neon"
  8673. NEON_OPTION="neon"
  8674. PBX_NEON=0
  8675. # Check whether --with-neon was given.
  8676. if test "${with_neon+set}" = set; then :
  8677. withval=$with_neon;
  8678. case ${withval} in
  8679. n|no)
  8680. USE_NEON=no
  8681. # -1 is a magic value used by menuselect to know that the package
  8682. # was disabled, other than 'not found'
  8683. PBX_NEON=-1
  8684. ;;
  8685. y|ye|yes)
  8686. ac_mandatory_list="${ac_mandatory_list} NEON"
  8687. ;;
  8688. *)
  8689. NEON_DIR="${withval}"
  8690. ac_mandatory_list="${ac_mandatory_list} NEON"
  8691. ;;
  8692. esac
  8693. fi
  8694. NEON29_DESCRIP="neon29"
  8695. NEON29_OPTION="neon29"
  8696. PBX_NEON29=0
  8697. # Check whether --with-neon29 was given.
  8698. if test "${with_neon29+set}" = set; then :
  8699. withval=$with_neon29;
  8700. case ${withval} in
  8701. n|no)
  8702. USE_NEON29=no
  8703. # -1 is a magic value used by menuselect to know that the package
  8704. # was disabled, other than 'not found'
  8705. PBX_NEON29=-1
  8706. ;;
  8707. y|ye|yes)
  8708. ac_mandatory_list="${ac_mandatory_list} NEON29"
  8709. ;;
  8710. *)
  8711. NEON29_DIR="${withval}"
  8712. ac_mandatory_list="${ac_mandatory_list} NEON29"
  8713. ;;
  8714. esac
  8715. fi
  8716. NETSNMP_DESCRIP="Net-SNMP"
  8717. NETSNMP_OPTION="netsnmp"
  8718. PBX_NETSNMP=0
  8719. # Check whether --with-netsnmp was given.
  8720. if test "${with_netsnmp+set}" = set; then :
  8721. withval=$with_netsnmp;
  8722. case ${withval} in
  8723. n|no)
  8724. USE_NETSNMP=no
  8725. # -1 is a magic value used by menuselect to know that the package
  8726. # was disabled, other than 'not found'
  8727. PBX_NETSNMP=-1
  8728. ;;
  8729. y|ye|yes)
  8730. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  8731. ;;
  8732. *)
  8733. NETSNMP_DIR="${withval}"
  8734. ac_mandatory_list="${ac_mandatory_list} NETSNMP"
  8735. ;;
  8736. esac
  8737. fi
  8738. NEWT_DESCRIP="newt"
  8739. NEWT_OPTION="newt"
  8740. PBX_NEWT=0
  8741. # Check whether --with-newt was given.
  8742. if test "${with_newt+set}" = set; then :
  8743. withval=$with_newt;
  8744. case ${withval} in
  8745. n|no)
  8746. USE_NEWT=no
  8747. # -1 is a magic value used by menuselect to know that the package
  8748. # was disabled, other than 'not found'
  8749. PBX_NEWT=-1
  8750. ;;
  8751. y|ye|yes)
  8752. ac_mandatory_list="${ac_mandatory_list} NEWT"
  8753. ;;
  8754. *)
  8755. NEWT_DIR="${withval}"
  8756. ac_mandatory_list="${ac_mandatory_list} NEWT"
  8757. ;;
  8758. esac
  8759. fi
  8760. OGG_DESCRIP="OGG"
  8761. OGG_OPTION="ogg"
  8762. PBX_OGG=0
  8763. # Check whether --with-ogg was given.
  8764. if test "${with_ogg+set}" = set; then :
  8765. withval=$with_ogg;
  8766. case ${withval} in
  8767. n|no)
  8768. USE_OGG=no
  8769. # -1 is a magic value used by menuselect to know that the package
  8770. # was disabled, other than 'not found'
  8771. PBX_OGG=-1
  8772. ;;
  8773. y|ye|yes)
  8774. ac_mandatory_list="${ac_mandatory_list} OGG"
  8775. ;;
  8776. *)
  8777. OGG_DIR="${withval}"
  8778. ac_mandatory_list="${ac_mandatory_list} OGG"
  8779. ;;
  8780. esac
  8781. fi
  8782. OPENR2_DESCRIP="MFR2"
  8783. OPENR2_OPTION="openr2"
  8784. PBX_OPENR2=0
  8785. # Check whether --with-openr2 was given.
  8786. if test "${with_openr2+set}" = set; then :
  8787. withval=$with_openr2;
  8788. case ${withval} in
  8789. n|no)
  8790. USE_OPENR2=no
  8791. # -1 is a magic value used by menuselect to know that the package
  8792. # was disabled, other than 'not found'
  8793. PBX_OPENR2=-1
  8794. ;;
  8795. y|ye|yes)
  8796. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  8797. ;;
  8798. *)
  8799. OPENR2_DIR="${withval}"
  8800. ac_mandatory_list="${ac_mandatory_list} OPENR2"
  8801. ;;
  8802. esac
  8803. fi
  8804. OSPTK_DESCRIP="OSP Toolkit"
  8805. OSPTK_OPTION="osptk"
  8806. PBX_OSPTK=0
  8807. # Check whether --with-osptk was given.
  8808. if test "${with_osptk+set}" = set; then :
  8809. withval=$with_osptk;
  8810. case ${withval} in
  8811. n|no)
  8812. USE_OSPTK=no
  8813. # -1 is a magic value used by menuselect to know that the package
  8814. # was disabled, other than 'not found'
  8815. PBX_OSPTK=-1
  8816. ;;
  8817. y|ye|yes)
  8818. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  8819. ;;
  8820. *)
  8821. OSPTK_DIR="${withval}"
  8822. ac_mandatory_list="${ac_mandatory_list} OSPTK"
  8823. ;;
  8824. esac
  8825. fi
  8826. OSS_DESCRIP="Open Sound System"
  8827. OSS_OPTION="oss"
  8828. PBX_OSS=0
  8829. # Check whether --with-oss was given.
  8830. if test "${with_oss+set}" = set; then :
  8831. withval=$with_oss;
  8832. case ${withval} in
  8833. n|no)
  8834. USE_OSS=no
  8835. # -1 is a magic value used by menuselect to know that the package
  8836. # was disabled, other than 'not found'
  8837. PBX_OSS=-1
  8838. ;;
  8839. y|ye|yes)
  8840. ac_mandatory_list="${ac_mandatory_list} OSS"
  8841. ;;
  8842. *)
  8843. OSS_DIR="${withval}"
  8844. ac_mandatory_list="${ac_mandatory_list} OSS"
  8845. ;;
  8846. esac
  8847. fi
  8848. PGSQL_DESCRIP="PostgreSQL"
  8849. PGSQL_OPTION="postgres"
  8850. PBX_PGSQL=0
  8851. # Check whether --with-postgres was given.
  8852. if test "${with_postgres+set}" = set; then :
  8853. withval=$with_postgres;
  8854. case ${withval} in
  8855. n|no)
  8856. USE_PGSQL=no
  8857. # -1 is a magic value used by menuselect to know that the package
  8858. # was disabled, other than 'not found'
  8859. PBX_PGSQL=-1
  8860. ;;
  8861. y|ye|yes)
  8862. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  8863. ;;
  8864. *)
  8865. PGSQL_DIR="${withval}"
  8866. ac_mandatory_list="${ac_mandatory_list} PGSQL"
  8867. ;;
  8868. esac
  8869. fi
  8870. PJPROJECT_DESCRIP="PJPROJECT"
  8871. PJPROJECT_OPTION="pjproject"
  8872. PBX_PJPROJECT=0
  8873. # Check whether --with-pjproject was given.
  8874. if test "${with_pjproject+set}" = set; then :
  8875. withval=$with_pjproject;
  8876. case ${withval} in
  8877. n|no)
  8878. USE_PJPROJECT=no
  8879. # -1 is a magic value used by menuselect to know that the package
  8880. # was disabled, other than 'not found'
  8881. PBX_PJPROJECT=-1
  8882. ;;
  8883. y|ye|yes)
  8884. ac_mandatory_list="${ac_mandatory_list} PJPROJECT"
  8885. ;;
  8886. *)
  8887. PJPROJECT_DIR="${withval}"
  8888. ac_mandatory_list="${ac_mandatory_list} PJPROJECT"
  8889. ;;
  8890. esac
  8891. fi
  8892. POPT_DESCRIP="popt"
  8893. POPT_OPTION="popt"
  8894. PBX_POPT=0
  8895. # Check whether --with-popt was given.
  8896. if test "${with_popt+set}" = set; then :
  8897. withval=$with_popt;
  8898. case ${withval} in
  8899. n|no)
  8900. USE_POPT=no
  8901. # -1 is a magic value used by menuselect to know that the package
  8902. # was disabled, other than 'not found'
  8903. PBX_POPT=-1
  8904. ;;
  8905. y|ye|yes)
  8906. ac_mandatory_list="${ac_mandatory_list} POPT"
  8907. ;;
  8908. *)
  8909. POPT_DIR="${withval}"
  8910. ac_mandatory_list="${ac_mandatory_list} POPT"
  8911. ;;
  8912. esac
  8913. fi
  8914. PJ_TRANSACTION_GRP_LOCK_DESCRIP="PJSIP Transaction Group Lock Support"
  8915. PJ_TRANSACTION_GRP_LOCK_OPTION=pjsip
  8916. PJ_TRANSACTION_GRP_LOCK_DIR=${PJPROJECT_DIR}
  8917. PBX_PJ_TRANSACTION_GRP_LOCK=0
  8918. PJSIP_REPLACE_MEDIA_STREAM_DESCRIP="PJSIP Media Stream Replacement Support"
  8919. PJSIP_REPLACE_MEDIA_STREAM_OPTION=pjsip
  8920. PJSIP_REPLACE_MEDIA_STREAM_DIR=${PJPROJECT_DIR}
  8921. PBX_PJSIP_REPLACE_MEDIA_STREAM=0
  8922. PORTAUDIO_DESCRIP="PortAudio"
  8923. PORTAUDIO_OPTION="portaudio"
  8924. PBX_PORTAUDIO=0
  8925. # Check whether --with-portaudio was given.
  8926. if test "${with_portaudio+set}" = set; then :
  8927. withval=$with_portaudio;
  8928. case ${withval} in
  8929. n|no)
  8930. USE_PORTAUDIO=no
  8931. # -1 is a magic value used by menuselect to know that the package
  8932. # was disabled, other than 'not found'
  8933. PBX_PORTAUDIO=-1
  8934. ;;
  8935. y|ye|yes)
  8936. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  8937. ;;
  8938. *)
  8939. PORTAUDIO_DIR="${withval}"
  8940. ac_mandatory_list="${ac_mandatory_list} PORTAUDIO"
  8941. ;;
  8942. esac
  8943. fi
  8944. PRI_DESCRIP="ISDN PRI"
  8945. PRI_OPTION="pri"
  8946. PBX_PRI=0
  8947. # Check whether --with-pri was given.
  8948. if test "${with_pri+set}" = set; then :
  8949. withval=$with_pri;
  8950. case ${withval} in
  8951. n|no)
  8952. USE_PRI=no
  8953. # -1 is a magic value used by menuselect to know that the package
  8954. # was disabled, other than 'not found'
  8955. PBX_PRI=-1
  8956. ;;
  8957. y|ye|yes)
  8958. ac_mandatory_list="${ac_mandatory_list} PRI"
  8959. ;;
  8960. *)
  8961. PRI_DIR="${withval}"
  8962. ac_mandatory_list="${ac_mandatory_list} PRI"
  8963. ;;
  8964. esac
  8965. fi
  8966. PRI_SETUP_ACK_INBAND_DESCRIP="ISDN PRI progress inband ie in SETUP ACK"
  8967. PRI_SETUP_ACK_INBAND_OPTION=pri
  8968. PRI_SETUP_ACK_INBAND_DIR=${PRI_DIR}
  8969. PBX_PRI_SETUP_ACK_INBAND=0
  8970. PRI_L2_PERSISTENCE_DESCRIP="ISDN Layer 2 persistence option"
  8971. PRI_L2_PERSISTENCE_OPTION=pri
  8972. PRI_L2_PERSISTENCE_DIR=${PRI_DIR}
  8973. PBX_PRI_L2_PERSISTENCE=0
  8974. PRI_DATETIME_SEND_DESCRIP="ISDN PRI Date/time ie send policy"
  8975. PRI_DATETIME_SEND_OPTION=pri
  8976. PRI_DATETIME_SEND_DIR=${PRI_DIR}
  8977. PBX_PRI_DATETIME_SEND=0
  8978. PRI_MWI_V2_DESCRIP="ISDN PRI Message Waiting Indication (Fixed)"
  8979. PRI_MWI_V2_OPTION=pri
  8980. PRI_MWI_V2_DIR=${PRI_DIR}
  8981. PBX_PRI_MWI_V2=0
  8982. PRI_DISPLAY_TEXT_DESCRIP="ISDN PRI user display text IE contents during call"
  8983. PRI_DISPLAY_TEXT_OPTION=pri
  8984. PRI_DISPLAY_TEXT_DIR=${PRI_DIR}
  8985. PBX_PRI_DISPLAY_TEXT=0
  8986. PRI_MWI_DESCRIP="ISDN PRI Message Waiting Indication"
  8987. PRI_MWI_OPTION=pri
  8988. PRI_MWI_DIR=${PRI_DIR}
  8989. PBX_PRI_MWI=0
  8990. PRI_MCID_DESCRIP="ISDN PRI Malicious Call ID"
  8991. PRI_MCID_OPTION=pri
  8992. PRI_MCID_DIR=${PRI_DIR}
  8993. PBX_PRI_MCID=0
  8994. PRI_CALL_WAITING_DESCRIP="ISDN PRI call waiting supplementary service"
  8995. PRI_CALL_WAITING_OPTION=pri
  8996. PRI_CALL_WAITING_DIR=${PRI_DIR}
  8997. PBX_PRI_CALL_WAITING=0
  8998. PRI_AOC_EVENTS_DESCRIP="ISDN PRI advice of charge supplementary service events"
  8999. PRI_AOC_EVENTS_OPTION=pri
  9000. PRI_AOC_EVENTS_DIR=${PRI_DIR}
  9001. PBX_PRI_AOC_EVENTS=0
  9002. PRI_TRANSFER_DESCRIP="ISDN PRI call transfer supplementary service"
  9003. PRI_TRANSFER_OPTION=pri
  9004. PRI_TRANSFER_DIR=${PRI_DIR}
  9005. PBX_PRI_TRANSFER=0
  9006. PRI_CCSS_DESCRIP="ISDN PRI call completion supplementary service"
  9007. PRI_CCSS_OPTION=pri
  9008. PRI_CCSS_DIR=${PRI_DIR}
  9009. PBX_PRI_CCSS=0
  9010. PRI_HANGUP_FIX_DESCRIP="ISDN PRI hangup fix"
  9011. PRI_HANGUP_FIX_OPTION=pri
  9012. PRI_HANGUP_FIX_DIR=${PRI_DIR}
  9013. PBX_PRI_HANGUP_FIX=0
  9014. PRI_SUBADDR_DESCRIP="ISDN PRI subaddressing"
  9015. PRI_SUBADDR_OPTION=pri
  9016. PRI_SUBADDR_DIR=${PRI_DIR}
  9017. PBX_PRI_SUBADDR=0
  9018. PRI_CALL_HOLD_DESCRIP="ISDN PRI call hold"
  9019. PRI_CALL_HOLD_OPTION=pri
  9020. PRI_CALL_HOLD_DIR=${PRI_DIR}
  9021. PBX_PRI_CALL_HOLD=0
  9022. PRI_CALL_REROUTING_DESCRIP="ISDN PRI call rerouting and call deflection"
  9023. PRI_CALL_REROUTING_OPTION=pri
  9024. PRI_CALL_REROUTING_DIR=${PRI_DIR}
  9025. PBX_PRI_CALL_REROUTING=0
  9026. PRI_SETUP_KEYPAD_DESCRIP="ISDN PRI keypad facility in SETUP"
  9027. PRI_SETUP_KEYPAD_OPTION=pri
  9028. PRI_SETUP_KEYPAD_DIR=${PRI_DIR}
  9029. PBX_PRI_SETUP_KEYPAD=0
  9030. # ------------------------------------v
  9031. # TODO: The code can be changed to always include these features now.
  9032. # These features will always be present if pri_connected_line_update is available.
  9033. PRI_INBANDDISCONNECT_DESCRIP="ISDN PRI set_inbanddisconnect"
  9034. PRI_INBANDDISCONNECT_OPTION=pri
  9035. PRI_INBANDDISCONNECT_DIR=${PRI_DIR}
  9036. PBX_PRI_INBANDDISCONNECT=0
  9037. PRI_PROG_W_CAUSE_DESCRIP="ISDN progress with cause"
  9038. PRI_PROG_W_CAUSE_OPTION=pri
  9039. PRI_PROG_W_CAUSE_DIR=${PRI_DIR}
  9040. PBX_PRI_PROG_W_CAUSE=0
  9041. PRI_SERVICE_MESSAGES_DESCRIP="ISDN service messages"
  9042. PRI_SERVICE_MESSAGES_OPTION=pri
  9043. PRI_SERVICE_MESSAGES_DIR=${PRI_DIR}
  9044. PBX_PRI_SERVICE_MESSAGES=0
  9045. PRI_REVERSE_CHARGE_DESCRIP="ISDN reverse charge"
  9046. PRI_REVERSE_CHARGE_OPTION=pri
  9047. PRI_REVERSE_CHARGE_DIR=${PRI_DIR}
  9048. PBX_PRI_REVERSE_CHARGE=0
  9049. # ------------------------------------^
  9050. PWLIB_DESCRIP="PWlib"
  9051. PWLIB_OPTION="pwlib"
  9052. PBX_PWLIB=0
  9053. # Check whether --with-pwlib was given.
  9054. if test "${with_pwlib+set}" = set; then :
  9055. withval=$with_pwlib;
  9056. case ${withval} in
  9057. n|no)
  9058. USE_PWLIB=no
  9059. # -1 is a magic value used by menuselect to know that the package
  9060. # was disabled, other than 'not found'
  9061. PBX_PWLIB=-1
  9062. ;;
  9063. y|ye|yes)
  9064. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  9065. ;;
  9066. *)
  9067. PWLIB_DIR="${withval}"
  9068. ac_mandatory_list="${ac_mandatory_list} PWLIB"
  9069. ;;
  9070. esac
  9071. fi
  9072. RADIUS_DESCRIP="Radius Client"
  9073. RADIUS_OPTION="radius"
  9074. PBX_RADIUS=0
  9075. # Check whether --with-radius was given.
  9076. if test "${with_radius+set}" = set; then :
  9077. withval=$with_radius;
  9078. case ${withval} in
  9079. n|no)
  9080. USE_RADIUS=no
  9081. # -1 is a magic value used by menuselect to know that the package
  9082. # was disabled, other than 'not found'
  9083. PBX_RADIUS=-1
  9084. ;;
  9085. y|ye|yes)
  9086. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  9087. ;;
  9088. *)
  9089. RADIUS_DIR="${withval}"
  9090. ac_mandatory_list="${ac_mandatory_list} RADIUS"
  9091. ;;
  9092. esac
  9093. fi
  9094. RESAMPLE_DESCRIP="LIBRESAMPLE"
  9095. RESAMPLE_OPTION="resample"
  9096. PBX_RESAMPLE=0
  9097. # Check whether --with-resample was given.
  9098. if test "${with_resample+set}" = set; then :
  9099. withval=$with_resample;
  9100. case ${withval} in
  9101. n|no)
  9102. USE_RESAMPLE=no
  9103. # -1 is a magic value used by menuselect to know that the package
  9104. # was disabled, other than 'not found'
  9105. PBX_RESAMPLE=-1
  9106. ;;
  9107. y|ye|yes)
  9108. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  9109. ;;
  9110. *)
  9111. RESAMPLE_DIR="${withval}"
  9112. ac_mandatory_list="${ac_mandatory_list} RESAMPLE"
  9113. ;;
  9114. esac
  9115. fi
  9116. SDL_DESCRIP="Sdl"
  9117. SDL_OPTION="sdl"
  9118. PBX_SDL=0
  9119. # Check whether --with-sdl was given.
  9120. if test "${with_sdl+set}" = set; then :
  9121. withval=$with_sdl;
  9122. case ${withval} in
  9123. n|no)
  9124. USE_SDL=no
  9125. # -1 is a magic value used by menuselect to know that the package
  9126. # was disabled, other than 'not found'
  9127. PBX_SDL=-1
  9128. ;;
  9129. y|ye|yes)
  9130. ac_mandatory_list="${ac_mandatory_list} SDL"
  9131. ;;
  9132. *)
  9133. SDL_DIR="${withval}"
  9134. ac_mandatory_list="${ac_mandatory_list} SDL"
  9135. ;;
  9136. esac
  9137. fi
  9138. SDL_IMAGE_DESCRIP="Sdl Image"
  9139. SDL_IMAGE_OPTION="SDL_image"
  9140. PBX_SDL_IMAGE=0
  9141. # Check whether --with-SDL_image was given.
  9142. if test "${with_SDL_image+set}" = set; then :
  9143. withval=$with_SDL_image;
  9144. case ${withval} in
  9145. n|no)
  9146. USE_SDL_IMAGE=no
  9147. # -1 is a magic value used by menuselect to know that the package
  9148. # was disabled, other than 'not found'
  9149. PBX_SDL_IMAGE=-1
  9150. ;;
  9151. y|ye|yes)
  9152. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  9153. ;;
  9154. *)
  9155. SDL_IMAGE_DIR="${withval}"
  9156. ac_mandatory_list="${ac_mandatory_list} SDL_IMAGE"
  9157. ;;
  9158. esac
  9159. fi
  9160. # Check whether --with-sounds-cache was given.
  9161. if test "${with_sounds_cache+set}" = set; then :
  9162. withval=$with_sounds_cache;
  9163. case ${withval} in
  9164. n|no)
  9165. unset SOUNDS_CACHE_DIR
  9166. ;;
  9167. *)
  9168. if test "x${withval}" = "x"; then
  9169. :
  9170. else
  9171. SOUNDS_CACHE_DIR="${withval}"
  9172. fi
  9173. ;;
  9174. esac
  9175. else
  9176. :
  9177. fi
  9178. SPANDSP_DESCRIP="SPANDSP"
  9179. SPANDSP_OPTION="spandsp"
  9180. PBX_SPANDSP=0
  9181. # Check whether --with-spandsp was given.
  9182. if test "${with_spandsp+set}" = set; then :
  9183. withval=$with_spandsp;
  9184. case ${withval} in
  9185. n|no)
  9186. USE_SPANDSP=no
  9187. # -1 is a magic value used by menuselect to know that the package
  9188. # was disabled, other than 'not found'
  9189. PBX_SPANDSP=-1
  9190. ;;
  9191. y|ye|yes)
  9192. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  9193. ;;
  9194. *)
  9195. SPANDSP_DIR="${withval}"
  9196. ac_mandatory_list="${ac_mandatory_list} SPANDSP"
  9197. ;;
  9198. esac
  9199. fi
  9200. SS7_DESCRIP="ISDN SS7"
  9201. SS7_OPTION="ss7"
  9202. PBX_SS7=0
  9203. # Check whether --with-ss7 was given.
  9204. if test "${with_ss7+set}" = set; then :
  9205. withval=$with_ss7;
  9206. case ${withval} in
  9207. n|no)
  9208. USE_SS7=no
  9209. # -1 is a magic value used by menuselect to know that the package
  9210. # was disabled, other than 'not found'
  9211. PBX_SS7=-1
  9212. ;;
  9213. y|ye|yes)
  9214. ac_mandatory_list="${ac_mandatory_list} SS7"
  9215. ;;
  9216. *)
  9217. SS7_DIR="${withval}"
  9218. ac_mandatory_list="${ac_mandatory_list} SS7"
  9219. ;;
  9220. esac
  9221. fi
  9222. SPEEX_DESCRIP="Speex"
  9223. SPEEX_OPTION="speex"
  9224. PBX_SPEEX=0
  9225. # Check whether --with-speex was given.
  9226. if test "${with_speex+set}" = set; then :
  9227. withval=$with_speex;
  9228. case ${withval} in
  9229. n|no)
  9230. USE_SPEEX=no
  9231. # -1 is a magic value used by menuselect to know that the package
  9232. # was disabled, other than 'not found'
  9233. PBX_SPEEX=-1
  9234. ;;
  9235. y|ye|yes)
  9236. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  9237. ;;
  9238. *)
  9239. SPEEX_DIR="${withval}"
  9240. ac_mandatory_list="${ac_mandatory_list} SPEEX"
  9241. ;;
  9242. esac
  9243. fi
  9244. SPEEX_PREPROCESS_DESCRIP="Speex preprocess routines"
  9245. SPEEX_PREPROCESS_OPTION="speex"
  9246. PBX_SPEEX_PREPROCESS=0
  9247. # Check whether --with-speex was given.
  9248. if test "${with_speex+set}" = set; then :
  9249. withval=$with_speex;
  9250. case ${withval} in
  9251. n|no)
  9252. USE_SPEEX_PREPROCESS=no
  9253. # -1 is a magic value used by menuselect to know that the package
  9254. # was disabled, other than 'not found'
  9255. PBX_SPEEX_PREPROCESS=-1
  9256. ;;
  9257. y|ye|yes)
  9258. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  9259. ;;
  9260. *)
  9261. SPEEX_PREPROCESS_DIR="${withval}"
  9262. ac_mandatory_list="${ac_mandatory_list} SPEEX_PREPROCESS"
  9263. ;;
  9264. esac
  9265. fi
  9266. SPEEXDSP_DESCRIP="SpeexDSP"
  9267. SPEEXDSP_OPTION="speexdsp"
  9268. PBX_SPEEXDSP=0
  9269. # Check whether --with-speexdsp was given.
  9270. if test "${with_speexdsp+set}" = set; then :
  9271. withval=$with_speexdsp;
  9272. case ${withval} in
  9273. n|no)
  9274. USE_SPEEXDSP=no
  9275. # -1 is a magic value used by menuselect to know that the package
  9276. # was disabled, other than 'not found'
  9277. PBX_SPEEXDSP=-1
  9278. ;;
  9279. y|ye|yes)
  9280. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  9281. ;;
  9282. *)
  9283. SPEEXDSP_DIR="${withval}"
  9284. ac_mandatory_list="${ac_mandatory_list} SPEEXDSP"
  9285. ;;
  9286. esac
  9287. fi
  9288. SPEEX_PREPROCESS_DESCRIP="speex_preprocess_ctl"
  9289. SPEEX_PREPROCESS_OPTION=speex
  9290. PBX_SPEEX_PREPROCESS=0
  9291. SQLITE_DESCRIP="SQLite"
  9292. SQLITE_OPTION="sqlite"
  9293. PBX_SQLITE=0
  9294. # Check whether --with-sqlite was given.
  9295. if test "${with_sqlite+set}" = set; then :
  9296. withval=$with_sqlite;
  9297. case ${withval} in
  9298. n|no)
  9299. USE_SQLITE=no
  9300. # -1 is a magic value used by menuselect to know that the package
  9301. # was disabled, other than 'not found'
  9302. PBX_SQLITE=-1
  9303. ;;
  9304. y|ye|yes)
  9305. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9306. ;;
  9307. *)
  9308. SQLITE_DIR="${withval}"
  9309. ac_mandatory_list="${ac_mandatory_list} SQLITE"
  9310. ;;
  9311. esac
  9312. fi
  9313. SQLITE3_DESCRIP="SQLite"
  9314. SQLITE3_OPTION="sqlite3"
  9315. PBX_SQLITE3=0
  9316. # Check whether --with-sqlite3 was given.
  9317. if test "${with_sqlite3+set}" = set; then :
  9318. withval=$with_sqlite3;
  9319. case ${withval} in
  9320. n|no)
  9321. USE_SQLITE3=no
  9322. # -1 is a magic value used by menuselect to know that the package
  9323. # was disabled, other than 'not found'
  9324. PBX_SQLITE3=-1
  9325. ;;
  9326. y|ye|yes)
  9327. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9328. ;;
  9329. *)
  9330. SQLITE3_DIR="${withval}"
  9331. ac_mandatory_list="${ac_mandatory_list} SQLITE3"
  9332. ;;
  9333. esac
  9334. fi
  9335. SRTP_DESCRIP="Secure RTP"
  9336. SRTP_OPTION="srtp"
  9337. PBX_SRTP=0
  9338. # Check whether --with-srtp was given.
  9339. if test "${with_srtp+set}" = set; then :
  9340. withval=$with_srtp;
  9341. case ${withval} in
  9342. n|no)
  9343. USE_SRTP=no
  9344. # -1 is a magic value used by menuselect to know that the package
  9345. # was disabled, other than 'not found'
  9346. PBX_SRTP=-1
  9347. ;;
  9348. y|ye|yes)
  9349. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9350. ;;
  9351. *)
  9352. SRTP_DIR="${withval}"
  9353. ac_mandatory_list="${ac_mandatory_list} SRTP"
  9354. ;;
  9355. esac
  9356. fi
  9357. SRTP_SHUTDOWN_DESCRIP="SRTP Library Shutdown Function"
  9358. SRTP_SHUTDOWN_OPTION=srtp
  9359. SRTP_SHUTDOWN_DIR=${SRTP_DIR}
  9360. PBX_SRTP_SHUTDOWN=0
  9361. OPENSSL_DESCRIP="OpenSSL Secure Sockets Layer"
  9362. OPENSSL_OPTION="ssl"
  9363. PBX_OPENSSL=0
  9364. # Check whether --with-ssl was given.
  9365. if test "${with_ssl+set}" = set; then :
  9366. withval=$with_ssl;
  9367. case ${withval} in
  9368. n|no)
  9369. USE_OPENSSL=no
  9370. # -1 is a magic value used by menuselect to know that the package
  9371. # was disabled, other than 'not found'
  9372. PBX_OPENSSL=-1
  9373. ;;
  9374. y|ye|yes)
  9375. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9376. ;;
  9377. *)
  9378. OPENSSL_DIR="${withval}"
  9379. ac_mandatory_list="${ac_mandatory_list} OPENSSL"
  9380. ;;
  9381. esac
  9382. fi
  9383. SUPPSERV_DESCRIP="mISDN Supplemental Services"
  9384. SUPPSERV_OPTION="suppserv"
  9385. PBX_SUPPSERV=0
  9386. # Check whether --with-suppserv was given.
  9387. if test "${with_suppserv+set}" = set; then :
  9388. withval=$with_suppserv;
  9389. case ${withval} in
  9390. n|no)
  9391. USE_SUPPSERV=no
  9392. # -1 is a magic value used by menuselect to know that the package
  9393. # was disabled, other than 'not found'
  9394. PBX_SUPPSERV=-1
  9395. ;;
  9396. y|ye|yes)
  9397. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9398. ;;
  9399. *)
  9400. SUPPSERV_DIR="${withval}"
  9401. ac_mandatory_list="${ac_mandatory_list} SUPPSERV"
  9402. ;;
  9403. esac
  9404. fi
  9405. FREETDS_DESCRIP="FreeTDS"
  9406. FREETDS_OPTION="tds"
  9407. PBX_FREETDS=0
  9408. # Check whether --with-tds was given.
  9409. if test "${with_tds+set}" = set; then :
  9410. withval=$with_tds;
  9411. case ${withval} in
  9412. n|no)
  9413. USE_FREETDS=no
  9414. # -1 is a magic value used by menuselect to know that the package
  9415. # was disabled, other than 'not found'
  9416. PBX_FREETDS=-1
  9417. ;;
  9418. y|ye|yes)
  9419. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9420. ;;
  9421. *)
  9422. FREETDS_DIR="${withval}"
  9423. ac_mandatory_list="${ac_mandatory_list} FREETDS"
  9424. ;;
  9425. esac
  9426. fi
  9427. TERMCAP_DESCRIP="Termcap"
  9428. TERMCAP_OPTION="termcap"
  9429. PBX_TERMCAP=0
  9430. # Check whether --with-termcap was given.
  9431. if test "${with_termcap+set}" = set; then :
  9432. withval=$with_termcap;
  9433. case ${withval} in
  9434. n|no)
  9435. USE_TERMCAP=no
  9436. # -1 is a magic value used by menuselect to know that the package
  9437. # was disabled, other than 'not found'
  9438. PBX_TERMCAP=-1
  9439. ;;
  9440. y|ye|yes)
  9441. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  9442. ;;
  9443. *)
  9444. TERMCAP_DIR="${withval}"
  9445. ac_mandatory_list="${ac_mandatory_list} TERMCAP"
  9446. ;;
  9447. esac
  9448. fi
  9449. TIMERFD_DESCRIP="timerfd"
  9450. TIMERFD_OPTION="timerfd"
  9451. PBX_TIMERFD=0
  9452. # Check whether --with-timerfd was given.
  9453. if test "${with_timerfd+set}" = set; then :
  9454. withval=$with_timerfd;
  9455. case ${withval} in
  9456. n|no)
  9457. USE_TIMERFD=no
  9458. # -1 is a magic value used by menuselect to know that the package
  9459. # was disabled, other than 'not found'
  9460. PBX_TIMERFD=-1
  9461. ;;
  9462. y|ye|yes)
  9463. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  9464. ;;
  9465. *)
  9466. TIMERFD_DIR="${withval}"
  9467. ac_mandatory_list="${ac_mandatory_list} TIMERFD"
  9468. ;;
  9469. esac
  9470. fi
  9471. TINFO_DESCRIP="Term Info"
  9472. TINFO_OPTION="tinfo"
  9473. PBX_TINFO=0
  9474. # Check whether --with-tinfo was given.
  9475. if test "${with_tinfo+set}" = set; then :
  9476. withval=$with_tinfo;
  9477. case ${withval} in
  9478. n|no)
  9479. USE_TINFO=no
  9480. # -1 is a magic value used by menuselect to know that the package
  9481. # was disabled, other than 'not found'
  9482. PBX_TINFO=-1
  9483. ;;
  9484. y|ye|yes)
  9485. ac_mandatory_list="${ac_mandatory_list} TINFO"
  9486. ;;
  9487. *)
  9488. TINFO_DIR="${withval}"
  9489. ac_mandatory_list="${ac_mandatory_list} TINFO"
  9490. ;;
  9491. esac
  9492. fi
  9493. TONEZONE_DESCRIP="tonezone"
  9494. TONEZONE_OPTION="tonezone"
  9495. PBX_TONEZONE=0
  9496. # Check whether --with-tonezone was given.
  9497. if test "${with_tonezone+set}" = set; then :
  9498. withval=$with_tonezone;
  9499. case ${withval} in
  9500. n|no)
  9501. USE_TONEZONE=no
  9502. # -1 is a magic value used by menuselect to know that the package
  9503. # was disabled, other than 'not found'
  9504. PBX_TONEZONE=-1
  9505. ;;
  9506. y|ye|yes)
  9507. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  9508. ;;
  9509. *)
  9510. TONEZONE_DIR="${withval}"
  9511. ac_mandatory_list="${ac_mandatory_list} TONEZONE"
  9512. ;;
  9513. esac
  9514. fi
  9515. UNIXODBC_DESCRIP="unixODBC"
  9516. UNIXODBC_OPTION="unixodbc"
  9517. PBX_UNIXODBC=0
  9518. # Check whether --with-unixodbc was given.
  9519. if test "${with_unixodbc+set}" = set; then :
  9520. withval=$with_unixodbc;
  9521. case ${withval} in
  9522. n|no)
  9523. USE_UNIXODBC=no
  9524. # -1 is a magic value used by menuselect to know that the package
  9525. # was disabled, other than 'not found'
  9526. PBX_UNIXODBC=-1
  9527. ;;
  9528. y|ye|yes)
  9529. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  9530. ;;
  9531. *)
  9532. UNIXODBC_DIR="${withval}"
  9533. ac_mandatory_list="${ac_mandatory_list} UNIXODBC"
  9534. ;;
  9535. esac
  9536. fi
  9537. VORBIS_DESCRIP="Vorbis"
  9538. VORBIS_OPTION="vorbis"
  9539. PBX_VORBIS=0
  9540. # Check whether --with-vorbis was given.
  9541. if test "${with_vorbis+set}" = set; then :
  9542. withval=$with_vorbis;
  9543. case ${withval} in
  9544. n|no)
  9545. USE_VORBIS=no
  9546. # -1 is a magic value used by menuselect to know that the package
  9547. # was disabled, other than 'not found'
  9548. PBX_VORBIS=-1
  9549. ;;
  9550. y|ye|yes)
  9551. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  9552. ;;
  9553. *)
  9554. VORBIS_DIR="${withval}"
  9555. ac_mandatory_list="${ac_mandatory_list} VORBIS"
  9556. ;;
  9557. esac
  9558. fi
  9559. VPB_DESCRIP="Voicetronix API"
  9560. VPB_OPTION="vpb"
  9561. PBX_VPB=0
  9562. # Check whether --with-vpb was given.
  9563. if test "${with_vpb+set}" = set; then :
  9564. withval=$with_vpb;
  9565. case ${withval} in
  9566. n|no)
  9567. USE_VPB=no
  9568. # -1 is a magic value used by menuselect to know that the package
  9569. # was disabled, other than 'not found'
  9570. PBX_VPB=-1
  9571. ;;
  9572. y|ye|yes)
  9573. ac_mandatory_list="${ac_mandatory_list} VPB"
  9574. ;;
  9575. *)
  9576. VPB_DIR="${withval}"
  9577. ac_mandatory_list="${ac_mandatory_list} VPB"
  9578. ;;
  9579. esac
  9580. fi
  9581. X11_DESCRIP="X11"
  9582. X11_OPTION="x11"
  9583. PBX_X11=0
  9584. # Check whether --with-x11 was given.
  9585. if test "${with_x11+set}" = set; then :
  9586. withval=$with_x11;
  9587. case ${withval} in
  9588. n|no)
  9589. USE_X11=no
  9590. # -1 is a magic value used by menuselect to know that the package
  9591. # was disabled, other than 'not found'
  9592. PBX_X11=-1
  9593. ;;
  9594. y|ye|yes)
  9595. ac_mandatory_list="${ac_mandatory_list} X11"
  9596. ;;
  9597. *)
  9598. X11_DIR="${withval}"
  9599. ac_mandatory_list="${ac_mandatory_list} X11"
  9600. ;;
  9601. esac
  9602. fi
  9603. ZLIB_DESCRIP="zlib compression"
  9604. ZLIB_OPTION="z"
  9605. PBX_ZLIB=0
  9606. # Check whether --with-z was given.
  9607. if test "${with_z+set}" = set; then :
  9608. withval=$with_z;
  9609. case ${withval} in
  9610. n|no)
  9611. USE_ZLIB=no
  9612. # -1 is a magic value used by menuselect to know that the package
  9613. # was disabled, other than 'not found'
  9614. PBX_ZLIB=-1
  9615. ;;
  9616. y|ye|yes)
  9617. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  9618. ;;
  9619. *)
  9620. ZLIB_DIR="${withval}"
  9621. ac_mandatory_list="${ac_mandatory_list} ZLIB"
  9622. ;;
  9623. esac
  9624. fi
  9625. # check for basic system features and functionality before
  9626. # checking for package libraries
  9627. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  9628. if test "x$ac_cv_type_size_t" = xyes; then :
  9629. else
  9630. cat >>confdefs.h <<_ACEOF
  9631. #define size_t unsigned int
  9632. _ACEOF
  9633. fi
  9634. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  9635. # for constant arguments. Useless!
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  9637. $as_echo_n "checking for working alloca.h... " >&6; }
  9638. if ${ac_cv_working_alloca_h+:} false; then :
  9639. $as_echo_n "(cached) " >&6
  9640. else
  9641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9642. /* end confdefs.h. */
  9643. #include <alloca.h>
  9644. int
  9645. main ()
  9646. {
  9647. char *p = (char *) alloca (2 * sizeof (int));
  9648. if (p) return 0;
  9649. ;
  9650. return 0;
  9651. }
  9652. _ACEOF
  9653. if ac_fn_c_try_link "$LINENO"; then :
  9654. ac_cv_working_alloca_h=yes
  9655. else
  9656. ac_cv_working_alloca_h=no
  9657. fi
  9658. rm -f core conftest.err conftest.$ac_objext \
  9659. conftest$ac_exeext conftest.$ac_ext
  9660. fi
  9661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  9662. $as_echo "$ac_cv_working_alloca_h" >&6; }
  9663. if test $ac_cv_working_alloca_h = yes; then
  9664. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  9665. fi
  9666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  9667. $as_echo_n "checking for alloca... " >&6; }
  9668. if ${ac_cv_func_alloca_works+:} false; then :
  9669. $as_echo_n "(cached) " >&6
  9670. else
  9671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9672. /* end confdefs.h. */
  9673. #ifdef __GNUC__
  9674. # define alloca __builtin_alloca
  9675. #else
  9676. # ifdef _MSC_VER
  9677. # include <malloc.h>
  9678. # define alloca _alloca
  9679. # else
  9680. # ifdef HAVE_ALLOCA_H
  9681. # include <alloca.h>
  9682. # else
  9683. # ifdef _AIX
  9684. #pragma alloca
  9685. # else
  9686. # ifndef alloca /* predefined by HP cc +Olibcalls */
  9687. void *alloca (size_t);
  9688. # endif
  9689. # endif
  9690. # endif
  9691. # endif
  9692. #endif
  9693. int
  9694. main ()
  9695. {
  9696. char *p = (char *) alloca (1);
  9697. if (p) return 0;
  9698. ;
  9699. return 0;
  9700. }
  9701. _ACEOF
  9702. if ac_fn_c_try_link "$LINENO"; then :
  9703. ac_cv_func_alloca_works=yes
  9704. else
  9705. ac_cv_func_alloca_works=no
  9706. fi
  9707. rm -f core conftest.err conftest.$ac_objext \
  9708. conftest$ac_exeext conftest.$ac_ext
  9709. fi
  9710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  9711. $as_echo "$ac_cv_func_alloca_works" >&6; }
  9712. if test $ac_cv_func_alloca_works = yes; then
  9713. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  9714. else
  9715. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  9716. # that cause trouble. Some versions do not even contain alloca or
  9717. # contain a buggy version. If you still want to use their alloca,
  9718. # use ar to extract alloca.o from them instead of compiling alloca.c.
  9719. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  9720. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  9721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  9722. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  9723. if ${ac_cv_os_cray+:} false; then :
  9724. $as_echo_n "(cached) " >&6
  9725. else
  9726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9727. /* end confdefs.h. */
  9728. #if defined CRAY && ! defined CRAY2
  9729. webecray
  9730. #else
  9731. wenotbecray
  9732. #endif
  9733. _ACEOF
  9734. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9735. $EGREP "webecray" >/dev/null 2>&1; then :
  9736. ac_cv_os_cray=yes
  9737. else
  9738. ac_cv_os_cray=no
  9739. fi
  9740. rm -f conftest*
  9741. fi
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  9743. $as_echo "$ac_cv_os_cray" >&6; }
  9744. if test $ac_cv_os_cray = yes; then
  9745. for ac_func in _getb67 GETB67 getb67; do
  9746. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9747. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9748. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  9749. cat >>confdefs.h <<_ACEOF
  9750. #define CRAY_STACKSEG_END $ac_func
  9751. _ACEOF
  9752. break
  9753. fi
  9754. done
  9755. fi
  9756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  9757. $as_echo_n "checking stack direction for C alloca... " >&6; }
  9758. if ${ac_cv_c_stack_direction+:} false; then :
  9759. $as_echo_n "(cached) " >&6
  9760. else
  9761. if test "$cross_compiling" = yes; then :
  9762. ac_cv_c_stack_direction=0
  9763. else
  9764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9765. /* end confdefs.h. */
  9766. $ac_includes_default
  9767. int
  9768. find_stack_direction (int *addr, int depth)
  9769. {
  9770. int dir, dummy = 0;
  9771. if (! addr)
  9772. addr = &dummy;
  9773. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  9774. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  9775. return dir + dummy;
  9776. }
  9777. int
  9778. main (int argc, char **argv)
  9779. {
  9780. return find_stack_direction (0, argc + !argv + 20) < 0;
  9781. }
  9782. _ACEOF
  9783. if ac_fn_c_try_run "$LINENO"; then :
  9784. ac_cv_c_stack_direction=1
  9785. else
  9786. ac_cv_c_stack_direction=-1
  9787. fi
  9788. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9789. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9790. fi
  9791. fi
  9792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  9793. $as_echo "$ac_cv_c_stack_direction" >&6; }
  9794. cat >>confdefs.h <<_ACEOF
  9795. #define STACK_DIRECTION $ac_cv_c_stack_direction
  9796. _ACEOF
  9797. fi
  9798. ac_header_dirent=no
  9799. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  9800. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  9801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  9802. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  9803. if eval \${$as_ac_Header+:} false; then :
  9804. $as_echo_n "(cached) " >&6
  9805. else
  9806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9807. /* end confdefs.h. */
  9808. #include <sys/types.h>
  9809. #include <$ac_hdr>
  9810. int
  9811. main ()
  9812. {
  9813. if ((DIR *) 0)
  9814. return 0;
  9815. ;
  9816. return 0;
  9817. }
  9818. _ACEOF
  9819. if ac_fn_c_try_compile "$LINENO"; then :
  9820. eval "$as_ac_Header=yes"
  9821. else
  9822. eval "$as_ac_Header=no"
  9823. fi
  9824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9825. fi
  9826. eval ac_res=\$$as_ac_Header
  9827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  9828. $as_echo "$ac_res" >&6; }
  9829. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9830. cat >>confdefs.h <<_ACEOF
  9831. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  9832. _ACEOF
  9833. ac_header_dirent=$ac_hdr; break
  9834. fi
  9835. done
  9836. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  9837. if test $ac_header_dirent = dirent.h; then
  9838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  9839. $as_echo_n "checking for library containing opendir... " >&6; }
  9840. if ${ac_cv_search_opendir+:} false; then :
  9841. $as_echo_n "(cached) " >&6
  9842. else
  9843. ac_func_search_save_LIBS=$LIBS
  9844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9845. /* end confdefs.h. */
  9846. /* Override any GCC internal prototype to avoid an error.
  9847. Use char because int might match the return type of a GCC
  9848. builtin and then its argument prototype would still apply. */
  9849. #ifdef __cplusplus
  9850. extern "C"
  9851. #endif
  9852. char opendir ();
  9853. int
  9854. main ()
  9855. {
  9856. return opendir ();
  9857. ;
  9858. return 0;
  9859. }
  9860. _ACEOF
  9861. for ac_lib in '' dir; do
  9862. if test -z "$ac_lib"; then
  9863. ac_res="none required"
  9864. else
  9865. ac_res=-l$ac_lib
  9866. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9867. fi
  9868. if ac_fn_c_try_link "$LINENO"; then :
  9869. ac_cv_search_opendir=$ac_res
  9870. fi
  9871. rm -f core conftest.err conftest.$ac_objext \
  9872. conftest$ac_exeext
  9873. if ${ac_cv_search_opendir+:} false; then :
  9874. break
  9875. fi
  9876. done
  9877. if ${ac_cv_search_opendir+:} false; then :
  9878. else
  9879. ac_cv_search_opendir=no
  9880. fi
  9881. rm conftest.$ac_ext
  9882. LIBS=$ac_func_search_save_LIBS
  9883. fi
  9884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  9885. $as_echo "$ac_cv_search_opendir" >&6; }
  9886. ac_res=$ac_cv_search_opendir
  9887. if test "$ac_res" != no; then :
  9888. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9889. fi
  9890. else
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  9892. $as_echo_n "checking for library containing opendir... " >&6; }
  9893. if ${ac_cv_search_opendir+:} false; then :
  9894. $as_echo_n "(cached) " >&6
  9895. else
  9896. ac_func_search_save_LIBS=$LIBS
  9897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9898. /* end confdefs.h. */
  9899. /* Override any GCC internal prototype to avoid an error.
  9900. Use char because int might match the return type of a GCC
  9901. builtin and then its argument prototype would still apply. */
  9902. #ifdef __cplusplus
  9903. extern "C"
  9904. #endif
  9905. char opendir ();
  9906. int
  9907. main ()
  9908. {
  9909. return opendir ();
  9910. ;
  9911. return 0;
  9912. }
  9913. _ACEOF
  9914. for ac_lib in '' x; do
  9915. if test -z "$ac_lib"; then
  9916. ac_res="none required"
  9917. else
  9918. ac_res=-l$ac_lib
  9919. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  9920. fi
  9921. if ac_fn_c_try_link "$LINENO"; then :
  9922. ac_cv_search_opendir=$ac_res
  9923. fi
  9924. rm -f core conftest.err conftest.$ac_objext \
  9925. conftest$ac_exeext
  9926. if ${ac_cv_search_opendir+:} false; then :
  9927. break
  9928. fi
  9929. done
  9930. if ${ac_cv_search_opendir+:} false; then :
  9931. else
  9932. ac_cv_search_opendir=no
  9933. fi
  9934. rm conftest.$ac_ext
  9935. LIBS=$ac_func_search_save_LIBS
  9936. fi
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  9938. $as_echo "$ac_cv_search_opendir" >&6; }
  9939. ac_res=$ac_cv_search_opendir
  9940. if test "$ac_res" != no; then :
  9941. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  9942. fi
  9943. fi
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9945. $as_echo_n "checking for ANSI C header files... " >&6; }
  9946. if ${ac_cv_header_stdc+:} false; then :
  9947. $as_echo_n "(cached) " >&6
  9948. else
  9949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9950. /* end confdefs.h. */
  9951. #include <stdlib.h>
  9952. #include <stdarg.h>
  9953. #include <string.h>
  9954. #include <float.h>
  9955. int
  9956. main ()
  9957. {
  9958. ;
  9959. return 0;
  9960. }
  9961. _ACEOF
  9962. if ac_fn_c_try_compile "$LINENO"; then :
  9963. ac_cv_header_stdc=yes
  9964. else
  9965. ac_cv_header_stdc=no
  9966. fi
  9967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9968. if test $ac_cv_header_stdc = yes; then
  9969. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9971. /* end confdefs.h. */
  9972. #include <string.h>
  9973. _ACEOF
  9974. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9975. $EGREP "memchr" >/dev/null 2>&1; then :
  9976. else
  9977. ac_cv_header_stdc=no
  9978. fi
  9979. rm -f conftest*
  9980. fi
  9981. if test $ac_cv_header_stdc = yes; then
  9982. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9984. /* end confdefs.h. */
  9985. #include <stdlib.h>
  9986. _ACEOF
  9987. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9988. $EGREP "free" >/dev/null 2>&1; then :
  9989. else
  9990. ac_cv_header_stdc=no
  9991. fi
  9992. rm -f conftest*
  9993. fi
  9994. if test $ac_cv_header_stdc = yes; then
  9995. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9996. if test "$cross_compiling" = yes; then :
  9997. :
  9998. else
  9999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10000. /* end confdefs.h. */
  10001. #include <ctype.h>
  10002. #include <stdlib.h>
  10003. #if ((' ' & 0x0FF) == 0x020)
  10004. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10005. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10006. #else
  10007. # define ISLOWER(c) \
  10008. (('a' <= (c) && (c) <= 'i') \
  10009. || ('j' <= (c) && (c) <= 'r') \
  10010. || ('s' <= (c) && (c) <= 'z'))
  10011. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10012. #endif
  10013. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10014. int
  10015. main ()
  10016. {
  10017. int i;
  10018. for (i = 0; i < 256; i++)
  10019. if (XOR (islower (i), ISLOWER (i))
  10020. || toupper (i) != TOUPPER (i))
  10021. return 2;
  10022. return 0;
  10023. }
  10024. _ACEOF
  10025. if ac_fn_c_try_run "$LINENO"; then :
  10026. else
  10027. ac_cv_header_stdc=no
  10028. fi
  10029. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10030. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10031. fi
  10032. fi
  10033. fi
  10034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10035. $as_echo "$ac_cv_header_stdc" >&6; }
  10036. if test $ac_cv_header_stdc = yes; then
  10037. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10038. fi
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10040. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10041. if ${ac_cv_header_sys_wait_h+:} false; then :
  10042. $as_echo_n "(cached) " >&6
  10043. else
  10044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10045. /* end confdefs.h. */
  10046. #include <sys/types.h>
  10047. #include <sys/wait.h>
  10048. #ifndef WEXITSTATUS
  10049. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10050. #endif
  10051. #ifndef WIFEXITED
  10052. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10053. #endif
  10054. int
  10055. main ()
  10056. {
  10057. int s;
  10058. wait (&s);
  10059. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10060. ;
  10061. return 0;
  10062. }
  10063. _ACEOF
  10064. if ac_fn_c_try_compile "$LINENO"; then :
  10065. ac_cv_header_sys_wait_h=yes
  10066. else
  10067. ac_cv_header_sys_wait_h=no
  10068. fi
  10069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10070. fi
  10071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10072. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10073. if test $ac_cv_header_sys_wait_h = yes; then
  10074. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10075. fi
  10076. for ac_header in arpa/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h strings.h sys/event.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h utime.h arpa/nameser.h sys/io.h
  10077. do :
  10078. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10079. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10080. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10081. cat >>confdefs.h <<_ACEOF
  10082. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10083. _ACEOF
  10084. fi
  10085. done
  10086. # Any one of these packages support a mandatory requirement, so we want to check on them as early as possible.
  10087. if test "x${PBX_TERMCAP}" != "x1" -a "${USE_TERMCAP}" != "no"; then
  10088. pbxlibdir=""
  10089. # if --with-TERMCAP=DIR has been specified, use it.
  10090. if test "x${TERMCAP_DIR}" != "x"; then
  10091. if test -d ${TERMCAP_DIR}/lib; then
  10092. pbxlibdir="-L${TERMCAP_DIR}/lib"
  10093. else
  10094. pbxlibdir="-L${TERMCAP_DIR}"
  10095. fi
  10096. fi
  10097. pbxfuncname="tgetent"
  10098. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10099. AST_TERMCAP_FOUND=yes
  10100. else
  10101. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10102. CFLAGS="${CFLAGS} "
  10103. as_ac_Lib=`$as_echo "ac_cv_lib_termcap_${pbxfuncname}" | $as_tr_sh`
  10104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltermcap" >&5
  10105. $as_echo_n "checking for ${pbxfuncname} in -ltermcap... " >&6; }
  10106. if eval \${$as_ac_Lib+:} false; then :
  10107. $as_echo_n "(cached) " >&6
  10108. else
  10109. ac_check_lib_save_LIBS=$LIBS
  10110. LIBS="-ltermcap ${pbxlibdir} $LIBS"
  10111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10112. /* end confdefs.h. */
  10113. /* Override any GCC internal prototype to avoid an error.
  10114. Use char because int might match the return type of a GCC
  10115. builtin and then its argument prototype would still apply. */
  10116. #ifdef __cplusplus
  10117. extern "C"
  10118. #endif
  10119. char ${pbxfuncname} ();
  10120. int
  10121. main ()
  10122. {
  10123. return ${pbxfuncname} ();
  10124. ;
  10125. return 0;
  10126. }
  10127. _ACEOF
  10128. if ac_fn_c_try_link "$LINENO"; then :
  10129. eval "$as_ac_Lib=yes"
  10130. else
  10131. eval "$as_ac_Lib=no"
  10132. fi
  10133. rm -f core conftest.err conftest.$ac_objext \
  10134. conftest$ac_exeext conftest.$ac_ext
  10135. LIBS=$ac_check_lib_save_LIBS
  10136. fi
  10137. eval ac_res=\$$as_ac_Lib
  10138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10139. $as_echo "$ac_res" >&6; }
  10140. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10141. AST_TERMCAP_FOUND=yes
  10142. else
  10143. AST_TERMCAP_FOUND=no
  10144. fi
  10145. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10146. fi
  10147. # now check for the header.
  10148. if test "${AST_TERMCAP_FOUND}" = "yes"; then
  10149. TERMCAP_LIB="${pbxlibdir} -ltermcap "
  10150. # if --with-TERMCAP=DIR has been specified, use it.
  10151. if test "x${TERMCAP_DIR}" != "x"; then
  10152. TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
  10153. fi
  10154. TERMCAP_INCLUDE="${TERMCAP_INCLUDE} "
  10155. if test "x" = "x" ; then # no header, assume found
  10156. TERMCAP_HEADER_FOUND="1"
  10157. else # check for the header
  10158. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10159. CPPFLAGS="${CPPFLAGS} ${TERMCAP_INCLUDE}"
  10160. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  10161. if test "x$ac_cv_header_" = xyes; then :
  10162. TERMCAP_HEADER_FOUND=1
  10163. else
  10164. TERMCAP_HEADER_FOUND=0
  10165. fi
  10166. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10167. fi
  10168. if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
  10169. TERMCAP_LIB=""
  10170. TERMCAP_INCLUDE=""
  10171. else
  10172. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10173. TERMCAP_LIB=""
  10174. fi
  10175. PBX_TERMCAP=1
  10176. cat >>confdefs.h <<_ACEOF
  10177. #define HAVE_TERMCAP 1
  10178. _ACEOF
  10179. fi
  10180. fi
  10181. fi
  10182. if test "x${PBX_TINFO}" != "x1" -a "${USE_TINFO}" != "no"; then
  10183. pbxlibdir=""
  10184. # if --with-TINFO=DIR has been specified, use it.
  10185. if test "x${TINFO_DIR}" != "x"; then
  10186. if test -d ${TINFO_DIR}/lib; then
  10187. pbxlibdir="-L${TINFO_DIR}/lib"
  10188. else
  10189. pbxlibdir="-L${TINFO_DIR}"
  10190. fi
  10191. fi
  10192. pbxfuncname="tgetent"
  10193. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10194. AST_TINFO_FOUND=yes
  10195. else
  10196. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10197. CFLAGS="${CFLAGS} "
  10198. as_ac_Lib=`$as_echo "ac_cv_lib_tinfo_${pbxfuncname}" | $as_tr_sh`
  10199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltinfo" >&5
  10200. $as_echo_n "checking for ${pbxfuncname} in -ltinfo... " >&6; }
  10201. if eval \${$as_ac_Lib+:} false; then :
  10202. $as_echo_n "(cached) " >&6
  10203. else
  10204. ac_check_lib_save_LIBS=$LIBS
  10205. LIBS="-ltinfo ${pbxlibdir} $LIBS"
  10206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10207. /* end confdefs.h. */
  10208. /* Override any GCC internal prototype to avoid an error.
  10209. Use char because int might match the return type of a GCC
  10210. builtin and then its argument prototype would still apply. */
  10211. #ifdef __cplusplus
  10212. extern "C"
  10213. #endif
  10214. char ${pbxfuncname} ();
  10215. int
  10216. main ()
  10217. {
  10218. return ${pbxfuncname} ();
  10219. ;
  10220. return 0;
  10221. }
  10222. _ACEOF
  10223. if ac_fn_c_try_link "$LINENO"; then :
  10224. eval "$as_ac_Lib=yes"
  10225. else
  10226. eval "$as_ac_Lib=no"
  10227. fi
  10228. rm -f core conftest.err conftest.$ac_objext \
  10229. conftest$ac_exeext conftest.$ac_ext
  10230. LIBS=$ac_check_lib_save_LIBS
  10231. fi
  10232. eval ac_res=\$$as_ac_Lib
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10234. $as_echo "$ac_res" >&6; }
  10235. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10236. AST_TINFO_FOUND=yes
  10237. else
  10238. AST_TINFO_FOUND=no
  10239. fi
  10240. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10241. fi
  10242. # now check for the header.
  10243. if test "${AST_TINFO_FOUND}" = "yes"; then
  10244. TINFO_LIB="${pbxlibdir} -ltinfo "
  10245. # if --with-TINFO=DIR has been specified, use it.
  10246. if test "x${TINFO_DIR}" != "x"; then
  10247. TINFO_INCLUDE="-I${TINFO_DIR}/include"
  10248. fi
  10249. TINFO_INCLUDE="${TINFO_INCLUDE} "
  10250. if test "x" = "x" ; then # no header, assume found
  10251. TINFO_HEADER_FOUND="1"
  10252. else # check for the header
  10253. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10254. CPPFLAGS="${CPPFLAGS} ${TINFO_INCLUDE}"
  10255. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  10256. if test "x$ac_cv_header_" = xyes; then :
  10257. TINFO_HEADER_FOUND=1
  10258. else
  10259. TINFO_HEADER_FOUND=0
  10260. fi
  10261. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10262. fi
  10263. if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
  10264. TINFO_LIB=""
  10265. TINFO_INCLUDE=""
  10266. else
  10267. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10268. TINFO_LIB=""
  10269. fi
  10270. PBX_TINFO=1
  10271. cat >>confdefs.h <<_ACEOF
  10272. #define HAVE_TINFO 1
  10273. _ACEOF
  10274. fi
  10275. fi
  10276. fi
  10277. if test "x${PBX_CURSES}" != "x1" -a "${USE_CURSES}" != "no"; then
  10278. pbxlibdir=""
  10279. # if --with-CURSES=DIR has been specified, use it.
  10280. if test "x${CURSES_DIR}" != "x"; then
  10281. if test -d ${CURSES_DIR}/lib; then
  10282. pbxlibdir="-L${CURSES_DIR}/lib"
  10283. else
  10284. pbxlibdir="-L${CURSES_DIR}"
  10285. fi
  10286. fi
  10287. pbxfuncname="initscr"
  10288. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10289. AST_CURSES_FOUND=yes
  10290. else
  10291. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10292. CFLAGS="${CFLAGS} "
  10293. as_ac_Lib=`$as_echo "ac_cv_lib_curses_${pbxfuncname}" | $as_tr_sh`
  10294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcurses" >&5
  10295. $as_echo_n "checking for ${pbxfuncname} in -lcurses... " >&6; }
  10296. if eval \${$as_ac_Lib+:} false; then :
  10297. $as_echo_n "(cached) " >&6
  10298. else
  10299. ac_check_lib_save_LIBS=$LIBS
  10300. LIBS="-lcurses ${pbxlibdir} $LIBS"
  10301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10302. /* end confdefs.h. */
  10303. /* Override any GCC internal prototype to avoid an error.
  10304. Use char because int might match the return type of a GCC
  10305. builtin and then its argument prototype would still apply. */
  10306. #ifdef __cplusplus
  10307. extern "C"
  10308. #endif
  10309. char ${pbxfuncname} ();
  10310. int
  10311. main ()
  10312. {
  10313. return ${pbxfuncname} ();
  10314. ;
  10315. return 0;
  10316. }
  10317. _ACEOF
  10318. if ac_fn_c_try_link "$LINENO"; then :
  10319. eval "$as_ac_Lib=yes"
  10320. else
  10321. eval "$as_ac_Lib=no"
  10322. fi
  10323. rm -f core conftest.err conftest.$ac_objext \
  10324. conftest$ac_exeext conftest.$ac_ext
  10325. LIBS=$ac_check_lib_save_LIBS
  10326. fi
  10327. eval ac_res=\$$as_ac_Lib
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10329. $as_echo "$ac_res" >&6; }
  10330. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10331. AST_CURSES_FOUND=yes
  10332. else
  10333. AST_CURSES_FOUND=no
  10334. fi
  10335. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10336. fi
  10337. # now check for the header.
  10338. if test "${AST_CURSES_FOUND}" = "yes"; then
  10339. CURSES_LIB="${pbxlibdir} -lcurses "
  10340. # if --with-CURSES=DIR has been specified, use it.
  10341. if test "x${CURSES_DIR}" != "x"; then
  10342. CURSES_INCLUDE="-I${CURSES_DIR}/include"
  10343. fi
  10344. CURSES_INCLUDE="${CURSES_INCLUDE} "
  10345. if test "xcurses.h" = "x" ; then # no header, assume found
  10346. CURSES_HEADER_FOUND="1"
  10347. else # check for the header
  10348. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10349. CPPFLAGS="${CPPFLAGS} ${CURSES_INCLUDE}"
  10350. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  10351. if test "x$ac_cv_header_curses_h" = xyes; then :
  10352. CURSES_HEADER_FOUND=1
  10353. else
  10354. CURSES_HEADER_FOUND=0
  10355. fi
  10356. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10357. fi
  10358. if test "x${CURSES_HEADER_FOUND}" = "x0" ; then
  10359. CURSES_LIB=""
  10360. CURSES_INCLUDE=""
  10361. else
  10362. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10363. CURSES_LIB=""
  10364. fi
  10365. PBX_CURSES=1
  10366. cat >>confdefs.h <<_ACEOF
  10367. #define HAVE_CURSES 1
  10368. _ACEOF
  10369. fi
  10370. fi
  10371. fi
  10372. if test "x${PBX_NCURSES}" != "x1" -a "${USE_NCURSES}" != "no"; then
  10373. pbxlibdir=""
  10374. # if --with-NCURSES=DIR has been specified, use it.
  10375. if test "x${NCURSES_DIR}" != "x"; then
  10376. if test -d ${NCURSES_DIR}/lib; then
  10377. pbxlibdir="-L${NCURSES_DIR}/lib"
  10378. else
  10379. pbxlibdir="-L${NCURSES_DIR}"
  10380. fi
  10381. fi
  10382. pbxfuncname="initscr"
  10383. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10384. AST_NCURSES_FOUND=yes
  10385. else
  10386. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10387. CFLAGS="${CFLAGS} "
  10388. as_ac_Lib=`$as_echo "ac_cv_lib_ncurses_${pbxfuncname}" | $as_tr_sh`
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lncurses" >&5
  10390. $as_echo_n "checking for ${pbxfuncname} in -lncurses... " >&6; }
  10391. if eval \${$as_ac_Lib+:} false; then :
  10392. $as_echo_n "(cached) " >&6
  10393. else
  10394. ac_check_lib_save_LIBS=$LIBS
  10395. LIBS="-lncurses ${pbxlibdir} $LIBS"
  10396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10397. /* end confdefs.h. */
  10398. /* Override any GCC internal prototype to avoid an error.
  10399. Use char because int might match the return type of a GCC
  10400. builtin and then its argument prototype would still apply. */
  10401. #ifdef __cplusplus
  10402. extern "C"
  10403. #endif
  10404. char ${pbxfuncname} ();
  10405. int
  10406. main ()
  10407. {
  10408. return ${pbxfuncname} ();
  10409. ;
  10410. return 0;
  10411. }
  10412. _ACEOF
  10413. if ac_fn_c_try_link "$LINENO"; then :
  10414. eval "$as_ac_Lib=yes"
  10415. else
  10416. eval "$as_ac_Lib=no"
  10417. fi
  10418. rm -f core conftest.err conftest.$ac_objext \
  10419. conftest$ac_exeext conftest.$ac_ext
  10420. LIBS=$ac_check_lib_save_LIBS
  10421. fi
  10422. eval ac_res=\$$as_ac_Lib
  10423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10424. $as_echo "$ac_res" >&6; }
  10425. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10426. AST_NCURSES_FOUND=yes
  10427. else
  10428. AST_NCURSES_FOUND=no
  10429. fi
  10430. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10431. fi
  10432. # now check for the header.
  10433. if test "${AST_NCURSES_FOUND}" = "yes"; then
  10434. NCURSES_LIB="${pbxlibdir} -lncurses "
  10435. # if --with-NCURSES=DIR has been specified, use it.
  10436. if test "x${NCURSES_DIR}" != "x"; then
  10437. NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
  10438. fi
  10439. NCURSES_INCLUDE="${NCURSES_INCLUDE} "
  10440. if test "xcurses.h" = "x" ; then # no header, assume found
  10441. NCURSES_HEADER_FOUND="1"
  10442. else # check for the header
  10443. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10444. CPPFLAGS="${CPPFLAGS} ${NCURSES_INCLUDE}"
  10445. ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
  10446. if test "x$ac_cv_header_curses_h" = xyes; then :
  10447. NCURSES_HEADER_FOUND=1
  10448. else
  10449. NCURSES_HEADER_FOUND=0
  10450. fi
  10451. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10452. fi
  10453. if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
  10454. NCURSES_LIB=""
  10455. NCURSES_INCLUDE=""
  10456. else
  10457. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10458. NCURSES_LIB=""
  10459. fi
  10460. PBX_NCURSES=1
  10461. cat >>confdefs.h <<_ACEOF
  10462. #define HAVE_NCURSES 1
  10463. _ACEOF
  10464. fi
  10465. fi
  10466. fi
  10467. EDITLINE_LIB=""
  10468. if test "x$TERMCAP_LIB" != "x" ; then
  10469. EDITLINE_LIB="$TERMCAP_LIB"
  10470. elif test "x$TINFO_LIB" != "x" ; then
  10471. EDITLINE_LIB="$TINFO_LIB"
  10472. elif test "x$CURSES_LIB" != "x" ; then
  10473. EDITLINE_LIB="$CURSES_LIB"
  10474. elif test "x$NCURSES_LIB" != "x" ; then
  10475. EDITLINE_LIB="$NCURSES_LIB"
  10476. else
  10477. as_fn_error $? "*** termcap support not found (on modern systems, this typically means the ncurses development package is missing)" "$LINENO" 5
  10478. fi
  10479. # Find required UUID support.
  10480. # * -luuid on Linux
  10481. # * -le2fs-uuid on OpenBSD
  10482. # * in libsystem on OS X
  10483. if test "x${PBX_LIBUUID}" != "x1" -a "${USE_LIBUUID}" != "no"; then
  10484. pbxlibdir=""
  10485. # if --with-LIBUUID=DIR has been specified, use it.
  10486. if test "x${LIBUUID_DIR}" != "x"; then
  10487. if test -d ${LIBUUID_DIR}/lib; then
  10488. pbxlibdir="-L${LIBUUID_DIR}/lib"
  10489. else
  10490. pbxlibdir="-L${LIBUUID_DIR}"
  10491. fi
  10492. fi
  10493. pbxfuncname="uuid_generate_random"
  10494. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10495. AST_LIBUUID_FOUND=yes
  10496. else
  10497. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10498. CFLAGS="${CFLAGS} "
  10499. as_ac_Lib=`$as_echo "ac_cv_lib_uuid_${pbxfuncname}" | $as_tr_sh`
  10500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -luuid" >&5
  10501. $as_echo_n "checking for ${pbxfuncname} in -luuid... " >&6; }
  10502. if eval \${$as_ac_Lib+:} false; then :
  10503. $as_echo_n "(cached) " >&6
  10504. else
  10505. ac_check_lib_save_LIBS=$LIBS
  10506. LIBS="-luuid ${pbxlibdir} $LIBS"
  10507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10508. /* end confdefs.h. */
  10509. /* Override any GCC internal prototype to avoid an error.
  10510. Use char because int might match the return type of a GCC
  10511. builtin and then its argument prototype would still apply. */
  10512. #ifdef __cplusplus
  10513. extern "C"
  10514. #endif
  10515. char ${pbxfuncname} ();
  10516. int
  10517. main ()
  10518. {
  10519. return ${pbxfuncname} ();
  10520. ;
  10521. return 0;
  10522. }
  10523. _ACEOF
  10524. if ac_fn_c_try_link "$LINENO"; then :
  10525. eval "$as_ac_Lib=yes"
  10526. else
  10527. eval "$as_ac_Lib=no"
  10528. fi
  10529. rm -f core conftest.err conftest.$ac_objext \
  10530. conftest$ac_exeext conftest.$ac_ext
  10531. LIBS=$ac_check_lib_save_LIBS
  10532. fi
  10533. eval ac_res=\$$as_ac_Lib
  10534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10535. $as_echo "$ac_res" >&6; }
  10536. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10537. AST_LIBUUID_FOUND=yes
  10538. else
  10539. AST_LIBUUID_FOUND=no
  10540. fi
  10541. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10542. fi
  10543. # now check for the header.
  10544. if test "${AST_LIBUUID_FOUND}" = "yes"; then
  10545. LIBUUID_LIB="${pbxlibdir} -luuid "
  10546. # if --with-LIBUUID=DIR has been specified, use it.
  10547. if test "x${LIBUUID_DIR}" != "x"; then
  10548. LIBUUID_INCLUDE="-I${LIBUUID_DIR}/include"
  10549. fi
  10550. LIBUUID_INCLUDE="${LIBUUID_INCLUDE} "
  10551. if test "xuuid/uuid.h" = "x" ; then # no header, assume found
  10552. LIBUUID_HEADER_FOUND="1"
  10553. else # check for the header
  10554. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10555. CPPFLAGS="${CPPFLAGS} ${LIBUUID_INCLUDE}"
  10556. ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
  10557. if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
  10558. LIBUUID_HEADER_FOUND=1
  10559. else
  10560. LIBUUID_HEADER_FOUND=0
  10561. fi
  10562. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10563. fi
  10564. if test "x${LIBUUID_HEADER_FOUND}" = "x0" ; then
  10565. LIBUUID_LIB=""
  10566. LIBUUID_INCLUDE=""
  10567. else
  10568. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10569. LIBUUID_LIB=""
  10570. fi
  10571. PBX_LIBUUID=1
  10572. cat >>confdefs.h <<_ACEOF
  10573. #define HAVE_LIBUUID 1
  10574. _ACEOF
  10575. fi
  10576. fi
  10577. fi
  10578. if test "x${PBX_E2FSUUID}" != "x1" -a "${USE_E2FSUUID}" != "no"; then
  10579. pbxlibdir=""
  10580. # if --with-E2FSUUID=DIR has been specified, use it.
  10581. if test "x${E2FSUUID_DIR}" != "x"; then
  10582. if test -d ${E2FSUUID_DIR}/lib; then
  10583. pbxlibdir="-L${E2FSUUID_DIR}/lib"
  10584. else
  10585. pbxlibdir="-L${E2FSUUID_DIR}"
  10586. fi
  10587. fi
  10588. pbxfuncname="uuid_generate_random"
  10589. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10590. AST_E2FSUUID_FOUND=yes
  10591. else
  10592. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10593. CFLAGS="${CFLAGS} "
  10594. as_ac_Lib=`$as_echo "ac_cv_lib_e2fs-uuid_${pbxfuncname}" | $as_tr_sh`
  10595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -le2fs-uuid" >&5
  10596. $as_echo_n "checking for ${pbxfuncname} in -le2fs-uuid... " >&6; }
  10597. if eval \${$as_ac_Lib+:} false; then :
  10598. $as_echo_n "(cached) " >&6
  10599. else
  10600. ac_check_lib_save_LIBS=$LIBS
  10601. LIBS="-le2fs-uuid ${pbxlibdir} $LIBS"
  10602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10603. /* end confdefs.h. */
  10604. /* Override any GCC internal prototype to avoid an error.
  10605. Use char because int might match the return type of a GCC
  10606. builtin and then its argument prototype would still apply. */
  10607. #ifdef __cplusplus
  10608. extern "C"
  10609. #endif
  10610. char ${pbxfuncname} ();
  10611. int
  10612. main ()
  10613. {
  10614. return ${pbxfuncname} ();
  10615. ;
  10616. return 0;
  10617. }
  10618. _ACEOF
  10619. if ac_fn_c_try_link "$LINENO"; then :
  10620. eval "$as_ac_Lib=yes"
  10621. else
  10622. eval "$as_ac_Lib=no"
  10623. fi
  10624. rm -f core conftest.err conftest.$ac_objext \
  10625. conftest$ac_exeext conftest.$ac_ext
  10626. LIBS=$ac_check_lib_save_LIBS
  10627. fi
  10628. eval ac_res=\$$as_ac_Lib
  10629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10630. $as_echo "$ac_res" >&6; }
  10631. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10632. AST_E2FSUUID_FOUND=yes
  10633. else
  10634. AST_E2FSUUID_FOUND=no
  10635. fi
  10636. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10637. fi
  10638. # now check for the header.
  10639. if test "${AST_E2FSUUID_FOUND}" = "yes"; then
  10640. E2FSUUID_LIB="${pbxlibdir} -le2fs-uuid "
  10641. # if --with-E2FSUUID=DIR has been specified, use it.
  10642. if test "x${E2FSUUID_DIR}" != "x"; then
  10643. E2FSUUID_INCLUDE="-I${E2FSUUID_DIR}/include"
  10644. fi
  10645. E2FSUUID_INCLUDE="${E2FSUUID_INCLUDE} "
  10646. if test "xuuid/uuid.h" = "x" ; then # no header, assume found
  10647. E2FSUUID_HEADER_FOUND="1"
  10648. else # check for the header
  10649. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10650. CPPFLAGS="${CPPFLAGS} ${E2FSUUID_INCLUDE}"
  10651. ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
  10652. if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
  10653. E2FSUUID_HEADER_FOUND=1
  10654. else
  10655. E2FSUUID_HEADER_FOUND=0
  10656. fi
  10657. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10658. fi
  10659. if test "x${E2FSUUID_HEADER_FOUND}" = "x0" ; then
  10660. E2FSUUID_LIB=""
  10661. E2FSUUID_INCLUDE=""
  10662. else
  10663. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10664. E2FSUUID_LIB=""
  10665. fi
  10666. PBX_E2FSUUID=1
  10667. cat >>confdefs.h <<_ACEOF
  10668. #define HAVE_E2FSUUID 1
  10669. _ACEOF
  10670. fi
  10671. fi
  10672. fi
  10673. for ac_func in uuid_generate_random
  10674. do :
  10675. ac_fn_c_check_func "$LINENO" "uuid_generate_random" "ac_cv_func_uuid_generate_random"
  10676. if test "x$ac_cv_func_uuid_generate_random" = xyes; then :
  10677. cat >>confdefs.h <<_ACEOF
  10678. #define HAVE_UUID_GENERATE_RANDOM 1
  10679. _ACEOF
  10680. SYSUUID=true
  10681. else
  10682. SYSUUID=""
  10683. fi
  10684. done
  10685. if test "x$LIBUUID_LIB" != "x" ; then
  10686. UUID_INCLUDE="$LIBUUID_INCLUDE"
  10687. UUID_LIB="$LIBUUID_LIB"
  10688. elif test "x$E2FSUUID_LIB" != "x" ; then
  10689. UUID_INCLUDE="$E2FSUUID_INCLUDE"
  10690. UUID_LIB="$E2FSUUID_LIB"
  10691. elif test "x$SYSUUID" != "x" ; then
  10692. UUID_INCLUDE=""
  10693. UUID_LIB=""
  10694. else
  10695. as_fn_error $? "*** uuid support not found (this typically means the uuid development package is missing)" "$LINENO" 5
  10696. fi
  10697. # Find required JSON support.
  10698. if test "x${PBX_JANSSON}" != "x1" -a "${USE_JANSSON}" != "no"; then
  10699. pbxlibdir=""
  10700. # if --with-JANSSON=DIR has been specified, use it.
  10701. if test "x${JANSSON_DIR}" != "x"; then
  10702. if test -d ${JANSSON_DIR}/lib; then
  10703. pbxlibdir="-L${JANSSON_DIR}/lib"
  10704. else
  10705. pbxlibdir="-L${JANSSON_DIR}"
  10706. fi
  10707. fi
  10708. pbxfuncname="json_dumps"
  10709. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10710. AST_JANSSON_FOUND=yes
  10711. else
  10712. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10713. CFLAGS="${CFLAGS} "
  10714. as_ac_Lib=`$as_echo "ac_cv_lib_jansson_${pbxfuncname}" | $as_tr_sh`
  10715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ljansson" >&5
  10716. $as_echo_n "checking for ${pbxfuncname} in -ljansson... " >&6; }
  10717. if eval \${$as_ac_Lib+:} false; then :
  10718. $as_echo_n "(cached) " >&6
  10719. else
  10720. ac_check_lib_save_LIBS=$LIBS
  10721. LIBS="-ljansson ${pbxlibdir} $LIBS"
  10722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10723. /* end confdefs.h. */
  10724. /* Override any GCC internal prototype to avoid an error.
  10725. Use char because int might match the return type of a GCC
  10726. builtin and then its argument prototype would still apply. */
  10727. #ifdef __cplusplus
  10728. extern "C"
  10729. #endif
  10730. char ${pbxfuncname} ();
  10731. int
  10732. main ()
  10733. {
  10734. return ${pbxfuncname} ();
  10735. ;
  10736. return 0;
  10737. }
  10738. _ACEOF
  10739. if ac_fn_c_try_link "$LINENO"; then :
  10740. eval "$as_ac_Lib=yes"
  10741. else
  10742. eval "$as_ac_Lib=no"
  10743. fi
  10744. rm -f core conftest.err conftest.$ac_objext \
  10745. conftest$ac_exeext conftest.$ac_ext
  10746. LIBS=$ac_check_lib_save_LIBS
  10747. fi
  10748. eval ac_res=\$$as_ac_Lib
  10749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10750. $as_echo "$ac_res" >&6; }
  10751. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10752. AST_JANSSON_FOUND=yes
  10753. else
  10754. AST_JANSSON_FOUND=no
  10755. fi
  10756. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10757. fi
  10758. # now check for the header.
  10759. if test "${AST_JANSSON_FOUND}" = "yes"; then
  10760. JANSSON_LIB="${pbxlibdir} -ljansson "
  10761. # if --with-JANSSON=DIR has been specified, use it.
  10762. if test "x${JANSSON_DIR}" != "x"; then
  10763. JANSSON_INCLUDE="-I${JANSSON_DIR}/include"
  10764. fi
  10765. JANSSON_INCLUDE="${JANSSON_INCLUDE} "
  10766. if test "xjansson.h" = "x" ; then # no header, assume found
  10767. JANSSON_HEADER_FOUND="1"
  10768. else # check for the header
  10769. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  10770. CPPFLAGS="${CPPFLAGS} ${JANSSON_INCLUDE}"
  10771. ac_fn_c_check_header_mongrel "$LINENO" "jansson.h" "ac_cv_header_jansson_h" "$ac_includes_default"
  10772. if test "x$ac_cv_header_jansson_h" = xyes; then :
  10773. JANSSON_HEADER_FOUND=1
  10774. else
  10775. JANSSON_HEADER_FOUND=0
  10776. fi
  10777. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  10778. fi
  10779. if test "x${JANSSON_HEADER_FOUND}" = "x0" ; then
  10780. JANSSON_LIB=""
  10781. JANSSON_INCLUDE=""
  10782. else
  10783. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  10784. JANSSON_LIB=""
  10785. fi
  10786. PBX_JANSSON=1
  10787. cat >>confdefs.h <<_ACEOF
  10788. #define HAVE_JANSSON 1
  10789. _ACEOF
  10790. fi
  10791. fi
  10792. fi
  10793. if test "x$JANSSON_LIB" == "x"; then
  10794. as_fn_error $? "*** JSON support not found (this typically means the libjansson development package is missing)" "$LINENO" 5
  10795. fi
  10796. if test "x${PBX_LIBXML2}" != "x1" -a "${USE_LIBXML2}" != "no"; then
  10797. PBX_LIBXML2=0
  10798. if test -n "$ac_tool_prefix"; then
  10799. # Extract the first word of "${ac_tool_prefix}xml2-config", so it can be a program name with args.
  10800. set dummy ${ac_tool_prefix}xml2-config; ac_word=$2
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10802. $as_echo_n "checking for $ac_word... " >&6; }
  10803. if ${ac_cv_path_CONFIG_LIBXML2+:} false; then :
  10804. $as_echo_n "(cached) " >&6
  10805. else
  10806. case $CONFIG_LIBXML2 in
  10807. [\\/]* | ?:[\\/]*)
  10808. ac_cv_path_CONFIG_LIBXML2="$CONFIG_LIBXML2" # Let the user override the test with a path.
  10809. ;;
  10810. *)
  10811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10812. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  10813. for as_dir in $as_dummy
  10814. do
  10815. IFS=$as_save_IFS
  10816. test -z "$as_dir" && as_dir=.
  10817. for ac_exec_ext in '' $ac_executable_extensions; do
  10818. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10819. ac_cv_path_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  10820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10821. break 2
  10822. fi
  10823. done
  10824. done
  10825. IFS=$as_save_IFS
  10826. ;;
  10827. esac
  10828. fi
  10829. CONFIG_LIBXML2=$ac_cv_path_CONFIG_LIBXML2
  10830. if test -n "$CONFIG_LIBXML2"; then
  10831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_LIBXML2" >&5
  10832. $as_echo "$CONFIG_LIBXML2" >&6; }
  10833. else
  10834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10835. $as_echo "no" >&6; }
  10836. fi
  10837. fi
  10838. if test -z "$ac_cv_path_CONFIG_LIBXML2"; then
  10839. ac_pt_CONFIG_LIBXML2=$CONFIG_LIBXML2
  10840. # Extract the first word of "xml2-config", so it can be a program name with args.
  10841. set dummy xml2-config; ac_word=$2
  10842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10843. $as_echo_n "checking for $ac_word... " >&6; }
  10844. if ${ac_cv_path_ac_pt_CONFIG_LIBXML2+:} false; then :
  10845. $as_echo_n "(cached) " >&6
  10846. else
  10847. case $ac_pt_CONFIG_LIBXML2 in
  10848. [\\/]* | ?:[\\/]*)
  10849. ac_cv_path_ac_pt_CONFIG_LIBXML2="$ac_pt_CONFIG_LIBXML2" # Let the user override the test with a path.
  10850. ;;
  10851. *)
  10852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10853. as_dummy="${LIBXML2_DIR}/bin:$PATH"
  10854. for as_dir in $as_dummy
  10855. do
  10856. IFS=$as_save_IFS
  10857. test -z "$as_dir" && as_dir=.
  10858. for ac_exec_ext in '' $ac_executable_extensions; do
  10859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10860. ac_cv_path_ac_pt_CONFIG_LIBXML2="$as_dir/$ac_word$ac_exec_ext"
  10861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10862. break 2
  10863. fi
  10864. done
  10865. done
  10866. IFS=$as_save_IFS
  10867. ;;
  10868. esac
  10869. fi
  10870. ac_pt_CONFIG_LIBXML2=$ac_cv_path_ac_pt_CONFIG_LIBXML2
  10871. if test -n "$ac_pt_CONFIG_LIBXML2"; then
  10872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_LIBXML2" >&5
  10873. $as_echo "$ac_pt_CONFIG_LIBXML2" >&6; }
  10874. else
  10875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10876. $as_echo "no" >&6; }
  10877. fi
  10878. if test "x$ac_pt_CONFIG_LIBXML2" = x; then
  10879. CONFIG_LIBXML2="No"
  10880. else
  10881. case $cross_compiling:$ac_tool_warned in
  10882. yes:)
  10883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10884. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10885. ac_tool_warned=yes ;;
  10886. esac
  10887. CONFIG_LIBXML2=$ac_pt_CONFIG_LIBXML2
  10888. fi
  10889. else
  10890. CONFIG_LIBXML2="$ac_cv_path_CONFIG_LIBXML2"
  10891. fi
  10892. if test ! "x${CONFIG_LIBXML2}" = xNo; then
  10893. if test x"" = x ; then A=--cflags ; else A="" ; fi
  10894. LIBXML2_INCLUDE=$(${CONFIG_LIBXML2} $A)
  10895. LIBXML2_INCLUDE=$(echo ${LIBXML2_INCLUDE} | $SED -e "s|-I|-I${LIBXML2_DIR}|g")
  10896. if test x"" = x ; then A=--libs ; else A="" ; fi
  10897. LIBXML2_LIB=$(${CONFIG_LIBXML2} $A)
  10898. LIBXML2_LIB=$(echo ${LIBXML2_LIB} | $SED -e "s|-L|-L${LIBXML2_DIR}|g")
  10899. if test x"#include <libxml/tree.h>
  10900. #include <libxml/parser.h>" != x ; then
  10901. saved_cppflags="${CPPFLAGS}"
  10902. CPPFLAGS="${CPPFLAGS} ${LIBXML2_INCLUDE}"
  10903. saved_libs="${LIBS}"
  10904. LIBS=${LIBXML2_LIB}
  10905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10906. /* end confdefs.h. */
  10907. #include <libxml/tree.h>
  10908. #include <libxml/parser.h>
  10909. int
  10910. main ()
  10911. {
  10912. LIBXML_TEST_VERSION;
  10913. ;
  10914. return 0;
  10915. }
  10916. _ACEOF
  10917. if ac_fn_c_try_link "$LINENO"; then :
  10918. PBX_LIBXML2=1
  10919. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  10920. fi
  10921. rm -f core conftest.err conftest.$ac_objext \
  10922. conftest$ac_exeext conftest.$ac_ext
  10923. CPPFLAGS="${saved_cppflags}"
  10924. LIBS="${saved_libs}"
  10925. else
  10926. PBX_LIBXML2=1
  10927. $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
  10928. fi
  10929. fi
  10930. fi
  10931. if test "${PBX_LIBXML2}" != 1; then
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The Asterisk menuselect tool requires the 'libxml2' development package." >&5
  10933. $as_echo "$as_me: *** The Asterisk menuselect tool requires the 'libxml2' development package." >&6;}
  10934. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install the 'libxml2' development package." >&5
  10935. $as_echo "$as_me: *** Please install the 'libxml2' development package." >&6;}
  10936. exit 1
  10937. fi
  10938. if test "x${PBX_URIPARSER}" != "x1" -a "${USE_URIPARSER}" != "no"; then
  10939. pbxlibdir=""
  10940. # if --with-URIPARSER=DIR has been specified, use it.
  10941. if test "x${URIPARSER_DIR}" != "x"; then
  10942. if test -d ${URIPARSER_DIR}/lib; then
  10943. pbxlibdir="-L${URIPARSER_DIR}/lib"
  10944. else
  10945. pbxlibdir="-L${URIPARSER_DIR}"
  10946. fi
  10947. fi
  10948. pbxfuncname="uriParseUriA"
  10949. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  10950. AST_URIPARSER_FOUND=yes
  10951. else
  10952. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  10953. CFLAGS="${CFLAGS} "
  10954. as_ac_Lib=`$as_echo "ac_cv_lib_uriparser_${pbxfuncname}" | $as_tr_sh`
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -luriparser" >&5
  10956. $as_echo_n "checking for ${pbxfuncname} in -luriparser... " >&6; }
  10957. if eval \${$as_ac_Lib+:} false; then :
  10958. $as_echo_n "(cached) " >&6
  10959. else
  10960. ac_check_lib_save_LIBS=$LIBS
  10961. LIBS="-luriparser ${pbxlibdir} $LIBS"
  10962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10963. /* end confdefs.h. */
  10964. /* Override any GCC internal prototype to avoid an error.
  10965. Use char because int might match the return type of a GCC
  10966. builtin and then its argument prototype would still apply. */
  10967. #ifdef __cplusplus
  10968. extern "C"
  10969. #endif
  10970. char ${pbxfuncname} ();
  10971. int
  10972. main ()
  10973. {
  10974. return ${pbxfuncname} ();
  10975. ;
  10976. return 0;
  10977. }
  10978. _ACEOF
  10979. if ac_fn_c_try_link "$LINENO"; then :
  10980. eval "$as_ac_Lib=yes"
  10981. else
  10982. eval "$as_ac_Lib=no"
  10983. fi
  10984. rm -f core conftest.err conftest.$ac_objext \
  10985. conftest$ac_exeext conftest.$ac_ext
  10986. LIBS=$ac_check_lib_save_LIBS
  10987. fi
  10988. eval ac_res=\$$as_ac_Lib
  10989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10990. $as_echo "$ac_res" >&6; }
  10991. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  10992. AST_URIPARSER_FOUND=yes
  10993. else
  10994. AST_URIPARSER_FOUND=no
  10995. fi
  10996. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  10997. fi
  10998. # now check for the header.
  10999. if test "${AST_URIPARSER_FOUND}" = "yes"; then
  11000. URIPARSER_LIB="${pbxlibdir} -luriparser "
  11001. # if --with-URIPARSER=DIR has been specified, use it.
  11002. if test "x${URIPARSER_DIR}" != "x"; then
  11003. URIPARSER_INCLUDE="-I${URIPARSER_DIR}/include"
  11004. fi
  11005. URIPARSER_INCLUDE="${URIPARSER_INCLUDE} "
  11006. if test "xuriparser/Uri.h" = "x" ; then # no header, assume found
  11007. URIPARSER_HEADER_FOUND="1"
  11008. else # check for the header
  11009. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  11010. CPPFLAGS="${CPPFLAGS} ${URIPARSER_INCLUDE}"
  11011. ac_fn_c_check_header_mongrel "$LINENO" "uriparser/Uri.h" "ac_cv_header_uriparser_Uri_h" "$ac_includes_default"
  11012. if test "x$ac_cv_header_uriparser_Uri_h" = xyes; then :
  11013. URIPARSER_HEADER_FOUND=1
  11014. else
  11015. URIPARSER_HEADER_FOUND=0
  11016. fi
  11017. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  11018. fi
  11019. if test "x${URIPARSER_HEADER_FOUND}" = "x0" ; then
  11020. URIPARSER_LIB=""
  11021. URIPARSER_INCLUDE=""
  11022. else
  11023. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  11024. URIPARSER_LIB=""
  11025. fi
  11026. PBX_URIPARSER=1
  11027. cat >>confdefs.h <<_ACEOF
  11028. #define HAVE_URIPARSER 1
  11029. _ACEOF
  11030. fi
  11031. fi
  11032. fi
  11033. # Another mandatory item (unless it's explicitly disabled)
  11034. # Check whether --enable-xmldoc was given.
  11035. if test "${enable_xmldoc+set}" = set; then :
  11036. enableval=$enable_xmldoc; case "${enableval}" in
  11037. y|ye|yes) disable_xmldoc=no ;;
  11038. n|no) disable_xmldoc=yes ;;
  11039. *) as_fn_error $? "bad value ${enableval} for --disable-xmldoc" "$LINENO" 5 ;;
  11040. esac
  11041. else
  11042. disable_xmldoc=no
  11043. fi
  11044. if test "${disable_xmldoc}" != "yes"; then
  11045. if test "x${PBX_LIBXSLT}" != "x1" -a "${USE_LIBXSLT}" != "no"; then
  11046. pbxlibdir=""
  11047. # if --with-LIBXSLT=DIR has been specified, use it.
  11048. if test "x${LIBXSLT_DIR}" != "x"; then
  11049. if test -d ${LIBXSLT_DIR}/lib; then
  11050. pbxlibdir="-L${LIBXSLT_DIR}/lib"
  11051. else
  11052. pbxlibdir="-L${LIBXSLT_DIR}"
  11053. fi
  11054. fi
  11055. pbxfuncname="xsltLoadStylesheetPI"
  11056. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  11057. AST_LIBXSLT_FOUND=yes
  11058. else
  11059. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  11060. CFLAGS="${CFLAGS} ${LIBXML2_INCLUDE}"
  11061. as_ac_Lib=`$as_echo "ac_cv_lib_xslt_${pbxfuncname}" | $as_tr_sh`
  11062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lxslt" >&5
  11063. $as_echo_n "checking for ${pbxfuncname} in -lxslt... " >&6; }
  11064. if eval \${$as_ac_Lib+:} false; then :
  11065. $as_echo_n "(cached) " >&6
  11066. else
  11067. ac_check_lib_save_LIBS=$LIBS
  11068. LIBS="-lxslt ${pbxlibdir} ${LIBXML2_LIB} $LIBS"
  11069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11070. /* end confdefs.h. */
  11071. /* Override any GCC internal prototype to avoid an error.
  11072. Use char because int might match the return type of a GCC
  11073. builtin and then its argument prototype would still apply. */
  11074. #ifdef __cplusplus
  11075. extern "C"
  11076. #endif
  11077. char ${pbxfuncname} ();
  11078. int
  11079. main ()
  11080. {
  11081. return ${pbxfuncname} ();
  11082. ;
  11083. return 0;
  11084. }
  11085. _ACEOF
  11086. if ac_fn_c_try_link "$LINENO"; then :
  11087. eval "$as_ac_Lib=yes"
  11088. else
  11089. eval "$as_ac_Lib=no"
  11090. fi
  11091. rm -f core conftest.err conftest.$ac_objext \
  11092. conftest$ac_exeext conftest.$ac_ext
  11093. LIBS=$ac_check_lib_save_LIBS
  11094. fi
  11095. eval ac_res=\$$as_ac_Lib
  11096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11097. $as_echo "$ac_res" >&6; }
  11098. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  11099. AST_LIBXSLT_FOUND=yes
  11100. else
  11101. AST_LIBXSLT_FOUND=no
  11102. fi
  11103. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  11104. fi
  11105. # now check for the header.
  11106. if test "${AST_LIBXSLT_FOUND}" = "yes"; then
  11107. LIBXSLT_LIB="${pbxlibdir} -lxslt ${LIBXML2_LIB}"
  11108. # if --with-LIBXSLT=DIR has been specified, use it.
  11109. if test "x${LIBXSLT_DIR}" != "x"; then
  11110. LIBXSLT_INCLUDE="-I${LIBXSLT_DIR}/include"
  11111. fi
  11112. LIBXSLT_INCLUDE="${LIBXSLT_INCLUDE} ${LIBXML2_INCLUDE}"
  11113. if test "xlibxslt/xsltInternals.h" = "x" ; then # no header, assume found
  11114. LIBXSLT_HEADER_FOUND="1"
  11115. else # check for the header
  11116. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  11117. CPPFLAGS="${CPPFLAGS} ${LIBXSLT_INCLUDE}"
  11118. ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xsltInternals.h" "ac_cv_header_libxslt_xsltInternals_h" "$ac_includes_default"
  11119. if test "x$ac_cv_header_libxslt_xsltInternals_h" = xyes; then :
  11120. LIBXSLT_HEADER_FOUND=1
  11121. else
  11122. LIBXSLT_HEADER_FOUND=0
  11123. fi
  11124. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  11125. fi
  11126. if test "x${LIBXSLT_HEADER_FOUND}" = "x0" ; then
  11127. LIBXSLT_LIB=""
  11128. LIBXSLT_INCLUDE=""
  11129. else
  11130. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  11131. LIBXSLT_LIB=""
  11132. fi
  11133. PBX_LIBXSLT=1
  11134. cat >>confdefs.h <<_ACEOF
  11135. #define HAVE_LIBXSLT 1
  11136. _ACEOF
  11137. fi
  11138. fi
  11139. fi
  11140. if test "x${PBX_LIBXSLT_CLEANUP}" != "x1" -a "${USE_LIBXSLT_CLEANUP}" != "no"; then
  11141. pbxlibdir=""
  11142. # if --with-LIBXSLT_CLEANUP=DIR has been specified, use it.
  11143. if test "x${LIBXSLT_CLEANUP_DIR}" != "x"; then
  11144. if test -d ${LIBXSLT_CLEANUP_DIR}/lib; then
  11145. pbxlibdir="-L${LIBXSLT_CLEANUP_DIR}/lib"
  11146. else
  11147. pbxlibdir="-L${LIBXSLT_CLEANUP_DIR}"
  11148. fi
  11149. fi
  11150. pbxfuncname="xsltCleanupGlobals"
  11151. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  11152. AST_LIBXSLT_CLEANUP_FOUND=yes
  11153. else
  11154. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  11155. CFLAGS="${CFLAGS} ${LIBXML2_INCLUDE}"
  11156. as_ac_Lib=`$as_echo "ac_cv_lib_xslt_${pbxfuncname}" | $as_tr_sh`
  11157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lxslt" >&5
  11158. $as_echo_n "checking for ${pbxfuncname} in -lxslt... " >&6; }
  11159. if eval \${$as_ac_Lib+:} false; then :
  11160. $as_echo_n "(cached) " >&6
  11161. else
  11162. ac_check_lib_save_LIBS=$LIBS
  11163. LIBS="-lxslt ${pbxlibdir} ${LIBXML2_LIB} $LIBS"
  11164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11165. /* end confdefs.h. */
  11166. /* Override any GCC internal prototype to avoid an error.
  11167. Use char because int might match the return type of a GCC
  11168. builtin and then its argument prototype would still apply. */
  11169. #ifdef __cplusplus
  11170. extern "C"
  11171. #endif
  11172. char ${pbxfuncname} ();
  11173. int
  11174. main ()
  11175. {
  11176. return ${pbxfuncname} ();
  11177. ;
  11178. return 0;
  11179. }
  11180. _ACEOF
  11181. if ac_fn_c_try_link "$LINENO"; then :
  11182. eval "$as_ac_Lib=yes"
  11183. else
  11184. eval "$as_ac_Lib=no"
  11185. fi
  11186. rm -f core conftest.err conftest.$ac_objext \
  11187. conftest$ac_exeext conftest.$ac_ext
  11188. LIBS=$ac_check_lib_save_LIBS
  11189. fi
  11190. eval ac_res=\$$as_ac_Lib
  11191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11192. $as_echo "$ac_res" >&6; }
  11193. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  11194. AST_LIBXSLT_CLEANUP_FOUND=yes
  11195. else
  11196. AST_LIBXSLT_CLEANUP_FOUND=no
  11197. fi
  11198. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  11199. fi
  11200. # now check for the header.
  11201. if test "${AST_LIBXSLT_CLEANUP_FOUND}" = "yes"; then
  11202. LIBXSLT_CLEANUP_LIB="${pbxlibdir} -lxslt ${LIBXML2_LIB}"
  11203. # if --with-LIBXSLT_CLEANUP=DIR has been specified, use it.
  11204. if test "x${LIBXSLT_CLEANUP_DIR}" != "x"; then
  11205. LIBXSLT_CLEANUP_INCLUDE="-I${LIBXSLT_CLEANUP_DIR}/include"
  11206. fi
  11207. LIBXSLT_CLEANUP_INCLUDE="${LIBXSLT_CLEANUP_INCLUDE} ${LIBXML2_INCLUDE}"
  11208. if test "xlibxslt/xsltInternals.h" = "x" ; then # no header, assume found
  11209. LIBXSLT_CLEANUP_HEADER_FOUND="1"
  11210. else # check for the header
  11211. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  11212. CPPFLAGS="${CPPFLAGS} ${LIBXSLT_CLEANUP_INCLUDE}"
  11213. ac_fn_c_check_header_mongrel "$LINENO" "libxslt/xsltInternals.h" "ac_cv_header_libxslt_xsltInternals_h" "$ac_includes_default"
  11214. if test "x$ac_cv_header_libxslt_xsltInternals_h" = xyes; then :
  11215. LIBXSLT_CLEANUP_HEADER_FOUND=1
  11216. else
  11217. LIBXSLT_CLEANUP_HEADER_FOUND=0
  11218. fi
  11219. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  11220. fi
  11221. if test "x${LIBXSLT_CLEANUP_HEADER_FOUND}" = "x0" ; then
  11222. LIBXSLT_CLEANUP_LIB=""
  11223. LIBXSLT_CLEANUP_INCLUDE=""
  11224. else
  11225. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  11226. LIBXSLT_CLEANUP_LIB=""
  11227. fi
  11228. PBX_LIBXSLT_CLEANUP=1
  11229. cat >>confdefs.h <<_ACEOF
  11230. #define HAVE_LIBXSLT_CLEANUP 1
  11231. _ACEOF
  11232. fi
  11233. fi
  11234. fi
  11235. fi
  11236. # some embedded systems omit internationalization (locale) support
  11237. for ac_header in xlocale.h
  11238. do :
  11239. ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
  11240. if test "x$ac_cv_header_xlocale_h" = xyes; then :
  11241. cat >>confdefs.h <<_ACEOF
  11242. #define HAVE_XLOCALE_H 1
  11243. _ACEOF
  11244. fi
  11245. done
  11246. for ac_header in winsock.h winsock2.h
  11247. do :
  11248. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11249. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11250. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11251. cat >>confdefs.h <<_ACEOF
  11252. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11253. _ACEOF
  11254. fi
  11255. done
  11256. ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  11257. if test "x$ac_cv_header_sys_poll_h" = xyes; then :
  11258. else
  11259. $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
  11260. fi
  11261. # Check whether --enable-largefile was given.
  11262. if test "${enable_largefile+set}" = set; then :
  11263. enableval=$enable_largefile;
  11264. fi
  11265. if test "$enable_largefile" != no; then
  11266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11267. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11268. if ${ac_cv_sys_largefile_CC+:} false; then :
  11269. $as_echo_n "(cached) " >&6
  11270. else
  11271. ac_cv_sys_largefile_CC=no
  11272. if test "$GCC" != yes; then
  11273. ac_save_CC=$CC
  11274. while :; do
  11275. # IRIX 6.2 and later do not support large files by default,
  11276. # so use the C compiler's -n32 option if that helps.
  11277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11278. /* end confdefs.h. */
  11279. #include <sys/types.h>
  11280. /* Check that off_t can represent 2**63 - 1 correctly.
  11281. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11282. since some C++ compilers masquerading as C compilers
  11283. incorrectly reject 9223372036854775807. */
  11284. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11285. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11286. && LARGE_OFF_T % 2147483647 == 1)
  11287. ? 1 : -1];
  11288. int
  11289. main ()
  11290. {
  11291. ;
  11292. return 0;
  11293. }
  11294. _ACEOF
  11295. if ac_fn_c_try_compile "$LINENO"; then :
  11296. break
  11297. fi
  11298. rm -f core conftest.err conftest.$ac_objext
  11299. CC="$CC -n32"
  11300. if ac_fn_c_try_compile "$LINENO"; then :
  11301. ac_cv_sys_largefile_CC=' -n32'; break
  11302. fi
  11303. rm -f core conftest.err conftest.$ac_objext
  11304. break
  11305. done
  11306. CC=$ac_save_CC
  11307. rm -f conftest.$ac_ext
  11308. fi
  11309. fi
  11310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  11311. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  11312. if test "$ac_cv_sys_largefile_CC" != no; then
  11313. CC=$CC$ac_cv_sys_largefile_CC
  11314. fi
  11315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11316. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  11317. if ${ac_cv_sys_file_offset_bits+:} false; then :
  11318. $as_echo_n "(cached) " >&6
  11319. else
  11320. while :; do
  11321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11322. /* end confdefs.h. */
  11323. #include <sys/types.h>
  11324. /* Check that off_t can represent 2**63 - 1 correctly.
  11325. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11326. since some C++ compilers masquerading as C compilers
  11327. incorrectly reject 9223372036854775807. */
  11328. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11329. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11330. && LARGE_OFF_T % 2147483647 == 1)
  11331. ? 1 : -1];
  11332. int
  11333. main ()
  11334. {
  11335. ;
  11336. return 0;
  11337. }
  11338. _ACEOF
  11339. if ac_fn_c_try_compile "$LINENO"; then :
  11340. ac_cv_sys_file_offset_bits=no; break
  11341. fi
  11342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11344. /* end confdefs.h. */
  11345. #define _FILE_OFFSET_BITS 64
  11346. #include <sys/types.h>
  11347. /* Check that off_t can represent 2**63 - 1 correctly.
  11348. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11349. since some C++ compilers masquerading as C compilers
  11350. incorrectly reject 9223372036854775807. */
  11351. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11352. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11353. && LARGE_OFF_T % 2147483647 == 1)
  11354. ? 1 : -1];
  11355. int
  11356. main ()
  11357. {
  11358. ;
  11359. return 0;
  11360. }
  11361. _ACEOF
  11362. if ac_fn_c_try_compile "$LINENO"; then :
  11363. ac_cv_sys_file_offset_bits=64; break
  11364. fi
  11365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11366. ac_cv_sys_file_offset_bits=unknown
  11367. break
  11368. done
  11369. fi
  11370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  11371. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  11372. case $ac_cv_sys_file_offset_bits in #(
  11373. no | unknown) ;;
  11374. *)
  11375. cat >>confdefs.h <<_ACEOF
  11376. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11377. _ACEOF
  11378. ;;
  11379. esac
  11380. rm -rf conftest*
  11381. if test $ac_cv_sys_file_offset_bits = unknown; then
  11382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  11383. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  11384. if ${ac_cv_sys_large_files+:} false; then :
  11385. $as_echo_n "(cached) " >&6
  11386. else
  11387. while :; do
  11388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11389. /* end confdefs.h. */
  11390. #include <sys/types.h>
  11391. /* Check that off_t can represent 2**63 - 1 correctly.
  11392. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11393. since some C++ compilers masquerading as C compilers
  11394. incorrectly reject 9223372036854775807. */
  11395. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11396. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11397. && LARGE_OFF_T % 2147483647 == 1)
  11398. ? 1 : -1];
  11399. int
  11400. main ()
  11401. {
  11402. ;
  11403. return 0;
  11404. }
  11405. _ACEOF
  11406. if ac_fn_c_try_compile "$LINENO"; then :
  11407. ac_cv_sys_large_files=no; break
  11408. fi
  11409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11411. /* end confdefs.h. */
  11412. #define _LARGE_FILES 1
  11413. #include <sys/types.h>
  11414. /* Check that off_t can represent 2**63 - 1 correctly.
  11415. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11416. since some C++ compilers masquerading as C compilers
  11417. incorrectly reject 9223372036854775807. */
  11418. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11419. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11420. && LARGE_OFF_T % 2147483647 == 1)
  11421. ? 1 : -1];
  11422. int
  11423. main ()
  11424. {
  11425. ;
  11426. return 0;
  11427. }
  11428. _ACEOF
  11429. if ac_fn_c_try_compile "$LINENO"; then :
  11430. ac_cv_sys_large_files=1; break
  11431. fi
  11432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11433. ac_cv_sys_large_files=unknown
  11434. break
  11435. done
  11436. fi
  11437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  11438. $as_echo "$ac_cv_sys_large_files" >&6; }
  11439. case $ac_cv_sys_large_files in #(
  11440. no | unknown) ;;
  11441. *)
  11442. cat >>confdefs.h <<_ACEOF
  11443. #define _LARGE_FILES $ac_cv_sys_large_files
  11444. _ACEOF
  11445. ;;
  11446. esac
  11447. rm -rf conftest*
  11448. fi
  11449. fi
  11450. # Checks for typedefs, structures, and compiler characteristics.
  11451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  11452. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  11453. if ${ac_cv_header_stdbool_h+:} false; then :
  11454. $as_echo_n "(cached) " >&6
  11455. else
  11456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11457. /* end confdefs.h. */
  11458. #include <stdbool.h>
  11459. #ifndef bool
  11460. "error: bool is not defined"
  11461. #endif
  11462. #ifndef false
  11463. "error: false is not defined"
  11464. #endif
  11465. #if false
  11466. "error: false is not 0"
  11467. #endif
  11468. #ifndef true
  11469. "error: true is not defined"
  11470. #endif
  11471. #if true != 1
  11472. "error: true is not 1"
  11473. #endif
  11474. #ifndef __bool_true_false_are_defined
  11475. "error: __bool_true_false_are_defined is not defined"
  11476. #endif
  11477. struct s { _Bool s: 1; _Bool t; } s;
  11478. char a[true == 1 ? 1 : -1];
  11479. char b[false == 0 ? 1 : -1];
  11480. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  11481. char d[(bool) 0.5 == true ? 1 : -1];
  11482. /* See body of main program for 'e'. */
  11483. char f[(_Bool) 0.0 == false ? 1 : -1];
  11484. char g[true];
  11485. char h[sizeof (_Bool)];
  11486. char i[sizeof s.t];
  11487. enum { j = false, k = true, l = false * true, m = true * 256 };
  11488. /* The following fails for
  11489. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  11490. _Bool n[m];
  11491. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  11492. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  11493. /* Catch a bug in an HP-UX C compiler. See
  11494. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  11495. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  11496. */
  11497. _Bool q = true;
  11498. _Bool *pq = &q;
  11499. int
  11500. main ()
  11501. {
  11502. bool e = &s;
  11503. *pq |= q;
  11504. *pq |= ! q;
  11505. /* Refer to every declared value, to avoid compiler optimizations. */
  11506. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  11507. + !m + !n + !o + !p + !q + !pq);
  11508. ;
  11509. return 0;
  11510. }
  11511. _ACEOF
  11512. if ac_fn_c_try_compile "$LINENO"; then :
  11513. ac_cv_header_stdbool_h=yes
  11514. else
  11515. ac_cv_header_stdbool_h=no
  11516. fi
  11517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11518. fi
  11519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  11520. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  11521. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  11522. if test "x$ac_cv_type__Bool" = xyes; then :
  11523. cat >>confdefs.h <<_ACEOF
  11524. #define HAVE__BOOL 1
  11525. _ACEOF
  11526. fi
  11527. if test $ac_cv_header_stdbool_h = yes; then
  11528. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  11529. fi
  11530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  11531. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  11532. if ${ac_cv_c_const+:} false; then :
  11533. $as_echo_n "(cached) " >&6
  11534. else
  11535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11536. /* end confdefs.h. */
  11537. int
  11538. main ()
  11539. {
  11540. #ifndef __cplusplus
  11541. /* Ultrix mips cc rejects this sort of thing. */
  11542. typedef int charset[2];
  11543. const charset cs = { 0, 0 };
  11544. /* SunOS 4.1.1 cc rejects this. */
  11545. char const *const *pcpcc;
  11546. char **ppc;
  11547. /* NEC SVR4.0.2 mips cc rejects this. */
  11548. struct point {int x, y;};
  11549. static struct point const zero = {0,0};
  11550. /* AIX XL C 1.02.0.0 rejects this.
  11551. It does not let you subtract one const X* pointer from another in
  11552. an arm of an if-expression whose if-part is not a constant
  11553. expression */
  11554. const char *g = "string";
  11555. pcpcc = &g + (g ? g-g : 0);
  11556. /* HPUX 7.0 cc rejects these. */
  11557. ++pcpcc;
  11558. ppc = (char**) pcpcc;
  11559. pcpcc = (char const *const *) ppc;
  11560. { /* SCO 3.2v4 cc rejects this sort of thing. */
  11561. char tx;
  11562. char *t = &tx;
  11563. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11564. *t++ = 0;
  11565. if (s) return 0;
  11566. }
  11567. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11568. int x[] = {25, 17};
  11569. const int *foo = &x[0];
  11570. ++foo;
  11571. }
  11572. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11573. typedef const int *iptr;
  11574. iptr p = 0;
  11575. ++p;
  11576. }
  11577. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  11578. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11579. struct s { int j; const int *ap[3]; } bx;
  11580. struct s *b = &bx; b->j = 5;
  11581. }
  11582. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11583. const int foo = 10;
  11584. if (!foo) return 0;
  11585. }
  11586. return !cs[0] && !zero.x;
  11587. #endif
  11588. ;
  11589. return 0;
  11590. }
  11591. _ACEOF
  11592. if ac_fn_c_try_compile "$LINENO"; then :
  11593. ac_cv_c_const=yes
  11594. else
  11595. ac_cv_c_const=no
  11596. fi
  11597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11598. fi
  11599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  11600. $as_echo "$ac_cv_c_const" >&6; }
  11601. if test $ac_cv_c_const = no; then
  11602. $as_echo "#define const /**/" >>confdefs.h
  11603. fi
  11604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  11605. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  11606. if ${ac_cv_type_uid_t+:} false; then :
  11607. $as_echo_n "(cached) " >&6
  11608. else
  11609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11610. /* end confdefs.h. */
  11611. #include <sys/types.h>
  11612. _ACEOF
  11613. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11614. $EGREP "uid_t" >/dev/null 2>&1; then :
  11615. ac_cv_type_uid_t=yes
  11616. else
  11617. ac_cv_type_uid_t=no
  11618. fi
  11619. rm -f conftest*
  11620. fi
  11621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  11622. $as_echo "$ac_cv_type_uid_t" >&6; }
  11623. if test $ac_cv_type_uid_t = no; then
  11624. $as_echo "#define uid_t int" >>confdefs.h
  11625. $as_echo "#define gid_t int" >>confdefs.h
  11626. fi
  11627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  11628. $as_echo_n "checking for inline... " >&6; }
  11629. if ${ac_cv_c_inline+:} false; then :
  11630. $as_echo_n "(cached) " >&6
  11631. else
  11632. ac_cv_c_inline=no
  11633. for ac_kw in inline __inline__ __inline; do
  11634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11635. /* end confdefs.h. */
  11636. #ifndef __cplusplus
  11637. typedef int foo_t;
  11638. static $ac_kw foo_t static_foo () {return 0; }
  11639. $ac_kw foo_t foo () {return 0; }
  11640. #endif
  11641. _ACEOF
  11642. if ac_fn_c_try_compile "$LINENO"; then :
  11643. ac_cv_c_inline=$ac_kw
  11644. fi
  11645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11646. test "$ac_cv_c_inline" != no && break
  11647. done
  11648. fi
  11649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  11650. $as_echo "$ac_cv_c_inline" >&6; }
  11651. case $ac_cv_c_inline in
  11652. inline | yes) ;;
  11653. *)
  11654. case $ac_cv_c_inline in
  11655. no) ac_val=;;
  11656. *) ac_val=$ac_cv_c_inline;;
  11657. esac
  11658. cat >>confdefs.h <<_ACEOF
  11659. #ifndef __cplusplus
  11660. #define inline $ac_val
  11661. #endif
  11662. _ACEOF
  11663. ;;
  11664. esac
  11665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
  11666. $as_echo_n "checking for long double with more range or precision than double... " >&6; }
  11667. if ${ac_cv_type_long_double_wider+:} false; then :
  11668. $as_echo_n "(cached) " >&6
  11669. else
  11670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11671. /* end confdefs.h. */
  11672. #include <float.h>
  11673. long double const a[] =
  11674. {
  11675. 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
  11676. LDBL_MIN, LDBL_MAX, LDBL_EPSILON
  11677. };
  11678. long double
  11679. f (long double x)
  11680. {
  11681. return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
  11682. + (x ? f (x) : 'c'));
  11683. }
  11684. int
  11685. main ()
  11686. {
  11687. static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
  11688. + (DBL_MANT_DIG < LDBL_MANT_DIG)
  11689. - (LDBL_MAX_EXP < DBL_MAX_EXP)
  11690. - (LDBL_MANT_DIG < DBL_MANT_DIG)))
  11691. && (int) LDBL_EPSILON == 0
  11692. )];
  11693. test_array [0] = 0;
  11694. return test_array [0];
  11695. ;
  11696. return 0;
  11697. }
  11698. _ACEOF
  11699. if ac_fn_c_try_compile "$LINENO"; then :
  11700. ac_cv_type_long_double_wider=yes
  11701. else
  11702. ac_cv_type_long_double_wider=no
  11703. fi
  11704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11705. fi
  11706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
  11707. $as_echo "$ac_cv_type_long_double_wider" >&6; }
  11708. if test $ac_cv_type_long_double_wider = yes; then
  11709. $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
  11710. fi
  11711. ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  11712. if test "x$ac_cv_type_mode_t" = xyes; then :
  11713. else
  11714. cat >>confdefs.h <<_ACEOF
  11715. #define mode_t int
  11716. _ACEOF
  11717. fi
  11718. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11719. if test "x$ac_cv_type_off_t" = xyes; then :
  11720. else
  11721. cat >>confdefs.h <<_ACEOF
  11722. #define off_t long int
  11723. _ACEOF
  11724. fi
  11725. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  11726. if test "x$ac_cv_type_pid_t" = xyes; then :
  11727. else
  11728. cat >>confdefs.h <<_ACEOF
  11729. #define pid_t int
  11730. _ACEOF
  11731. fi
  11732. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11733. if test "x$ac_cv_type_size_t" = xyes; then :
  11734. else
  11735. cat >>confdefs.h <<_ACEOF
  11736. #define size_t unsigned int
  11737. _ACEOF
  11738. fi
  11739. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  11740. if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
  11741. cat >>confdefs.h <<_ACEOF
  11742. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  11743. _ACEOF
  11744. fi
  11745. ac_fn_c_check_member "$LINENO" "struct ucred" "uid" "ac_cv_member_struct_ucred_uid" "#include <sys/types.h>
  11746. #include <sys/socket.h>
  11747. "
  11748. if test "x$ac_cv_member_struct_ucred_uid" = xyes; then :
  11749. cat >>confdefs.h <<_ACEOF
  11750. #define HAVE_STRUCT_UCRED_UID 1
  11751. _ACEOF
  11752. fi
  11753. ac_fn_c_check_member "$LINENO" "struct ucred" "cr_uid" "ac_cv_member_struct_ucred_cr_uid" "#include <sys/types.h>
  11754. #include <sys/socket.h>
  11755. "
  11756. if test "x$ac_cv_member_struct_ucred_cr_uid" = xyes; then :
  11757. cat >>confdefs.h <<_ACEOF
  11758. #define HAVE_STRUCT_UCRED_CR_UID 1
  11759. _ACEOF
  11760. fi
  11761. ac_fn_c_check_member "$LINENO" "struct sockpeercred" "uid" "ac_cv_member_struct_sockpeercred_uid" "#include <sys/types.h>
  11762. #include <sys/socket.h>
  11763. "
  11764. if test "x$ac_cv_member_struct_sockpeercred_uid" = xyes; then :
  11765. cat >>confdefs.h <<_ACEOF
  11766. #define HAVE_STRUCT_SOCKPEERCRED_UID 1
  11767. _ACEOF
  11768. fi
  11769. 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>
  11770. "
  11771. if test "x$ac_cv_member_struct_ifreq_ifr_ifru_ifru_hwaddr" = xyes; then :
  11772. cat >>confdefs.h <<_ACEOF
  11773. #define HAVE_STRUCT_IFREQ_IFR_IFRU_IFRU_HWADDR 1
  11774. _ACEOF
  11775. fi
  11776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  11777. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  11778. if ${ac_cv_header_time+:} false; then :
  11779. $as_echo_n "(cached) " >&6
  11780. else
  11781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11782. /* end confdefs.h. */
  11783. #include <sys/types.h>
  11784. #include <sys/time.h>
  11785. #include <time.h>
  11786. int
  11787. main ()
  11788. {
  11789. if ((struct tm *) 0)
  11790. return 0;
  11791. ;
  11792. return 0;
  11793. }
  11794. _ACEOF
  11795. if ac_fn_c_try_compile "$LINENO"; then :
  11796. ac_cv_header_time=yes
  11797. else
  11798. ac_cv_header_time=no
  11799. fi
  11800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11801. fi
  11802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  11803. $as_echo "$ac_cv_header_time" >&6; }
  11804. if test $ac_cv_header_time = yes; then
  11805. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  11806. fi
  11807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  11808. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  11809. if ${ac_cv_struct_tm+:} false; then :
  11810. $as_echo_n "(cached) " >&6
  11811. else
  11812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11813. /* end confdefs.h. */
  11814. #include <sys/types.h>
  11815. #include <time.h>
  11816. int
  11817. main ()
  11818. {
  11819. struct tm tm;
  11820. int *p = &tm.tm_sec;
  11821. return !p;
  11822. ;
  11823. return 0;
  11824. }
  11825. _ACEOF
  11826. if ac_fn_c_try_compile "$LINENO"; then :
  11827. ac_cv_struct_tm=time.h
  11828. else
  11829. ac_cv_struct_tm=sys/time.h
  11830. fi
  11831. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11832. fi
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11834. $as_echo "$ac_cv_struct_tm" >&6; }
  11835. if test $ac_cv_struct_tm = sys/time.h; then
  11836. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11837. fi
  11838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  11839. $as_echo_n "checking for working volatile... " >&6; }
  11840. if ${ac_cv_c_volatile+:} false; then :
  11841. $as_echo_n "(cached) " >&6
  11842. else
  11843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11844. /* end confdefs.h. */
  11845. int
  11846. main ()
  11847. {
  11848. volatile int x;
  11849. int * volatile y = (int *) 0;
  11850. return !x && !y;
  11851. ;
  11852. return 0;
  11853. }
  11854. _ACEOF
  11855. if ac_fn_c_try_compile "$LINENO"; then :
  11856. ac_cv_c_volatile=yes
  11857. else
  11858. ac_cv_c_volatile=no
  11859. fi
  11860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11861. fi
  11862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  11863. $as_echo "$ac_cv_c_volatile" >&6; }
  11864. if test $ac_cv_c_volatile = no; then
  11865. $as_echo "#define volatile /**/" >>confdefs.h
  11866. fi
  11867. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  11868. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  11869. cat >>confdefs.h <<_ACEOF
  11870. #define HAVE_PTRDIFF_T 1
  11871. _ACEOF
  11872. fi
  11873. stat_nsec_found=no
  11874. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
  11875. "
  11876. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  11877. cat >>confdefs.h <<_ACEOF
  11878. #define HAVE_STRUCT_STAT_ST_MTIM 1
  11879. _ACEOF
  11880. stat_nsec_found=yes
  11881. fi
  11882. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "#include <sys/stat.h>
  11883. "
  11884. if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
  11885. cat >>confdefs.h <<_ACEOF
  11886. #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
  11887. _ACEOF
  11888. stat_nsec_found=yes
  11889. fi
  11890. ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "#include <sys/stat.h>
  11891. "
  11892. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  11893. cat >>confdefs.h <<_ACEOF
  11894. #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
  11895. _ACEOF
  11896. stat_nsec_found=yes
  11897. fi
  11898. if test "${stat_nsec_found}" != yes; then
  11899. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot determine nanosecond field of struct stat" >&5
  11900. $as_echo "$as_me: WARNING: Cannot determine nanosecond field of struct stat" >&2;}
  11901. fi
  11902. # Checks for library functions.
  11903. for ac_header in unistd.h
  11904. do :
  11905. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  11906. if test "x$ac_cv_header_unistd_h" = xyes; then :
  11907. cat >>confdefs.h <<_ACEOF
  11908. #define HAVE_UNISTD_H 1
  11909. _ACEOF
  11910. fi
  11911. done
  11912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
  11913. $as_echo_n "checking for working chown... " >&6; }
  11914. if ${ac_cv_func_chown_works+:} false; then :
  11915. $as_echo_n "(cached) " >&6
  11916. else
  11917. if test "$cross_compiling" = yes; then :
  11918. ac_cv_func_chown_works=no
  11919. else
  11920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11921. /* end confdefs.h. */
  11922. $ac_includes_default
  11923. #include <fcntl.h>
  11924. int
  11925. main ()
  11926. {
  11927. char *f = "conftest.chown";
  11928. struct stat before, after;
  11929. if (creat (f, 0600) < 0)
  11930. return 1;
  11931. if (stat (f, &before) < 0)
  11932. return 1;
  11933. if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
  11934. return 1;
  11935. if (stat (f, &after) < 0)
  11936. return 1;
  11937. return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
  11938. ;
  11939. return 0;
  11940. }
  11941. _ACEOF
  11942. if ac_fn_c_try_run "$LINENO"; then :
  11943. ac_cv_func_chown_works=yes
  11944. else
  11945. ac_cv_func_chown_works=no
  11946. fi
  11947. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11948. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11949. fi
  11950. rm -f conftest.chown
  11951. fi
  11952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
  11953. $as_echo "$ac_cv_func_chown_works" >&6; }
  11954. if test $ac_cv_func_chown_works = yes; then
  11955. $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
  11956. fi
  11957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
  11958. $as_echo_n "checking whether closedir returns void... " >&6; }
  11959. if ${ac_cv_func_closedir_void+:} false; then :
  11960. $as_echo_n "(cached) " >&6
  11961. else
  11962. if test "$cross_compiling" = yes; then :
  11963. ac_cv_func_closedir_void=yes
  11964. else
  11965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11966. /* end confdefs.h. */
  11967. $ac_includes_default
  11968. #include <$ac_header_dirent>
  11969. #ifndef __cplusplus
  11970. int closedir ();
  11971. #endif
  11972. int
  11973. main ()
  11974. {
  11975. return closedir (opendir (".")) != 0;
  11976. ;
  11977. return 0;
  11978. }
  11979. _ACEOF
  11980. if ac_fn_c_try_run "$LINENO"; then :
  11981. ac_cv_func_closedir_void=no
  11982. else
  11983. ac_cv_func_closedir_void=yes
  11984. fi
  11985. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11986. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11987. fi
  11988. fi
  11989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
  11990. $as_echo "$ac_cv_func_closedir_void" >&6; }
  11991. if test $ac_cv_func_closedir_void = yes; then
  11992. $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
  11993. fi
  11994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
  11995. $as_echo_n "checking for error_at_line... " >&6; }
  11996. if ${ac_cv_lib_error_at_line+:} false; then :
  11997. $as_echo_n "(cached) " >&6
  11998. else
  11999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12000. /* end confdefs.h. */
  12001. #include <error.h>
  12002. int
  12003. main ()
  12004. {
  12005. error_at_line (0, 0, "", 0, "an error occurred");
  12006. ;
  12007. return 0;
  12008. }
  12009. _ACEOF
  12010. if ac_fn_c_try_link "$LINENO"; then :
  12011. ac_cv_lib_error_at_line=yes
  12012. else
  12013. ac_cv_lib_error_at_line=no
  12014. fi
  12015. rm -f core conftest.err conftest.$ac_objext \
  12016. conftest$ac_exeext conftest.$ac_ext
  12017. fi
  12018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
  12019. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  12020. if test $ac_cv_lib_error_at_line = no; then
  12021. case " $LIBOBJS " in
  12022. *" error.$ac_objext "* ) ;;
  12023. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  12024. ;;
  12025. esac
  12026. fi
  12027. for ac_header in vfork.h
  12028. do :
  12029. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12030. if test "x$ac_cv_header_vfork_h" = xyes; then :
  12031. cat >>confdefs.h <<_ACEOF
  12032. #define HAVE_VFORK_H 1
  12033. _ACEOF
  12034. fi
  12035. done
  12036. for ac_func in fork vfork
  12037. do :
  12038. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12039. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12040. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12041. cat >>confdefs.h <<_ACEOF
  12042. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12043. _ACEOF
  12044. fi
  12045. done
  12046. if test "x$ac_cv_func_fork" = xyes; then
  12047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12048. $as_echo_n "checking for working fork... " >&6; }
  12049. if ${ac_cv_func_fork_works+:} false; then :
  12050. $as_echo_n "(cached) " >&6
  12051. else
  12052. if test "$cross_compiling" = yes; then :
  12053. ac_cv_func_fork_works=cross
  12054. else
  12055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12056. /* end confdefs.h. */
  12057. $ac_includes_default
  12058. int
  12059. main ()
  12060. {
  12061. /* By Ruediger Kuhlmann. */
  12062. return fork () < 0;
  12063. ;
  12064. return 0;
  12065. }
  12066. _ACEOF
  12067. if ac_fn_c_try_run "$LINENO"; then :
  12068. ac_cv_func_fork_works=yes
  12069. else
  12070. ac_cv_func_fork_works=no
  12071. fi
  12072. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12073. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12074. fi
  12075. fi
  12076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12077. $as_echo "$ac_cv_func_fork_works" >&6; }
  12078. else
  12079. ac_cv_func_fork_works=$ac_cv_func_fork
  12080. fi
  12081. if test "x$ac_cv_func_fork_works" = xcross; then
  12082. case $host in
  12083. *-*-amigaos* | *-*-msdosdjgpp* | *-*-uclinux* )
  12084. # Override, as these systems have only a dummy fork() stub
  12085. ac_cv_func_fork_works=no
  12086. ;;
  12087. *)
  12088. ac_cv_func_fork_works=yes
  12089. ;;
  12090. esac
  12091. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12092. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12093. fi
  12094. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12095. if test "x$ac_cv_func_vfork" = xyes; then
  12096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12097. $as_echo_n "checking for working vfork... " >&6; }
  12098. if ${ac_cv_func_vfork_works+:} false; then :
  12099. $as_echo_n "(cached) " >&6
  12100. else
  12101. if test "$cross_compiling" = yes; then :
  12102. ac_cv_func_vfork_works=cross
  12103. else
  12104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12105. /* end confdefs.h. */
  12106. /* Thanks to Paul Eggert for this test. */
  12107. $ac_includes_default
  12108. #include <sys/wait.h>
  12109. #ifdef HAVE_VFORK_H
  12110. # include <vfork.h>
  12111. #endif
  12112. /* On some sparc systems, changes by the child to local and incoming
  12113. argument registers are propagated back to the parent. The compiler
  12114. is told about this with #include <vfork.h>, but some compilers
  12115. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12116. static variable whose address is put into a register that is
  12117. clobbered by the vfork. */
  12118. static void
  12119. #ifdef __cplusplus
  12120. sparc_address_test (int arg)
  12121. # else
  12122. sparc_address_test (arg) int arg;
  12123. #endif
  12124. {
  12125. static pid_t child;
  12126. if (!child) {
  12127. child = vfork ();
  12128. if (child < 0) {
  12129. perror ("vfork");
  12130. _exit(2);
  12131. }
  12132. if (!child) {
  12133. arg = getpid();
  12134. write(-1, "", 0);
  12135. _exit (arg);
  12136. }
  12137. }
  12138. }
  12139. int
  12140. main ()
  12141. {
  12142. pid_t parent = getpid ();
  12143. pid_t child;
  12144. sparc_address_test (0);
  12145. child = vfork ();
  12146. if (child == 0) {
  12147. /* Here is another test for sparc vfork register problems. This
  12148. test uses lots of local variables, at least as many local
  12149. variables as main has allocated so far including compiler
  12150. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12151. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12152. reuse the register of parent for one of the local variables,
  12153. since it will think that parent can't possibly be used any more
  12154. in this routine. Assigning to the local variable will thus
  12155. munge parent in the parent process. */
  12156. pid_t
  12157. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12158. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12159. /* Convince the compiler that p..p7 are live; otherwise, it might
  12160. use the same hardware register for all 8 local variables. */
  12161. if (p != p1 || p != p2 || p != p3 || p != p4
  12162. || p != p5 || p != p6 || p != p7)
  12163. _exit(1);
  12164. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12165. from child file descriptors. If the child closes a descriptor
  12166. before it execs or exits, this munges the parent's descriptor
  12167. as well. Test for this by closing stdout in the child. */
  12168. _exit(close(fileno(stdout)) != 0);
  12169. } else {
  12170. int status;
  12171. struct stat st;
  12172. while (wait(&status) != child)
  12173. ;
  12174. return (
  12175. /* Was there some problem with vforking? */
  12176. child < 0
  12177. /* Did the child fail? (This shouldn't happen.) */
  12178. || status
  12179. /* Did the vfork/compiler bug occur? */
  12180. || parent != getpid()
  12181. /* Did the file descriptor bug occur? */
  12182. || fstat(fileno(stdout), &st) != 0
  12183. );
  12184. }
  12185. }
  12186. _ACEOF
  12187. if ac_fn_c_try_run "$LINENO"; then :
  12188. ac_cv_func_vfork_works=yes
  12189. else
  12190. ac_cv_func_vfork_works=no
  12191. fi
  12192. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12193. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12194. fi
  12195. fi
  12196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12197. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12198. fi;
  12199. if test "x$ac_cv_func_fork_works" = xcross; then
  12200. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12201. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12202. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12203. fi
  12204. if test "x$ac_cv_func_vfork_works" = xyes; then
  12205. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12206. else
  12207. $as_echo "#define vfork fork" >>confdefs.h
  12208. fi
  12209. if test "x$ac_cv_func_fork_works" = xyes; then
  12210. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12211. PBX_WORKING_FORK=1
  12212. fi
  12213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  12214. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  12215. if ${ac_cv_sys_largefile_source+:} false; then :
  12216. $as_echo_n "(cached) " >&6
  12217. else
  12218. while :; do
  12219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12220. /* end confdefs.h. */
  12221. #include <sys/types.h> /* for off_t */
  12222. #include <stdio.h>
  12223. int
  12224. main ()
  12225. {
  12226. int (*fp) (FILE *, off_t, int) = fseeko;
  12227. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  12228. ;
  12229. return 0;
  12230. }
  12231. _ACEOF
  12232. if ac_fn_c_try_link "$LINENO"; then :
  12233. ac_cv_sys_largefile_source=no; break
  12234. fi
  12235. rm -f core conftest.err conftest.$ac_objext \
  12236. conftest$ac_exeext conftest.$ac_ext
  12237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12238. /* end confdefs.h. */
  12239. #define _LARGEFILE_SOURCE 1
  12240. #include <sys/types.h> /* for off_t */
  12241. #include <stdio.h>
  12242. int
  12243. main ()
  12244. {
  12245. int (*fp) (FILE *, off_t, int) = fseeko;
  12246. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  12247. ;
  12248. return 0;
  12249. }
  12250. _ACEOF
  12251. if ac_fn_c_try_link "$LINENO"; then :
  12252. ac_cv_sys_largefile_source=1; break
  12253. fi
  12254. rm -f core conftest.err conftest.$ac_objext \
  12255. conftest$ac_exeext conftest.$ac_ext
  12256. ac_cv_sys_largefile_source=unknown
  12257. break
  12258. done
  12259. fi
  12260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  12261. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  12262. case $ac_cv_sys_largefile_source in #(
  12263. no | unknown) ;;
  12264. *)
  12265. cat >>confdefs.h <<_ACEOF
  12266. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  12267. _ACEOF
  12268. ;;
  12269. esac
  12270. rm -rf conftest*
  12271. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  12272. # in glibc 2.1.3, but that breaks too many other things.
  12273. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  12274. if test $ac_cv_sys_largefile_source != unknown; then
  12275. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  12276. fi
  12277. if test $ac_cv_c_compiler_gnu = yes; then
  12278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  12279. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  12280. if ${ac_cv_prog_gcc_traditional+:} false; then :
  12281. $as_echo_n "(cached) " >&6
  12282. else
  12283. ac_pattern="Autoconf.*'x'"
  12284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12285. /* end confdefs.h. */
  12286. #include <sgtty.h>
  12287. Autoconf TIOCGETP
  12288. _ACEOF
  12289. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12290. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12291. ac_cv_prog_gcc_traditional=yes
  12292. else
  12293. ac_cv_prog_gcc_traditional=no
  12294. fi
  12295. rm -f conftest*
  12296. if test $ac_cv_prog_gcc_traditional = no; then
  12297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12298. /* end confdefs.h. */
  12299. #include <termio.h>
  12300. Autoconf TCGETA
  12301. _ACEOF
  12302. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12303. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  12304. ac_cv_prog_gcc_traditional=yes
  12305. fi
  12306. rm -f conftest*
  12307. fi
  12308. fi
  12309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  12310. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  12311. if test $ac_cv_prog_gcc_traditional = yes; then
  12312. CC="$CC -traditional"
  12313. fi
  12314. fi
  12315. # XXX: these are commented out until we determine whether it matters if our malloc()
  12316. # acts exactly like glibc's or not
  12317. # AC_FUNC_MALLOC
  12318. # AC_FUNC_REALLOC
  12319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  12320. $as_echo_n "checking for working memcmp... " >&6; }
  12321. if ${ac_cv_func_memcmp_working+:} false; then :
  12322. $as_echo_n "(cached) " >&6
  12323. else
  12324. if test "$cross_compiling" = yes; then :
  12325. ac_cv_func_memcmp_working=no
  12326. else
  12327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12328. /* end confdefs.h. */
  12329. $ac_includes_default
  12330. int
  12331. main ()
  12332. {
  12333. /* Some versions of memcmp are not 8-bit clean. */
  12334. char c0 = '\100', c1 = '\200', c2 = '\201';
  12335. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  12336. return 1;
  12337. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  12338. or more and with at least one buffer not starting on a 4-byte boundary.
  12339. William Lewis provided this test program. */
  12340. {
  12341. char foo[21];
  12342. char bar[21];
  12343. int i;
  12344. for (i = 0; i < 4; i++)
  12345. {
  12346. char *a = foo + i;
  12347. char *b = bar + i;
  12348. strcpy (a, "--------01111111");
  12349. strcpy (b, "--------10000000");
  12350. if (memcmp (a, b, 16) >= 0)
  12351. return 1;
  12352. }
  12353. return 0;
  12354. }
  12355. ;
  12356. return 0;
  12357. }
  12358. _ACEOF
  12359. if ac_fn_c_try_run "$LINENO"; then :
  12360. ac_cv_func_memcmp_working=yes
  12361. else
  12362. ac_cv_func_memcmp_working=no
  12363. fi
  12364. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12365. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12366. fi
  12367. fi
  12368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  12369. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  12370. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  12371. *" memcmp.$ac_objext "* ) ;;
  12372. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  12373. ;;
  12374. esac
  12375. for ac_header in $ac_header_list
  12376. do :
  12377. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12378. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  12379. "
  12380. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12381. cat >>confdefs.h <<_ACEOF
  12382. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12383. _ACEOF
  12384. fi
  12385. done
  12386. for ac_func in getpagesize
  12387. do :
  12388. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12389. if test "x$ac_cv_func_getpagesize" = xyes; then :
  12390. cat >>confdefs.h <<_ACEOF
  12391. #define HAVE_GETPAGESIZE 1
  12392. _ACEOF
  12393. fi
  12394. done
  12395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12396. $as_echo_n "checking for working mmap... " >&6; }
  12397. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  12398. $as_echo_n "(cached) " >&6
  12399. else
  12400. if test "$cross_compiling" = yes; then :
  12401. ac_cv_func_mmap_fixed_mapped=no
  12402. else
  12403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12404. /* end confdefs.h. */
  12405. $ac_includes_default
  12406. /* malloc might have been renamed as rpl_malloc. */
  12407. #undef malloc
  12408. /* Thanks to Mike Haertel and Jim Avera for this test.
  12409. Here is a matrix of mmap possibilities:
  12410. mmap private not fixed
  12411. mmap private fixed at somewhere currently unmapped
  12412. mmap private fixed at somewhere already mapped
  12413. mmap shared not fixed
  12414. mmap shared fixed at somewhere currently unmapped
  12415. mmap shared fixed at somewhere already mapped
  12416. For private mappings, we should verify that changes cannot be read()
  12417. back from the file, nor mmap's back from the file at a different
  12418. address. (There have been systems where private was not correctly
  12419. implemented like the infamous i386 svr4.0, and systems where the
  12420. VM page cache was not coherent with the file system buffer cache
  12421. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12422. For shared mappings, we should conversely verify that changes get
  12423. propagated back to all the places they're supposed to be.
  12424. Grep wants private fixed already mapped.
  12425. The main things grep needs to know about mmap are:
  12426. * does it exist and is it safe to write into the mmap'd area
  12427. * how to use it (BSD variants) */
  12428. #include <fcntl.h>
  12429. #include <sys/mman.h>
  12430. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12431. char *malloc ();
  12432. #endif
  12433. /* This mess was copied from the GNU getpagesize.h. */
  12434. #ifndef HAVE_GETPAGESIZE
  12435. # ifdef _SC_PAGESIZE
  12436. # define getpagesize() sysconf(_SC_PAGESIZE)
  12437. # else /* no _SC_PAGESIZE */
  12438. # ifdef HAVE_SYS_PARAM_H
  12439. # include <sys/param.h>
  12440. # ifdef EXEC_PAGESIZE
  12441. # define getpagesize() EXEC_PAGESIZE
  12442. # else /* no EXEC_PAGESIZE */
  12443. # ifdef NBPG
  12444. # define getpagesize() NBPG * CLSIZE
  12445. # ifndef CLSIZE
  12446. # define CLSIZE 1
  12447. # endif /* no CLSIZE */
  12448. # else /* no NBPG */
  12449. # ifdef NBPC
  12450. # define getpagesize() NBPC
  12451. # else /* no NBPC */
  12452. # ifdef PAGESIZE
  12453. # define getpagesize() PAGESIZE
  12454. # endif /* PAGESIZE */
  12455. # endif /* no NBPC */
  12456. # endif /* no NBPG */
  12457. # endif /* no EXEC_PAGESIZE */
  12458. # else /* no HAVE_SYS_PARAM_H */
  12459. # define getpagesize() 8192 /* punt totally */
  12460. # endif /* no HAVE_SYS_PARAM_H */
  12461. # endif /* no _SC_PAGESIZE */
  12462. #endif /* no HAVE_GETPAGESIZE */
  12463. int
  12464. main ()
  12465. {
  12466. char *data, *data2, *data3;
  12467. const char *cdata2;
  12468. int i, pagesize;
  12469. int fd, fd2;
  12470. pagesize = getpagesize ();
  12471. /* First, make a file with some known garbage in it. */
  12472. data = (char *) malloc (pagesize);
  12473. if (!data)
  12474. return 1;
  12475. for (i = 0; i < pagesize; ++i)
  12476. *(data + i) = rand ();
  12477. umask (0);
  12478. fd = creat ("conftest.mmap", 0600);
  12479. if (fd < 0)
  12480. return 2;
  12481. if (write (fd, data, pagesize) != pagesize)
  12482. return 3;
  12483. close (fd);
  12484. /* Next, check that the tail of a page is zero-filled. File must have
  12485. non-zero length, otherwise we risk SIGBUS for entire page. */
  12486. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12487. if (fd2 < 0)
  12488. return 4;
  12489. cdata2 = "";
  12490. if (write (fd2, cdata2, 1) != 1)
  12491. return 5;
  12492. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12493. if (data2 == MAP_FAILED)
  12494. return 6;
  12495. for (i = 0; i < pagesize; ++i)
  12496. if (*(data2 + i))
  12497. return 7;
  12498. close (fd2);
  12499. if (munmap (data2, pagesize))
  12500. return 8;
  12501. /* Next, try to mmap the file at a fixed address which already has
  12502. something else allocated at it. If we can, also make sure that
  12503. we see the same garbage. */
  12504. fd = open ("conftest.mmap", O_RDWR);
  12505. if (fd < 0)
  12506. return 9;
  12507. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12508. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12509. return 10;
  12510. for (i = 0; i < pagesize; ++i)
  12511. if (*(data + i) != *(data2 + i))
  12512. return 11;
  12513. /* Finally, make sure that changes to the mapped area do not
  12514. percolate back to the file as seen by read(). (This is a bug on
  12515. some variants of i386 svr4.0.) */
  12516. for (i = 0; i < pagesize; ++i)
  12517. *(data2 + i) = *(data2 + i) + 1;
  12518. data3 = (char *) malloc (pagesize);
  12519. if (!data3)
  12520. return 12;
  12521. if (read (fd, data3, pagesize) != pagesize)
  12522. return 13;
  12523. for (i = 0; i < pagesize; ++i)
  12524. if (*(data + i) != *(data3 + i))
  12525. return 14;
  12526. close (fd);
  12527. return 0;
  12528. }
  12529. _ACEOF
  12530. if ac_fn_c_try_run "$LINENO"; then :
  12531. ac_cv_func_mmap_fixed_mapped=yes
  12532. else
  12533. ac_cv_func_mmap_fixed_mapped=no
  12534. fi
  12535. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12536. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12537. fi
  12538. fi
  12539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12540. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12541. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12542. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12543. fi
  12544. rm -f conftest.mmap conftest.txt
  12545. for ac_header in sys/select.h sys/socket.h
  12546. do :
  12547. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12548. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12549. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12550. cat >>confdefs.h <<_ACEOF
  12551. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12552. _ACEOF
  12553. fi
  12554. done
  12555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  12556. $as_echo_n "checking types of arguments for select... " >&6; }
  12557. if ${ac_cv_func_select_args+:} false; then :
  12558. $as_echo_n "(cached) " >&6
  12559. else
  12560. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  12561. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  12562. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  12563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12564. /* end confdefs.h. */
  12565. $ac_includes_default
  12566. #ifdef HAVE_SYS_SELECT_H
  12567. # include <sys/select.h>
  12568. #endif
  12569. #ifdef HAVE_SYS_SOCKET_H
  12570. # include <sys/socket.h>
  12571. #endif
  12572. int
  12573. main ()
  12574. {
  12575. extern int select ($ac_arg1,
  12576. $ac_arg234, $ac_arg234, $ac_arg234,
  12577. $ac_arg5);
  12578. ;
  12579. return 0;
  12580. }
  12581. _ACEOF
  12582. if ac_fn_c_try_compile "$LINENO"; then :
  12583. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  12584. fi
  12585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12586. done
  12587. done
  12588. done
  12589. # Provide a safe default value.
  12590. : "${ac_cv_func_select_args=int,int *,struct timeval *}"
  12591. fi
  12592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  12593. $as_echo "$ac_cv_func_select_args" >&6; }
  12594. ac_save_IFS=$IFS; IFS=','
  12595. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  12596. IFS=$ac_save_IFS
  12597. shift
  12598. cat >>confdefs.h <<_ACEOF
  12599. #define SELECT_TYPE_ARG1 $1
  12600. _ACEOF
  12601. cat >>confdefs.h <<_ACEOF
  12602. #define SELECT_TYPE_ARG234 ($2)
  12603. _ACEOF
  12604. cat >>confdefs.h <<_ACEOF
  12605. #define SELECT_TYPE_ARG5 ($3)
  12606. _ACEOF
  12607. rm -f conftest*
  12608. if ${ac_cv_func_setvbuf_reversed+:} false; then :
  12609. $as_echo_n "(cached) " >&6
  12610. else
  12611. ac_cv_func_setvbuf_reversed=no
  12612. fi
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  12614. $as_echo_n "checking return type of signal handlers... " >&6; }
  12615. if ${ac_cv_type_signal+:} false; then :
  12616. $as_echo_n "(cached) " >&6
  12617. else
  12618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12619. /* end confdefs.h. */
  12620. #include <sys/types.h>
  12621. #include <signal.h>
  12622. int
  12623. main ()
  12624. {
  12625. return *(signal (0, 0)) (0) == 1;
  12626. ;
  12627. return 0;
  12628. }
  12629. _ACEOF
  12630. if ac_fn_c_try_compile "$LINENO"; then :
  12631. ac_cv_type_signal=int
  12632. else
  12633. ac_cv_type_signal=void
  12634. fi
  12635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12636. fi
  12637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  12638. $as_echo "$ac_cv_type_signal" >&6; }
  12639. cat >>confdefs.h <<_ACEOF
  12640. #define RETSIGTYPE $ac_cv_type_signal
  12641. _ACEOF
  12642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  12643. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  12644. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  12645. $as_echo_n "(cached) " >&6
  12646. else
  12647. rm -f conftest.sym conftest.file
  12648. echo >conftest.file
  12649. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  12650. if test "$cross_compiling" = yes; then :
  12651. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12652. else
  12653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12654. /* end confdefs.h. */
  12655. $ac_includes_default
  12656. int
  12657. main ()
  12658. {
  12659. struct stat sbuf;
  12660. /* Linux will dereference the symlink and fail, as required by POSIX.
  12661. That is better in the sense that it means we will not
  12662. have to compile and use the lstat wrapper. */
  12663. return lstat ("conftest.sym/", &sbuf) == 0;
  12664. ;
  12665. return 0;
  12666. }
  12667. _ACEOF
  12668. if ac_fn_c_try_run "$LINENO"; then :
  12669. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  12670. else
  12671. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12672. fi
  12673. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12674. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12675. fi
  12676. else
  12677. # If the `ln -s' command failed, then we probably don't even
  12678. # have an lstat function.
  12679. ac_cv_func_lstat_dereferences_slashed_symlink=no
  12680. fi
  12681. rm -f conftest.sym conftest.file
  12682. fi
  12683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  12684. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  12685. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  12686. cat >>confdefs.h <<_ACEOF
  12687. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  12688. _ACEOF
  12689. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  12690. case " $LIBOBJS " in
  12691. *" lstat.$ac_objext "* ) ;;
  12692. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  12693. ;;
  12694. esac
  12695. fi
  12696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
  12697. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  12698. if ${ac_cv_func_stat_empty_string_bug+:} false; then :
  12699. $as_echo_n "(cached) " >&6
  12700. else
  12701. if test "$cross_compiling" = yes; then :
  12702. ac_cv_func_stat_empty_string_bug=yes
  12703. else
  12704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12705. /* end confdefs.h. */
  12706. $ac_includes_default
  12707. int
  12708. main ()
  12709. {
  12710. struct stat sbuf;
  12711. return stat ("", &sbuf) == 0;
  12712. ;
  12713. return 0;
  12714. }
  12715. _ACEOF
  12716. if ac_fn_c_try_run "$LINENO"; then :
  12717. ac_cv_func_stat_empty_string_bug=no
  12718. else
  12719. ac_cv_func_stat_empty_string_bug=yes
  12720. fi
  12721. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12722. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12723. fi
  12724. fi
  12725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
  12726. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  12727. if test $ac_cv_func_stat_empty_string_bug = yes; then
  12728. case " $LIBOBJS " in
  12729. *" stat.$ac_objext "* ) ;;
  12730. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  12731. ;;
  12732. esac
  12733. cat >>confdefs.h <<_ACEOF
  12734. #define HAVE_STAT_EMPTY_STRING_BUG 1
  12735. _ACEOF
  12736. fi
  12737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
  12738. $as_echo_n "checking for working strcoll... " >&6; }
  12739. if ${ac_cv_func_strcoll_works+:} false; then :
  12740. $as_echo_n "(cached) " >&6
  12741. else
  12742. if test "$cross_compiling" = yes; then :
  12743. ac_cv_func_strcoll_works=no
  12744. else
  12745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12746. /* end confdefs.h. */
  12747. $ac_includes_default
  12748. int
  12749. main ()
  12750. {
  12751. return (strcoll ("abc", "def") >= 0 ||
  12752. strcoll ("ABC", "DEF") >= 0 ||
  12753. strcoll ("123", "456") >= 0)
  12754. ;
  12755. return 0;
  12756. }
  12757. _ACEOF
  12758. if ac_fn_c_try_run "$LINENO"; then :
  12759. ac_cv_func_strcoll_works=yes
  12760. else
  12761. ac_cv_func_strcoll_works=no
  12762. fi
  12763. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12764. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12765. fi
  12766. fi
  12767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
  12768. $as_echo "$ac_cv_func_strcoll_works" >&6; }
  12769. if test $ac_cv_func_strcoll_works = yes; then
  12770. $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
  12771. fi
  12772. for ac_func in strftime
  12773. do :
  12774. ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
  12775. if test "x$ac_cv_func_strftime" = xyes; then :
  12776. cat >>confdefs.h <<_ACEOF
  12777. #define HAVE_STRFTIME 1
  12778. _ACEOF
  12779. else
  12780. # strftime is in -lintl on SCO UNIX.
  12781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
  12782. $as_echo_n "checking for strftime in -lintl... " >&6; }
  12783. if ${ac_cv_lib_intl_strftime+:} false; then :
  12784. $as_echo_n "(cached) " >&6
  12785. else
  12786. ac_check_lib_save_LIBS=$LIBS
  12787. LIBS="-lintl $LIBS"
  12788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12789. /* end confdefs.h. */
  12790. /* Override any GCC internal prototype to avoid an error.
  12791. Use char because int might match the return type of a GCC
  12792. builtin and then its argument prototype would still apply. */
  12793. #ifdef __cplusplus
  12794. extern "C"
  12795. #endif
  12796. char strftime ();
  12797. int
  12798. main ()
  12799. {
  12800. return strftime ();
  12801. ;
  12802. return 0;
  12803. }
  12804. _ACEOF
  12805. if ac_fn_c_try_link "$LINENO"; then :
  12806. ac_cv_lib_intl_strftime=yes
  12807. else
  12808. ac_cv_lib_intl_strftime=no
  12809. fi
  12810. rm -f core conftest.err conftest.$ac_objext \
  12811. conftest$ac_exeext conftest.$ac_ext
  12812. LIBS=$ac_check_lib_save_LIBS
  12813. fi
  12814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
  12815. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  12816. if test "x$ac_cv_lib_intl_strftime" = xyes; then :
  12817. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12818. LIBS="-lintl $LIBS"
  12819. fi
  12820. fi
  12821. done
  12822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
  12823. $as_echo_n "checking for working strnlen... " >&6; }
  12824. if ${ac_cv_func_strnlen_working+:} false; then :
  12825. $as_echo_n "(cached) " >&6
  12826. else
  12827. if test "$cross_compiling" = yes; then :
  12828. # Guess no on AIX systems, yes otherwise.
  12829. case "$host_os" in
  12830. aix*) ac_cv_func_strnlen_working=no;;
  12831. *) ac_cv_func_strnlen_working=yes;;
  12832. esac
  12833. else
  12834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12835. /* end confdefs.h. */
  12836. $ac_includes_default
  12837. int
  12838. main ()
  12839. {
  12840. #define S "foobar"
  12841. #define S_LEN (sizeof S - 1)
  12842. /* At least one implementation is buggy: that of AIX 4.3 would
  12843. give strnlen (S, 1) == 3. */
  12844. int i;
  12845. for (i = 0; i < S_LEN + 1; ++i)
  12846. {
  12847. int expected = i <= S_LEN ? i : S_LEN;
  12848. if (strnlen (S, i) != expected)
  12849. return 1;
  12850. }
  12851. return 0;
  12852. ;
  12853. return 0;
  12854. }
  12855. _ACEOF
  12856. if ac_fn_c_try_run "$LINENO"; then :
  12857. ac_cv_func_strnlen_working=yes
  12858. else
  12859. ac_cv_func_strnlen_working=no
  12860. fi
  12861. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12862. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12863. fi
  12864. fi
  12865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
  12866. $as_echo "$ac_cv_func_strnlen_working" >&6; }
  12867. test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
  12868. *" strnlen.$ac_objext "* ) ;;
  12869. *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
  12870. ;;
  12871. esac
  12872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
  12873. $as_echo_n "checking for working strtod... " >&6; }
  12874. if ${ac_cv_func_strtod+:} false; then :
  12875. $as_echo_n "(cached) " >&6
  12876. else
  12877. if test "$cross_compiling" = yes; then :
  12878. ac_cv_func_strtod=no
  12879. else
  12880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12881. /* end confdefs.h. */
  12882. $ac_includes_default
  12883. #ifndef strtod
  12884. double strtod ();
  12885. #endif
  12886. int
  12887. main()
  12888. {
  12889. {
  12890. /* Some versions of Linux strtod mis-parse strings with leading '+'. */
  12891. char *string = " +69";
  12892. char *term;
  12893. double value;
  12894. value = strtod (string, &term);
  12895. if (value != 69 || term != (string + 4))
  12896. return 1;
  12897. }
  12898. {
  12899. /* Under Solaris 2.4, strtod returns the wrong value for the
  12900. terminating character under some conditions. */
  12901. char *string = "NaN";
  12902. char *term;
  12903. strtod (string, &term);
  12904. if (term != string && *(term - 1) == 0)
  12905. return 1;
  12906. }
  12907. return 0;
  12908. }
  12909. _ACEOF
  12910. if ac_fn_c_try_run "$LINENO"; then :
  12911. ac_cv_func_strtod=yes
  12912. else
  12913. ac_cv_func_strtod=no
  12914. fi
  12915. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12916. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12917. fi
  12918. fi
  12919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
  12920. $as_echo "$ac_cv_func_strtod" >&6; }
  12921. if test $ac_cv_func_strtod = no; then
  12922. case " $LIBOBJS " in
  12923. *" strtod.$ac_objext "* ) ;;
  12924. *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
  12925. ;;
  12926. esac
  12927. ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
  12928. if test "x$ac_cv_func_pow" = xyes; then :
  12929. fi
  12930. if test $ac_cv_func_pow = no; then
  12931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  12932. $as_echo_n "checking for pow in -lm... " >&6; }
  12933. if ${ac_cv_lib_m_pow+:} false; then :
  12934. $as_echo_n "(cached) " >&6
  12935. else
  12936. ac_check_lib_save_LIBS=$LIBS
  12937. LIBS="-lm $LIBS"
  12938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12939. /* end confdefs.h. */
  12940. /* Override any GCC internal prototype to avoid an error.
  12941. Use char because int might match the return type of a GCC
  12942. builtin and then its argument prototype would still apply. */
  12943. #ifdef __cplusplus
  12944. extern "C"
  12945. #endif
  12946. char pow ();
  12947. int
  12948. main ()
  12949. {
  12950. return pow ();
  12951. ;
  12952. return 0;
  12953. }
  12954. _ACEOF
  12955. if ac_fn_c_try_link "$LINENO"; then :
  12956. ac_cv_lib_m_pow=yes
  12957. else
  12958. ac_cv_lib_m_pow=no
  12959. fi
  12960. rm -f core conftest.err conftest.$ac_objext \
  12961. conftest$ac_exeext conftest.$ac_ext
  12962. LIBS=$ac_check_lib_save_LIBS
  12963. fi
  12964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  12965. $as_echo "$ac_cv_lib_m_pow" >&6; }
  12966. if test "x$ac_cv_lib_m_pow" = xyes; then :
  12967. POW_LIB=-lm
  12968. else
  12969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
  12970. $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
  12971. fi
  12972. fi
  12973. fi
  12974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
  12975. $as_echo_n "checking whether utime accepts a null argument... " >&6; }
  12976. if ${ac_cv_func_utime_null+:} false; then :
  12977. $as_echo_n "(cached) " >&6
  12978. else
  12979. rm -f conftest.data; >conftest.data
  12980. # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
  12981. if test "$cross_compiling" = yes; then :
  12982. ac_cv_func_utime_null='guessing yes'
  12983. else
  12984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12985. /* end confdefs.h. */
  12986. $ac_includes_default
  12987. #ifdef HAVE_UTIME_H
  12988. # include <utime.h>
  12989. #endif
  12990. int
  12991. main ()
  12992. {
  12993. struct stat s, t;
  12994. return ! (stat ("conftest.data", &s) == 0
  12995. && utime ("conftest.data", 0) == 0
  12996. && stat ("conftest.data", &t) == 0
  12997. && t.st_mtime >= s.st_mtime
  12998. && t.st_mtime - s.st_mtime < 120);
  12999. ;
  13000. return 0;
  13001. }
  13002. _ACEOF
  13003. if ac_fn_c_try_run "$LINENO"; then :
  13004. ac_cv_func_utime_null=yes
  13005. else
  13006. ac_cv_func_utime_null=no
  13007. fi
  13008. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13009. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13010. fi
  13011. fi
  13012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
  13013. $as_echo "$ac_cv_func_utime_null" >&6; }
  13014. if test "x$ac_cv_func_utime_null" != xno; then
  13015. ac_cv_func_utime_null=yes
  13016. $as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
  13017. fi
  13018. rm -f conftest.data
  13019. for ac_func in vprintf
  13020. do :
  13021. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  13022. if test "x$ac_cv_func_vprintf" = xyes; then :
  13023. cat >>confdefs.h <<_ACEOF
  13024. #define HAVE_VPRINTF 1
  13025. _ACEOF
  13026. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  13027. if test "x$ac_cv_func__doprnt" = xyes; then :
  13028. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  13029. fi
  13030. fi
  13031. done
  13032. for ac_func in asprintf atexit closefrom dup2 eaccess endpwent euidaccess ffsll ftruncate getcwd gethostbyname gethostname getloadavg gettimeofday glob htonll ioperm inet_ntoa isascii memchr memmove memset mkdir mkdtemp munmap ntohll newlocale ppoll putenv re_comp regcomp select setenv socket strcasecmp strcasestr strchr strcspn strdup strerror strlcat strlcpy strncasecmp strndup strnlen strrchr strsep strspn strstr strtod strtol strtold strtoq unsetenv utime vasprintf getpeereid sysctl swapctl
  13033. do :
  13034. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13035. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13036. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13037. cat >>confdefs.h <<_ACEOF
  13038. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13039. _ACEOF
  13040. fi
  13041. done
  13042. # NOTE: we use AC_CHECK_LIB to get -lm into the arguments for later checks,
  13043. # so that AC_CHECK_FUNCS can detect functions in that library.
  13044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
  13045. $as_echo_n "checking for sqrt in -lm... " >&6; }
  13046. if ${ac_cv_lib_m_sqrt+:} false; then :
  13047. $as_echo_n "(cached) " >&6
  13048. else
  13049. ac_check_lib_save_LIBS=$LIBS
  13050. LIBS="-lm $LIBS"
  13051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13052. /* end confdefs.h. */
  13053. /* Override any GCC internal prototype to avoid an error.
  13054. Use char because int might match the return type of a GCC
  13055. builtin and then its argument prototype would still apply. */
  13056. #ifdef __cplusplus
  13057. extern "C"
  13058. #endif
  13059. char sqrt ();
  13060. int
  13061. main ()
  13062. {
  13063. return sqrt ();
  13064. ;
  13065. return 0;
  13066. }
  13067. _ACEOF
  13068. if ac_fn_c_try_link "$LINENO"; then :
  13069. ac_cv_lib_m_sqrt=yes
  13070. else
  13071. ac_cv_lib_m_sqrt=no
  13072. fi
  13073. rm -f core conftest.err conftest.$ac_objext \
  13074. conftest$ac_exeext conftest.$ac_ext
  13075. LIBS=$ac_check_lib_save_LIBS
  13076. fi
  13077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
  13078. $as_echo "$ac_cv_lib_m_sqrt" >&6; }
  13079. if test "x$ac_cv_lib_m_sqrt" = xyes; then :
  13080. cat >>confdefs.h <<_ACEOF
  13081. #define HAVE_LIBM 1
  13082. _ACEOF
  13083. LIBS="-lm $LIBS"
  13084. fi
  13085. # BSD might not have exp2, and/or log2
  13086. for ac_func in exp2 log2 exp10 log10 sin cos tan asin acos atan atan2 pow rint exp log remainder fmod round roundf trunc floor ceil
  13087. do :
  13088. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13089. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13090. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13091. cat >>confdefs.h <<_ACEOF
  13092. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13093. _ACEOF
  13094. fi
  13095. done
  13096. # Certain architectures don't really have long double, even though
  13097. # AC_CHECK_FUNCS would otherwise find the following functions.
  13098. if test "x${ac_cv_type_long_double_wider}" = "xyes" ; then
  13099. for ac_func in exp2l log2l exp10l log10l sinl cosl tanl asinl acosl atanl atan2l powl sqrtl rintl expl logl remainderl fmodl roundl truncl floorl ceill
  13100. do :
  13101. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13102. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13103. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13104. cat >>confdefs.h <<_ACEOF
  13105. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13106. _ACEOF
  13107. fi
  13108. done
  13109. fi
  13110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LLONG_MAX in limits.h" >&5
  13111. $as_echo_n "checking for LLONG_MAX in limits.h... " >&6; }
  13112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13113. /* end confdefs.h. */
  13114. #include <limits.h>
  13115. int
  13116. main ()
  13117. {
  13118. long long foo = LLONG_MAX
  13119. ;
  13120. return 0;
  13121. }
  13122. _ACEOF
  13123. if ac_fn_c_try_link "$LINENO"; then :
  13124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13125. $as_echo "yes" >&6; }
  13126. $as_echo "#define HAVE_LLONG_MAX 1" >>confdefs.h
  13127. else
  13128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13129. $as_echo "no" >&6; }
  13130. fi
  13131. rm -f core conftest.err conftest.$ac_objext \
  13132. conftest$ac_exeext conftest.$ac_ext
  13133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timersub in time.h" >&5
  13134. $as_echo_n "checking for timersub in time.h... " >&6; }
  13135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13136. /* end confdefs.h. */
  13137. #include <sys/time.h>
  13138. int
  13139. main ()
  13140. {
  13141. struct timeval *a; timersub(a, a, a);
  13142. ;
  13143. return 0;
  13144. }
  13145. _ACEOF
  13146. if ac_fn_c_try_link "$LINENO"; then :
  13147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13148. $as_echo "yes" >&6; }
  13149. $as_echo "#define HAVE_TIMERSUB 1" >>confdefs.h
  13150. else
  13151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13152. $as_echo "no" >&6; }
  13153. fi
  13154. rm -f core conftest.err conftest.$ac_objext \
  13155. conftest$ac_exeext conftest.$ac_ext
  13156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of GNU ld that supports the --dynamic-list flag" >&5
  13157. $as_echo_n "checking for a version of GNU ld that supports the --dynamic-list flag... " >&6; }
  13158. old_LDFLAGS=${LDFLAGS}
  13159. cat >conftest.dynamics <<_ACEOF
  13160. {
  13161. *ast_*;
  13162. };
  13163. _ACEOF
  13164. LDFLAGS="${LDFLAGS} -Wl,--dynamic-list,conftest.dynamics"
  13165. PBX_DYNAMIC_LIST=0
  13166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13167. /* end confdefs.h. */
  13168. int
  13169. main ()
  13170. {
  13171. ;
  13172. return 0;
  13173. }
  13174. _ACEOF
  13175. if ac_fn_c_try_link "$LINENO"; then :
  13176. PBX_DYNAMIC_LIST=1
  13177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13178. $as_echo "yes" >&6; }
  13179. else
  13180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13181. $as_echo "no" >&6; }
  13182. fi
  13183. rm -f core conftest.err conftest.$ac_objext \
  13184. conftest$ac_exeext conftest.$ac_ext
  13185. LDFLAGS=${old_LDFLAGS}
  13186. rm -f conftest.dynamics
  13187. ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
  13188. if test "x$ac_cv_header_sys_poll_h" = xyes; then :
  13189. HAS_POLL=1
  13190. $as_echo "#define HAVE_SYS_POLL_H 1" >>confdefs.h
  13191. fi
  13192. # Check whether --enable-internal-poll was given.
  13193. if test "${enable_internal_poll+set}" = set; then :
  13194. enableval=$enable_internal_poll; case "${enableval}" in
  13195. y|ye|yes) HAS_POLL="";;
  13196. n|no) HAS_POLL="${HAS_POLL}" ;;
  13197. *) as_fn_error $? "bad value ${enableval} for --enable-internal-poll" "$LINENO" 5 ;;
  13198. esac
  13199. fi
  13200. # Check whether --enable-asteriskssl was given.
  13201. if test "${enable_asteriskssl+set}" = set; then :
  13202. enableval=$enable_asteriskssl; case "${enableval}" in
  13203. y|ye|yes) AST_ASTERISKSSL=yes ;;
  13204. n|no) AST_ASTERISKSSL=no ;;
  13205. *) as_fn_error $? "bad value ${enableval} for --disable-asteriskssl" "$LINENO" 5 ;;
  13206. esac
  13207. else
  13208. AST_ASTERISKSSL=yes
  13209. fi
  13210. # https support (in main/http.c) uses funopen on BSD systems,
  13211. # fopencookie on linux
  13212. for ac_func in funopen fopencookie
  13213. do :
  13214. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13215. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13216. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13217. cat >>confdefs.h <<_ACEOF
  13218. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13219. _ACEOF
  13220. fi
  13221. done
  13222. for ac_func in inet_aton
  13223. do :
  13224. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  13225. if test "x$ac_cv_func_inet_aton" = xyes; then :
  13226. cat >>confdefs.h <<_ACEOF
  13227. #define HAVE_INET_ATON 1
  13228. _ACEOF
  13229. fi
  13230. done
  13231. # check if we have IP_PKTINFO constant defined
  13232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_PKTINFO" >&5
  13233. $as_echo_n "checking for IP_PKTINFO... " >&6; }
  13234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13235. /* end confdefs.h. */
  13236. #include <netinet/in.h>
  13237. int
  13238. main ()
  13239. {
  13240. int pi = IP_PKTINFO;
  13241. ;
  13242. return 0;
  13243. }
  13244. _ACEOF
  13245. if ac_fn_c_try_link "$LINENO"; then :
  13246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13247. $as_echo "yes" >&6; }
  13248. $as_echo "#define HAVE_PKTINFO 1" >>confdefs.h
  13249. else
  13250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13251. $as_echo "no" >&6; }
  13252. fi
  13253. rm -f core conftest.err conftest.$ac_objext \
  13254. conftest$ac_exeext conftest.$ac_ext
  13255. # some systems already have gethostbyname_r so we don't need to build ours in main/utils.c
  13256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
  13257. $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
  13258. if ${ac_cv_search_gethostbyname_r+:} false; then :
  13259. $as_echo_n "(cached) " >&6
  13260. else
  13261. ac_func_search_save_LIBS=$LIBS
  13262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13263. /* end confdefs.h. */
  13264. /* Override any GCC internal prototype to avoid an error.
  13265. Use char because int might match the return type of a GCC
  13266. builtin and then its argument prototype would still apply. */
  13267. #ifdef __cplusplus
  13268. extern "C"
  13269. #endif
  13270. char gethostbyname_r ();
  13271. int
  13272. main ()
  13273. {
  13274. return gethostbyname_r ();
  13275. ;
  13276. return 0;
  13277. }
  13278. _ACEOF
  13279. for ac_lib in '' socket nsl; do
  13280. if test -z "$ac_lib"; then
  13281. ac_res="none required"
  13282. else
  13283. ac_res=-l$ac_lib
  13284. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13285. fi
  13286. if ac_fn_c_try_link "$LINENO"; then :
  13287. ac_cv_search_gethostbyname_r=$ac_res
  13288. fi
  13289. rm -f core conftest.err conftest.$ac_objext \
  13290. conftest$ac_exeext
  13291. if ${ac_cv_search_gethostbyname_r+:} false; then :
  13292. break
  13293. fi
  13294. done
  13295. if ${ac_cv_search_gethostbyname_r+:} false; then :
  13296. else
  13297. ac_cv_search_gethostbyname_r=no
  13298. fi
  13299. rm conftest.$ac_ext
  13300. LIBS=$ac_func_search_save_LIBS
  13301. fi
  13302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
  13303. $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
  13304. ac_res=$ac_cv_search_gethostbyname_r
  13305. if test "$ac_res" != no; then :
  13306. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13307. fi
  13308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 6 arguments" >&5
  13309. $as_echo_n "checking for gethostbyname_r with 6 arguments... " >&6; }
  13310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13311. /* end confdefs.h. */
  13312. #include <stdlib.h>
  13313. #include <netdb.h>
  13314. int
  13315. main ()
  13316. {
  13317. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (struct hostent **)NULL, (int *)NULL);
  13318. ;
  13319. return 0;
  13320. }
  13321. _ACEOF
  13322. if ac_fn_c_try_link "$LINENO"; then :
  13323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13324. $as_echo "yes" >&6; }
  13325. $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
  13326. else
  13327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13328. $as_echo "no" >&6; }
  13329. fi
  13330. rm -f core conftest.err conftest.$ac_objext \
  13331. conftest$ac_exeext conftest.$ac_ext
  13332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 5 arguments" >&5
  13333. $as_echo_n "checking for gethostbyname_r with 5 arguments... " >&6; }
  13334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13335. /* end confdefs.h. */
  13336. #include <stdlib.h>
  13337. #include <netdb.h>
  13338. int
  13339. main ()
  13340. {
  13341. struct hostent *he = gethostbyname_r((const char *)NULL, (struct hostent *)NULL, (char *)NULL, (int)0, (int *)NULL);
  13342. ;
  13343. return 0;
  13344. }
  13345. _ACEOF
  13346. if ac_fn_c_try_link "$LINENO"; then :
  13347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13348. $as_echo "yes" >&6; }
  13349. $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
  13350. else
  13351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13352. $as_echo "no" >&6; }
  13353. fi
  13354. rm -f core conftest.err conftest.$ac_objext \
  13355. conftest$ac_exeext conftest.$ac_ext
  13356. ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
  13357. if test "x$ac_cv_header_byteswap_h" = xyes; then :
  13358. cat >>confdefs.h <<_ACEOF
  13359. #define HAVE_BYTESWAP_H 1
  13360. _ACEOF
  13361. fi
  13362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
  13363. $as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  13364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13365. /* end confdefs.h. */
  13366. #include <sys/endian.h>
  13367. int
  13368. main ()
  13369. {
  13370. int a = 1; int b = __swap16(a);
  13371. ;
  13372. return 0;
  13373. }
  13374. _ACEOF
  13375. if ac_fn_c_try_link "$LINENO"; then :
  13376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13377. $as_echo "yes" >&6; }
  13378. $as_echo "#define HAVE_SYS_ENDIAN_SWAP16 1" >>confdefs.h
  13379. else
  13380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13381. $as_echo "no" >&6; }
  13382. fi
  13383. rm -f core conftest.err conftest.$ac_objext \
  13384. conftest$ac_exeext conftest.$ac_ext
  13385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
  13386. $as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
  13387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13388. /* end confdefs.h. */
  13389. #include <sys/endian.h>
  13390. int
  13391. main ()
  13392. {
  13393. int a = 1; int b = bswap16(a);
  13394. ;
  13395. return 0;
  13396. }
  13397. _ACEOF
  13398. if ac_fn_c_try_link "$LINENO"; then :
  13399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13400. $as_echo "yes" >&6; }
  13401. $as_echo "#define HAVE_SYS_ENDIAN_BSWAP16 1" >>confdefs.h
  13402. else
  13403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13404. $as_echo "no" >&6; }
  13405. fi
  13406. rm -f core conftest.err conftest.$ac_objext \
  13407. conftest$ac_exeext conftest.$ac_ext
  13408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t in locale.h" >&5
  13409. $as_echo_n "checking for locale_t in locale.h... " >&6; }
  13410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13411. /* end confdefs.h. */
  13412. #include <locale.h>
  13413. int
  13414. main ()
  13415. {
  13416. locale_t lt = NULL
  13417. ;
  13418. return 0;
  13419. }
  13420. _ACEOF
  13421. if ac_fn_c_try_link "$LINENO"; then :
  13422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13423. $as_echo "yes" >&6; }
  13424. $as_echo "#define HAVE_LOCALE_T_IN_LOCALE_H 1" >>confdefs.h
  13425. else
  13426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13427. $as_echo "no" >&6; }
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_t in xlocale.h" >&5
  13429. $as_echo_n "checking for locale_t in xlocale.h... " >&6; }
  13430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13431. /* end confdefs.h. */
  13432. #include <xlocale.h>
  13433. int
  13434. main ()
  13435. {
  13436. locale_t lt = NULL
  13437. ;
  13438. return 0;
  13439. }
  13440. _ACEOF
  13441. if ac_fn_c_try_link "$LINENO"; then :
  13442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13443. $as_echo "yes" >&6; }
  13444. $as_echo "#define HAVE_LOCALE_T_IN_XLOCALE_H 1" >>confdefs.h
  13445. else
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13447. $as_echo "no" >&6; }
  13448. fi
  13449. rm -f core conftest.err conftest.$ac_objext \
  13450. conftest$ac_exeext conftest.$ac_ext
  13451. fi
  13452. rm -f core conftest.err conftest.$ac_objext \
  13453. conftest$ac_exeext conftest.$ac_ext
  13454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_EVTONLY in fcntl.h" >&5
  13455. $as_echo_n "checking for O_EVTONLY in fcntl.h... " >&6; }
  13456. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13457. /* end confdefs.h. */
  13458. #include <fcntl.h>
  13459. int
  13460. main ()
  13461. {
  13462. int a = O_EVTONLY;
  13463. ;
  13464. return 0;
  13465. }
  13466. _ACEOF
  13467. if ac_fn_c_try_link "$LINENO"; then :
  13468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13469. $as_echo "yes" >&6; }
  13470. $as_echo "#define HAVE_O_EVTONLY 1" >>confdefs.h
  13471. else
  13472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13473. $as_echo "no" >&6; }
  13474. fi
  13475. rm -f core conftest.err conftest.$ac_objext \
  13476. conftest$ac_exeext conftest.$ac_ext
  13477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_SYMLINK in fcntl.h" >&5
  13478. $as_echo_n "checking for O_SYMLINK in fcntl.h... " >&6; }
  13479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13480. /* end confdefs.h. */
  13481. #include <fcntl.h>
  13482. int
  13483. main ()
  13484. {
  13485. int a = O_SYMLINK;
  13486. ;
  13487. return 0;
  13488. }
  13489. _ACEOF
  13490. if ac_fn_c_try_link "$LINENO"; then :
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13492. $as_echo "yes" >&6; }
  13493. $as_echo "#define HAVE_O_SYMLINK 1" >>confdefs.h
  13494. else
  13495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13496. $as_echo "no" >&6; }
  13497. fi
  13498. rm -f core conftest.err conftest.$ac_objext \
  13499. conftest$ac_exeext conftest.$ac_ext
  13500. if test "x${PBX_PTHREAD_RWLOCK_INITIALIZER}" != "x1"; then
  13501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h" >&5
  13502. $as_echo_n "checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... " >&6; }
  13503. saved_cppflags="${CPPFLAGS}"
  13504. if test "x${PTHREAD_RWLOCK_INITIALIZER_DIR}" != "x"; then
  13505. PTHREAD_RWLOCK_INITIALIZER_INCLUDE="-I${PTHREAD_RWLOCK_INITIALIZER_DIR}/include"
  13506. fi
  13507. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RWLOCK_INITIALIZER_INCLUDE}"
  13508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13509. /* end confdefs.h. */
  13510. #include <pthread.h>
  13511. int
  13512. main ()
  13513. {
  13514. #if defined(PTHREAD_RWLOCK_INITIALIZER)
  13515. int foo = 0;
  13516. #else
  13517. int foo = bar;
  13518. #endif
  13519. 0
  13520. ;
  13521. return 0;
  13522. }
  13523. _ACEOF
  13524. if ac_fn_c_try_compile "$LINENO"; then :
  13525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13526. $as_echo "yes" >&6; }
  13527. PBX_PTHREAD_RWLOCK_INITIALIZER=1
  13528. $as_echo "#define HAVE_PTHREAD_RWLOCK_INITIALIZER 1" >>confdefs.h
  13529. else
  13530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13531. $as_echo "no" >&6; }
  13532. fi
  13533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13534. CPPFLAGS="${saved_cppflags}"
  13535. fi
  13536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h" >&5
  13537. $as_echo_n "checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... " >&6; }
  13538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13539. /* end confdefs.h. */
  13540. #include <pthread.h>
  13541. int
  13542. main ()
  13543. {
  13544. int a = PTHREAD_RWLOCK_PREFER_WRITER_NP;
  13545. ;
  13546. return 0;
  13547. }
  13548. _ACEOF
  13549. if ac_fn_c_try_link "$LINENO"; then :
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13551. $as_echo "yes" >&6; }
  13552. $as_echo "#define HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NP 1" >>confdefs.h
  13553. else
  13554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13555. $as_echo "no" >&6; }
  13556. fi
  13557. rm -f core conftest.err conftest.$ac_objext \
  13558. conftest$ac_exeext conftest.$ac_ext
  13559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h" >&5
  13560. $as_echo_n "checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... " >&6; }
  13561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13562. /* end confdefs.h. */
  13563. #include <pthread.h>
  13564. int
  13565. main ()
  13566. {
  13567. int a = PTHREAD_MUTEX_RECURSIVE_NP;
  13568. ;
  13569. return 0;
  13570. }
  13571. _ACEOF
  13572. if ac_fn_c_try_link "$LINENO"; then :
  13573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13574. $as_echo "yes" >&6; }
  13575. $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE_NP 1" >>confdefs.h
  13576. else
  13577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13578. $as_echo "no" >&6; }
  13579. fi
  13580. rm -f core conftest.err conftest.$ac_objext \
  13581. conftest$ac_exeext conftest.$ac_ext
  13582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_MUTEX_ADAPTIVE_NP in pthread.h" >&5
  13583. $as_echo_n "checking for PTHREAD_MUTEX_ADAPTIVE_NP in pthread.h... " >&6; }
  13584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13585. /* end confdefs.h. */
  13586. #include <pthread.h>
  13587. int
  13588. main ()
  13589. {
  13590. int a = PTHREAD_MUTEX_ADAPTIVE_NP;
  13591. ;
  13592. return 0;
  13593. }
  13594. _ACEOF
  13595. if ac_fn_c_try_link "$LINENO"; then :
  13596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13597. $as_echo "yes" >&6; }
  13598. $as_echo "#define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP 1" >>confdefs.h
  13599. else
  13600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13601. $as_echo "no" >&6; }
  13602. fi
  13603. rm -f core conftest.err conftest.$ac_objext \
  13604. conftest$ac_exeext conftest.$ac_ext
  13605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_spinlock_t in pthread.h" >&5
  13606. $as_echo_n "checking for pthread_spinlock_t in pthread.h... " >&6; }
  13607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13608. /* end confdefs.h. */
  13609. #include <pthread.h>
  13610. int
  13611. main ()
  13612. {
  13613. pthread_spinlock_t spin;
  13614. ;
  13615. return 0;
  13616. }
  13617. _ACEOF
  13618. if ac_fn_c_try_link "$LINENO"; then :
  13619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13620. $as_echo "yes" >&6; }
  13621. $as_echo "#define HAVE_PTHREAD_SPINLOCK 1" >>confdefs.h
  13622. else
  13623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13624. $as_echo "no" >&6; }
  13625. fi
  13626. rm -f core conftest.err conftest.$ac_objext \
  13627. conftest$ac_exeext conftest.$ac_ext
  13628. save_LIBS="$LIBS"
  13629. save_CFLAGS="$CFLAGS"
  13630. LIBS="$PTHREAD_LIBS $LIBS"
  13631. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_timedwrlock() in pthread.h" >&5
  13633. $as_echo_n "checking for pthread_rwlock_timedwrlock() in pthread.h... " >&6; }
  13634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13635. /* end confdefs.h. */
  13636. #include <pthread.h>
  13637. #include <time.h>
  13638. int
  13639. main ()
  13640. {
  13641. pthread_rwlock_t foo; struct timespec bar; pthread_rwlock_timedwrlock(&foo, &bar)
  13642. ;
  13643. return 0;
  13644. }
  13645. _ACEOF
  13646. if ac_fn_c_try_link "$LINENO"; then :
  13647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13648. $as_echo "yes" >&6; }
  13649. ac_cv_pthread_rwlock_timedwrlock="yes"
  13650. else
  13651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13652. $as_echo "no" >&6; }
  13653. ac_cv_pthread_rwlock_timedwrlock="no"
  13654. fi
  13655. rm -f core conftest.err conftest.$ac_objext \
  13656. conftest$ac_exeext conftest.$ac_ext
  13657. # Some platforms define sem_init(), but only support sem_open(). joyous.
  13658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working unnamed semaphores" >&5
  13659. $as_echo_n "checking for working unnamed semaphores... " >&6; }
  13660. if test "$cross_compiling" = yes; then :
  13661. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13662. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13663. as_fn_error $? "cannot run test program while cross compiling
  13664. See \`config.log' for more details" "$LINENO" 5; }
  13665. else
  13666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13667. /* end confdefs.h. */
  13668. #include <semaphore.h>
  13669. int
  13670. main ()
  13671. {
  13672. sem_t sem; return sem_init(&sem, 0, 0);
  13673. ;
  13674. return 0;
  13675. }
  13676. _ACEOF
  13677. if ac_fn_c_try_run "$LINENO"; then :
  13678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13679. $as_echo "yes" >&6; }
  13680. $as_echo "#define HAS_WORKING_SEMAPHORE 1" >>confdefs.h
  13681. else
  13682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13683. $as_echo "no" >&6; }
  13684. fi
  13685. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13686. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13687. fi
  13688. LIBS="$save_LIBS"
  13689. CFLAGS="$save_CFLAGS"
  13690. if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then
  13691. $as_echo "#define HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK 1" >>confdefs.h
  13692. fi
  13693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_ONCE_INIT needs braces" >&5
  13694. $as_echo_n "checking if PTHREAD_ONCE_INIT needs braces... " >&6; }
  13695. saved_CFLAGS="${CFLAGS}"
  13696. CFLAGS="${CFLAGS} -Werror -Wmissing-braces"
  13697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13698. /* end confdefs.h. */
  13699. #include <pthread.h>
  13700. void empty(){}
  13701. int
  13702. main ()
  13703. {
  13704. pthread_once_t once = PTHREAD_ONCE_INIT; pthread_once(&once, empty);
  13705. ;
  13706. return 0;
  13707. }
  13708. _ACEOF
  13709. if ac_fn_c_try_compile "$LINENO"; then :
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13711. $as_echo "no" >&6; }
  13712. ac_cv_pthread_once_needsbraces="no"
  13713. else
  13714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13715. $as_echo "yes" >&6; }
  13716. ac_cv_pthread_once_needsbraces="yes"
  13717. fi
  13718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13719. CFLAGS="${saved_CFLAGS}"
  13720. if test "${ac_cv_pthread_once_needsbraces}" = "yes"; then
  13721. $as_echo "#define PTHREAD_ONCE_INIT_NEEDS_BRACES 1" >>confdefs.h
  13722. fi
  13723. if test "x${PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP}" != "x1"; then
  13724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h" >&5
  13725. $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... " >&6; }
  13726. saved_cppflags="${CPPFLAGS}"
  13727. if test "x${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}" != "x"; then
  13728. PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE="-I${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_DIR}/include"
  13729. fi
  13730. CPPFLAGS="${CPPFLAGS} ${PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP_INCLUDE}"
  13731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13732. /* end confdefs.h. */
  13733. #include <pthread.h>
  13734. int
  13735. main ()
  13736. {
  13737. #if defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
  13738. int foo = 0;
  13739. #else
  13740. int foo = bar;
  13741. #endif
  13742. 0
  13743. ;
  13744. return 0;
  13745. }
  13746. _ACEOF
  13747. if ac_fn_c_try_compile "$LINENO"; then :
  13748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13749. $as_echo "yes" >&6; }
  13750. PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP=1
  13751. $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP 1" >>confdefs.h
  13752. else
  13753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13754. $as_echo "no" >&6; }
  13755. fi
  13756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13757. CPPFLAGS="${saved_cppflags}"
  13758. fi
  13759. # Can we compare a mutex to its initial value?
  13760. # Generally yes on OpenBSD/FreeBSD and no on Mac OS X.
  13761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can compare a mutex to its initial value" >&5
  13762. $as_echo_n "checking whether we can compare a mutex to its initial value... " >&6; }
  13763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13764. /* end confdefs.h. */
  13765. #include <pthread.h>
  13766. int
  13767. main ()
  13768. {
  13769. pthread_mutex_t lock;
  13770. if ((lock) != ((pthread_mutex_t) PTHREAD_MUTEX_INITIALIZER)) {
  13771. return 0;
  13772. }
  13773. return 0
  13774. ;
  13775. return 0;
  13776. }
  13777. _ACEOF
  13778. if ac_fn_c_try_link "$LINENO"; then :
  13779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13780. $as_echo "yes" >&6; }
  13781. $as_echo "#define CAN_COMPARE_MUTEX_TO_INIT_VALUE 1" >>confdefs.h
  13782. else
  13783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13784. $as_echo "no" >&6; }
  13785. fi
  13786. rm -f core conftest.err conftest.$ac_objext \
  13787. conftest$ac_exeext conftest.$ac_ext
  13788. #if test "${cross_compiling}" = "no";
  13789. #then
  13790. #AC_MSG_CHECKING(for working epoll support)
  13791. #AC_LINK_IFELSE(
  13792. #AC_LANG_PROGRAM([#include <sys/epoll.h>], [int res = epoll_create(10);
  13793. # if (res < 0)
  13794. # return 1;
  13795. # close (res);
  13796. # return 0;]),
  13797. #AC_MSG_RESULT(yes)
  13798. #AC_DEFINE([HAVE_EPOLL], 1, [Define to 1 if your system has working epoll support.]),
  13799. #AC_MSG_RESULT(no)
  13800. #)
  13801. #fi
  13802. # for FreeBSD thr_self
  13803. for ac_header in sys/thr.h
  13804. do :
  13805. ac_fn_c_check_header_mongrel "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "$ac_includes_default"
  13806. if test "x$ac_cv_header_sys_thr_h" = xyes; then :
  13807. cat >>confdefs.h <<_ACEOF
  13808. #define HAVE_SYS_THR_H 1
  13809. _ACEOF
  13810. fi
  13811. done
  13812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler atomic operations" >&5
  13813. $as_echo_n "checking for compiler atomic operations... " >&6; }
  13814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13815. /* end confdefs.h. */
  13816. int
  13817. main ()
  13818. {
  13819. int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
  13820. ;
  13821. return 0;
  13822. }
  13823. _ACEOF
  13824. if ac_fn_c_try_link "$LINENO"; then :
  13825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13826. $as_echo "yes" >&6; }
  13827. $as_echo "#define HAVE_GCC_ATOMICS 1" >>confdefs.h
  13828. else
  13829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13830. $as_echo "no" >&6; }
  13831. fi
  13832. rm -f core conftest.err conftest.$ac_objext \
  13833. conftest$ac_exeext conftest.$ac_ext
  13834. # glibc, AFAIK, is the only C library that makes printing a NULL to a string safe.
  13835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your system printf is NULL-safe." >&5
  13836. $as_echo_n "checking if your system printf is NULL-safe.... " >&6; }
  13837. if test "$cross_compiling" = yes; then :
  13838. # It's unlikely an embedded system will have this.
  13839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  13840. $as_echo "unknown" >&6; }
  13841. else
  13842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13843. /* end confdefs.h. */
  13844. #include <stdio.h>
  13845. int
  13846. main ()
  13847. {
  13848. printf("%s", NULL)
  13849. ;
  13850. return 0;
  13851. }
  13852. _ACEOF
  13853. if ac_fn_c_try_run "$LINENO"; then :
  13854. $as_echo "#define HAVE_NULLSAFE_PRINTF 1" >>confdefs.h
  13855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13856. $as_echo "yes" >&6; }
  13857. else
  13858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13859. $as_echo "no" >&6; }
  13860. fi
  13861. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13862. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13863. fi
  13864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can increase the maximum select-able file descriptor" >&5
  13865. $as_echo_n "checking if we can increase the maximum select-able file descriptor... " >&6; }
  13866. if test "$cross_compiling" = yes; then :
  13867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compile" >&5
  13868. $as_echo "cross-compile" >&6; }
  13869. else
  13870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13871. /* end confdefs.h. */
  13872. #include <stdio.h>
  13873. #include <sys/select.h>
  13874. #include <sys/time.h>
  13875. #include <sys/resource.h>
  13876. #include <string.h>
  13877. #include <errno.h>
  13878. #include <stdlib.h>
  13879. #include <sys/types.h>
  13880. #include <sys/stat.h>
  13881. #include <fcntl.h>
  13882. #include <unistd.h>
  13883. int
  13884. main ()
  13885. {
  13886. struct rlimit rlim = { FD_SETSIZE * 2, FD_SETSIZE * 2 };
  13887. int fd0, fd1;
  13888. struct timeval tv = { 0, };
  13889. struct ast_fdset { long fds_bits[[1024]]; } fds = { { 0, } };
  13890. if (setrlimit(RLIMIT_NOFILE, &rlim)) { exit(1); }
  13891. if ((fd0 = open("/dev/null", O_RDONLY)) < 0) { exit(1); }
  13892. if (dup2(fd0, (fd1 = FD_SETSIZE + 1)) < 0) { exit(1); }
  13893. FD_SET(fd0, (fd_set *) &fds);
  13894. FD_SET(fd1, (fd_set *) &fds);
  13895. if (select(FD_SETSIZE + 2, (fd_set *) &fds, NULL, NULL, &tv) < 0) { exit(1); }
  13896. exit(0)
  13897. ;
  13898. return 0;
  13899. }
  13900. _ACEOF
  13901. if ac_fn_c_try_run "$LINENO"; then :
  13902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13903. $as_echo "yes" >&6; }
  13904. $as_echo "#define HAVE_VARIABLE_FDSET 1" >>confdefs.h
  13905. else
  13906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13907. $as_echo "no" >&6; }
  13908. fi
  13909. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13910. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13911. fi
  13912. if test "${ac_cv_have_variable_fdset}x" = "0x"; then
  13913. if test "$cross_compiling" = yes; then :
  13914. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13915. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13916. as_fn_error $? "cannot run test program while cross compiling
  13917. See \`config.log' for more details" "$LINENO" 5; }
  13918. else
  13919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13920. /* end confdefs.h. */
  13921. #include <unistd.h>
  13922. #include <sys/types.h>
  13923. #include <stdlib.h>
  13924. int
  13925. main ()
  13926. {
  13927. if (getuid() != 0) { exit(1); }
  13928. ;
  13929. return 0;
  13930. }
  13931. _ACEOF
  13932. if ac_fn_c_try_run "$LINENO"; then :
  13933. $as_echo "#define CONFIGURE_RAN_AS_ROOT 1" >>confdefs.h
  13934. fi
  13935. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13936. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13937. fi
  13938. fi
  13939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute pure' support" >&5
  13940. $as_echo_n "checking for compiler 'attribute pure' support... " >&6; }
  13941. saved_CFLAGS="$CFLAGS"
  13942. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13943. if test "x" = "x"
  13944. then
  13945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13946. /* end confdefs.h. */
  13947. void __attribute__((pure)) *test(void *muffin, ...) {return (void *) 0;}
  13948. int
  13949. main ()
  13950. {
  13951. ;
  13952. return 0;
  13953. }
  13954. _ACEOF
  13955. if ac_fn_c_try_compile "$LINENO"; then :
  13956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13957. $as_echo "yes" >&6; }
  13958. cat >>confdefs.h <<_ACEOF
  13959. #define HAVE_ATTRIBUTE_pure 1
  13960. _ACEOF
  13961. else
  13962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13963. $as_echo "no" >&6; }
  13964. fi
  13965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13966. else
  13967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13968. /* end confdefs.h. */
  13969. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  13970. int
  13971. main ()
  13972. {
  13973. ;
  13974. return 0;
  13975. }
  13976. _ACEOF
  13977. if ac_fn_c_try_compile "$LINENO"; then :
  13978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13979. $as_echo "yes" >&6; }
  13980. cat >>confdefs.h <<_ACEOF
  13981. #define HAVE_ATTRIBUTE_pure 1
  13982. _ACEOF
  13983. else
  13984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13985. $as_echo "no" >&6; }
  13986. fi
  13987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13988. fi
  13989. CFLAGS="$saved_CFLAGS"
  13990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute malloc' support" >&5
  13991. $as_echo_n "checking for compiler 'attribute malloc' support... " >&6; }
  13992. saved_CFLAGS="$CFLAGS"
  13993. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  13994. if test "x" = "x"
  13995. then
  13996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13997. /* end confdefs.h. */
  13998. void __attribute__((malloc)) *test(void *muffin, ...) {return (void *) 0;}
  13999. int
  14000. main ()
  14001. {
  14002. ;
  14003. return 0;
  14004. }
  14005. _ACEOF
  14006. if ac_fn_c_try_compile "$LINENO"; then :
  14007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14008. $as_echo "yes" >&6; }
  14009. cat >>confdefs.h <<_ACEOF
  14010. #define HAVE_ATTRIBUTE_malloc 1
  14011. _ACEOF
  14012. else
  14013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14014. $as_echo "no" >&6; }
  14015. fi
  14016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14017. else
  14018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14019. /* end confdefs.h. */
  14020. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14021. int
  14022. main ()
  14023. {
  14024. ;
  14025. return 0;
  14026. }
  14027. _ACEOF
  14028. if ac_fn_c_try_compile "$LINENO"; then :
  14029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14030. $as_echo "yes" >&6; }
  14031. cat >>confdefs.h <<_ACEOF
  14032. #define HAVE_ATTRIBUTE_malloc 1
  14033. _ACEOF
  14034. else
  14035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14036. $as_echo "no" >&6; }
  14037. fi
  14038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14039. fi
  14040. CFLAGS="$saved_CFLAGS"
  14041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute const' support" >&5
  14042. $as_echo_n "checking for compiler 'attribute const' support... " >&6; }
  14043. saved_CFLAGS="$CFLAGS"
  14044. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14045. if test "x" = "x"
  14046. then
  14047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14048. /* end confdefs.h. */
  14049. void __attribute__((const)) *test(void *muffin, ...) {return (void *) 0;}
  14050. int
  14051. main ()
  14052. {
  14053. ;
  14054. return 0;
  14055. }
  14056. _ACEOF
  14057. if ac_fn_c_try_compile "$LINENO"; then :
  14058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14059. $as_echo "yes" >&6; }
  14060. cat >>confdefs.h <<_ACEOF
  14061. #define HAVE_ATTRIBUTE_const 1
  14062. _ACEOF
  14063. else
  14064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14065. $as_echo "no" >&6; }
  14066. fi
  14067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14068. else
  14069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14070. /* end confdefs.h. */
  14071. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14072. int
  14073. main ()
  14074. {
  14075. ;
  14076. return 0;
  14077. }
  14078. _ACEOF
  14079. if ac_fn_c_try_compile "$LINENO"; then :
  14080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14081. $as_echo "yes" >&6; }
  14082. cat >>confdefs.h <<_ACEOF
  14083. #define HAVE_ATTRIBUTE_const 1
  14084. _ACEOF
  14085. else
  14086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14087. $as_echo "no" >&6; }
  14088. fi
  14089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14090. fi
  14091. CFLAGS="$saved_CFLAGS"
  14092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute unused' support" >&5
  14093. $as_echo_n "checking for compiler 'attribute unused' support... " >&6; }
  14094. saved_CFLAGS="$CFLAGS"
  14095. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14096. if test "x" = "x"
  14097. then
  14098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14099. /* end confdefs.h. */
  14100. void __attribute__((unused)) *test(void *muffin, ...) {return (void *) 0;}
  14101. int
  14102. main ()
  14103. {
  14104. ;
  14105. return 0;
  14106. }
  14107. _ACEOF
  14108. if ac_fn_c_try_compile "$LINENO"; then :
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14110. $as_echo "yes" >&6; }
  14111. cat >>confdefs.h <<_ACEOF
  14112. #define HAVE_ATTRIBUTE_unused 1
  14113. _ACEOF
  14114. else
  14115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14116. $as_echo "no" >&6; }
  14117. fi
  14118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14119. else
  14120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14121. /* end confdefs.h. */
  14122. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14123. int
  14124. main ()
  14125. {
  14126. ;
  14127. return 0;
  14128. }
  14129. _ACEOF
  14130. if ac_fn_c_try_compile "$LINENO"; then :
  14131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14132. $as_echo "yes" >&6; }
  14133. cat >>confdefs.h <<_ACEOF
  14134. #define HAVE_ATTRIBUTE_unused 1
  14135. _ACEOF
  14136. else
  14137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14138. $as_echo "no" >&6; }
  14139. fi
  14140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14141. fi
  14142. CFLAGS="$saved_CFLAGS"
  14143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute always_inline' support" >&5
  14144. $as_echo_n "checking for compiler 'attribute always_inline' support... " >&6; }
  14145. saved_CFLAGS="$CFLAGS"
  14146. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14147. if test "x" = "x"
  14148. then
  14149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14150. /* end confdefs.h. */
  14151. void __attribute__((always_inline)) *test(void *muffin, ...) {return (void *) 0;}
  14152. int
  14153. main ()
  14154. {
  14155. ;
  14156. return 0;
  14157. }
  14158. _ACEOF
  14159. if ac_fn_c_try_compile "$LINENO"; then :
  14160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14161. $as_echo "yes" >&6; }
  14162. cat >>confdefs.h <<_ACEOF
  14163. #define HAVE_ATTRIBUTE_always_inline 1
  14164. _ACEOF
  14165. else
  14166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14167. $as_echo "no" >&6; }
  14168. fi
  14169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14170. else
  14171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14172. /* end confdefs.h. */
  14173. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14174. int
  14175. main ()
  14176. {
  14177. ;
  14178. return 0;
  14179. }
  14180. _ACEOF
  14181. if ac_fn_c_try_compile "$LINENO"; then :
  14182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14183. $as_echo "yes" >&6; }
  14184. cat >>confdefs.h <<_ACEOF
  14185. #define HAVE_ATTRIBUTE_always_inline 1
  14186. _ACEOF
  14187. else
  14188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14189. $as_echo "no" >&6; }
  14190. fi
  14191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14192. fi
  14193. CFLAGS="$saved_CFLAGS"
  14194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute deprecated' support" >&5
  14195. $as_echo_n "checking for compiler 'attribute deprecated' support... " >&6; }
  14196. saved_CFLAGS="$CFLAGS"
  14197. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14198. if test "x" = "x"
  14199. then
  14200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14201. /* end confdefs.h. */
  14202. void __attribute__((deprecated)) *test(void *muffin, ...) {return (void *) 0;}
  14203. int
  14204. main ()
  14205. {
  14206. ;
  14207. return 0;
  14208. }
  14209. _ACEOF
  14210. if ac_fn_c_try_compile "$LINENO"; then :
  14211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14212. $as_echo "yes" >&6; }
  14213. cat >>confdefs.h <<_ACEOF
  14214. #define HAVE_ATTRIBUTE_deprecated 1
  14215. _ACEOF
  14216. else
  14217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14218. $as_echo "no" >&6; }
  14219. fi
  14220. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14221. else
  14222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14223. /* end confdefs.h. */
  14224. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14225. int
  14226. main ()
  14227. {
  14228. ;
  14229. return 0;
  14230. }
  14231. _ACEOF
  14232. if ac_fn_c_try_compile "$LINENO"; then :
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14234. $as_echo "yes" >&6; }
  14235. cat >>confdefs.h <<_ACEOF
  14236. #define HAVE_ATTRIBUTE_deprecated 1
  14237. _ACEOF
  14238. else
  14239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14240. $as_echo "no" >&6; }
  14241. fi
  14242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14243. fi
  14244. CFLAGS="$saved_CFLAGS"
  14245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute sentinel' support" >&5
  14246. $as_echo_n "checking for compiler 'attribute sentinel' support... " >&6; }
  14247. saved_CFLAGS="$CFLAGS"
  14248. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14249. if test "x" = "x"
  14250. then
  14251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14252. /* end confdefs.h. */
  14253. void __attribute__((sentinel)) *test(void *muffin, ...) {return (void *) 0;}
  14254. int
  14255. main ()
  14256. {
  14257. ;
  14258. return 0;
  14259. }
  14260. _ACEOF
  14261. if ac_fn_c_try_compile "$LINENO"; then :
  14262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14263. $as_echo "yes" >&6; }
  14264. cat >>confdefs.h <<_ACEOF
  14265. #define HAVE_ATTRIBUTE_sentinel 1
  14266. _ACEOF
  14267. else
  14268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14269. $as_echo "no" >&6; }
  14270. fi
  14271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14272. else
  14273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14274. /* end confdefs.h. */
  14275. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14276. int
  14277. main ()
  14278. {
  14279. ;
  14280. return 0;
  14281. }
  14282. _ACEOF
  14283. if ac_fn_c_try_compile "$LINENO"; then :
  14284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14285. $as_echo "yes" >&6; }
  14286. cat >>confdefs.h <<_ACEOF
  14287. #define HAVE_ATTRIBUTE_sentinel 1
  14288. _ACEOF
  14289. else
  14290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14291. $as_echo "no" >&6; }
  14292. fi
  14293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14294. fi
  14295. CFLAGS="$saved_CFLAGS"
  14296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute warn_unused_result' support" >&5
  14297. $as_echo_n "checking for compiler 'attribute warn_unused_result' support... " >&6; }
  14298. saved_CFLAGS="$CFLAGS"
  14299. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14300. if test "x" = "x"
  14301. then
  14302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14303. /* end confdefs.h. */
  14304. void __attribute__((warn_unused_result)) *test(void *muffin, ...) {return (void *) 0;}
  14305. int
  14306. main ()
  14307. {
  14308. ;
  14309. return 0;
  14310. }
  14311. _ACEOF
  14312. if ac_fn_c_try_compile "$LINENO"; then :
  14313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14314. $as_echo "yes" >&6; }
  14315. cat >>confdefs.h <<_ACEOF
  14316. #define HAVE_ATTRIBUTE_warn_unused_result 1
  14317. _ACEOF
  14318. else
  14319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14320. $as_echo "no" >&6; }
  14321. fi
  14322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14323. else
  14324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14325. /* end confdefs.h. */
  14326. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14327. int
  14328. main ()
  14329. {
  14330. ;
  14331. return 0;
  14332. }
  14333. _ACEOF
  14334. if ac_fn_c_try_compile "$LINENO"; then :
  14335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14336. $as_echo "yes" >&6; }
  14337. cat >>confdefs.h <<_ACEOF
  14338. #define HAVE_ATTRIBUTE_warn_unused_result 1
  14339. _ACEOF
  14340. else
  14341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14342. $as_echo "no" >&6; }
  14343. fi
  14344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14345. fi
  14346. CFLAGS="$saved_CFLAGS"
  14347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute may_alias' support" >&5
  14348. $as_echo_n "checking for compiler 'attribute may_alias' support... " >&6; }
  14349. saved_CFLAGS="$CFLAGS"
  14350. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14351. if test "x" = "x"
  14352. then
  14353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14354. /* end confdefs.h. */
  14355. void __attribute__((may_alias)) *test(void *muffin, ...) {return (void *) 0;}
  14356. int
  14357. main ()
  14358. {
  14359. ;
  14360. return 0;
  14361. }
  14362. _ACEOF
  14363. if ac_fn_c_try_compile "$LINENO"; then :
  14364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14365. $as_echo "yes" >&6; }
  14366. cat >>confdefs.h <<_ACEOF
  14367. #define HAVE_ATTRIBUTE_may_alias 1
  14368. _ACEOF
  14369. else
  14370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14371. $as_echo "no" >&6; }
  14372. fi
  14373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14374. else
  14375. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14376. /* end confdefs.h. */
  14377. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14378. int
  14379. main ()
  14380. {
  14381. ;
  14382. return 0;
  14383. }
  14384. _ACEOF
  14385. if ac_fn_c_try_compile "$LINENO"; then :
  14386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14387. $as_echo "yes" >&6; }
  14388. cat >>confdefs.h <<_ACEOF
  14389. #define HAVE_ATTRIBUTE_may_alias 1
  14390. _ACEOF
  14391. else
  14392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14393. $as_echo "no" >&6; }
  14394. fi
  14395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14396. fi
  14397. CFLAGS="$saved_CFLAGS"
  14398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute constructor' support" >&5
  14399. $as_echo_n "checking for compiler 'attribute constructor' support... " >&6; }
  14400. saved_CFLAGS="$CFLAGS"
  14401. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14402. if test "x" = "x"
  14403. then
  14404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14405. /* end confdefs.h. */
  14406. void __attribute__((constructor)) *test(void *muffin, ...) {return (void *) 0;}
  14407. int
  14408. main ()
  14409. {
  14410. ;
  14411. return 0;
  14412. }
  14413. _ACEOF
  14414. if ac_fn_c_try_compile "$LINENO"; then :
  14415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14416. $as_echo "yes" >&6; }
  14417. cat >>confdefs.h <<_ACEOF
  14418. #define HAVE_ATTRIBUTE_constructor 1
  14419. _ACEOF
  14420. else
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14422. $as_echo "no" >&6; }
  14423. fi
  14424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14425. else
  14426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14427. /* end confdefs.h. */
  14428. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14429. int
  14430. main ()
  14431. {
  14432. ;
  14433. return 0;
  14434. }
  14435. _ACEOF
  14436. if ac_fn_c_try_compile "$LINENO"; then :
  14437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14438. $as_echo "yes" >&6; }
  14439. cat >>confdefs.h <<_ACEOF
  14440. #define HAVE_ATTRIBUTE_constructor 1
  14441. _ACEOF
  14442. else
  14443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14444. $as_echo "no" >&6; }
  14445. fi
  14446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14447. fi
  14448. CFLAGS="$saved_CFLAGS"
  14449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler 'attribute destructor' support" >&5
  14450. $as_echo_n "checking for compiler 'attribute destructor' support... " >&6; }
  14451. saved_CFLAGS="$CFLAGS"
  14452. CFLAGS="$CFLAGS -Wall -Wno-unused -Werror"
  14453. if test "x" = "x"
  14454. then
  14455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14456. /* end confdefs.h. */
  14457. void __attribute__((destructor)) *test(void *muffin, ...) {return (void *) 0;}
  14458. int
  14459. main ()
  14460. {
  14461. ;
  14462. return 0;
  14463. }
  14464. _ACEOF
  14465. if ac_fn_c_try_compile "$LINENO"; then :
  14466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14467. $as_echo "yes" >&6; }
  14468. cat >>confdefs.h <<_ACEOF
  14469. #define HAVE_ATTRIBUTE_destructor 1
  14470. _ACEOF
  14471. else
  14472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14473. $as_echo "no" >&6; }
  14474. fi
  14475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14476. else
  14477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14478. /* end confdefs.h. */
  14479. void __attribute__(()) *test(void *muffin, ...) {return (void *) 0;}
  14480. int
  14481. main ()
  14482. {
  14483. ;
  14484. return 0;
  14485. }
  14486. _ACEOF
  14487. if ac_fn_c_try_compile "$LINENO"; then :
  14488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14489. $as_echo "yes" >&6; }
  14490. cat >>confdefs.h <<_ACEOF
  14491. #define HAVE_ATTRIBUTE_destructor 1
  14492. _ACEOF
  14493. else
  14494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14495. $as_echo "no" >&6; }
  14496. fi
  14497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14498. fi
  14499. CFLAGS="$saved_CFLAGS"
  14500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ffunction-sections support" >&5
  14501. $as_echo_n "checking for -ffunction-sections support... " >&6; }
  14502. saved_CFLAGS="${CFLAGS}"
  14503. CFLAGS="${CFLAGS} -ffunction-sections"
  14504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14505. /* end confdefs.h. */
  14506. int
  14507. main ()
  14508. {
  14509. int x = 1;
  14510. ;
  14511. return 0;
  14512. }
  14513. _ACEOF
  14514. if ac_fn_c_try_compile "$LINENO"; then :
  14515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14516. $as_echo "yes" >&6; }
  14517. saved_LDFLAGS="${LDFLAGS}"
  14518. LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
  14519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --gc-sections support" >&5
  14520. $as_echo_n "checking for --gc-sections support... " >&6; }
  14521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14522. /* end confdefs.h. */
  14523. int
  14524. main ()
  14525. {
  14526. int x = 1;
  14527. ;
  14528. return 0;
  14529. }
  14530. _ACEOF
  14531. if ac_fn_c_try_link "$LINENO"; then :
  14532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14533. $as_echo "yes" >&6; }
  14534. GC_CFLAGS="-ffunction-sections"
  14535. GC_LDFLAGS="-Wl,--gc-sections"
  14536. else
  14537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14538. $as_echo "no" >&6; }
  14539. fi
  14540. rm -f core conftest.err conftest.$ac_objext \
  14541. conftest$ac_exeext conftest.$ac_ext
  14542. LDFLAGS="${saved_LDFLAGS}"
  14543. else
  14544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14545. $as_echo "no" >&6; }
  14546. fi
  14547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14548. CFLAGS="${saved_CFLAGS}"
  14549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wdeclaration-after-statement support" >&5
  14550. $as_echo_n "checking for -Wdeclaration-after-statement support... " >&6; }
  14551. if $(${CC} -Wdeclaration-after-statement -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  14552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14553. $as_echo "yes" >&6; }
  14554. AST_DECLARATION_AFTER_STATEMENT=-Wdeclaration-after-statement
  14555. else
  14556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14557. $as_echo "no" >&6; }
  14558. AST_DECLARATION_AFTER_STATEMENT=
  14559. fi
  14560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wtrampolines support" >&5
  14561. $as_echo_n "checking for -Wtrampolines support... " >&6; }
  14562. if $(${CC} -Wtrampolines -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  14563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14564. $as_echo "yes" >&6; }
  14565. AST_TRAMPOLINES=-Wtrampolines
  14566. else
  14567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14568. $as_echo "no" >&6; }
  14569. AST_TRAMPOLINES=
  14570. fi
  14571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE support" >&5
  14572. $as_echo_n "checking for _FORTIFY_SOURCE support... " >&6; }
  14573. if $(${CC} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  14574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14575. $as_echo "yes" >&6; }
  14576. AST_FORTIFY_SOURCE="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
  14577. else
  14578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14579. $as_echo "no" >&6; }
  14580. AST_FORTIFY_SOURCE=
  14581. fi
  14582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-strict-overflow" >&5
  14583. $as_echo_n "checking for -fno-strict-overflow... " >&6; }
  14584. if $(${CC} -O2 -fno-strict-overflow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  14585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14586. $as_echo "yes" >&6; }
  14587. AST_NO_STRICT_OVERFLOW=-fno-strict-overflow
  14588. else
  14589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14590. $as_echo "no" >&6; }
  14591. AST_NO_STRICT_OVERFLOW=
  14592. fi
  14593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wshadow" >&5
  14594. $as_echo_n "checking for -Wshadow... " >&6; }
  14595. if $(${CC} -Wshadow -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  14596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14597. $as_echo "yes" >&6; }
  14598. AST_SHADOW_WARNINGS=-Wshadow
  14599. else
  14600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14601. $as_echo "no" >&6; }
  14602. AST_SHADOW_WARNINGS=
  14603. fi
  14604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -march=native support" >&5
  14605. $as_echo_n "checking for -march=native support... " >&6; }
  14606. if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
  14607. if test "${CONFIG_CFLAGS}" = ""; then
  14608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14609. $as_echo "yes" >&6; }
  14610. AST_NATIVE_ARCH=1
  14611. else
  14612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: user CFLAGS present" >&5
  14613. $as_echo "user CFLAGS present" >&6; }
  14614. AST_NATIVE_ARCH=
  14615. fi
  14616. else
  14617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14618. $as_echo "no" >&6; }
  14619. AST_NATIVE_ARCH=
  14620. fi
  14621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fnested-functions" >&5
  14622. $as_echo_n "checking for -fnested-functions... " >&6; }
  14623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14624. /* end confdefs.h. */
  14625. int
  14626. main ()
  14627. {
  14628. auto void foo(void); void foo(void) {}
  14629. ;
  14630. return 0;
  14631. }
  14632. _ACEOF
  14633. if ac_fn_c_try_compile "$LINENO"; then :
  14634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14635. $as_echo "no" >&6; }
  14636. AST_NESTED_FUNCTIONS=
  14637. else
  14638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: required" >&5
  14639. $as_echo "required" >&6; }
  14640. AST_NESTED_FUNCTIONS=-fnested-functions
  14641. fi
  14642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14643. # Check whether --enable-rpath was given.
  14644. if test "${enable_rpath+set}" = set; then :
  14645. enableval=$enable_rpath; case "${enableval}" in
  14646. y|ye|yes) check_rpath=yes ;;
  14647. n|no) check_rpath=no ;;
  14648. *) as_fn_error $? "bad value ${enableval} for --disable-rpath" "$LINENO" 5 ;;
  14649. esac
  14650. else
  14651. check_rpath=yes
  14652. fi
  14653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use rpath" >&5
  14654. $as_echo_n "checking whether to use rpath... " >&6; }
  14655. AST_RPATH=
  14656. if test "${check_rpath}" != yes; then
  14657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
  14658. $as_echo "skipped" >&6; }
  14659. elif test "${prefix}" = /usr || test "${prefix}" = NONE; then
  14660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
  14661. $as_echo "not needed" >&6; }
  14662. else
  14663. AST_RPATH="-Wl,-rpath,${libdir}"
  14664. fi
  14665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
  14666. $as_echo_n "checking for sysinfo... " >&6; }
  14667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14668. /* end confdefs.h. */
  14669. #include <sys/sysinfo.h>
  14670. int
  14671. main ()
  14672. {
  14673. struct sysinfo sys_info; int uptime = sys_info.uptime
  14674. ;
  14675. return 0;
  14676. }
  14677. _ACEOF
  14678. if ac_fn_c_try_link "$LINENO"; then :
  14679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14680. $as_echo "yes" >&6; }
  14681. $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
  14682. else
  14683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14684. $as_echo "no" >&6; }
  14685. fi
  14686. rm -f core conftest.err conftest.$ac_objext \
  14687. conftest$ac_exeext conftest.$ac_ext
  14688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ninit" >&5
  14689. $as_echo_n "checking for library containing res_9_ninit... " >&6; }
  14690. if ${ac_cv_search_res_9_ninit+:} false; then :
  14691. $as_echo_n "(cached) " >&6
  14692. else
  14693. ac_func_search_save_LIBS=$LIBS
  14694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14695. /* end confdefs.h. */
  14696. /* Override any GCC internal prototype to avoid an error.
  14697. Use char because int might match the return type of a GCC
  14698. builtin and then its argument prototype would still apply. */
  14699. #ifdef __cplusplus
  14700. extern "C"
  14701. #endif
  14702. char res_9_ninit ();
  14703. int
  14704. main ()
  14705. {
  14706. return res_9_ninit ();
  14707. ;
  14708. return 0;
  14709. }
  14710. _ACEOF
  14711. for ac_lib in '' resolv; do
  14712. if test -z "$ac_lib"; then
  14713. ac_res="none required"
  14714. else
  14715. ac_res=-l$ac_lib
  14716. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14717. fi
  14718. if ac_fn_c_try_link "$LINENO"; then :
  14719. ac_cv_search_res_9_ninit=$ac_res
  14720. fi
  14721. rm -f core conftest.err conftest.$ac_objext \
  14722. conftest$ac_exeext
  14723. if ${ac_cv_search_res_9_ninit+:} false; then :
  14724. break
  14725. fi
  14726. done
  14727. if ${ac_cv_search_res_9_ninit+:} false; then :
  14728. else
  14729. ac_cv_search_res_9_ninit=no
  14730. fi
  14731. rm conftest.$ac_ext
  14732. LIBS=$ac_func_search_save_LIBS
  14733. fi
  14734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ninit" >&5
  14735. $as_echo "$ac_cv_search_res_9_ninit" >&6; }
  14736. ac_res=$ac_cv_search_res_9_ninit
  14737. if test "$ac_res" != no; then :
  14738. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14739. fi
  14740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ninit" >&5
  14741. $as_echo_n "checking for res_ninit... " >&6; }
  14742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14743. /* end confdefs.h. */
  14744. #ifdef HAVE_SYS_SOCKET_H
  14745. #include <sys/socket.h>
  14746. #endif
  14747. #ifdef HAVE_NETINET_IN_H
  14748. #include <netinet/in.h>
  14749. #endif
  14750. #ifdef HAVE_ARPA_NAMESER_H
  14751. #include <arpa/nameser.h>
  14752. #endif
  14753. #include <resolv.h>
  14754. int
  14755. main ()
  14756. {
  14757. int foo = res_ninit(NULL);
  14758. ;
  14759. return 0;
  14760. }
  14761. _ACEOF
  14762. if ac_fn_c_try_link "$LINENO"; then :
  14763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14764. $as_echo "yes" >&6; }
  14765. $as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h
  14766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5
  14767. $as_echo_n "checking for library containing res_9_ndestroy... " >&6; }
  14768. if ${ac_cv_search_res_9_ndestroy+:} false; then :
  14769. $as_echo_n "(cached) " >&6
  14770. else
  14771. ac_func_search_save_LIBS=$LIBS
  14772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14773. /* end confdefs.h. */
  14774. /* Override any GCC internal prototype to avoid an error.
  14775. Use char because int might match the return type of a GCC
  14776. builtin and then its argument prototype would still apply. */
  14777. #ifdef __cplusplus
  14778. extern "C"
  14779. #endif
  14780. char res_9_ndestroy ();
  14781. int
  14782. main ()
  14783. {
  14784. return res_9_ndestroy ();
  14785. ;
  14786. return 0;
  14787. }
  14788. _ACEOF
  14789. for ac_lib in '' resolv; do
  14790. if test -z "$ac_lib"; then
  14791. ac_res="none required"
  14792. else
  14793. ac_res=-l$ac_lib
  14794. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14795. fi
  14796. if ac_fn_c_try_link "$LINENO"; then :
  14797. ac_cv_search_res_9_ndestroy=$ac_res
  14798. fi
  14799. rm -f core conftest.err conftest.$ac_objext \
  14800. conftest$ac_exeext
  14801. if ${ac_cv_search_res_9_ndestroy+:} false; then :
  14802. break
  14803. fi
  14804. done
  14805. if ${ac_cv_search_res_9_ndestroy+:} false; then :
  14806. else
  14807. ac_cv_search_res_9_ndestroy=no
  14808. fi
  14809. rm conftest.$ac_ext
  14810. LIBS=$ac_func_search_save_LIBS
  14811. fi
  14812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_ndestroy" >&5
  14813. $as_echo "$ac_cv_search_res_9_ndestroy" >&6; }
  14814. ac_res=$ac_cv_search_res_9_ndestroy
  14815. if test "$ac_res" != no; then :
  14816. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14817. fi
  14818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_ndestroy" >&5
  14819. $as_echo_n "checking for res_ndestroy... " >&6; }
  14820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14821. /* end confdefs.h. */
  14822. #ifdef HAVE_SYS_SOCKET_H
  14823. #include <sys/socket.h>
  14824. #endif
  14825. #ifdef HAVE_NETINET_IN_H
  14826. #include <netinet/in.h>
  14827. #endif
  14828. #ifdef HAVE_ARPA_NAMESER_H
  14829. #include <arpa/nameser.h>
  14830. #endif
  14831. #include <resolv.h>
  14832. int
  14833. main ()
  14834. {
  14835. res_ndestroy(NULL);
  14836. ;
  14837. return 0;
  14838. }
  14839. _ACEOF
  14840. if ac_fn_c_try_link "$LINENO"; then :
  14841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14842. $as_echo "yes" >&6; }
  14843. $as_echo "#define HAVE_RES_NDESTROY 1" >>confdefs.h
  14844. else
  14845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14846. $as_echo "no" >&6; }
  14847. fi
  14848. rm -f core conftest.err conftest.$ac_objext \
  14849. conftest$ac_exeext conftest.$ac_ext
  14850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_close" >&5
  14851. $as_echo_n "checking for library containing res_9_close... " >&6; }
  14852. if ${ac_cv_search_res_9_close+:} false; then :
  14853. $as_echo_n "(cached) " >&6
  14854. else
  14855. ac_func_search_save_LIBS=$LIBS
  14856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14857. /* end confdefs.h. */
  14858. /* Override any GCC internal prototype to avoid an error.
  14859. Use char because int might match the return type of a GCC
  14860. builtin and then its argument prototype would still apply. */
  14861. #ifdef __cplusplus
  14862. extern "C"
  14863. #endif
  14864. char res_9_close ();
  14865. int
  14866. main ()
  14867. {
  14868. return res_9_close ();
  14869. ;
  14870. return 0;
  14871. }
  14872. _ACEOF
  14873. for ac_lib in '' resolv; do
  14874. if test -z "$ac_lib"; then
  14875. ac_res="none required"
  14876. else
  14877. ac_res=-l$ac_lib
  14878. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14879. fi
  14880. if ac_fn_c_try_link "$LINENO"; then :
  14881. ac_cv_search_res_9_close=$ac_res
  14882. fi
  14883. rm -f core conftest.err conftest.$ac_objext \
  14884. conftest$ac_exeext
  14885. if ${ac_cv_search_res_9_close+:} false; then :
  14886. break
  14887. fi
  14888. done
  14889. if ${ac_cv_search_res_9_close+:} false; then :
  14890. else
  14891. ac_cv_search_res_9_close=no
  14892. fi
  14893. rm conftest.$ac_ext
  14894. LIBS=$ac_func_search_save_LIBS
  14895. fi
  14896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_close" >&5
  14897. $as_echo "$ac_cv_search_res_9_close" >&6; }
  14898. ac_res=$ac_cv_search_res_9_close
  14899. if test "$ac_res" != no; then :
  14900. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14901. fi
  14902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_close" >&5
  14903. $as_echo_n "checking for res_close... " >&6; }
  14904. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14905. /* end confdefs.h. */
  14906. #ifdef HAVE_SYS_SOCKET_H
  14907. #include <sys/socket.h>
  14908. #endif
  14909. #ifdef HAVE_NETINET_IN_H
  14910. #include <netinet/in.h>
  14911. #endif
  14912. #ifdef HAVE_ARPA_NAMESER_H
  14913. #include <arpa/nameser.h>
  14914. #endif
  14915. #include <resolv.h>
  14916. int
  14917. main ()
  14918. {
  14919. res_close();
  14920. ;
  14921. return 0;
  14922. }
  14923. _ACEOF
  14924. if ac_fn_c_try_link "$LINENO"; then :
  14925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14926. $as_echo "yes" >&6; }
  14927. $as_echo "#define HAVE_RES_CLOSE 1" >>confdefs.h
  14928. else
  14929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14930. $as_echo "no" >&6; }
  14931. fi
  14932. rm -f core conftest.err conftest.$ac_objext \
  14933. conftest$ac_exeext conftest.$ac_ext
  14934. else
  14935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14936. $as_echo "no" >&6; }
  14937. fi
  14938. rm -f core conftest.err conftest.$ac_objext \
  14939. conftest$ac_exeext conftest.$ac_ext
  14940. if test "x${PBX_GLOB_NOMAGIC}" != "x1"; then
  14941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_NOMAGIC in glob.h" >&5
  14942. $as_echo_n "checking for GLOB_NOMAGIC in glob.h... " >&6; }
  14943. saved_cppflags="${CPPFLAGS}"
  14944. if test "x${GLOB_NOMAGIC_DIR}" != "x"; then
  14945. GLOB_NOMAGIC_INCLUDE="-I${GLOB_NOMAGIC_DIR}/include"
  14946. fi
  14947. CPPFLAGS="${CPPFLAGS} ${GLOB_NOMAGIC_INCLUDE}"
  14948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14949. /* end confdefs.h. */
  14950. #include <glob.h>
  14951. int
  14952. main ()
  14953. {
  14954. #if defined(GLOB_NOMAGIC)
  14955. int foo = 0;
  14956. #else
  14957. int foo = bar;
  14958. #endif
  14959. 0
  14960. ;
  14961. return 0;
  14962. }
  14963. _ACEOF
  14964. if ac_fn_c_try_compile "$LINENO"; then :
  14965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14966. $as_echo "yes" >&6; }
  14967. PBX_GLOB_NOMAGIC=1
  14968. $as_echo "#define HAVE_GLOB_NOMAGIC 1" >>confdefs.h
  14969. else
  14970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14971. $as_echo "no" >&6; }
  14972. fi
  14973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14974. CPPFLAGS="${saved_cppflags}"
  14975. fi
  14976. if test "x${PBX_GLOB_BRACE}" != "x1"; then
  14977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_BRACE in glob.h" >&5
  14978. $as_echo_n "checking for GLOB_BRACE in glob.h... " >&6; }
  14979. saved_cppflags="${CPPFLAGS}"
  14980. if test "x${GLOB_BRACE_DIR}" != "x"; then
  14981. GLOB_BRACE_INCLUDE="-I${GLOB_BRACE_DIR}/include"
  14982. fi
  14983. CPPFLAGS="${CPPFLAGS} ${GLOB_BRACE_INCLUDE}"
  14984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14985. /* end confdefs.h. */
  14986. #include <glob.h>
  14987. int
  14988. main ()
  14989. {
  14990. #if defined(GLOB_BRACE)
  14991. int foo = 0;
  14992. #else
  14993. int foo = bar;
  14994. #endif
  14995. 0
  14996. ;
  14997. return 0;
  14998. }
  14999. _ACEOF
  15000. if ac_fn_c_try_compile "$LINENO"; then :
  15001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15002. $as_echo "yes" >&6; }
  15003. PBX_GLOB_BRACE=1
  15004. $as_echo "#define HAVE_GLOB_BRACE 1" >>confdefs.h
  15005. else
  15006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15007. $as_echo "no" >&6; }
  15008. fi
  15009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15010. CPPFLAGS="${saved_cppflags}"
  15011. fi
  15012. if test "x${PBX_RTLD_NOLOAD}" != "x1"; then
  15013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTLD_NOLOAD in dlfcn.h" >&5
  15014. $as_echo_n "checking for RTLD_NOLOAD in dlfcn.h... " >&6; }
  15015. saved_cppflags="${CPPFLAGS}"
  15016. if test "x${RTLD_NOLOAD_DIR}" != "x"; then
  15017. RTLD_NOLOAD_INCLUDE="-I${RTLD_NOLOAD_DIR}/include"
  15018. fi
  15019. CPPFLAGS="${CPPFLAGS} ${RTLD_NOLOAD_INCLUDE}"
  15020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15021. /* end confdefs.h. */
  15022. #include <dlfcn.h>
  15023. int
  15024. main ()
  15025. {
  15026. #if defined(RTLD_NOLOAD)
  15027. int foo = 0;
  15028. #else
  15029. int foo = bar;
  15030. #endif
  15031. 0
  15032. ;
  15033. return 0;
  15034. }
  15035. _ACEOF
  15036. if ac_fn_c_try_compile "$LINENO"; then :
  15037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15038. $as_echo "yes" >&6; }
  15039. PBX_RTLD_NOLOAD=1
  15040. $as_echo "#define HAVE_RTLD_NOLOAD 1" >>confdefs.h
  15041. else
  15042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15043. $as_echo "no" >&6; }
  15044. fi
  15045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15046. CPPFLAGS="${saved_cppflags}"
  15047. fi
  15048. if test "x${PBX_IP_MTU_DISCOVER}" != "x1"; then
  15049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_MTU_DISCOVER in netinet/in.h" >&5
  15050. $as_echo_n "checking for IP_MTU_DISCOVER in netinet/in.h... " >&6; }
  15051. saved_cppflags="${CPPFLAGS}"
  15052. if test "x${IP_MTU_DISCOVER_DIR}" != "x"; then
  15053. IP_MTU_DISCOVER_INCLUDE="-I${IP_MTU_DISCOVER_DIR}/include"
  15054. fi
  15055. CPPFLAGS="${CPPFLAGS} ${IP_MTU_DISCOVER_INCLUDE}"
  15056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15057. /* end confdefs.h. */
  15058. #include <netinet/in.h>
  15059. int
  15060. main ()
  15061. {
  15062. #if defined(IP_MTU_DISCOVER)
  15063. int foo = 0;
  15064. #else
  15065. int foo = bar;
  15066. #endif
  15067. 0
  15068. ;
  15069. return 0;
  15070. }
  15071. _ACEOF
  15072. if ac_fn_c_try_compile "$LINENO"; then :
  15073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15074. $as_echo "yes" >&6; }
  15075. PBX_IP_MTU_DISCOVER=1
  15076. $as_echo "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h
  15077. else
  15078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15079. $as_echo "no" >&6; }
  15080. fi
  15081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15082. CPPFLAGS="${saved_cppflags}"
  15083. fi
  15084. ac_fn_c_check_header_mongrel "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default"
  15085. if test "x$ac_cv_header_libkern_OSAtomic_h" = xyes; then :
  15086. cat >>confdefs.h <<_ACEOF
  15087. #define HAVE_OSX_ATOMICS 1
  15088. _ACEOF
  15089. fi
  15090. # The cast to long int works around a bug in the HP C Compiler
  15091. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15092. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15093. # This bug is HP SR number 8606223364.
  15094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  15095. $as_echo_n "checking size of int... " >&6; }
  15096. if ${ac_cv_sizeof_int+:} false; then :
  15097. $as_echo_n "(cached) " >&6
  15098. else
  15099. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  15100. else
  15101. if test "$ac_cv_type_int" = yes; then
  15102. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15103. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15104. as_fn_error 77 "cannot compute sizeof (int)
  15105. See \`config.log' for more details" "$LINENO" 5; }
  15106. else
  15107. ac_cv_sizeof_int=0
  15108. fi
  15109. fi
  15110. fi
  15111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  15112. $as_echo "$ac_cv_sizeof_int" >&6; }
  15113. cat >>confdefs.h <<_ACEOF
  15114. #define SIZEOF_INT $ac_cv_sizeof_int
  15115. _ACEOF
  15116. # The cast to long int works around a bug in the HP C Compiler
  15117. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15118. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15119. # This bug is HP SR number 8606223364.
  15120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  15121. $as_echo_n "checking size of long... " >&6; }
  15122. if ${ac_cv_sizeof_long+:} false; then :
  15123. $as_echo_n "(cached) " >&6
  15124. else
  15125. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  15126. else
  15127. if test "$ac_cv_type_long" = yes; then
  15128. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15129. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15130. as_fn_error 77 "cannot compute sizeof (long)
  15131. See \`config.log' for more details" "$LINENO" 5; }
  15132. else
  15133. ac_cv_sizeof_long=0
  15134. fi
  15135. fi
  15136. fi
  15137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  15138. $as_echo "$ac_cv_sizeof_long" >&6; }
  15139. cat >>confdefs.h <<_ACEOF
  15140. #define SIZEOF_LONG $ac_cv_sizeof_long
  15141. _ACEOF
  15142. # The cast to long int works around a bug in the HP C Compiler
  15143. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15144. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15145. # This bug is HP SR number 8606223364.
  15146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  15147. $as_echo_n "checking size of long long... " >&6; }
  15148. if ${ac_cv_sizeof_long_long+:} false; then :
  15149. $as_echo_n "(cached) " >&6
  15150. else
  15151. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  15152. else
  15153. if test "$ac_cv_type_long_long" = yes; then
  15154. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15155. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15156. as_fn_error 77 "cannot compute sizeof (long long)
  15157. See \`config.log' for more details" "$LINENO" 5; }
  15158. else
  15159. ac_cv_sizeof_long_long=0
  15160. fi
  15161. fi
  15162. fi
  15163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  15164. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  15165. cat >>confdefs.h <<_ACEOF
  15166. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  15167. _ACEOF
  15168. # The cast to long int works around a bug in the HP C Compiler
  15169. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15170. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15171. # This bug is HP SR number 8606223364.
  15172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char *" >&5
  15173. $as_echo_n "checking size of char *... " >&6; }
  15174. if ${ac_cv_sizeof_char_p+:} false; then :
  15175. $as_echo_n "(cached) " >&6
  15176. else
  15177. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char *))" "ac_cv_sizeof_char_p" "$ac_includes_default"; then :
  15178. else
  15179. if test "$ac_cv_type_char_p" = yes; then
  15180. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15181. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15182. as_fn_error 77 "cannot compute sizeof (char *)
  15183. See \`config.log' for more details" "$LINENO" 5; }
  15184. else
  15185. ac_cv_sizeof_char_p=0
  15186. fi
  15187. fi
  15188. fi
  15189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char_p" >&5
  15190. $as_echo "$ac_cv_sizeof_char_p" >&6; }
  15191. cat >>confdefs.h <<_ACEOF
  15192. #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
  15193. _ACEOF
  15194. # The cast to long int works around a bug in the HP C Compiler
  15195. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15196. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15197. # This bug is HP SR number 8606223364.
  15198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  15199. $as_echo_n "checking size of long... " >&6; }
  15200. if ${ac_cv_sizeof_long+:} false; then :
  15201. $as_echo_n "(cached) " >&6
  15202. else
  15203. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  15204. else
  15205. if test "$ac_cv_type_long" = yes; then
  15206. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15207. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15208. as_fn_error 77 "cannot compute sizeof (long)
  15209. See \`config.log' for more details" "$LINENO" 5; }
  15210. else
  15211. ac_cv_sizeof_long=0
  15212. fi
  15213. fi
  15214. fi
  15215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  15216. $as_echo "$ac_cv_sizeof_long" >&6; }
  15217. cat >>confdefs.h <<_ACEOF
  15218. #define SIZEOF_LONG $ac_cv_sizeof_long
  15219. _ACEOF
  15220. # The cast to long int works around a bug in the HP C Compiler
  15221. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15222. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15223. # This bug is HP SR number 8606223364.
  15224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  15225. $as_echo_n "checking size of long long... " >&6; }
  15226. if ${ac_cv_sizeof_long_long+:} false; then :
  15227. $as_echo_n "(cached) " >&6
  15228. else
  15229. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  15230. else
  15231. if test "$ac_cv_type_long_long" = yes; then
  15232. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15233. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15234. as_fn_error 77 "cannot compute sizeof (long long)
  15235. See \`config.log' for more details" "$LINENO" 5; }
  15236. else
  15237. ac_cv_sizeof_long_long=0
  15238. fi
  15239. fi
  15240. fi
  15241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  15242. $as_echo "$ac_cv_sizeof_long_long" >&6; }
  15243. cat >>confdefs.h <<_ACEOF
  15244. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  15245. _ACEOF
  15246. if ac_fn_c_compute_int "$LINENO" "sizeof(foo.fds_bits[0])" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default
  15247. fd_set foo;"; then :
  15248. fi
  15249. # This doesn't actually work; what it does is to use the variable set in the
  15250. # previous test as a cached value to set the right output variables.
  15251. # The cast to long int works around a bug in the HP C Compiler
  15252. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  15253. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  15254. # This bug is HP SR number 8606223364.
  15255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fd_set.fds_bits" >&5
  15256. $as_echo_n "checking size of fd_set.fds_bits... " >&6; }
  15257. if ${ac_cv_sizeof_fd_set_fds_bits+:} false; then :
  15258. $as_echo_n "(cached) " >&6
  15259. else
  15260. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fd_set.fds_bits))" "ac_cv_sizeof_fd_set_fds_bits" "$ac_includes_default"; then :
  15261. else
  15262. if test "$ac_cv_type_fd_set_fds_bits" = yes; then
  15263. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15264. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15265. as_fn_error 77 "cannot compute sizeof (fd_set.fds_bits)
  15266. See \`config.log' for more details" "$LINENO" 5; }
  15267. else
  15268. ac_cv_sizeof_fd_set_fds_bits=0
  15269. fi
  15270. fi
  15271. fi
  15272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fd_set_fds_bits" >&5
  15273. $as_echo "$ac_cv_sizeof_fd_set_fds_bits" >&6; }
  15274. cat >>confdefs.h <<_ACEOF
  15275. #define SIZEOF_FD_SET_FDS_BITS $ac_cv_sizeof_fd_set_fds_bits
  15276. _ACEOF
  15277. # Set a type compatible with the previous. We cannot just use a generic type
  15278. # for these bits, because on big-endian systems, the bits won't match up
  15279. # correctly if the size is wrong.
  15280. if test $ac_cv_sizeof_int = $ac_cv_sizeof_fd_set_fds_bits; then
  15281. $as_echo "#define TYPEOF_FD_SET_FDS_BITS int" >>confdefs.h
  15282. else if test $ac_cv_sizeof_long = $ac_cv_sizeof_fd_set_fds_bits; then
  15283. $as_echo "#define TYPEOF_FD_SET_FDS_BITS long" >>confdefs.h
  15284. else if test $ac_cv_sizeof_long_long = $ac_cv_sizeof_fd_set_fds_bits; then
  15285. $as_echo "#define TYPEOF_FD_SET_FDS_BITS long long" >>confdefs.h
  15286. fi ; fi ; fi
  15287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in dlfcn.h" >&5
  15288. $as_echo_n "checking for dladdr in dlfcn.h... " >&6; }
  15289. PBX_DLADDR=0
  15290. old_LIBS=${LIBS}
  15291. LIBS="${LIBS} -ldl"
  15292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15293. /* end confdefs.h. */
  15294. #define _GNU_SOURCE 1
  15295. #include <dlfcn.h>
  15296. int
  15297. main ()
  15298. {
  15299. dladdr((void *)0, (void *)0)
  15300. ;
  15301. return 0;
  15302. }
  15303. _ACEOF
  15304. if ac_fn_c_try_link "$LINENO"; then :
  15305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15306. $as_echo "yes" >&6; }
  15307. PBX_DLADDR=1
  15308. $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
  15309. else
  15310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15311. $as_echo "no" >&6; }
  15312. fi
  15313. rm -f core conftest.err conftest.$ac_objext \
  15314. conftest$ac_exeext conftest.$ac_ext
  15315. LIBS=${old_LIBS}
  15316. # PKGCONFIG is used in later tests
  15317. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  15318. if test -n "$ac_tool_prefix"; then
  15319. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  15320. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  15321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15322. $as_echo_n "checking for $ac_word... " >&6; }
  15323. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  15324. $as_echo_n "(cached) " >&6
  15325. else
  15326. case $PKG_CONFIG in
  15327. [\\/]* | ?:[\\/]*)
  15328. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  15329. ;;
  15330. *)
  15331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15332. for as_dir in $PATH
  15333. do
  15334. IFS=$as_save_IFS
  15335. test -z "$as_dir" && as_dir=.
  15336. for ac_exec_ext in '' $ac_executable_extensions; do
  15337. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15338. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15339. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15340. break 2
  15341. fi
  15342. done
  15343. done
  15344. IFS=$as_save_IFS
  15345. ;;
  15346. esac
  15347. fi
  15348. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  15349. if test -n "$PKG_CONFIG"; then
  15350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  15351. $as_echo "$PKG_CONFIG" >&6; }
  15352. else
  15353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15354. $as_echo "no" >&6; }
  15355. fi
  15356. fi
  15357. if test -z "$ac_cv_path_PKG_CONFIG"; then
  15358. ac_pt_PKG_CONFIG=$PKG_CONFIG
  15359. # Extract the first word of "pkg-config", so it can be a program name with args.
  15360. set dummy pkg-config; ac_word=$2
  15361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15362. $as_echo_n "checking for $ac_word... " >&6; }
  15363. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  15364. $as_echo_n "(cached) " >&6
  15365. else
  15366. case $ac_pt_PKG_CONFIG in
  15367. [\\/]* | ?:[\\/]*)
  15368. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  15369. ;;
  15370. *)
  15371. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15372. for as_dir in $PATH
  15373. do
  15374. IFS=$as_save_IFS
  15375. test -z "$as_dir" && as_dir=.
  15376. for ac_exec_ext in '' $ac_executable_extensions; do
  15377. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15378. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  15379. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15380. break 2
  15381. fi
  15382. done
  15383. done
  15384. IFS=$as_save_IFS
  15385. ;;
  15386. esac
  15387. fi
  15388. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  15389. if test -n "$ac_pt_PKG_CONFIG"; then
  15390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  15391. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  15392. else
  15393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15394. $as_echo "no" >&6; }
  15395. fi
  15396. if test "x$ac_pt_PKG_CONFIG" = x; then
  15397. PKG_CONFIG=""
  15398. else
  15399. case $cross_compiling:$ac_tool_warned in
  15400. yes:)
  15401. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  15402. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  15403. ac_tool_warned=yes ;;
  15404. esac
  15405. PKG_CONFIG=$ac_pt_PKG_CONFIG
  15406. fi
  15407. else
  15408. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  15409. fi
  15410. fi
  15411. if test -n "$PKG_CONFIG"; then
  15412. _pkg_min_version=0.9.0
  15413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  15414. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  15415. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  15416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15417. $as_echo "yes" >&6; }
  15418. else
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15420. $as_echo "no" >&6; }
  15421. PKG_CONFIG=""
  15422. fi
  15423. fi
  15424. # do the package library checks now
  15425. if test "x${PBX_ALSA}" != "x1" -a "${USE_ALSA}" != "no"; then
  15426. pbxlibdir=""
  15427. # if --with-ALSA=DIR has been specified, use it.
  15428. if test "x${ALSA_DIR}" != "x"; then
  15429. if test -d ${ALSA_DIR}/lib; then
  15430. pbxlibdir="-L${ALSA_DIR}/lib"
  15431. else
  15432. pbxlibdir="-L${ALSA_DIR}"
  15433. fi
  15434. fi
  15435. pbxfuncname="snd_spcm_init"
  15436. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15437. AST_ALSA_FOUND=yes
  15438. else
  15439. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15440. CFLAGS="${CFLAGS} "
  15441. as_ac_Lib=`$as_echo "ac_cv_lib_asound_${pbxfuncname}" | $as_tr_sh`
  15442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lasound" >&5
  15443. $as_echo_n "checking for ${pbxfuncname} in -lasound... " >&6; }
  15444. if eval \${$as_ac_Lib+:} false; then :
  15445. $as_echo_n "(cached) " >&6
  15446. else
  15447. ac_check_lib_save_LIBS=$LIBS
  15448. LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
  15449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15450. /* end confdefs.h. */
  15451. /* Override any GCC internal prototype to avoid an error.
  15452. Use char because int might match the return type of a GCC
  15453. builtin and then its argument prototype would still apply. */
  15454. #ifdef __cplusplus
  15455. extern "C"
  15456. #endif
  15457. char ${pbxfuncname} ();
  15458. int
  15459. main ()
  15460. {
  15461. return ${pbxfuncname} ();
  15462. ;
  15463. return 0;
  15464. }
  15465. _ACEOF
  15466. if ac_fn_c_try_link "$LINENO"; then :
  15467. eval "$as_ac_Lib=yes"
  15468. else
  15469. eval "$as_ac_Lib=no"
  15470. fi
  15471. rm -f core conftest.err conftest.$ac_objext \
  15472. conftest$ac_exeext conftest.$ac_ext
  15473. LIBS=$ac_check_lib_save_LIBS
  15474. fi
  15475. eval ac_res=\$$as_ac_Lib
  15476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15477. $as_echo "$ac_res" >&6; }
  15478. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15479. AST_ALSA_FOUND=yes
  15480. else
  15481. AST_ALSA_FOUND=no
  15482. fi
  15483. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15484. fi
  15485. # now check for the header.
  15486. if test "${AST_ALSA_FOUND}" = "yes"; then
  15487. ALSA_LIB="${pbxlibdir} -lasound -lm -ldl"
  15488. # if --with-ALSA=DIR has been specified, use it.
  15489. if test "x${ALSA_DIR}" != "x"; then
  15490. ALSA_INCLUDE="-I${ALSA_DIR}/include"
  15491. fi
  15492. ALSA_INCLUDE="${ALSA_INCLUDE} "
  15493. if test "xalsa/asoundlib.h" = "x" ; then # no header, assume found
  15494. ALSA_HEADER_FOUND="1"
  15495. else # check for the header
  15496. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15497. CPPFLAGS="${CPPFLAGS} ${ALSA_INCLUDE}"
  15498. ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
  15499. if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then :
  15500. ALSA_HEADER_FOUND=1
  15501. else
  15502. ALSA_HEADER_FOUND=0
  15503. fi
  15504. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15505. fi
  15506. if test "x${ALSA_HEADER_FOUND}" = "x0" ; then
  15507. ALSA_LIB=""
  15508. ALSA_INCLUDE=""
  15509. else
  15510. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15511. ALSA_LIB=""
  15512. fi
  15513. PBX_ALSA=1
  15514. cat >>confdefs.h <<_ACEOF
  15515. #define HAVE_ALSA 1
  15516. _ACEOF
  15517. fi
  15518. fi
  15519. fi
  15520. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  15521. pbxlibdir=""
  15522. # if --with-BFD=DIR has been specified, use it.
  15523. if test "x${BFD_DIR}" != "x"; then
  15524. if test -d ${BFD_DIR}/lib; then
  15525. pbxlibdir="-L${BFD_DIR}/lib"
  15526. else
  15527. pbxlibdir="-L${BFD_DIR}"
  15528. fi
  15529. fi
  15530. pbxfuncname="bfd_openr"
  15531. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15532. AST_BFD_FOUND=yes
  15533. else
  15534. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15535. CFLAGS="${CFLAGS} "
  15536. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  15537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  15538. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  15539. if eval \${$as_ac_Lib+:} false; then :
  15540. $as_echo_n "(cached) " >&6
  15541. else
  15542. ac_check_lib_save_LIBS=$LIBS
  15543. LIBS="-lbfd ${pbxlibdir} $LIBS"
  15544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15545. /* end confdefs.h. */
  15546. /* Override any GCC internal prototype to avoid an error.
  15547. Use char because int might match the return type of a GCC
  15548. builtin and then its argument prototype would still apply. */
  15549. #ifdef __cplusplus
  15550. extern "C"
  15551. #endif
  15552. char ${pbxfuncname} ();
  15553. int
  15554. main ()
  15555. {
  15556. return ${pbxfuncname} ();
  15557. ;
  15558. return 0;
  15559. }
  15560. _ACEOF
  15561. if ac_fn_c_try_link "$LINENO"; then :
  15562. eval "$as_ac_Lib=yes"
  15563. else
  15564. eval "$as_ac_Lib=no"
  15565. fi
  15566. rm -f core conftest.err conftest.$ac_objext \
  15567. conftest$ac_exeext conftest.$ac_ext
  15568. LIBS=$ac_check_lib_save_LIBS
  15569. fi
  15570. eval ac_res=\$$as_ac_Lib
  15571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15572. $as_echo "$ac_res" >&6; }
  15573. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15574. AST_BFD_FOUND=yes
  15575. else
  15576. AST_BFD_FOUND=no
  15577. fi
  15578. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15579. fi
  15580. # now check for the header.
  15581. if test "${AST_BFD_FOUND}" = "yes"; then
  15582. BFD_LIB="${pbxlibdir} -lbfd "
  15583. # if --with-BFD=DIR has been specified, use it.
  15584. if test "x${BFD_DIR}" != "x"; then
  15585. BFD_INCLUDE="-I${BFD_DIR}/include"
  15586. fi
  15587. BFD_INCLUDE="${BFD_INCLUDE} "
  15588. if test "xbfd.h" = "x" ; then # no header, assume found
  15589. BFD_HEADER_FOUND="1"
  15590. else # check for the header
  15591. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15592. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  15593. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  15594. if test "x$ac_cv_header_bfd_h" = xyes; then :
  15595. BFD_HEADER_FOUND=1
  15596. else
  15597. BFD_HEADER_FOUND=0
  15598. fi
  15599. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15600. fi
  15601. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  15602. BFD_LIB=""
  15603. BFD_INCLUDE=""
  15604. else
  15605. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15606. BFD_LIB=""
  15607. fi
  15608. PBX_BFD=1
  15609. cat >>confdefs.h <<_ACEOF
  15610. #define HAVE_BFD 1
  15611. _ACEOF
  15612. fi
  15613. fi
  15614. fi
  15615. if test "${PBX_BFD}" = "0"; then
  15616. # Fedora/RedHat/CentOS require extra libraries
  15617. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  15618. pbxlibdir=""
  15619. # if --with-BFD=DIR has been specified, use it.
  15620. if test "x${BFD_DIR}" != "x"; then
  15621. if test -d ${BFD_DIR}/lib; then
  15622. pbxlibdir="-L${BFD_DIR}/lib"
  15623. else
  15624. pbxlibdir="-L${BFD_DIR}"
  15625. fi
  15626. fi
  15627. pbxfuncname="bfd_check_format"
  15628. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15629. AST_BFD_FOUND=yes
  15630. else
  15631. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15632. CFLAGS="${CFLAGS} "
  15633. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  15634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  15635. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  15636. if eval \${$as_ac_Lib+:} false; then :
  15637. $as_echo_n "(cached) " >&6
  15638. else
  15639. ac_check_lib_save_LIBS=$LIBS
  15640. LIBS="-lbfd ${pbxlibdir} -ldl -liberty $LIBS"
  15641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15642. /* end confdefs.h. */
  15643. /* Override any GCC internal prototype to avoid an error.
  15644. Use char because int might match the return type of a GCC
  15645. builtin and then its argument prototype would still apply. */
  15646. #ifdef __cplusplus
  15647. extern "C"
  15648. #endif
  15649. char ${pbxfuncname} ();
  15650. int
  15651. main ()
  15652. {
  15653. return ${pbxfuncname} ();
  15654. ;
  15655. return 0;
  15656. }
  15657. _ACEOF
  15658. if ac_fn_c_try_link "$LINENO"; then :
  15659. eval "$as_ac_Lib=yes"
  15660. else
  15661. eval "$as_ac_Lib=no"
  15662. fi
  15663. rm -f core conftest.err conftest.$ac_objext \
  15664. conftest$ac_exeext conftest.$ac_ext
  15665. LIBS=$ac_check_lib_save_LIBS
  15666. fi
  15667. eval ac_res=\$$as_ac_Lib
  15668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15669. $as_echo "$ac_res" >&6; }
  15670. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15671. AST_BFD_FOUND=yes
  15672. else
  15673. AST_BFD_FOUND=no
  15674. fi
  15675. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15676. fi
  15677. # now check for the header.
  15678. if test "${AST_BFD_FOUND}" = "yes"; then
  15679. BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty"
  15680. # if --with-BFD=DIR has been specified, use it.
  15681. if test "x${BFD_DIR}" != "x"; then
  15682. BFD_INCLUDE="-I${BFD_DIR}/include"
  15683. fi
  15684. BFD_INCLUDE="${BFD_INCLUDE} "
  15685. if test "xbfd.h" = "x" ; then # no header, assume found
  15686. BFD_HEADER_FOUND="1"
  15687. else # check for the header
  15688. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15689. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  15690. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  15691. if test "x$ac_cv_header_bfd_h" = xyes; then :
  15692. BFD_HEADER_FOUND=1
  15693. else
  15694. BFD_HEADER_FOUND=0
  15695. fi
  15696. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15697. fi
  15698. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  15699. BFD_LIB=""
  15700. BFD_INCLUDE=""
  15701. else
  15702. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15703. BFD_LIB=""
  15704. fi
  15705. PBX_BFD=1
  15706. cat >>confdefs.h <<_ACEOF
  15707. #define HAVE_BFD 1
  15708. _ACEOF
  15709. fi
  15710. fi
  15711. fi
  15712. fi
  15713. if test "${PBX_BFD}" = "0"; then
  15714. # openSUSE requires -lz
  15715. if test "x${PBX_BFD}" != "x1" -a "${USE_BFD}" != "no"; then
  15716. pbxlibdir=""
  15717. # if --with-BFD=DIR has been specified, use it.
  15718. if test "x${BFD_DIR}" != "x"; then
  15719. if test -d ${BFD_DIR}/lib; then
  15720. pbxlibdir="-L${BFD_DIR}/lib"
  15721. else
  15722. pbxlibdir="-L${BFD_DIR}"
  15723. fi
  15724. fi
  15725. pbxfuncname="bfd_check_format"
  15726. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15727. AST_BFD_FOUND=yes
  15728. else
  15729. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15730. CFLAGS="${CFLAGS} "
  15731. as_ac_Lib=`$as_echo "ac_cv_lib_bfd_${pbxfuncname}" | $as_tr_sh`
  15732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbfd" >&5
  15733. $as_echo_n "checking for ${pbxfuncname} in -lbfd... " >&6; }
  15734. if eval \${$as_ac_Lib+:} false; then :
  15735. $as_echo_n "(cached) " >&6
  15736. else
  15737. ac_check_lib_save_LIBS=$LIBS
  15738. LIBS="-lbfd ${pbxlibdir} -ldl -liberty -lz $LIBS"
  15739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15740. /* end confdefs.h. */
  15741. /* Override any GCC internal prototype to avoid an error.
  15742. Use char because int might match the return type of a GCC
  15743. builtin and then its argument prototype would still apply. */
  15744. #ifdef __cplusplus
  15745. extern "C"
  15746. #endif
  15747. char ${pbxfuncname} ();
  15748. int
  15749. main ()
  15750. {
  15751. return ${pbxfuncname} ();
  15752. ;
  15753. return 0;
  15754. }
  15755. _ACEOF
  15756. if ac_fn_c_try_link "$LINENO"; then :
  15757. eval "$as_ac_Lib=yes"
  15758. else
  15759. eval "$as_ac_Lib=no"
  15760. fi
  15761. rm -f core conftest.err conftest.$ac_objext \
  15762. conftest$ac_exeext conftest.$ac_ext
  15763. LIBS=$ac_check_lib_save_LIBS
  15764. fi
  15765. eval ac_res=\$$as_ac_Lib
  15766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15767. $as_echo "$ac_res" >&6; }
  15768. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15769. AST_BFD_FOUND=yes
  15770. else
  15771. AST_BFD_FOUND=no
  15772. fi
  15773. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15774. fi
  15775. # now check for the header.
  15776. if test "${AST_BFD_FOUND}" = "yes"; then
  15777. BFD_LIB="${pbxlibdir} -lbfd -ldl -liberty -lz"
  15778. # if --with-BFD=DIR has been specified, use it.
  15779. if test "x${BFD_DIR}" != "x"; then
  15780. BFD_INCLUDE="-I${BFD_DIR}/include"
  15781. fi
  15782. BFD_INCLUDE="${BFD_INCLUDE} "
  15783. if test "xbfd.h" = "x" ; then # no header, assume found
  15784. BFD_HEADER_FOUND="1"
  15785. else # check for the header
  15786. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15787. CPPFLAGS="${CPPFLAGS} ${BFD_INCLUDE}"
  15788. ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
  15789. if test "x$ac_cv_header_bfd_h" = xyes; then :
  15790. BFD_HEADER_FOUND=1
  15791. else
  15792. BFD_HEADER_FOUND=0
  15793. fi
  15794. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15795. fi
  15796. if test "x${BFD_HEADER_FOUND}" = "x0" ; then
  15797. BFD_LIB=""
  15798. BFD_INCLUDE=""
  15799. else
  15800. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15801. BFD_LIB=""
  15802. fi
  15803. PBX_BFD=1
  15804. cat >>confdefs.h <<_ACEOF
  15805. #define HAVE_BFD 1
  15806. _ACEOF
  15807. fi
  15808. fi
  15809. fi
  15810. fi
  15811. if test "x${OSARCH}" = "xlinux-gnu" ; then
  15812. if test "x${PBX_CAP}" != "x1" -a "${USE_CAP}" != "no"; then
  15813. pbxlibdir=""
  15814. # if --with-CAP=DIR has been specified, use it.
  15815. if test "x${CAP_DIR}" != "x"; then
  15816. if test -d ${CAP_DIR}/lib; then
  15817. pbxlibdir="-L${CAP_DIR}/lib"
  15818. else
  15819. pbxlibdir="-L${CAP_DIR}"
  15820. fi
  15821. fi
  15822. pbxfuncname="cap_from_text"
  15823. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  15824. AST_CAP_FOUND=yes
  15825. else
  15826. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  15827. CFLAGS="${CFLAGS} "
  15828. as_ac_Lib=`$as_echo "ac_cv_lib_cap_${pbxfuncname}" | $as_tr_sh`
  15829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcap" >&5
  15830. $as_echo_n "checking for ${pbxfuncname} in -lcap... " >&6; }
  15831. if eval \${$as_ac_Lib+:} false; then :
  15832. $as_echo_n "(cached) " >&6
  15833. else
  15834. ac_check_lib_save_LIBS=$LIBS
  15835. LIBS="-lcap ${pbxlibdir} $LIBS"
  15836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15837. /* end confdefs.h. */
  15838. /* Override any GCC internal prototype to avoid an error.
  15839. Use char because int might match the return type of a GCC
  15840. builtin and then its argument prototype would still apply. */
  15841. #ifdef __cplusplus
  15842. extern "C"
  15843. #endif
  15844. char ${pbxfuncname} ();
  15845. int
  15846. main ()
  15847. {
  15848. return ${pbxfuncname} ();
  15849. ;
  15850. return 0;
  15851. }
  15852. _ACEOF
  15853. if ac_fn_c_try_link "$LINENO"; then :
  15854. eval "$as_ac_Lib=yes"
  15855. else
  15856. eval "$as_ac_Lib=no"
  15857. fi
  15858. rm -f core conftest.err conftest.$ac_objext \
  15859. conftest$ac_exeext conftest.$ac_ext
  15860. LIBS=$ac_check_lib_save_LIBS
  15861. fi
  15862. eval ac_res=\$$as_ac_Lib
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15864. $as_echo "$ac_res" >&6; }
  15865. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  15866. AST_CAP_FOUND=yes
  15867. else
  15868. AST_CAP_FOUND=no
  15869. fi
  15870. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  15871. fi
  15872. # now check for the header.
  15873. if test "${AST_CAP_FOUND}" = "yes"; then
  15874. CAP_LIB="${pbxlibdir} -lcap "
  15875. # if --with-CAP=DIR has been specified, use it.
  15876. if test "x${CAP_DIR}" != "x"; then
  15877. CAP_INCLUDE="-I${CAP_DIR}/include"
  15878. fi
  15879. CAP_INCLUDE="${CAP_INCLUDE} "
  15880. if test "xsys/capability.h" = "x" ; then # no header, assume found
  15881. CAP_HEADER_FOUND="1"
  15882. else # check for the header
  15883. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  15884. CPPFLAGS="${CPPFLAGS} ${CAP_INCLUDE}"
  15885. ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
  15886. if test "x$ac_cv_header_sys_capability_h" = xyes; then :
  15887. CAP_HEADER_FOUND=1
  15888. else
  15889. CAP_HEADER_FOUND=0
  15890. fi
  15891. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  15892. fi
  15893. if test "x${CAP_HEADER_FOUND}" = "x0" ; then
  15894. CAP_LIB=""
  15895. CAP_INCLUDE=""
  15896. else
  15897. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  15898. CAP_LIB=""
  15899. fi
  15900. PBX_CAP=1
  15901. cat >>confdefs.h <<_ACEOF
  15902. #define HAVE_CAP 1
  15903. _ACEOF
  15904. fi
  15905. fi
  15906. fi
  15907. fi
  15908. if test "x${PBX_DAHDI}" != "x1"; then
  15909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_RESET_COUNTERS in dahdi/user.h" >&5
  15910. $as_echo_n "checking for DAHDI_RESET_COUNTERS in dahdi/user.h... " >&6; }
  15911. saved_cppflags="${CPPFLAGS}"
  15912. if test "x${DAHDI_DIR}" != "x"; then
  15913. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  15914. fi
  15915. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  15916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15917. /* end confdefs.h. */
  15918. #include <dahdi/user.h>
  15919. int
  15920. main ()
  15921. {
  15922. #if defined(DAHDI_RESET_COUNTERS)
  15923. int foo = 0;
  15924. #else
  15925. int foo = bar;
  15926. #endif
  15927. 0
  15928. ;
  15929. return 0;
  15930. }
  15931. _ACEOF
  15932. if ac_fn_c_try_compile "$LINENO"; then :
  15933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15934. $as_echo "yes" >&6; }
  15935. PBX_DAHDI=1
  15936. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  15937. $as_echo "#define HAVE_DAHDI_VERSION 230" >>confdefs.h
  15938. else
  15939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15940. $as_echo "no" >&6; }
  15941. fi
  15942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15943. CPPFLAGS="${saved_cppflags}"
  15944. fi
  15945. if test "x${PBX_DAHDI}" != "x1"; then
  15946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h" >&5
  15947. $as_echo_n "checking for DAHDI_DEFAULT_MTU_MRU in dahdi/user.h... " >&6; }
  15948. saved_cppflags="${CPPFLAGS}"
  15949. if test "x${DAHDI_DIR}" != "x"; then
  15950. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  15951. fi
  15952. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  15953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15954. /* end confdefs.h. */
  15955. #include <dahdi/user.h>
  15956. int
  15957. main ()
  15958. {
  15959. #if defined(DAHDI_DEFAULT_MTU_MRU)
  15960. int foo = 0;
  15961. #else
  15962. int foo = bar;
  15963. #endif
  15964. 0
  15965. ;
  15966. return 0;
  15967. }
  15968. _ACEOF
  15969. if ac_fn_c_try_compile "$LINENO"; then :
  15970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15971. $as_echo "yes" >&6; }
  15972. PBX_DAHDI=1
  15973. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  15974. $as_echo "#define HAVE_DAHDI_VERSION 220" >>confdefs.h
  15975. else
  15976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15977. $as_echo "no" >&6; }
  15978. fi
  15979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15980. CPPFLAGS="${saved_cppflags}"
  15981. fi
  15982. if test "x${PBX_DAHDI}" != "x1"; then
  15983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_CODE in dahdi/user.h" >&5
  15984. $as_echo_n "checking for DAHDI_CODE in dahdi/user.h... " >&6; }
  15985. saved_cppflags="${CPPFLAGS}"
  15986. if test "x${DAHDI_DIR}" != "x"; then
  15987. DAHDI_INCLUDE="-I${DAHDI_DIR}/include"
  15988. fi
  15989. CPPFLAGS="${CPPFLAGS} ${DAHDI_INCLUDE}"
  15990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15991. /* end confdefs.h. */
  15992. #include <dahdi/user.h>
  15993. int
  15994. main ()
  15995. {
  15996. #if defined(DAHDI_CODE)
  15997. int foo = 0;
  15998. #else
  15999. int foo = bar;
  16000. #endif
  16001. 0
  16002. ;
  16003. return 0;
  16004. }
  16005. _ACEOF
  16006. if ac_fn_c_try_compile "$LINENO"; then :
  16007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16008. $as_echo "yes" >&6; }
  16009. PBX_DAHDI=1
  16010. $as_echo "#define HAVE_DAHDI 1" >>confdefs.h
  16011. $as_echo "#define HAVE_DAHDI_VERSION 200" >>confdefs.h
  16012. else
  16013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16014. $as_echo "no" >&6; }
  16015. fi
  16016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16017. CPPFLAGS="${saved_cppflags}"
  16018. fi
  16019. if test "x${PBX_DAHDI_HALF_FULL}" != "x1"; then
  16020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h" >&5
  16021. $as_echo_n "checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h... " >&6; }
  16022. saved_cppflags="${CPPFLAGS}"
  16023. if test "x${DAHDI_HALF_FULL_DIR}" != "x"; then
  16024. DAHDI_HALF_FULL_INCLUDE="-I${DAHDI_HALF_FULL_DIR}/include"
  16025. fi
  16026. CPPFLAGS="${CPPFLAGS} ${DAHDI_HALF_FULL_INCLUDE}"
  16027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16028. /* end confdefs.h. */
  16029. #include <dahdi/user.h>
  16030. int
  16031. main ()
  16032. {
  16033. #if defined(DAHDI_POLICY_HALF_FULL)
  16034. int foo = 0;
  16035. #else
  16036. int foo = bar;
  16037. #endif
  16038. 0
  16039. ;
  16040. return 0;
  16041. }
  16042. _ACEOF
  16043. if ac_fn_c_try_compile "$LINENO"; then :
  16044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16045. $as_echo "yes" >&6; }
  16046. PBX_DAHDI_HALF_FULL=1
  16047. $as_echo "#define HAVE_DAHDI_HALF_FULL 1" >>confdefs.h
  16048. else
  16049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16050. $as_echo "no" >&6; }
  16051. fi
  16052. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16053. CPPFLAGS="${saved_cppflags}"
  16054. fi
  16055. if test "x${PBX_DAHDI_LINEREVERSE_VMWI}" != "x1" -a "${USE_DAHDI_LINEREVERSE_VMWI}" != "no"; then
  16056. if test "xenhanced dahdi vmwi support" != "x"; then
  16057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enhanced dahdi vmwi support" >&5
  16058. $as_echo_n "checking for enhanced dahdi vmwi support... " >&6; }
  16059. else
  16060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h" >&5
  16061. $as_echo_n "checking if \"struct dahdi_vmwi_info booger\" compiles using dahdi/user.h... " >&6; }
  16062. fi
  16063. saved_cppflags="${CPPFLAGS}"
  16064. if test "x${DAHDI_LINEREVERSE_VMWI_DIR}" != "x"; then
  16065. DAHDI_LINEREVERSE_VMWI_INCLUDE="-I${DAHDI_LINEREVERSE_VMWI_DIR}/include"
  16066. fi
  16067. CPPFLAGS="${CPPFLAGS} ${DAHDI_LINEREVERSE_VMWI_INCLUDE}"
  16068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16069. /* end confdefs.h. */
  16070. #include <dahdi/user.h>
  16071. int
  16072. main ()
  16073. {
  16074. struct dahdi_vmwi_info booger;
  16075. ;
  16076. return 0;
  16077. }
  16078. _ACEOF
  16079. if ac_fn_c_try_compile "$LINENO"; then :
  16080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16081. $as_echo "yes" >&6; }
  16082. PBX_DAHDI_LINEREVERSE_VMWI=1
  16083. $as_echo "#define HAVE_DAHDI_LINEREVERSE_VMWI 1" >>confdefs.h
  16084. else
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16086. $as_echo "no" >&6; }
  16087. fi
  16088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16089. CPPFLAGS="${saved_cppflags}"
  16090. fi
  16091. if test "x${PBX_DAHDI_ECHOCANCEL_FAX_MODE}" != "x1" -a "${USE_DAHDI_ECHOCANCEL_FAX_MODE}" != "no"; then
  16092. if test "x" != "x"; then
  16093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for " >&5
  16094. $as_echo_n "checking for ... " >&6; }
  16095. else
  16096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h" >&5
  16097. $as_echo_n "checking if \"int foo = DAHDI_ECHOCANCEL_FAX_MODE\" compiles using dahdi/user.h... " >&6; }
  16098. fi
  16099. saved_cppflags="${CPPFLAGS}"
  16100. if test "x${DAHDI_ECHOCANCEL_FAX_MODE_DIR}" != "x"; then
  16101. DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE="-I${DAHDI_ECHOCANCEL_FAX_MODE_DIR}/include"
  16102. fi
  16103. CPPFLAGS="${CPPFLAGS} ${DAHDI_ECHOCANCEL_FAX_MODE_INCLUDE}"
  16104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16105. /* end confdefs.h. */
  16106. #include <dahdi/user.h>
  16107. int
  16108. main ()
  16109. {
  16110. int foo = DAHDI_ECHOCANCEL_FAX_MODE;
  16111. ;
  16112. return 0;
  16113. }
  16114. _ACEOF
  16115. if ac_fn_c_try_compile "$LINENO"; then :
  16116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16117. $as_echo "yes" >&6; }
  16118. PBX_DAHDI_ECHOCANCEL_FAX_MODE=1
  16119. $as_echo "#define HAVE_DAHDI_ECHOCANCEL_FAX_MODE 1" >>confdefs.h
  16120. else
  16121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16122. $as_echo "no" >&6; }
  16123. fi
  16124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16125. CPPFLAGS="${saved_cppflags}"
  16126. fi
  16127. if test "x${PBX_GETIFADDRS}" != "x1" -a "${USE_GETIFADDRS}" != "no"; then
  16128. if test "xgetifaddrs() support" != "x"; then
  16129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs() support" >&5
  16130. $as_echo_n "checking for getifaddrs() support... " >&6; }
  16131. else
  16132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h" >&5
  16133. $as_echo_n "checking if \"struct ifaddrs *p; getifaddrs(&p)\" compiles using ifaddrs.h... " >&6; }
  16134. fi
  16135. saved_cppflags="${CPPFLAGS}"
  16136. if test "x${GETIFADDRS_DIR}" != "x"; then
  16137. GETIFADDRS_INCLUDE="-I${GETIFADDRS_DIR}/include"
  16138. fi
  16139. CPPFLAGS="${CPPFLAGS} ${GETIFADDRS_INCLUDE}"
  16140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16141. /* end confdefs.h. */
  16142. #include <ifaddrs.h>
  16143. int
  16144. main ()
  16145. {
  16146. struct ifaddrs *p; getifaddrs(&p);
  16147. ;
  16148. return 0;
  16149. }
  16150. _ACEOF
  16151. if ac_fn_c_try_compile "$LINENO"; then :
  16152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16153. $as_echo "yes" >&6; }
  16154. PBX_GETIFADDRS=1
  16155. $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
  16156. else
  16157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16158. $as_echo "no" >&6; }
  16159. fi
  16160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16161. CPPFLAGS="${saved_cppflags}"
  16162. fi
  16163. if test "x${PBX_TIMERFD}" != "x1" -a "${USE_TIMERFD}" != "no"; then
  16164. if test "xtimerfd support" != "x"; then
  16165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd support" >&5
  16166. $as_echo_n "checking for timerfd support... " >&6; }
  16167. else
  16168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h" >&5
  16169. $as_echo_n "checking if \"timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);\" compiles using sys/timerfd.h... " >&6; }
  16170. fi
  16171. saved_cppflags="${CPPFLAGS}"
  16172. if test "x${TIMERFD_DIR}" != "x"; then
  16173. TIMERFD_INCLUDE="-I${TIMERFD_DIR}/include"
  16174. fi
  16175. CPPFLAGS="${CPPFLAGS} ${TIMERFD_INCLUDE}"
  16176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16177. /* end confdefs.h. */
  16178. #include <sys/timerfd.h>
  16179. int
  16180. main ()
  16181. {
  16182. timerfd_create(0,0); timerfd_settime(0,0,NULL,NULL);;
  16183. ;
  16184. return 0;
  16185. }
  16186. _ACEOF
  16187. if ac_fn_c_try_compile "$LINENO"; then :
  16188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16189. $as_echo "yes" >&6; }
  16190. PBX_TIMERFD=1
  16191. $as_echo "#define HAVE_TIMERFD 1" >>confdefs.h
  16192. else
  16193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16194. $as_echo "no" >&6; }
  16195. fi
  16196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16197. CPPFLAGS="${saved_cppflags}"
  16198. fi
  16199. GSM_INTERNAL="yes"
  16200. GSM_SYSTEM="yes"
  16201. if test "${USE_GSM}" != "no"; then
  16202. if test "${GSM_DIR}" = "internal"; then
  16203. GSM_SYSTEM="no"
  16204. elif test "${GSM_DIR}" != ""; then
  16205. GSM_INTERNAL="no"
  16206. fi
  16207. if test "${GSM_SYSTEM}" = "yes"; then
  16208. gsmlibdir=""
  16209. if test "x${GSM_DIR}" != "x"; then
  16210. if test -d ${GSM_DIR}/lib; then
  16211. gsmlibdir="-L${GSM_DIR}/lib"
  16212. else
  16213. gsmlibdir="-L${GSM_DIR}"
  16214. fi
  16215. fi
  16216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsm_create in -lgsm" >&5
  16217. $as_echo_n "checking for gsm_create in -lgsm... " >&6; }
  16218. if ${ac_cv_lib_gsm_gsm_create+:} false; then :
  16219. $as_echo_n "(cached) " >&6
  16220. else
  16221. ac_check_lib_save_LIBS=$LIBS
  16222. LIBS="-lgsm ${gsmlibdir} $LIBS"
  16223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16224. /* end confdefs.h. */
  16225. /* Override any GCC internal prototype to avoid an error.
  16226. Use char because int might match the return type of a GCC
  16227. builtin and then its argument prototype would still apply. */
  16228. #ifdef __cplusplus
  16229. extern "C"
  16230. #endif
  16231. char gsm_create ();
  16232. int
  16233. main ()
  16234. {
  16235. return gsm_create ();
  16236. ;
  16237. return 0;
  16238. }
  16239. _ACEOF
  16240. if ac_fn_c_try_link "$LINENO"; then :
  16241. ac_cv_lib_gsm_gsm_create=yes
  16242. else
  16243. ac_cv_lib_gsm_gsm_create=no
  16244. fi
  16245. rm -f core conftest.err conftest.$ac_objext \
  16246. conftest$ac_exeext conftest.$ac_ext
  16247. LIBS=$ac_check_lib_save_LIBS
  16248. fi
  16249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsm_gsm_create" >&5
  16250. $as_echo "$ac_cv_lib_gsm_gsm_create" >&6; }
  16251. if test "x$ac_cv_lib_gsm_gsm_create" = xyes; then :
  16252. cat >>confdefs.h <<_ACEOF
  16253. #define HAVE_GSM 1
  16254. _ACEOF
  16255. fi
  16256. if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
  16257. if test "x${GSM_DIR}" != "x" ; then
  16258. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm.h" | $as_tr_sh`
  16259. ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm.h" "$as_ac_Header" "$ac_includes_default"
  16260. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16261. GSM_HEADER_FOUND=1
  16262. else
  16263. GSM_HEADER_FOUND=0
  16264. fi
  16265. as_ac_Header=`$as_echo "ac_cv_header_${GSM_DIR}/include/gsm/gsm.h" | $as_tr_sh`
  16266. ac_fn_c_check_header_mongrel "$LINENO" "${GSM_DIR}/include/gsm/gsm.h" "$as_ac_Header" "$ac_includes_default"
  16267. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  16268. GSM_GSM_HEADER_FOUND=1
  16269. else
  16270. GSM_GSM_HEADER_FOUND=0
  16271. fi
  16272. else
  16273. ac_fn_c_check_header_mongrel "$LINENO" "gsm.h" "ac_cv_header_gsm_h" "$ac_includes_default"
  16274. if test "x$ac_cv_header_gsm_h" = xyes; then :
  16275. GSM_HEADER_FOUND=1
  16276. else
  16277. GSM_HEADER_FOUND=0
  16278. fi
  16279. ac_fn_c_check_header_mongrel "$LINENO" "gsm/gsm.h" "ac_cv_header_gsm_gsm_h" "$ac_includes_default"
  16280. if test "x$ac_cv_header_gsm_gsm_h" = xyes; then :
  16281. GSM_GSM_HEADER_FOUND=1
  16282. else
  16283. GSM_GSM_HEADER_FOUND=0
  16284. fi
  16285. fi
  16286. if test "${GSM_HEADER_FOUND}" = "0" ; then
  16287. if test "{GSM_GSM_HEADER_FOUND}" = "0" ; then
  16288. if test "x${GSM_MANDATORY}" = "xyes" ; then
  16289. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  16290. $as_echo "$as_me: ***" >&6;}
  16291. { $as_echo "$as_me:${as_lineno-$LINENO}: *** It appears that you do not have the gsm development package installed." >&5
  16292. $as_echo "$as_me: *** It appears that you do not have the gsm development package installed." >&6;}
  16293. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&5
  16294. $as_echo "$as_me: *** Please install it to include ${GSM_DESCRIP} support, or re-run configure" >&6;}
  16295. { $as_echo "$as_me:${as_lineno-$LINENO}: *** without explicitly specifying --with-${GSM_OPTION}" >&5
  16296. $as_echo "$as_me: *** without explicitly specifying --with-${GSM_OPTION}" >&6;}
  16297. exit 1
  16298. fi
  16299. fi
  16300. fi
  16301. GSM_OK=0
  16302. if test "${GSM_HEADER_FOUND}" = "1" ; then
  16303. cat >>confdefs.h <<_ACEOF
  16304. #define HAVE_GSM_HEADER 1
  16305. _ACEOF
  16306. GSM_OK=1
  16307. else
  16308. if test "${GSM_GSM_HEADER_FOUND}" = "1" ; then
  16309. cat >>confdefs.h <<_ACEOF
  16310. #define HAVE_GSM_GSM_HEADER 1
  16311. _ACEOF
  16312. GSM_OK=1
  16313. fi
  16314. fi
  16315. if test "${GSM_OK}" = "1" ; then
  16316. GSM_LIB="-lgsm"
  16317. if test "x${GSM_DIR}" != "x"; then
  16318. GSM_LIB="${gsmlibdir} ${GSM_LIB}"
  16319. GSM_INCLUDE="-I${GSM_DIR}/include"
  16320. fi
  16321. PBX_GSM=1
  16322. GSM_INTERNAL="no"
  16323. fi
  16324. fi
  16325. fi
  16326. if test "${GSM_INTERNAL}" = "yes"; then
  16327. PBX_GSM=1
  16328. cat >>confdefs.h <<_ACEOF
  16329. #define HAVE_GSM_HEADER 1
  16330. _ACEOF
  16331. fi
  16332. fi
  16333. ILBC_INTERNAL="yes"
  16334. ILBC_SYSTEM="yes"
  16335. if test "${USE_ILBC}" != "no"; then
  16336. if test "${ILBC_DIR}" = "internal"; then
  16337. ILBC_SYSTEM="no"
  16338. elif test "${ILBC_DIR}" != ""; then
  16339. ILBC_INTERNAL="no"
  16340. fi
  16341. if test "${ILBC_SYSTEM}" = "yes"; then
  16342. if test "x${PBX_ILBC}" != "x1" -a "${USE_ILBC}" != "no"; then
  16343. pkg_failed=no
  16344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ILBC" >&5
  16345. $as_echo_n "checking for ILBC... " >&6; }
  16346. if test -n "$ILBC_CFLAGS"; then
  16347. pkg_cv_ILBC_CFLAGS="$ILBC_CFLAGS"
  16348. elif test -n "$PKG_CONFIG"; then
  16349. if test -n "$PKG_CONFIG" && \
  16350. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc\""; } >&5
  16351. ($PKG_CONFIG --exists --print-errors "libilbc") 2>&5
  16352. ac_status=$?
  16353. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16354. test $ac_status = 0; }; then
  16355. pkg_cv_ILBC_CFLAGS=`$PKG_CONFIG --cflags "libilbc" 2>/dev/null`
  16356. test "x$?" != "x0" && pkg_failed=yes
  16357. else
  16358. pkg_failed=yes
  16359. fi
  16360. else
  16361. pkg_failed=untried
  16362. fi
  16363. if test -n "$ILBC_LIBS"; then
  16364. pkg_cv_ILBC_LIBS="$ILBC_LIBS"
  16365. elif test -n "$PKG_CONFIG"; then
  16366. if test -n "$PKG_CONFIG" && \
  16367. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libilbc\""; } >&5
  16368. ($PKG_CONFIG --exists --print-errors "libilbc") 2>&5
  16369. ac_status=$?
  16370. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16371. test $ac_status = 0; }; then
  16372. pkg_cv_ILBC_LIBS=`$PKG_CONFIG --libs "libilbc" 2>/dev/null`
  16373. test "x$?" != "x0" && pkg_failed=yes
  16374. else
  16375. pkg_failed=yes
  16376. fi
  16377. else
  16378. pkg_failed=untried
  16379. fi
  16380. if test $pkg_failed = yes; then
  16381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16382. $as_echo "no" >&6; }
  16383. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16384. _pkg_short_errors_supported=yes
  16385. else
  16386. _pkg_short_errors_supported=no
  16387. fi
  16388. if test $_pkg_short_errors_supported = yes; then
  16389. ILBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libilbc" 2>&1`
  16390. else
  16391. ILBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libilbc" 2>&1`
  16392. fi
  16393. # Put the nasty error message in config.log where it belongs
  16394. echo "$ILBC_PKG_ERRORS" >&5
  16395. PBX_ILBC=0
  16396. elif test $pkg_failed = untried; then
  16397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16398. $as_echo "no" >&6; }
  16399. PBX_ILBC=0
  16400. else
  16401. ILBC_CFLAGS=$pkg_cv_ILBC_CFLAGS
  16402. ILBC_LIBS=$pkg_cv_ILBC_LIBS
  16403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16404. $as_echo "yes" >&6; }
  16405. PBX_ILBC=1
  16406. ILBC_INCLUDE="$ILBC_CFLAGS"
  16407. ILBC_LIB="$ILBC_LIBS"
  16408. $as_echo "#define HAVE_ILBC 1" >>confdefs.h
  16409. fi
  16410. fi
  16411. if test "$PBX_ILBC" = "1"; then
  16412. ILBC_INTERNAL="no"
  16413. fi
  16414. fi
  16415. if test "${ILBC_INTERNAL}" = "yes"; then
  16416. PBX_ILBC=1
  16417. fi
  16418. fi
  16419. LIBEDIT_INTERNAL="yes"
  16420. LIBEDIT_SYSTEM="yes"
  16421. if test "${USE_LIBEDIT}" != "no"; then
  16422. if test "${LIBEDIT_DIR}" = "internal"; then
  16423. LIBEDIT_SYSTEM="no"
  16424. elif test "${LIBEDIT_DIR}" != ""; then
  16425. LIBEDIT_INTERNAL="no"
  16426. fi
  16427. if test "${LIBEDIT_SYSTEM}" = "yes"; then
  16428. if test "x${PBX_LIBEDIT}" != "x1" -a "${USE_LIBEDIT}" != "no"; then
  16429. pkg_failed=no
  16430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEDIT" >&5
  16431. $as_echo_n "checking for LIBEDIT... " >&6; }
  16432. if test -n "$LIBEDIT_CFLAGS"; then
  16433. pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS"
  16434. elif test -n "$PKG_CONFIG"; then
  16435. if test -n "$PKG_CONFIG" && \
  16436. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
  16437. ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
  16438. ac_status=$?
  16439. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16440. test $ac_status = 0; }; then
  16441. pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
  16442. test "x$?" != "x0" && pkg_failed=yes
  16443. else
  16444. pkg_failed=yes
  16445. fi
  16446. else
  16447. pkg_failed=untried
  16448. fi
  16449. if test -n "$LIBEDIT_LIBS"; then
  16450. pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS"
  16451. elif test -n "$PKG_CONFIG"; then
  16452. if test -n "$PKG_CONFIG" && \
  16453. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
  16454. ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
  16455. ac_status=$?
  16456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16457. test $ac_status = 0; }; then
  16458. pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
  16459. test "x$?" != "x0" && pkg_failed=yes
  16460. else
  16461. pkg_failed=yes
  16462. fi
  16463. else
  16464. pkg_failed=untried
  16465. fi
  16466. if test $pkg_failed = yes; then
  16467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16468. $as_echo "no" >&6; }
  16469. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16470. _pkg_short_errors_supported=yes
  16471. else
  16472. _pkg_short_errors_supported=no
  16473. fi
  16474. if test $_pkg_short_errors_supported = yes; then
  16475. LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
  16476. else
  16477. LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
  16478. fi
  16479. # Put the nasty error message in config.log where it belongs
  16480. echo "$LIBEDIT_PKG_ERRORS" >&5
  16481. PBX_LIBEDIT=0
  16482. elif test $pkg_failed = untried; then
  16483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16484. $as_echo "no" >&6; }
  16485. PBX_LIBEDIT=0
  16486. else
  16487. LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS
  16488. LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS
  16489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16490. $as_echo "yes" >&6; }
  16491. PBX_LIBEDIT=1
  16492. LIBEDIT_INCLUDE="$LIBEDIT_CFLAGS"
  16493. LIBEDIT_LIB="$LIBEDIT_LIBS"
  16494. $as_echo "#define HAVE_LIBEDIT 1" >>confdefs.h
  16495. fi
  16496. fi
  16497. if test "$PBX_LIBEDIT" = "1"; then
  16498. LIBEDIT_INTERNAL="no"
  16499. fi
  16500. fi
  16501. if test "${LIBEDIT_INTERNAL}" = "yes"; then
  16502. PBX_LIBEDIT=1
  16503. fi
  16504. fi
  16505. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  16506. pbxlibdir=""
  16507. # if --with-ICONV=DIR has been specified, use it.
  16508. if test "x${ICONV_DIR}" != "x"; then
  16509. if test -d ${ICONV_DIR}/lib; then
  16510. pbxlibdir="-L${ICONV_DIR}/lib"
  16511. else
  16512. pbxlibdir="-L${ICONV_DIR}"
  16513. fi
  16514. fi
  16515. pbxfuncname="iconv_open"
  16516. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16517. AST_ICONV_FOUND=yes
  16518. else
  16519. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16520. CFLAGS="${CFLAGS} "
  16521. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  16522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liconv" >&5
  16523. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  16524. if eval \${$as_ac_Lib+:} false; then :
  16525. $as_echo_n "(cached) " >&6
  16526. else
  16527. ac_check_lib_save_LIBS=$LIBS
  16528. LIBS="-liconv ${pbxlibdir} $LIBS"
  16529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16530. /* end confdefs.h. */
  16531. /* Override any GCC internal prototype to avoid an error.
  16532. Use char because int might match the return type of a GCC
  16533. builtin and then its argument prototype would still apply. */
  16534. #ifdef __cplusplus
  16535. extern "C"
  16536. #endif
  16537. char ${pbxfuncname} ();
  16538. int
  16539. main ()
  16540. {
  16541. return ${pbxfuncname} ();
  16542. ;
  16543. return 0;
  16544. }
  16545. _ACEOF
  16546. if ac_fn_c_try_link "$LINENO"; then :
  16547. eval "$as_ac_Lib=yes"
  16548. else
  16549. eval "$as_ac_Lib=no"
  16550. fi
  16551. rm -f core conftest.err conftest.$ac_objext \
  16552. conftest$ac_exeext conftest.$ac_ext
  16553. LIBS=$ac_check_lib_save_LIBS
  16554. fi
  16555. eval ac_res=\$$as_ac_Lib
  16556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16557. $as_echo "$ac_res" >&6; }
  16558. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16559. AST_ICONV_FOUND=yes
  16560. else
  16561. AST_ICONV_FOUND=no
  16562. fi
  16563. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16564. fi
  16565. # now check for the header.
  16566. if test "${AST_ICONV_FOUND}" = "yes"; then
  16567. ICONV_LIB="${pbxlibdir} -liconv "
  16568. # if --with-ICONV=DIR has been specified, use it.
  16569. if test "x${ICONV_DIR}" != "x"; then
  16570. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  16571. fi
  16572. ICONV_INCLUDE="${ICONV_INCLUDE} "
  16573. if test "xiconv.h" = "x" ; then # no header, assume found
  16574. ICONV_HEADER_FOUND="1"
  16575. else # check for the header
  16576. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16577. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  16578. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16579. if test "x$ac_cv_header_iconv_h" = xyes; then :
  16580. ICONV_HEADER_FOUND=1
  16581. else
  16582. ICONV_HEADER_FOUND=0
  16583. fi
  16584. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16585. fi
  16586. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  16587. ICONV_LIB=""
  16588. ICONV_INCLUDE=""
  16589. else
  16590. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16591. ICONV_LIB=""
  16592. fi
  16593. PBX_ICONV=1
  16594. cat >>confdefs.h <<_ACEOF
  16595. #define HAVE_ICONV 1
  16596. _ACEOF
  16597. fi
  16598. fi
  16599. fi
  16600. # GNU libiconv #define's iconv_open to libiconv_open, so we need to search for that symbol
  16601. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  16602. pbxlibdir=""
  16603. # if --with-ICONV=DIR has been specified, use it.
  16604. if test "x${ICONV_DIR}" != "x"; then
  16605. if test -d ${ICONV_DIR}/lib; then
  16606. pbxlibdir="-L${ICONV_DIR}/lib"
  16607. else
  16608. pbxlibdir="-L${ICONV_DIR}"
  16609. fi
  16610. fi
  16611. pbxfuncname="libiconv_open"
  16612. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16613. AST_ICONV_FOUND=yes
  16614. else
  16615. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16616. CFLAGS="${CFLAGS} "
  16617. as_ac_Lib=`$as_echo "ac_cv_lib_iconv_${pbxfuncname}" | $as_tr_sh`
  16618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liconv" >&5
  16619. $as_echo_n "checking for ${pbxfuncname} in -liconv... " >&6; }
  16620. if eval \${$as_ac_Lib+:} false; then :
  16621. $as_echo_n "(cached) " >&6
  16622. else
  16623. ac_check_lib_save_LIBS=$LIBS
  16624. LIBS="-liconv ${pbxlibdir} $LIBS"
  16625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16626. /* end confdefs.h. */
  16627. /* Override any GCC internal prototype to avoid an error.
  16628. Use char because int might match the return type of a GCC
  16629. builtin and then its argument prototype would still apply. */
  16630. #ifdef __cplusplus
  16631. extern "C"
  16632. #endif
  16633. char ${pbxfuncname} ();
  16634. int
  16635. main ()
  16636. {
  16637. return ${pbxfuncname} ();
  16638. ;
  16639. return 0;
  16640. }
  16641. _ACEOF
  16642. if ac_fn_c_try_link "$LINENO"; then :
  16643. eval "$as_ac_Lib=yes"
  16644. else
  16645. eval "$as_ac_Lib=no"
  16646. fi
  16647. rm -f core conftest.err conftest.$ac_objext \
  16648. conftest$ac_exeext conftest.$ac_ext
  16649. LIBS=$ac_check_lib_save_LIBS
  16650. fi
  16651. eval ac_res=\$$as_ac_Lib
  16652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16653. $as_echo "$ac_res" >&6; }
  16654. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16655. AST_ICONV_FOUND=yes
  16656. else
  16657. AST_ICONV_FOUND=no
  16658. fi
  16659. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16660. fi
  16661. # now check for the header.
  16662. if test "${AST_ICONV_FOUND}" = "yes"; then
  16663. ICONV_LIB="${pbxlibdir} -liconv "
  16664. # if --with-ICONV=DIR has been specified, use it.
  16665. if test "x${ICONV_DIR}" != "x"; then
  16666. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  16667. fi
  16668. ICONV_INCLUDE="${ICONV_INCLUDE} "
  16669. if test "xiconv.h" = "x" ; then # no header, assume found
  16670. ICONV_HEADER_FOUND="1"
  16671. else # check for the header
  16672. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16673. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  16674. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16675. if test "x$ac_cv_header_iconv_h" = xyes; then :
  16676. ICONV_HEADER_FOUND=1
  16677. else
  16678. ICONV_HEADER_FOUND=0
  16679. fi
  16680. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16681. fi
  16682. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  16683. ICONV_LIB=""
  16684. ICONV_INCLUDE=""
  16685. else
  16686. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16687. ICONV_LIB=""
  16688. fi
  16689. PBX_ICONV=1
  16690. cat >>confdefs.h <<_ACEOF
  16691. #define HAVE_ICONV 1
  16692. _ACEOF
  16693. fi
  16694. fi
  16695. fi
  16696. # Some versions of Linux package iconv in glibc
  16697. if test "x${PBX_ICONV}" != "x1" -a "${USE_ICONV}" != "no"; then
  16698. pbxlibdir=""
  16699. # if --with-ICONV=DIR has been specified, use it.
  16700. if test "x${ICONV_DIR}" != "x"; then
  16701. if test -d ${ICONV_DIR}/lib; then
  16702. pbxlibdir="-L${ICONV_DIR}/lib"
  16703. else
  16704. pbxlibdir="-L${ICONV_DIR}"
  16705. fi
  16706. fi
  16707. pbxfuncname="iconv_close"
  16708. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16709. AST_ICONV_FOUND=yes
  16710. else
  16711. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16712. CFLAGS="${CFLAGS} "
  16713. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  16714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  16715. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  16716. if eval \${$as_ac_Lib+:} false; then :
  16717. $as_echo_n "(cached) " >&6
  16718. else
  16719. ac_check_lib_save_LIBS=$LIBS
  16720. LIBS="-lc ${pbxlibdir} $LIBS"
  16721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16722. /* end confdefs.h. */
  16723. /* Override any GCC internal prototype to avoid an error.
  16724. Use char because int might match the return type of a GCC
  16725. builtin and then its argument prototype would still apply. */
  16726. #ifdef __cplusplus
  16727. extern "C"
  16728. #endif
  16729. char ${pbxfuncname} ();
  16730. int
  16731. main ()
  16732. {
  16733. return ${pbxfuncname} ();
  16734. ;
  16735. return 0;
  16736. }
  16737. _ACEOF
  16738. if ac_fn_c_try_link "$LINENO"; then :
  16739. eval "$as_ac_Lib=yes"
  16740. else
  16741. eval "$as_ac_Lib=no"
  16742. fi
  16743. rm -f core conftest.err conftest.$ac_objext \
  16744. conftest$ac_exeext conftest.$ac_ext
  16745. LIBS=$ac_check_lib_save_LIBS
  16746. fi
  16747. eval ac_res=\$$as_ac_Lib
  16748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16749. $as_echo "$ac_res" >&6; }
  16750. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16751. AST_ICONV_FOUND=yes
  16752. else
  16753. AST_ICONV_FOUND=no
  16754. fi
  16755. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16756. fi
  16757. # now check for the header.
  16758. if test "${AST_ICONV_FOUND}" = "yes"; then
  16759. ICONV_LIB="${pbxlibdir} -lc "
  16760. # if --with-ICONV=DIR has been specified, use it.
  16761. if test "x${ICONV_DIR}" != "x"; then
  16762. ICONV_INCLUDE="-I${ICONV_DIR}/include"
  16763. fi
  16764. ICONV_INCLUDE="${ICONV_INCLUDE} "
  16765. if test "xiconv.h" = "x" ; then # no header, assume found
  16766. ICONV_HEADER_FOUND="1"
  16767. else # check for the header
  16768. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16769. CPPFLAGS="${CPPFLAGS} ${ICONV_INCLUDE}"
  16770. ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  16771. if test "x$ac_cv_header_iconv_h" = xyes; then :
  16772. ICONV_HEADER_FOUND=1
  16773. else
  16774. ICONV_HEADER_FOUND=0
  16775. fi
  16776. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16777. fi
  16778. if test "x${ICONV_HEADER_FOUND}" = "x0" ; then
  16779. ICONV_LIB=""
  16780. ICONV_INCLUDE=""
  16781. else
  16782. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16783. ICONV_LIB=""
  16784. fi
  16785. PBX_ICONV=1
  16786. cat >>confdefs.h <<_ACEOF
  16787. #define HAVE_ICONV 1
  16788. _ACEOF
  16789. fi
  16790. fi
  16791. fi
  16792. # If ical.h is NOT in the libical directory, then it is of a version insufficient for us.
  16793. if test "x${PBX_ICAL}" != "x1" -a "${USE_ICAL}" != "no"; then
  16794. pbxlibdir=""
  16795. # if --with-ICAL=DIR has been specified, use it.
  16796. if test "x${ICAL_DIR}" != "x"; then
  16797. if test -d ${ICAL_DIR}/lib; then
  16798. pbxlibdir="-L${ICAL_DIR}/lib"
  16799. else
  16800. pbxlibdir="-L${ICAL_DIR}"
  16801. fi
  16802. fi
  16803. pbxfuncname="icaltimezone_get_utc_timezone"
  16804. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16805. AST_ICAL_FOUND=yes
  16806. else
  16807. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16808. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  16809. as_ac_Lib=`$as_echo "ac_cv_lib_ical_${pbxfuncname}" | $as_tr_sh`
  16810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lical" >&5
  16811. $as_echo_n "checking for ${pbxfuncname} in -lical... " >&6; }
  16812. if eval \${$as_ac_Lib+:} false; then :
  16813. $as_echo_n "(cached) " >&6
  16814. else
  16815. ac_check_lib_save_LIBS=$LIBS
  16816. LIBS="-lical ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  16817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16818. /* end confdefs.h. */
  16819. /* Override any GCC internal prototype to avoid an error.
  16820. Use char because int might match the return type of a GCC
  16821. builtin and then its argument prototype would still apply. */
  16822. #ifdef __cplusplus
  16823. extern "C"
  16824. #endif
  16825. char ${pbxfuncname} ();
  16826. int
  16827. main ()
  16828. {
  16829. return ${pbxfuncname} ();
  16830. ;
  16831. return 0;
  16832. }
  16833. _ACEOF
  16834. if ac_fn_c_try_link "$LINENO"; then :
  16835. eval "$as_ac_Lib=yes"
  16836. else
  16837. eval "$as_ac_Lib=no"
  16838. fi
  16839. rm -f core conftest.err conftest.$ac_objext \
  16840. conftest$ac_exeext conftest.$ac_ext
  16841. LIBS=$ac_check_lib_save_LIBS
  16842. fi
  16843. eval ac_res=\$$as_ac_Lib
  16844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16845. $as_echo "$ac_res" >&6; }
  16846. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16847. AST_ICAL_FOUND=yes
  16848. else
  16849. AST_ICAL_FOUND=no
  16850. fi
  16851. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16852. fi
  16853. # now check for the header.
  16854. if test "${AST_ICAL_FOUND}" = "yes"; then
  16855. ICAL_LIB="${pbxlibdir} -lical ${PTHREAD_LIBS}"
  16856. # if --with-ICAL=DIR has been specified, use it.
  16857. if test "x${ICAL_DIR}" != "x"; then
  16858. ICAL_INCLUDE="-I${ICAL_DIR}/include"
  16859. fi
  16860. ICAL_INCLUDE="${ICAL_INCLUDE} ${PTHREAD_CFLAGS}"
  16861. if test "xlibical/ical.h" = "x" ; then # no header, assume found
  16862. ICAL_HEADER_FOUND="1"
  16863. else # check for the header
  16864. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16865. CPPFLAGS="${CPPFLAGS} ${ICAL_INCLUDE}"
  16866. ac_fn_c_check_header_mongrel "$LINENO" "libical/ical.h" "ac_cv_header_libical_ical_h" "$ac_includes_default"
  16867. if test "x$ac_cv_header_libical_ical_h" = xyes; then :
  16868. ICAL_HEADER_FOUND=1
  16869. else
  16870. ICAL_HEADER_FOUND=0
  16871. fi
  16872. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16873. fi
  16874. if test "x${ICAL_HEADER_FOUND}" = "x0" ; then
  16875. ICAL_LIB=""
  16876. ICAL_INCLUDE=""
  16877. else
  16878. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16879. ICAL_LIB=""
  16880. fi
  16881. PBX_ICAL=1
  16882. cat >>confdefs.h <<_ACEOF
  16883. #define HAVE_ICAL 1
  16884. _ACEOF
  16885. fi
  16886. fi
  16887. fi
  16888. if test "x${PBX_IKSEMEL}" != "x1" -a "${USE_IKSEMEL}" != "no"; then
  16889. pbxlibdir=""
  16890. # if --with-IKSEMEL=DIR has been specified, use it.
  16891. if test "x${IKSEMEL_DIR}" != "x"; then
  16892. if test -d ${IKSEMEL_DIR}/lib; then
  16893. pbxlibdir="-L${IKSEMEL_DIR}/lib"
  16894. else
  16895. pbxlibdir="-L${IKSEMEL_DIR}"
  16896. fi
  16897. fi
  16898. pbxfuncname="iks_start_sasl"
  16899. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  16900. AST_IKSEMEL_FOUND=yes
  16901. else
  16902. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  16903. CFLAGS="${CFLAGS} "
  16904. as_ac_Lib=`$as_echo "ac_cv_lib_iksemel_${pbxfuncname}" | $as_tr_sh`
  16905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liksemel" >&5
  16906. $as_echo_n "checking for ${pbxfuncname} in -liksemel... " >&6; }
  16907. if eval \${$as_ac_Lib+:} false; then :
  16908. $as_echo_n "(cached) " >&6
  16909. else
  16910. ac_check_lib_save_LIBS=$LIBS
  16911. LIBS="-liksemel ${pbxlibdir} $LIBS"
  16912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16913. /* end confdefs.h. */
  16914. /* Override any GCC internal prototype to avoid an error.
  16915. Use char because int might match the return type of a GCC
  16916. builtin and then its argument prototype would still apply. */
  16917. #ifdef __cplusplus
  16918. extern "C"
  16919. #endif
  16920. char ${pbxfuncname} ();
  16921. int
  16922. main ()
  16923. {
  16924. return ${pbxfuncname} ();
  16925. ;
  16926. return 0;
  16927. }
  16928. _ACEOF
  16929. if ac_fn_c_try_link "$LINENO"; then :
  16930. eval "$as_ac_Lib=yes"
  16931. else
  16932. eval "$as_ac_Lib=no"
  16933. fi
  16934. rm -f core conftest.err conftest.$ac_objext \
  16935. conftest$ac_exeext conftest.$ac_ext
  16936. LIBS=$ac_check_lib_save_LIBS
  16937. fi
  16938. eval ac_res=\$$as_ac_Lib
  16939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16940. $as_echo "$ac_res" >&6; }
  16941. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  16942. AST_IKSEMEL_FOUND=yes
  16943. else
  16944. AST_IKSEMEL_FOUND=no
  16945. fi
  16946. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  16947. fi
  16948. # now check for the header.
  16949. if test "${AST_IKSEMEL_FOUND}" = "yes"; then
  16950. IKSEMEL_LIB="${pbxlibdir} -liksemel "
  16951. # if --with-IKSEMEL=DIR has been specified, use it.
  16952. if test "x${IKSEMEL_DIR}" != "x"; then
  16953. IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include"
  16954. fi
  16955. IKSEMEL_INCLUDE="${IKSEMEL_INCLUDE} "
  16956. if test "xiksemel.h" = "x" ; then # no header, assume found
  16957. IKSEMEL_HEADER_FOUND="1"
  16958. else # check for the header
  16959. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  16960. CPPFLAGS="${CPPFLAGS} ${IKSEMEL_INCLUDE}"
  16961. ac_fn_c_check_header_mongrel "$LINENO" "iksemel.h" "ac_cv_header_iksemel_h" "$ac_includes_default"
  16962. if test "x$ac_cv_header_iksemel_h" = xyes; then :
  16963. IKSEMEL_HEADER_FOUND=1
  16964. else
  16965. IKSEMEL_HEADER_FOUND=0
  16966. fi
  16967. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  16968. fi
  16969. if test "x${IKSEMEL_HEADER_FOUND}" = "x0" ; then
  16970. IKSEMEL_LIB=""
  16971. IKSEMEL_INCLUDE=""
  16972. else
  16973. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  16974. IKSEMEL_LIB=""
  16975. fi
  16976. PBX_IKSEMEL=1
  16977. cat >>confdefs.h <<_ACEOF
  16978. #define HAVE_IKSEMEL 1
  16979. _ACEOF
  16980. fi
  16981. fi
  16982. fi
  16983. if test "${USE_IMAP_TK}" != "no"; then
  16984. saved_cppflags="${CPPFLAGS}"
  16985. saved_libs="${LIBS}"
  16986. switch_to_system_on_failure="no"
  16987. if test "${IMAP_TK_DIR}" = ""; then
  16988. IMAP_TK_DIR=`pwd`"/../imap-2004g"
  16989. switch_to_system_on_failure="yes"
  16990. fi
  16991. if test "${IMAP_TK_DIR}" != "system"; then
  16992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UW IMAP Toolkit c-client library" >&5
  16993. $as_echo_n "checking for UW IMAP Toolkit c-client library... " >&6; }
  16994. if test -f "${IMAP_TK_DIR}/c-client/LDFLAGS"; then
  16995. imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
  16996. fi
  16997. imap_libs="${IMAP_TK_DIR}/c-client/c-client.a"
  16998. imap_include="-I${IMAP_TK_DIR}/c-client"
  16999. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  17000. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  17001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17002. /* end confdefs.h. */
  17003. #include "c-client.h"
  17004. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17005. {
  17006. }
  17007. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17008. {
  17009. }
  17010. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17011. {
  17012. }
  17013. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17014. {
  17015. }
  17016. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17017. {
  17018. }
  17019. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17020. {
  17021. }
  17022. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17023. {
  17024. }
  17025. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17026. {
  17027. }
  17028. void mm_log (char *string,long errflg)
  17029. {
  17030. }
  17031. void mm_dlog (char *string)
  17032. {
  17033. }
  17034. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17035. {
  17036. }
  17037. void mm_critical (MAILSTREAM *stream)
  17038. {
  17039. }
  17040. void mm_nocritical (MAILSTREAM *stream)
  17041. {
  17042. }
  17043. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17044. {
  17045. }
  17046. void mm_fatal (char *string)
  17047. {
  17048. }
  17049. int
  17050. main ()
  17051. {
  17052. MAILSTREAM *foo = mail_open(NULL, "", 0);
  17053. ;
  17054. return 0;
  17055. }
  17056. _ACEOF
  17057. if ac_fn_c_try_link "$LINENO"; then :
  17058. ac_cv_imap_tk="yes"
  17059. else
  17060. ac_cv_imap_tk="no"
  17061. fi
  17062. rm -f core conftest.err conftest.$ac_objext \
  17063. conftest$ac_exeext conftest.$ac_ext
  17064. if test "${ac_cv_imap_tk}" = "yes"; then
  17065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17066. /* end confdefs.h. */
  17067. #include "c-client.h"
  17068. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17069. {
  17070. }
  17071. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17072. {
  17073. }
  17074. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17075. {
  17076. }
  17077. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17078. {
  17079. }
  17080. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17081. {
  17082. }
  17083. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17084. {
  17085. }
  17086. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17087. {
  17088. }
  17089. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17090. {
  17091. }
  17092. void mm_log (char *string,long errflg)
  17093. {
  17094. }
  17095. void mm_dlog (char *string)
  17096. {
  17097. }
  17098. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17099. {
  17100. }
  17101. void mm_critical (MAILSTREAM *stream)
  17102. {
  17103. }
  17104. void mm_nocritical (MAILSTREAM *stream)
  17105. {
  17106. }
  17107. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17108. {
  17109. }
  17110. void mm_fatal (char *string)
  17111. {
  17112. }
  17113. int
  17114. main ()
  17115. {
  17116. long check = mail_expunge_full(NULL, "", 0);
  17117. ;
  17118. return 0;
  17119. }
  17120. _ACEOF
  17121. if ac_fn_c_try_link "$LINENO"; then :
  17122. ac_cv_imap_tk2006="yes"
  17123. else
  17124. ac_cv_imap_tk2006="no"
  17125. fi
  17126. rm -f core conftest.err conftest.$ac_objext \
  17127. conftest$ac_exeext conftest.$ac_ext
  17128. fi
  17129. CPPFLAGS="${saved_cppflags}"
  17130. LIBS="${saved_libs}"
  17131. if test "${ac_cv_imap_tk}" = "no"; then
  17132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17133. $as_echo "no" >&6; }
  17134. if test "${switch_to_system_on_failure}" = "yes"; then
  17135. IMAP_TK_DIR="system"
  17136. else #This means they specified a directory. Search for a package installation there too
  17137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  17138. $as_echo_n "checking for system c-client library...... " >&6; }
  17139. CPPFLAGS="${saved_cppflags}"
  17140. LIBS="${saved_libs}"
  17141. imap_include="-I${IMAP_TK_DIR}/include"
  17142. imap_ldflags="-L${IMAP_TK_DIR}/lib"
  17143. imap_libs="-lc-client"
  17144. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  17145. LIBS="${LIBS} ${imap_libs} ${imap_ldflags}"
  17146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17147. /* end confdefs.h. */
  17148. #include "c-client.h"
  17149. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17150. {
  17151. }
  17152. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17153. {
  17154. }
  17155. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17156. {
  17157. }
  17158. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17159. {
  17160. }
  17161. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17162. {
  17163. }
  17164. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17165. {
  17166. }
  17167. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17168. {
  17169. }
  17170. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17171. {
  17172. }
  17173. void mm_log (char *string,long errflg)
  17174. {
  17175. }
  17176. void mm_dlog (char *string)
  17177. {
  17178. }
  17179. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17180. {
  17181. }
  17182. void mm_critical (MAILSTREAM *stream)
  17183. {
  17184. }
  17185. void mm_nocritical (MAILSTREAM *stream)
  17186. {
  17187. }
  17188. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17189. {
  17190. }
  17191. void mm_fatal (char *string)
  17192. {
  17193. }
  17194. int
  17195. main ()
  17196. {
  17197. MAILSTREAM *foo = mail_open(NULL, "", 0);
  17198. ;
  17199. return 0;
  17200. }
  17201. _ACEOF
  17202. if ac_fn_c_try_link "$LINENO"; then :
  17203. ac_cv_imap_tk="yes"
  17204. else
  17205. ac_cv_imap_tk="no"
  17206. fi
  17207. rm -f core conftest.err conftest.$ac_objext \
  17208. conftest$ac_exeext conftest.$ac_ext
  17209. if test "${ac_cv_imap_tk}" = "yes"; then
  17210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17211. /* end confdefs.h. */
  17212. #include "c-client.h"
  17213. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17214. {
  17215. }
  17216. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17217. {
  17218. }
  17219. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17220. {
  17221. }
  17222. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17223. {
  17224. }
  17225. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17226. {
  17227. }
  17228. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17229. {
  17230. }
  17231. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17232. {
  17233. }
  17234. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17235. {
  17236. }
  17237. void mm_log (char *string,long errflg)
  17238. {
  17239. }
  17240. void mm_dlog (char *string)
  17241. {
  17242. }
  17243. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17244. {
  17245. }
  17246. void mm_critical (MAILSTREAM *stream)
  17247. {
  17248. }
  17249. void mm_nocritical (MAILSTREAM *stream)
  17250. {
  17251. }
  17252. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17253. {
  17254. }
  17255. void mm_fatal (char *string)
  17256. {
  17257. }
  17258. int
  17259. main ()
  17260. {
  17261. long check = mail_expunge_full(NULL, "", 0);
  17262. ;
  17263. return 0;
  17264. }
  17265. _ACEOF
  17266. if ac_fn_c_try_link "$LINENO"; then :
  17267. ac_cv_imap_tk2006="yes"
  17268. else
  17269. ac_cv_imap_tk2006="no"
  17270. fi
  17271. rm -f core conftest.err conftest.$ac_objext \
  17272. conftest$ac_exeext conftest.$ac_ext
  17273. fi
  17274. fi
  17275. fi
  17276. fi
  17277. if test "${IMAP_TK_DIR}" = "system"; then
  17278. #We will enter here if user specified "system" or if any of above checks failed
  17279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system c-client library..." >&5
  17280. $as_echo_n "checking for system c-client library...... " >&6; }
  17281. CPPFLAGS="${saved_cppflags}"
  17282. LIBS="${saved_libs}"
  17283. imap_ldflags=""
  17284. imap_libs="-lc-client"
  17285. imap_include="-DUSE_SYSTEM_IMAP" #Try the imap directory first
  17286. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  17287. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  17288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17289. /* end confdefs.h. */
  17290. #include <stdio.h>
  17291. #include <imap/c-client.h>
  17292. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17293. {
  17294. }
  17295. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17296. {
  17297. }
  17298. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17299. {
  17300. }
  17301. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17302. {
  17303. }
  17304. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17305. {
  17306. }
  17307. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17308. {
  17309. }
  17310. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17311. {
  17312. }
  17313. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17314. {
  17315. }
  17316. void mm_log (char *string,long errflg)
  17317. {
  17318. }
  17319. void mm_dlog (char *string)
  17320. {
  17321. }
  17322. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17323. {
  17324. }
  17325. void mm_critical (MAILSTREAM *stream)
  17326. {
  17327. }
  17328. void mm_nocritical (MAILSTREAM *stream)
  17329. {
  17330. }
  17331. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17332. {
  17333. }
  17334. void mm_fatal (char *string)
  17335. {
  17336. }
  17337. int
  17338. main ()
  17339. {
  17340. MAILSTREAM *foo = mail_open(NULL, "", 0);
  17341. ;
  17342. return 0;
  17343. }
  17344. _ACEOF
  17345. if ac_fn_c_try_link "$LINENO"; then :
  17346. ac_cv_imap_tk="yes"
  17347. else
  17348. ac_cv_imap_tk="no"
  17349. fi
  17350. rm -f core conftest.err conftest.$ac_objext \
  17351. conftest$ac_exeext conftest.$ac_ext
  17352. if test "${ac_cv_imap_tk}" = "yes"; then
  17353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17354. /* end confdefs.h. */
  17355. #include <stdio.h>
  17356. #include <imap/c-client.h>
  17357. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17358. {
  17359. }
  17360. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17361. {
  17362. }
  17363. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17364. {
  17365. }
  17366. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17367. {
  17368. }
  17369. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17370. {
  17371. }
  17372. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17373. {
  17374. }
  17375. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17376. {
  17377. }
  17378. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17379. {
  17380. }
  17381. void mm_log (char *string,long errflg)
  17382. {
  17383. }
  17384. void mm_dlog (char *string)
  17385. {
  17386. }
  17387. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17388. {
  17389. }
  17390. void mm_critical (MAILSTREAM *stream)
  17391. {
  17392. }
  17393. void mm_nocritical (MAILSTREAM *stream)
  17394. {
  17395. }
  17396. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17397. {
  17398. }
  17399. void mm_fatal (char *string)
  17400. {
  17401. }
  17402. int
  17403. main ()
  17404. {
  17405. long check = mail_expunge_full(NULL, "", 0);
  17406. ;
  17407. return 0;
  17408. }
  17409. _ACEOF
  17410. if ac_fn_c_try_link "$LINENO"; then :
  17411. ac_cv_imap_tk2006="yes"
  17412. else
  17413. ac_cv_imap_tk2006="no"
  17414. fi
  17415. rm -f core conftest.err conftest.$ac_objext \
  17416. conftest$ac_exeext conftest.$ac_ext
  17417. else #looking in imap directory didn't work, try c-client
  17418. imap_ldflags=""
  17419. imap_libs="-lc-client"
  17420. imap_include="-DUSE_SYSTEM_CCLIENT"
  17421. CPPFLAGS="${saved_cppflags}"
  17422. LIBS="${saved_libs}"
  17423. CPPFLAGS="${CPPFLAGS} ${imap_include}"
  17424. LIBS="${LIBS} ${imap_libs} "`echo ${imap_ldflags}`
  17425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17426. /* end confdefs.h. */
  17427. #include <stdio.h>
  17428. #include <c-client/c-client.h>
  17429. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17430. {
  17431. }
  17432. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17433. {
  17434. }
  17435. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17436. {
  17437. }
  17438. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17439. {
  17440. }
  17441. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17442. {
  17443. }
  17444. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17445. {
  17446. }
  17447. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17448. {
  17449. }
  17450. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17451. {
  17452. }
  17453. void mm_log (char *string,long errflg)
  17454. {
  17455. }
  17456. void mm_dlog (char *string)
  17457. {
  17458. }
  17459. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17460. {
  17461. }
  17462. void mm_critical (MAILSTREAM *stream)
  17463. {
  17464. }
  17465. void mm_nocritical (MAILSTREAM *stream)
  17466. {
  17467. }
  17468. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17469. {
  17470. }
  17471. void mm_fatal (char *string)
  17472. {
  17473. }
  17474. int
  17475. main ()
  17476. {
  17477. MAILSTREAM *foo = mail_open(NULL, "", 0);
  17478. ;
  17479. return 0;
  17480. }
  17481. _ACEOF
  17482. if ac_fn_c_try_link "$LINENO"; then :
  17483. ac_cv_imap_tk="yes"
  17484. else
  17485. ac_cv_imap_tk="no"
  17486. fi
  17487. rm -f core conftest.err conftest.$ac_objext \
  17488. conftest$ac_exeext conftest.$ac_ext
  17489. if test "${ac_cv_imap_tk}" = "yes"; then
  17490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17491. /* end confdefs.h. */
  17492. #include <stdio.h>
  17493. #include <c-client/c-client.h>
  17494. void mm_searched (MAILSTREAM *stream,unsigned long number)
  17495. {
  17496. }
  17497. void mm_exists (MAILSTREAM *stream,unsigned long number)
  17498. {
  17499. }
  17500. void mm_expunged (MAILSTREAM *stream,unsigned long number)
  17501. {
  17502. }
  17503. void mm_flags (MAILSTREAM *stream,unsigned long number)
  17504. {
  17505. }
  17506. void mm_notify (MAILSTREAM *stream,char *string,long errflg)
  17507. {
  17508. }
  17509. void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17510. {
  17511. }
  17512. void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
  17513. {
  17514. }
  17515. void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
  17516. {
  17517. }
  17518. void mm_log (char *string,long errflg)
  17519. {
  17520. }
  17521. void mm_dlog (char *string)
  17522. {
  17523. }
  17524. void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
  17525. {
  17526. }
  17527. void mm_critical (MAILSTREAM *stream)
  17528. {
  17529. }
  17530. void mm_nocritical (MAILSTREAM *stream)
  17531. {
  17532. }
  17533. long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
  17534. {
  17535. }
  17536. void mm_fatal (char *string)
  17537. {
  17538. }
  17539. int
  17540. main ()
  17541. {
  17542. long check = mail_expunge_full(NULL, "", 0);
  17543. ;
  17544. return 0;
  17545. }
  17546. _ACEOF
  17547. if ac_fn_c_try_link "$LINENO"; then :
  17548. ac_cv_imap_tk2006="yes"
  17549. else
  17550. ac_cv_imap_tk2006="no"
  17551. fi
  17552. rm -f core conftest.err conftest.$ac_objext \
  17553. conftest$ac_exeext conftest.$ac_ext
  17554. fi
  17555. fi
  17556. fi
  17557. if test "${ac_cv_imap_tk}" = "yes"; then
  17558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17559. $as_echo "yes" >&6; }
  17560. IMAP_TK_LIB="${imap_libs} "`echo ${imap_ldflags}`
  17561. IMAP_TK_INCLUDE="${imap_include}"
  17562. PBX_IMAP_TK=1
  17563. $as_echo "#define HAVE_IMAP_TK 1" >>confdefs.h
  17564. if test "${ac_cv_imap_tk2006}" = "yes"; then
  17565. $as_echo "#define HAVE_IMAP_TK2006 1" >>confdefs.h
  17566. fi
  17567. else
  17568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17569. $as_echo "no" >&6; }
  17570. fi
  17571. CPPFLAGS="${saved_cppflags}"
  17572. LIBS="${saved_libs}"
  17573. fi
  17574. if test "x${PBX_IODBC}" != "x1" -a "${USE_IODBC}" != "no"; then
  17575. pbxlibdir=""
  17576. # if --with-IODBC=DIR has been specified, use it.
  17577. if test "x${IODBC_DIR}" != "x"; then
  17578. if test -d ${IODBC_DIR}/lib; then
  17579. pbxlibdir="-L${IODBC_DIR}/lib"
  17580. else
  17581. pbxlibdir="-L${IODBC_DIR}"
  17582. fi
  17583. fi
  17584. pbxfuncname="SQLConnect"
  17585. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17586. AST_IODBC_FOUND=yes
  17587. else
  17588. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17589. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  17590. as_ac_Lib=`$as_echo "ac_cv_lib_iodbc_${pbxfuncname}" | $as_tr_sh`
  17591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -liodbc" >&5
  17592. $as_echo_n "checking for ${pbxfuncname} in -liodbc... " >&6; }
  17593. if eval \${$as_ac_Lib+:} false; then :
  17594. $as_echo_n "(cached) " >&6
  17595. else
  17596. ac_check_lib_save_LIBS=$LIBS
  17597. LIBS="-liodbc ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  17598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17599. /* end confdefs.h. */
  17600. /* Override any GCC internal prototype to avoid an error.
  17601. Use char because int might match the return type of a GCC
  17602. builtin and then its argument prototype would still apply. */
  17603. #ifdef __cplusplus
  17604. extern "C"
  17605. #endif
  17606. char ${pbxfuncname} ();
  17607. int
  17608. main ()
  17609. {
  17610. return ${pbxfuncname} ();
  17611. ;
  17612. return 0;
  17613. }
  17614. _ACEOF
  17615. if ac_fn_c_try_link "$LINENO"; then :
  17616. eval "$as_ac_Lib=yes"
  17617. else
  17618. eval "$as_ac_Lib=no"
  17619. fi
  17620. rm -f core conftest.err conftest.$ac_objext \
  17621. conftest$ac_exeext conftest.$ac_ext
  17622. LIBS=$ac_check_lib_save_LIBS
  17623. fi
  17624. eval ac_res=\$$as_ac_Lib
  17625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17626. $as_echo "$ac_res" >&6; }
  17627. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17628. AST_IODBC_FOUND=yes
  17629. else
  17630. AST_IODBC_FOUND=no
  17631. fi
  17632. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17633. fi
  17634. # now check for the header.
  17635. if test "${AST_IODBC_FOUND}" = "yes"; then
  17636. IODBC_LIB="${pbxlibdir} -liodbc ${PTHREAD_LIBS}"
  17637. # if --with-IODBC=DIR has been specified, use it.
  17638. if test "x${IODBC_DIR}" != "x"; then
  17639. IODBC_INCLUDE="-I${IODBC_DIR}/include"
  17640. fi
  17641. IODBC_INCLUDE="${IODBC_INCLUDE} ${PTHREAD_CFLAGS}"
  17642. if test "xsql.h" = "x" ; then # no header, assume found
  17643. IODBC_HEADER_FOUND="1"
  17644. else # check for the header
  17645. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17646. CPPFLAGS="${CPPFLAGS} ${IODBC_INCLUDE}"
  17647. ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  17648. if test "x$ac_cv_header_sql_h" = xyes; then :
  17649. IODBC_HEADER_FOUND=1
  17650. else
  17651. IODBC_HEADER_FOUND=0
  17652. fi
  17653. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17654. fi
  17655. if test "x${IODBC_HEADER_FOUND}" = "x0" ; then
  17656. IODBC_LIB=""
  17657. IODBC_INCLUDE=""
  17658. else
  17659. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17660. IODBC_LIB=""
  17661. fi
  17662. PBX_IODBC=1
  17663. cat >>confdefs.h <<_ACEOF
  17664. #define HAVE_IODBC 1
  17665. _ACEOF
  17666. fi
  17667. fi
  17668. fi
  17669. if test "x${PBX_INOTIFY}" != "x1" -a "${USE_INOTIFY}" != "no"; then
  17670. pbxlibdir=""
  17671. # if --with-INOTIFY=DIR has been specified, use it.
  17672. if test "x${INOTIFY_DIR}" != "x"; then
  17673. if test -d ${INOTIFY_DIR}/lib; then
  17674. pbxlibdir="-L${INOTIFY_DIR}/lib"
  17675. else
  17676. pbxlibdir="-L${INOTIFY_DIR}"
  17677. fi
  17678. fi
  17679. pbxfuncname="inotify_init"
  17680. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17681. AST_INOTIFY_FOUND=yes
  17682. else
  17683. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17684. CFLAGS="${CFLAGS} "
  17685. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  17686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  17687. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  17688. if eval \${$as_ac_Lib+:} false; then :
  17689. $as_echo_n "(cached) " >&6
  17690. else
  17691. ac_check_lib_save_LIBS=$LIBS
  17692. LIBS="-lc ${pbxlibdir} $LIBS"
  17693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17694. /* end confdefs.h. */
  17695. /* Override any GCC internal prototype to avoid an error.
  17696. Use char because int might match the return type of a GCC
  17697. builtin and then its argument prototype would still apply. */
  17698. #ifdef __cplusplus
  17699. extern "C"
  17700. #endif
  17701. char ${pbxfuncname} ();
  17702. int
  17703. main ()
  17704. {
  17705. return ${pbxfuncname} ();
  17706. ;
  17707. return 0;
  17708. }
  17709. _ACEOF
  17710. if ac_fn_c_try_link "$LINENO"; then :
  17711. eval "$as_ac_Lib=yes"
  17712. else
  17713. eval "$as_ac_Lib=no"
  17714. fi
  17715. rm -f core conftest.err conftest.$ac_objext \
  17716. conftest$ac_exeext conftest.$ac_ext
  17717. LIBS=$ac_check_lib_save_LIBS
  17718. fi
  17719. eval ac_res=\$$as_ac_Lib
  17720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17721. $as_echo "$ac_res" >&6; }
  17722. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17723. AST_INOTIFY_FOUND=yes
  17724. else
  17725. AST_INOTIFY_FOUND=no
  17726. fi
  17727. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17728. fi
  17729. # now check for the header.
  17730. if test "${AST_INOTIFY_FOUND}" = "yes"; then
  17731. INOTIFY_LIB="${pbxlibdir} -lc "
  17732. # if --with-INOTIFY=DIR has been specified, use it.
  17733. if test "x${INOTIFY_DIR}" != "x"; then
  17734. INOTIFY_INCLUDE="-I${INOTIFY_DIR}/include"
  17735. fi
  17736. INOTIFY_INCLUDE="${INOTIFY_INCLUDE} "
  17737. if test "xsys/inotify.h" = "x" ; then # no header, assume found
  17738. INOTIFY_HEADER_FOUND="1"
  17739. else # check for the header
  17740. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17741. CPPFLAGS="${CPPFLAGS} ${INOTIFY_INCLUDE}"
  17742. ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
  17743. if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
  17744. INOTIFY_HEADER_FOUND=1
  17745. else
  17746. INOTIFY_HEADER_FOUND=0
  17747. fi
  17748. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17749. fi
  17750. if test "x${INOTIFY_HEADER_FOUND}" = "x0" ; then
  17751. INOTIFY_LIB=""
  17752. INOTIFY_INCLUDE=""
  17753. else
  17754. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17755. INOTIFY_LIB=""
  17756. fi
  17757. PBX_INOTIFY=1
  17758. cat >>confdefs.h <<_ACEOF
  17759. #define HAVE_INOTIFY 1
  17760. _ACEOF
  17761. fi
  17762. fi
  17763. fi
  17764. if test "x${PBX_JACK}" != "x1" -a "${USE_JACK}" != "no"; then
  17765. pbxlibdir=""
  17766. # if --with-JACK=DIR has been specified, use it.
  17767. if test "x${JACK_DIR}" != "x"; then
  17768. if test -d ${JACK_DIR}/lib; then
  17769. pbxlibdir="-L${JACK_DIR}/lib"
  17770. else
  17771. pbxlibdir="-L${JACK_DIR}"
  17772. fi
  17773. fi
  17774. pbxfuncname="jack_activate"
  17775. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17776. AST_JACK_FOUND=yes
  17777. else
  17778. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17779. CFLAGS="${CFLAGS} "
  17780. as_ac_Lib=`$as_echo "ac_cv_lib_jack_${pbxfuncname}" | $as_tr_sh`
  17781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ljack" >&5
  17782. $as_echo_n "checking for ${pbxfuncname} in -ljack... " >&6; }
  17783. if eval \${$as_ac_Lib+:} false; then :
  17784. $as_echo_n "(cached) " >&6
  17785. else
  17786. ac_check_lib_save_LIBS=$LIBS
  17787. LIBS="-ljack ${pbxlibdir} $LIBS"
  17788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17789. /* end confdefs.h. */
  17790. /* Override any GCC internal prototype to avoid an error.
  17791. Use char because int might match the return type of a GCC
  17792. builtin and then its argument prototype would still apply. */
  17793. #ifdef __cplusplus
  17794. extern "C"
  17795. #endif
  17796. char ${pbxfuncname} ();
  17797. int
  17798. main ()
  17799. {
  17800. return ${pbxfuncname} ();
  17801. ;
  17802. return 0;
  17803. }
  17804. _ACEOF
  17805. if ac_fn_c_try_link "$LINENO"; then :
  17806. eval "$as_ac_Lib=yes"
  17807. else
  17808. eval "$as_ac_Lib=no"
  17809. fi
  17810. rm -f core conftest.err conftest.$ac_objext \
  17811. conftest$ac_exeext conftest.$ac_ext
  17812. LIBS=$ac_check_lib_save_LIBS
  17813. fi
  17814. eval ac_res=\$$as_ac_Lib
  17815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17816. $as_echo "$ac_res" >&6; }
  17817. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17818. AST_JACK_FOUND=yes
  17819. else
  17820. AST_JACK_FOUND=no
  17821. fi
  17822. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17823. fi
  17824. # now check for the header.
  17825. if test "${AST_JACK_FOUND}" = "yes"; then
  17826. JACK_LIB="${pbxlibdir} -ljack "
  17827. # if --with-JACK=DIR has been specified, use it.
  17828. if test "x${JACK_DIR}" != "x"; then
  17829. JACK_INCLUDE="-I${JACK_DIR}/include"
  17830. fi
  17831. JACK_INCLUDE="${JACK_INCLUDE} "
  17832. if test "xjack/jack.h" = "x" ; then # no header, assume found
  17833. JACK_HEADER_FOUND="1"
  17834. else # check for the header
  17835. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17836. CPPFLAGS="${CPPFLAGS} ${JACK_INCLUDE}"
  17837. ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
  17838. if test "x$ac_cv_header_jack_jack_h" = xyes; then :
  17839. JACK_HEADER_FOUND=1
  17840. else
  17841. JACK_HEADER_FOUND=0
  17842. fi
  17843. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17844. fi
  17845. if test "x${JACK_HEADER_FOUND}" = "x0" ; then
  17846. JACK_LIB=""
  17847. JACK_INCLUDE=""
  17848. else
  17849. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17850. JACK_LIB=""
  17851. fi
  17852. PBX_JACK=1
  17853. cat >>confdefs.h <<_ACEOF
  17854. #define HAVE_JACK 1
  17855. _ACEOF
  17856. fi
  17857. fi
  17858. fi
  17859. # BSD (and OS X) equivalent of inotify
  17860. if test "x${PBX_KQUEUE}" != "x1" -a "${USE_KQUEUE}" != "no"; then
  17861. pbxlibdir=""
  17862. # if --with-KQUEUE=DIR has been specified, use it.
  17863. if test "x${KQUEUE_DIR}" != "x"; then
  17864. if test -d ${KQUEUE_DIR}/lib; then
  17865. pbxlibdir="-L${KQUEUE_DIR}/lib"
  17866. else
  17867. pbxlibdir="-L${KQUEUE_DIR}"
  17868. fi
  17869. fi
  17870. pbxfuncname="kqueue"
  17871. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17872. AST_KQUEUE_FOUND=yes
  17873. else
  17874. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17875. CFLAGS="${CFLAGS} "
  17876. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  17877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  17878. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  17879. if eval \${$as_ac_Lib+:} false; then :
  17880. $as_echo_n "(cached) " >&6
  17881. else
  17882. ac_check_lib_save_LIBS=$LIBS
  17883. LIBS="-lc ${pbxlibdir} $LIBS"
  17884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17885. /* end confdefs.h. */
  17886. /* Override any GCC internal prototype to avoid an error.
  17887. Use char because int might match the return type of a GCC
  17888. builtin and then its argument prototype would still apply. */
  17889. #ifdef __cplusplus
  17890. extern "C"
  17891. #endif
  17892. char ${pbxfuncname} ();
  17893. int
  17894. main ()
  17895. {
  17896. return ${pbxfuncname} ();
  17897. ;
  17898. return 0;
  17899. }
  17900. _ACEOF
  17901. if ac_fn_c_try_link "$LINENO"; then :
  17902. eval "$as_ac_Lib=yes"
  17903. else
  17904. eval "$as_ac_Lib=no"
  17905. fi
  17906. rm -f core conftest.err conftest.$ac_objext \
  17907. conftest$ac_exeext conftest.$ac_ext
  17908. LIBS=$ac_check_lib_save_LIBS
  17909. fi
  17910. eval ac_res=\$$as_ac_Lib
  17911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17912. $as_echo "$ac_res" >&6; }
  17913. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  17914. AST_KQUEUE_FOUND=yes
  17915. else
  17916. AST_KQUEUE_FOUND=no
  17917. fi
  17918. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  17919. fi
  17920. # now check for the header.
  17921. if test "${AST_KQUEUE_FOUND}" = "yes"; then
  17922. KQUEUE_LIB="${pbxlibdir} -lc "
  17923. # if --with-KQUEUE=DIR has been specified, use it.
  17924. if test "x${KQUEUE_DIR}" != "x"; then
  17925. KQUEUE_INCLUDE="-I${KQUEUE_DIR}/include"
  17926. fi
  17927. KQUEUE_INCLUDE="${KQUEUE_INCLUDE} "
  17928. if test "xsys/event.h" = "x" ; then # no header, assume found
  17929. KQUEUE_HEADER_FOUND="1"
  17930. else # check for the header
  17931. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  17932. CPPFLAGS="${CPPFLAGS} ${KQUEUE_INCLUDE}"
  17933. ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
  17934. if test "x$ac_cv_header_sys_event_h" = xyes; then :
  17935. KQUEUE_HEADER_FOUND=1
  17936. else
  17937. KQUEUE_HEADER_FOUND=0
  17938. fi
  17939. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  17940. fi
  17941. if test "x${KQUEUE_HEADER_FOUND}" = "x0" ; then
  17942. KQUEUE_LIB=""
  17943. KQUEUE_INCLUDE=""
  17944. else
  17945. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  17946. KQUEUE_LIB=""
  17947. fi
  17948. PBX_KQUEUE=1
  17949. cat >>confdefs.h <<_ACEOF
  17950. #define HAVE_KQUEUE 1
  17951. _ACEOF
  17952. fi
  17953. fi
  17954. fi
  17955. # 64-bit version of kevent (from kqueue) on OS X
  17956. for ac_func in kevent64
  17957. do :
  17958. ac_fn_c_check_func "$LINENO" "kevent64" "ac_cv_func_kevent64"
  17959. if test "x$ac_cv_func_kevent64" = xyes; then :
  17960. cat >>confdefs.h <<_ACEOF
  17961. #define HAVE_KEVENT64 1
  17962. _ACEOF
  17963. fi
  17964. done
  17965. # Needed by unixodbc
  17966. if test "x${PBX_LTDL}" != "x1" -a "${USE_LTDL}" != "no"; then
  17967. pbxlibdir=""
  17968. # if --with-LTDL=DIR has been specified, use it.
  17969. if test "x${LTDL_DIR}" != "x"; then
  17970. if test -d ${LTDL_DIR}/lib; then
  17971. pbxlibdir="-L${LTDL_DIR}/lib"
  17972. else
  17973. pbxlibdir="-L${LTDL_DIR}"
  17974. fi
  17975. fi
  17976. pbxfuncname="lt_dlinit"
  17977. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  17978. AST_LTDL_FOUND=yes
  17979. else
  17980. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  17981. CFLAGS="${CFLAGS} "
  17982. as_ac_Lib=`$as_echo "ac_cv_lib_ltdl_${pbxfuncname}" | $as_tr_sh`
  17983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lltdl" >&5
  17984. $as_echo_n "checking for ${pbxfuncname} in -lltdl... " >&6; }
  17985. if eval \${$as_ac_Lib+:} false; then :
  17986. $as_echo_n "(cached) " >&6
  17987. else
  17988. ac_check_lib_save_LIBS=$LIBS
  17989. LIBS="-lltdl ${pbxlibdir} $LIBS"
  17990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17991. /* end confdefs.h. */
  17992. /* Override any GCC internal prototype to avoid an error.
  17993. Use char because int might match the return type of a GCC
  17994. builtin and then its argument prototype would still apply. */
  17995. #ifdef __cplusplus
  17996. extern "C"
  17997. #endif
  17998. char ${pbxfuncname} ();
  17999. int
  18000. main ()
  18001. {
  18002. return ${pbxfuncname} ();
  18003. ;
  18004. return 0;
  18005. }
  18006. _ACEOF
  18007. if ac_fn_c_try_link "$LINENO"; then :
  18008. eval "$as_ac_Lib=yes"
  18009. else
  18010. eval "$as_ac_Lib=no"
  18011. fi
  18012. rm -f core conftest.err conftest.$ac_objext \
  18013. conftest$ac_exeext conftest.$ac_ext
  18014. LIBS=$ac_check_lib_save_LIBS
  18015. fi
  18016. eval ac_res=\$$as_ac_Lib
  18017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18018. $as_echo "$ac_res" >&6; }
  18019. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18020. AST_LTDL_FOUND=yes
  18021. else
  18022. AST_LTDL_FOUND=no
  18023. fi
  18024. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18025. fi
  18026. # now check for the header.
  18027. if test "${AST_LTDL_FOUND}" = "yes"; then
  18028. LTDL_LIB="${pbxlibdir} -lltdl "
  18029. # if --with-LTDL=DIR has been specified, use it.
  18030. if test "x${LTDL_DIR}" != "x"; then
  18031. LTDL_INCLUDE="-I${LTDL_DIR}/include"
  18032. fi
  18033. LTDL_INCLUDE="${LTDL_INCLUDE} "
  18034. if test "xltdl.h" = "x" ; then # no header, assume found
  18035. LTDL_HEADER_FOUND="1"
  18036. else # check for the header
  18037. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18038. CPPFLAGS="${CPPFLAGS} ${LTDL_INCLUDE}"
  18039. ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
  18040. if test "x$ac_cv_header_ltdl_h" = xyes; then :
  18041. LTDL_HEADER_FOUND=1
  18042. else
  18043. LTDL_HEADER_FOUND=0
  18044. fi
  18045. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18046. fi
  18047. if test "x${LTDL_HEADER_FOUND}" = "x0" ; then
  18048. LTDL_LIB=""
  18049. LTDL_INCLUDE=""
  18050. else
  18051. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18052. LTDL_LIB=""
  18053. fi
  18054. PBX_LTDL=1
  18055. cat >>confdefs.h <<_ACEOF
  18056. #define HAVE_LTDL 1
  18057. _ACEOF
  18058. fi
  18059. fi
  18060. fi
  18061. if test "x${PBX_LDAP}" != "x1" -a "${USE_LDAP}" != "no"; then
  18062. pbxlibdir=""
  18063. # if --with-LDAP=DIR has been specified, use it.
  18064. if test "x${LDAP_DIR}" != "x"; then
  18065. if test -d ${LDAP_DIR}/lib; then
  18066. pbxlibdir="-L${LDAP_DIR}/lib"
  18067. else
  18068. pbxlibdir="-L${LDAP_DIR}"
  18069. fi
  18070. fi
  18071. pbxfuncname="ldap_initialize"
  18072. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18073. AST_LDAP_FOUND=yes
  18074. else
  18075. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18076. CFLAGS="${CFLAGS} "
  18077. as_ac_Lib=`$as_echo "ac_cv_lib_ldap_${pbxfuncname}" | $as_tr_sh`
  18078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lldap" >&5
  18079. $as_echo_n "checking for ${pbxfuncname} in -lldap... " >&6; }
  18080. if eval \${$as_ac_Lib+:} false; then :
  18081. $as_echo_n "(cached) " >&6
  18082. else
  18083. ac_check_lib_save_LIBS=$LIBS
  18084. LIBS="-lldap ${pbxlibdir} $LIBS"
  18085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18086. /* end confdefs.h. */
  18087. /* Override any GCC internal prototype to avoid an error.
  18088. Use char because int might match the return type of a GCC
  18089. builtin and then its argument prototype would still apply. */
  18090. #ifdef __cplusplus
  18091. extern "C"
  18092. #endif
  18093. char ${pbxfuncname} ();
  18094. int
  18095. main ()
  18096. {
  18097. return ${pbxfuncname} ();
  18098. ;
  18099. return 0;
  18100. }
  18101. _ACEOF
  18102. if ac_fn_c_try_link "$LINENO"; then :
  18103. eval "$as_ac_Lib=yes"
  18104. else
  18105. eval "$as_ac_Lib=no"
  18106. fi
  18107. rm -f core conftest.err conftest.$ac_objext \
  18108. conftest$ac_exeext conftest.$ac_ext
  18109. LIBS=$ac_check_lib_save_LIBS
  18110. fi
  18111. eval ac_res=\$$as_ac_Lib
  18112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18113. $as_echo "$ac_res" >&6; }
  18114. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18115. AST_LDAP_FOUND=yes
  18116. else
  18117. AST_LDAP_FOUND=no
  18118. fi
  18119. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18120. fi
  18121. # now check for the header.
  18122. if test "${AST_LDAP_FOUND}" = "yes"; then
  18123. LDAP_LIB="${pbxlibdir} -lldap "
  18124. # if --with-LDAP=DIR has been specified, use it.
  18125. if test "x${LDAP_DIR}" != "x"; then
  18126. LDAP_INCLUDE="-I${LDAP_DIR}/include"
  18127. fi
  18128. LDAP_INCLUDE="${LDAP_INCLUDE} "
  18129. if test "xldap.h" = "x" ; then # no header, assume found
  18130. LDAP_HEADER_FOUND="1"
  18131. else # check for the header
  18132. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18133. CPPFLAGS="${CPPFLAGS} ${LDAP_INCLUDE}"
  18134. ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
  18135. if test "x$ac_cv_header_ldap_h" = xyes; then :
  18136. LDAP_HEADER_FOUND=1
  18137. else
  18138. LDAP_HEADER_FOUND=0
  18139. fi
  18140. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18141. fi
  18142. if test "x${LDAP_HEADER_FOUND}" = "x0" ; then
  18143. LDAP_LIB=""
  18144. LDAP_INCLUDE=""
  18145. else
  18146. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18147. LDAP_LIB=""
  18148. fi
  18149. PBX_LDAP=1
  18150. cat >>confdefs.h <<_ACEOF
  18151. #define HAVE_LDAP 1
  18152. _ACEOF
  18153. fi
  18154. fi
  18155. fi
  18156. if test "x${PBX_MISDN}" != "x1" -a "${USE_MISDN}" != "no"; then
  18157. pbxlibdir=""
  18158. # if --with-MISDN=DIR has been specified, use it.
  18159. if test "x${MISDN_DIR}" != "x"; then
  18160. if test -d ${MISDN_DIR}/lib; then
  18161. pbxlibdir="-L${MISDN_DIR}/lib"
  18162. else
  18163. pbxlibdir="-L${MISDN_DIR}"
  18164. fi
  18165. fi
  18166. pbxfuncname="mISDN_open"
  18167. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18168. AST_MISDN_FOUND=yes
  18169. else
  18170. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18171. CFLAGS="${CFLAGS} "
  18172. as_ac_Lib=`$as_echo "ac_cv_lib_mISDN_${pbxfuncname}" | $as_tr_sh`
  18173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lmISDN" >&5
  18174. $as_echo_n "checking for ${pbxfuncname} in -lmISDN... " >&6; }
  18175. if eval \${$as_ac_Lib+:} false; then :
  18176. $as_echo_n "(cached) " >&6
  18177. else
  18178. ac_check_lib_save_LIBS=$LIBS
  18179. LIBS="-lmISDN ${pbxlibdir} $LIBS"
  18180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18181. /* end confdefs.h. */
  18182. /* Override any GCC internal prototype to avoid an error.
  18183. Use char because int might match the return type of a GCC
  18184. builtin and then its argument prototype would still apply. */
  18185. #ifdef __cplusplus
  18186. extern "C"
  18187. #endif
  18188. char ${pbxfuncname} ();
  18189. int
  18190. main ()
  18191. {
  18192. return ${pbxfuncname} ();
  18193. ;
  18194. return 0;
  18195. }
  18196. _ACEOF
  18197. if ac_fn_c_try_link "$LINENO"; then :
  18198. eval "$as_ac_Lib=yes"
  18199. else
  18200. eval "$as_ac_Lib=no"
  18201. fi
  18202. rm -f core conftest.err conftest.$ac_objext \
  18203. conftest$ac_exeext conftest.$ac_ext
  18204. LIBS=$ac_check_lib_save_LIBS
  18205. fi
  18206. eval ac_res=\$$as_ac_Lib
  18207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18208. $as_echo "$ac_res" >&6; }
  18209. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18210. AST_MISDN_FOUND=yes
  18211. else
  18212. AST_MISDN_FOUND=no
  18213. fi
  18214. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18215. fi
  18216. # now check for the header.
  18217. if test "${AST_MISDN_FOUND}" = "yes"; then
  18218. MISDN_LIB="${pbxlibdir} -lmISDN "
  18219. # if --with-MISDN=DIR has been specified, use it.
  18220. if test "x${MISDN_DIR}" != "x"; then
  18221. MISDN_INCLUDE="-I${MISDN_DIR}/include"
  18222. fi
  18223. MISDN_INCLUDE="${MISDN_INCLUDE} "
  18224. if test "xmISDNuser/mISDNlib.h" = "x" ; then # no header, assume found
  18225. MISDN_HEADER_FOUND="1"
  18226. else # check for the header
  18227. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18228. CPPFLAGS="${CPPFLAGS} ${MISDN_INCLUDE}"
  18229. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/mISDNlib.h" "ac_cv_header_mISDNuser_mISDNlib_h" "$ac_includes_default"
  18230. if test "x$ac_cv_header_mISDNuser_mISDNlib_h" = xyes; then :
  18231. MISDN_HEADER_FOUND=1
  18232. else
  18233. MISDN_HEADER_FOUND=0
  18234. fi
  18235. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18236. fi
  18237. if test "x${MISDN_HEADER_FOUND}" = "x0" ; then
  18238. MISDN_LIB=""
  18239. MISDN_INCLUDE=""
  18240. else
  18241. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18242. MISDN_LIB=""
  18243. fi
  18244. PBX_MISDN=1
  18245. cat >>confdefs.h <<_ACEOF
  18246. #define HAVE_MISDN 1
  18247. _ACEOF
  18248. fi
  18249. fi
  18250. fi
  18251. if test "${PBX_MISDN}" = 1; then
  18252. if test "x${PBX_ISDNNET}" != "x1" -a "${USE_ISDNNET}" != "no"; then
  18253. pbxlibdir=""
  18254. # if --with-ISDNNET=DIR has been specified, use it.
  18255. if test "x${ISDNNET_DIR}" != "x"; then
  18256. if test -d ${ISDNNET_DIR}/lib; then
  18257. pbxlibdir="-L${ISDNNET_DIR}/lib"
  18258. else
  18259. pbxlibdir="-L${ISDNNET_DIR}"
  18260. fi
  18261. fi
  18262. pbxfuncname="init_manager"
  18263. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18264. AST_ISDNNET_FOUND=yes
  18265. else
  18266. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18267. CFLAGS="${CFLAGS} "
  18268. as_ac_Lib=`$as_echo "ac_cv_lib_isdnnet_${pbxfuncname}" | $as_tr_sh`
  18269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lisdnnet" >&5
  18270. $as_echo_n "checking for ${pbxfuncname} in -lisdnnet... " >&6; }
  18271. if eval \${$as_ac_Lib+:} false; then :
  18272. $as_echo_n "(cached) " >&6
  18273. else
  18274. ac_check_lib_save_LIBS=$LIBS
  18275. LIBS="-lisdnnet ${pbxlibdir} -lmISDN -lpthread $LIBS"
  18276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18277. /* end confdefs.h. */
  18278. /* Override any GCC internal prototype to avoid an error.
  18279. Use char because int might match the return type of a GCC
  18280. builtin and then its argument prototype would still apply. */
  18281. #ifdef __cplusplus
  18282. extern "C"
  18283. #endif
  18284. char ${pbxfuncname} ();
  18285. int
  18286. main ()
  18287. {
  18288. return ${pbxfuncname} ();
  18289. ;
  18290. return 0;
  18291. }
  18292. _ACEOF
  18293. if ac_fn_c_try_link "$LINENO"; then :
  18294. eval "$as_ac_Lib=yes"
  18295. else
  18296. eval "$as_ac_Lib=no"
  18297. fi
  18298. rm -f core conftest.err conftest.$ac_objext \
  18299. conftest$ac_exeext conftest.$ac_ext
  18300. LIBS=$ac_check_lib_save_LIBS
  18301. fi
  18302. eval ac_res=\$$as_ac_Lib
  18303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18304. $as_echo "$ac_res" >&6; }
  18305. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18306. AST_ISDNNET_FOUND=yes
  18307. else
  18308. AST_ISDNNET_FOUND=no
  18309. fi
  18310. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18311. fi
  18312. # now check for the header.
  18313. if test "${AST_ISDNNET_FOUND}" = "yes"; then
  18314. ISDNNET_LIB="${pbxlibdir} -lisdnnet -lmISDN -lpthread"
  18315. # if --with-ISDNNET=DIR has been specified, use it.
  18316. if test "x${ISDNNET_DIR}" != "x"; then
  18317. ISDNNET_INCLUDE="-I${ISDNNET_DIR}/include"
  18318. fi
  18319. ISDNNET_INCLUDE="${ISDNNET_INCLUDE} "
  18320. if test "xmISDNuser/isdn_net.h" = "x" ; then # no header, assume found
  18321. ISDNNET_HEADER_FOUND="1"
  18322. else # check for the header
  18323. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18324. CPPFLAGS="${CPPFLAGS} ${ISDNNET_INCLUDE}"
  18325. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/isdn_net.h" "ac_cv_header_mISDNuser_isdn_net_h" "$ac_includes_default"
  18326. if test "x$ac_cv_header_mISDNuser_isdn_net_h" = xyes; then :
  18327. ISDNNET_HEADER_FOUND=1
  18328. else
  18329. ISDNNET_HEADER_FOUND=0
  18330. fi
  18331. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18332. fi
  18333. if test "x${ISDNNET_HEADER_FOUND}" = "x0" ; then
  18334. ISDNNET_LIB=""
  18335. ISDNNET_INCLUDE=""
  18336. else
  18337. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18338. ISDNNET_LIB=""
  18339. fi
  18340. PBX_ISDNNET=1
  18341. cat >>confdefs.h <<_ACEOF
  18342. #define HAVE_ISDNNET 1
  18343. _ACEOF
  18344. fi
  18345. fi
  18346. fi
  18347. if test "x${PBX_SUPPSERV}" != "x1" -a "${USE_SUPPSERV}" != "no"; then
  18348. pbxlibdir=""
  18349. # if --with-SUPPSERV=DIR has been specified, use it.
  18350. if test "x${SUPPSERV_DIR}" != "x"; then
  18351. if test -d ${SUPPSERV_DIR}/lib; then
  18352. pbxlibdir="-L${SUPPSERV_DIR}/lib"
  18353. else
  18354. pbxlibdir="-L${SUPPSERV_DIR}"
  18355. fi
  18356. fi
  18357. pbxfuncname="encodeFac"
  18358. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18359. AST_SUPPSERV_FOUND=yes
  18360. else
  18361. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18362. CFLAGS="${CFLAGS} "
  18363. as_ac_Lib=`$as_echo "ac_cv_lib_suppserv_${pbxfuncname}" | $as_tr_sh`
  18364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsuppserv" >&5
  18365. $as_echo_n "checking for ${pbxfuncname} in -lsuppserv... " >&6; }
  18366. if eval \${$as_ac_Lib+:} false; then :
  18367. $as_echo_n "(cached) " >&6
  18368. else
  18369. ac_check_lib_save_LIBS=$LIBS
  18370. LIBS="-lsuppserv ${pbxlibdir} $LIBS"
  18371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18372. /* end confdefs.h. */
  18373. /* Override any GCC internal prototype to avoid an error.
  18374. Use char because int might match the return type of a GCC
  18375. builtin and then its argument prototype would still apply. */
  18376. #ifdef __cplusplus
  18377. extern "C"
  18378. #endif
  18379. char ${pbxfuncname} ();
  18380. int
  18381. main ()
  18382. {
  18383. return ${pbxfuncname} ();
  18384. ;
  18385. return 0;
  18386. }
  18387. _ACEOF
  18388. if ac_fn_c_try_link "$LINENO"; then :
  18389. eval "$as_ac_Lib=yes"
  18390. else
  18391. eval "$as_ac_Lib=no"
  18392. fi
  18393. rm -f core conftest.err conftest.$ac_objext \
  18394. conftest$ac_exeext conftest.$ac_ext
  18395. LIBS=$ac_check_lib_save_LIBS
  18396. fi
  18397. eval ac_res=\$$as_ac_Lib
  18398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18399. $as_echo "$ac_res" >&6; }
  18400. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18401. AST_SUPPSERV_FOUND=yes
  18402. else
  18403. AST_SUPPSERV_FOUND=no
  18404. fi
  18405. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18406. fi
  18407. # now check for the header.
  18408. if test "${AST_SUPPSERV_FOUND}" = "yes"; then
  18409. SUPPSERV_LIB="${pbxlibdir} -lsuppserv "
  18410. # if --with-SUPPSERV=DIR has been specified, use it.
  18411. if test "x${SUPPSERV_DIR}" != "x"; then
  18412. SUPPSERV_INCLUDE="-I${SUPPSERV_DIR}/include"
  18413. fi
  18414. SUPPSERV_INCLUDE="${SUPPSERV_INCLUDE} "
  18415. if test "xmISDNuser/suppserv.h" = "x" ; then # no header, assume found
  18416. SUPPSERV_HEADER_FOUND="1"
  18417. else # check for the header
  18418. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18419. CPPFLAGS="${CPPFLAGS} ${SUPPSERV_INCLUDE}"
  18420. ac_fn_c_check_header_mongrel "$LINENO" "mISDNuser/suppserv.h" "ac_cv_header_mISDNuser_suppserv_h" "$ac_includes_default"
  18421. if test "x$ac_cv_header_mISDNuser_suppserv_h" = xyes; then :
  18422. SUPPSERV_HEADER_FOUND=1
  18423. else
  18424. SUPPSERV_HEADER_FOUND=0
  18425. fi
  18426. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18427. fi
  18428. if test "x${SUPPSERV_HEADER_FOUND}" = "x0" ; then
  18429. SUPPSERV_LIB=""
  18430. SUPPSERV_INCLUDE=""
  18431. else
  18432. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18433. SUPPSERV_LIB=""
  18434. fi
  18435. PBX_SUPPSERV=1
  18436. cat >>confdefs.h <<_ACEOF
  18437. #define HAVE_SUPPSERV 1
  18438. _ACEOF
  18439. fi
  18440. fi
  18441. fi
  18442. if test "x${PBX_MISDN_FAC_RESULT}" != "x1"; then
  18443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fac_RESULT in mISDNuser/suppserv.h" >&5
  18444. $as_echo_n "checking for Fac_RESULT in mISDNuser/suppserv.h... " >&6; }
  18445. saved_cppflags="${CPPFLAGS}"
  18446. if test "x${MISDN_FAC_RESULT_DIR}" != "x"; then
  18447. MISDN_FAC_RESULT_INCLUDE="-I${MISDN_FAC_RESULT_DIR}/include"
  18448. fi
  18449. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_RESULT_INCLUDE}"
  18450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18451. /* end confdefs.h. */
  18452. #include <mISDNuser/suppserv.h>
  18453. int
  18454. main ()
  18455. {
  18456. #if defined(Fac_RESULT)
  18457. int foo = 0;
  18458. #else
  18459. int foo = bar;
  18460. #endif
  18461. 0
  18462. ;
  18463. return 0;
  18464. }
  18465. _ACEOF
  18466. if ac_fn_c_try_compile "$LINENO"; then :
  18467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18468. $as_echo "yes" >&6; }
  18469. PBX_MISDN_FAC_RESULT=1
  18470. $as_echo "#define HAVE_MISDN_FAC_RESULT 1" >>confdefs.h
  18471. else
  18472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18473. $as_echo "no" >&6; }
  18474. fi
  18475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18476. CPPFLAGS="${saved_cppflags}"
  18477. fi
  18478. if test "x${PBX_MISDN_FAC_ERROR}" != "x1"; then
  18479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fac_ERROR in mISDNuser/suppserv.h" >&5
  18480. $as_echo_n "checking for Fac_ERROR in mISDNuser/suppserv.h... " >&6; }
  18481. saved_cppflags="${CPPFLAGS}"
  18482. if test "x${MISDN_FAC_ERROR_DIR}" != "x"; then
  18483. MISDN_FAC_ERROR_INCLUDE="-I${MISDN_FAC_ERROR_DIR}/include"
  18484. fi
  18485. CPPFLAGS="${CPPFLAGS} ${MISDN_FAC_ERROR_INCLUDE}"
  18486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18487. /* end confdefs.h. */
  18488. #include <mISDNuser/suppserv.h>
  18489. int
  18490. main ()
  18491. {
  18492. #if defined(Fac_ERROR)
  18493. int foo = 0;
  18494. #else
  18495. int foo = bar;
  18496. #endif
  18497. 0
  18498. ;
  18499. return 0;
  18500. }
  18501. _ACEOF
  18502. if ac_fn_c_try_compile "$LINENO"; then :
  18503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18504. $as_echo "yes" >&6; }
  18505. PBX_MISDN_FAC_ERROR=1
  18506. $as_echo "#define HAVE_MISDN_FAC_ERROR 1" >>confdefs.h
  18507. else
  18508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18509. $as_echo "no" >&6; }
  18510. fi
  18511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18512. CPPFLAGS="${saved_cppflags}"
  18513. fi
  18514. ac_fn_c_check_header_mongrel "$LINENO" "linux/mISDNdsp.h" "ac_cv_header_linux_mISDNdsp_h" "$ac_includes_default"
  18515. if test "x$ac_cv_header_linux_mISDNdsp_h" = xyes; then :
  18516. cat >>confdefs.h <<_ACEOF
  18517. #define MISDN_1_2 1
  18518. _ACEOF
  18519. fi
  18520. ac_fn_c_check_member "$LINENO" "Q931_info_t" "redirect_dn" "ac_cv_member_Q931_info_t_redirect_dn" "#include <mISDNuser/mISDNlib.h>
  18521. "
  18522. if test "x$ac_cv_member_Q931_info_t_redirect_dn" = xyes; then :
  18523. else
  18524. PBX_MISDN=0
  18525. fi
  18526. fi
  18527. if test "x${PBX_MYSQLCLIENT}" != "x1" -a "${USE_MYSQLCLIENT}" != "no"; then
  18528. PBX_MYSQLCLIENT=0
  18529. if test -n "$ac_tool_prefix"; then
  18530. # Extract the first word of "${ac_tool_prefix}mysql_config", so it can be a program name with args.
  18531. set dummy ${ac_tool_prefix}mysql_config; ac_word=$2
  18532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18533. $as_echo_n "checking for $ac_word... " >&6; }
  18534. if ${ac_cv_path_CONFIG_MYSQLCLIENT+:} false; then :
  18535. $as_echo_n "(cached) " >&6
  18536. else
  18537. case $CONFIG_MYSQLCLIENT in
  18538. [\\/]* | ?:[\\/]*)
  18539. ac_cv_path_CONFIG_MYSQLCLIENT="$CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  18540. ;;
  18541. *)
  18542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18543. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  18544. for as_dir in $as_dummy
  18545. do
  18546. IFS=$as_save_IFS
  18547. test -z "$as_dir" && as_dir=.
  18548. for ac_exec_ext in '' $ac_executable_extensions; do
  18549. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18550. ac_cv_path_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  18551. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18552. break 2
  18553. fi
  18554. done
  18555. done
  18556. IFS=$as_save_IFS
  18557. ;;
  18558. esac
  18559. fi
  18560. CONFIG_MYSQLCLIENT=$ac_cv_path_CONFIG_MYSQLCLIENT
  18561. if test -n "$CONFIG_MYSQLCLIENT"; then
  18562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_MYSQLCLIENT" >&5
  18563. $as_echo "$CONFIG_MYSQLCLIENT" >&6; }
  18564. else
  18565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18566. $as_echo "no" >&6; }
  18567. fi
  18568. fi
  18569. if test -z "$ac_cv_path_CONFIG_MYSQLCLIENT"; then
  18570. ac_pt_CONFIG_MYSQLCLIENT=$CONFIG_MYSQLCLIENT
  18571. # Extract the first word of "mysql_config", so it can be a program name with args.
  18572. set dummy mysql_config; ac_word=$2
  18573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18574. $as_echo_n "checking for $ac_word... " >&6; }
  18575. if ${ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT+:} false; then :
  18576. $as_echo_n "(cached) " >&6
  18577. else
  18578. case $ac_pt_CONFIG_MYSQLCLIENT in
  18579. [\\/]* | ?:[\\/]*)
  18580. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$ac_pt_CONFIG_MYSQLCLIENT" # Let the user override the test with a path.
  18581. ;;
  18582. *)
  18583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18584. as_dummy="${MYSQLCLIENT_DIR}/bin:$PATH"
  18585. for as_dir in $as_dummy
  18586. do
  18587. IFS=$as_save_IFS
  18588. test -z "$as_dir" && as_dir=.
  18589. for ac_exec_ext in '' $ac_executable_extensions; do
  18590. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18591. ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT="$as_dir/$ac_word$ac_exec_ext"
  18592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18593. break 2
  18594. fi
  18595. done
  18596. done
  18597. IFS=$as_save_IFS
  18598. ;;
  18599. esac
  18600. fi
  18601. ac_pt_CONFIG_MYSQLCLIENT=$ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT
  18602. if test -n "$ac_pt_CONFIG_MYSQLCLIENT"; then
  18603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_MYSQLCLIENT" >&5
  18604. $as_echo "$ac_pt_CONFIG_MYSQLCLIENT" >&6; }
  18605. else
  18606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18607. $as_echo "no" >&6; }
  18608. fi
  18609. if test "x$ac_pt_CONFIG_MYSQLCLIENT" = x; then
  18610. CONFIG_MYSQLCLIENT="No"
  18611. else
  18612. case $cross_compiling:$ac_tool_warned in
  18613. yes:)
  18614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18616. ac_tool_warned=yes ;;
  18617. esac
  18618. CONFIG_MYSQLCLIENT=$ac_pt_CONFIG_MYSQLCLIENT
  18619. fi
  18620. else
  18621. CONFIG_MYSQLCLIENT="$ac_cv_path_CONFIG_MYSQLCLIENT"
  18622. fi
  18623. if test ! "x${CONFIG_MYSQLCLIENT}" = xNo; then
  18624. if test x"" = x ; then A=--cflags ; else A="" ; fi
  18625. MYSQLCLIENT_INCLUDE=$(${CONFIG_MYSQLCLIENT} $A)
  18626. MYSQLCLIENT_INCLUDE=$(echo ${MYSQLCLIENT_INCLUDE} | $SED -e "s|-I|-I${MYSQLCLIENT_DIR}|g")
  18627. if test x"" = x ; then A=--libs ; else A="" ; fi
  18628. MYSQLCLIENT_LIB=$(${CONFIG_MYSQLCLIENT} $A)
  18629. MYSQLCLIENT_LIB=$(echo ${MYSQLCLIENT_LIB} | $SED -e "s|-L|-L${MYSQLCLIENT_DIR}|g")
  18630. if test x"" != x ; then
  18631. saved_cppflags="${CPPFLAGS}"
  18632. CPPFLAGS="${CPPFLAGS} ${MYSQLCLIENT_INCLUDE}"
  18633. saved_libs="${LIBS}"
  18634. LIBS=${MYSQLCLIENT_LIB}
  18635. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18636. /* end confdefs.h. */
  18637. int
  18638. main ()
  18639. {
  18640. ;
  18641. ;
  18642. return 0;
  18643. }
  18644. _ACEOF
  18645. if ac_fn_c_try_link "$LINENO"; then :
  18646. PBX_MYSQLCLIENT=1
  18647. $as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
  18648. fi
  18649. rm -f core conftest.err conftest.$ac_objext \
  18650. conftest$ac_exeext conftest.$ac_ext
  18651. CPPFLAGS="${saved_cppflags}"
  18652. LIBS="${saved_libs}"
  18653. else
  18654. PBX_MYSQLCLIENT=1
  18655. $as_echo "#define HAVE_MYSQLCLIENT 1" >>confdefs.h
  18656. fi
  18657. fi
  18658. fi
  18659. if test "x${PBX_NBS}" != "x1" -a "${USE_NBS}" != "no"; then
  18660. pbxlibdir=""
  18661. # if --with-NBS=DIR has been specified, use it.
  18662. if test "x${NBS_DIR}" != "x"; then
  18663. if test -d ${NBS_DIR}/lib; then
  18664. pbxlibdir="-L${NBS_DIR}/lib"
  18665. else
  18666. pbxlibdir="-L${NBS_DIR}"
  18667. fi
  18668. fi
  18669. pbxfuncname="nbs_connect"
  18670. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  18671. AST_NBS_FOUND=yes
  18672. else
  18673. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  18674. CFLAGS="${CFLAGS} "
  18675. as_ac_Lib=`$as_echo "ac_cv_lib_nbs_${pbxfuncname}" | $as_tr_sh`
  18676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnbs" >&5
  18677. $as_echo_n "checking for ${pbxfuncname} in -lnbs... " >&6; }
  18678. if eval \${$as_ac_Lib+:} false; then :
  18679. $as_echo_n "(cached) " >&6
  18680. else
  18681. ac_check_lib_save_LIBS=$LIBS
  18682. LIBS="-lnbs ${pbxlibdir} $LIBS"
  18683. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18684. /* end confdefs.h. */
  18685. /* Override any GCC internal prototype to avoid an error.
  18686. Use char because int might match the return type of a GCC
  18687. builtin and then its argument prototype would still apply. */
  18688. #ifdef __cplusplus
  18689. extern "C"
  18690. #endif
  18691. char ${pbxfuncname} ();
  18692. int
  18693. main ()
  18694. {
  18695. return ${pbxfuncname} ();
  18696. ;
  18697. return 0;
  18698. }
  18699. _ACEOF
  18700. if ac_fn_c_try_link "$LINENO"; then :
  18701. eval "$as_ac_Lib=yes"
  18702. else
  18703. eval "$as_ac_Lib=no"
  18704. fi
  18705. rm -f core conftest.err conftest.$ac_objext \
  18706. conftest$ac_exeext conftest.$ac_ext
  18707. LIBS=$ac_check_lib_save_LIBS
  18708. fi
  18709. eval ac_res=\$$as_ac_Lib
  18710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18711. $as_echo "$ac_res" >&6; }
  18712. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  18713. AST_NBS_FOUND=yes
  18714. else
  18715. AST_NBS_FOUND=no
  18716. fi
  18717. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  18718. fi
  18719. # now check for the header.
  18720. if test "${AST_NBS_FOUND}" = "yes"; then
  18721. NBS_LIB="${pbxlibdir} -lnbs "
  18722. # if --with-NBS=DIR has been specified, use it.
  18723. if test "x${NBS_DIR}" != "x"; then
  18724. NBS_INCLUDE="-I${NBS_DIR}/include"
  18725. fi
  18726. NBS_INCLUDE="${NBS_INCLUDE} "
  18727. if test "xnbs.h" = "x" ; then # no header, assume found
  18728. NBS_HEADER_FOUND="1"
  18729. else # check for the header
  18730. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  18731. CPPFLAGS="${CPPFLAGS} ${NBS_INCLUDE}"
  18732. ac_fn_c_check_header_mongrel "$LINENO" "nbs.h" "ac_cv_header_nbs_h" "$ac_includes_default"
  18733. if test "x$ac_cv_header_nbs_h" = xyes; then :
  18734. NBS_HEADER_FOUND=1
  18735. else
  18736. NBS_HEADER_FOUND=0
  18737. fi
  18738. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  18739. fi
  18740. if test "x${NBS_HEADER_FOUND}" = "x0" ; then
  18741. NBS_LIB=""
  18742. NBS_INCLUDE=""
  18743. else
  18744. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  18745. NBS_LIB=""
  18746. fi
  18747. PBX_NBS=1
  18748. cat >>confdefs.h <<_ACEOF
  18749. #define HAVE_NBS 1
  18750. _ACEOF
  18751. fi
  18752. fi
  18753. fi
  18754. if test "x${PBX_NEON}" != "x1" -a "${USE_NEON}" != "no"; then
  18755. PBX_NEON=0
  18756. if test -n "$ac_tool_prefix"; then
  18757. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  18758. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  18759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18760. $as_echo_n "checking for $ac_word... " >&6; }
  18761. if ${ac_cv_path_CONFIG_NEON+:} false; then :
  18762. $as_echo_n "(cached) " >&6
  18763. else
  18764. case $CONFIG_NEON in
  18765. [\\/]* | ?:[\\/]*)
  18766. ac_cv_path_CONFIG_NEON="$CONFIG_NEON" # Let the user override the test with a path.
  18767. ;;
  18768. *)
  18769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18770. as_dummy="${NEON_DIR}/bin:$PATH"
  18771. for as_dir in $as_dummy
  18772. do
  18773. IFS=$as_save_IFS
  18774. test -z "$as_dir" && as_dir=.
  18775. for ac_exec_ext in '' $ac_executable_extensions; do
  18776. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18777. ac_cv_path_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  18778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18779. break 2
  18780. fi
  18781. done
  18782. done
  18783. IFS=$as_save_IFS
  18784. ;;
  18785. esac
  18786. fi
  18787. CONFIG_NEON=$ac_cv_path_CONFIG_NEON
  18788. if test -n "$CONFIG_NEON"; then
  18789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON" >&5
  18790. $as_echo "$CONFIG_NEON" >&6; }
  18791. else
  18792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18793. $as_echo "no" >&6; }
  18794. fi
  18795. fi
  18796. if test -z "$ac_cv_path_CONFIG_NEON"; then
  18797. ac_pt_CONFIG_NEON=$CONFIG_NEON
  18798. # Extract the first word of "neon-config", so it can be a program name with args.
  18799. set dummy neon-config; ac_word=$2
  18800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18801. $as_echo_n "checking for $ac_word... " >&6; }
  18802. if ${ac_cv_path_ac_pt_CONFIG_NEON+:} false; then :
  18803. $as_echo_n "(cached) " >&6
  18804. else
  18805. case $ac_pt_CONFIG_NEON in
  18806. [\\/]* | ?:[\\/]*)
  18807. ac_cv_path_ac_pt_CONFIG_NEON="$ac_pt_CONFIG_NEON" # Let the user override the test with a path.
  18808. ;;
  18809. *)
  18810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18811. as_dummy="${NEON_DIR}/bin:$PATH"
  18812. for as_dir in $as_dummy
  18813. do
  18814. IFS=$as_save_IFS
  18815. test -z "$as_dir" && as_dir=.
  18816. for ac_exec_ext in '' $ac_executable_extensions; do
  18817. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18818. ac_cv_path_ac_pt_CONFIG_NEON="$as_dir/$ac_word$ac_exec_ext"
  18819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18820. break 2
  18821. fi
  18822. done
  18823. done
  18824. IFS=$as_save_IFS
  18825. ;;
  18826. esac
  18827. fi
  18828. ac_pt_CONFIG_NEON=$ac_cv_path_ac_pt_CONFIG_NEON
  18829. if test -n "$ac_pt_CONFIG_NEON"; then
  18830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON" >&5
  18831. $as_echo "$ac_pt_CONFIG_NEON" >&6; }
  18832. else
  18833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18834. $as_echo "no" >&6; }
  18835. fi
  18836. if test "x$ac_pt_CONFIG_NEON" = x; then
  18837. CONFIG_NEON="No"
  18838. else
  18839. case $cross_compiling:$ac_tool_warned in
  18840. yes:)
  18841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18843. ac_tool_warned=yes ;;
  18844. esac
  18845. CONFIG_NEON=$ac_pt_CONFIG_NEON
  18846. fi
  18847. else
  18848. CONFIG_NEON="$ac_cv_path_CONFIG_NEON"
  18849. fi
  18850. if test ! "x${CONFIG_NEON}" = xNo; then
  18851. if test x"" = x ; then A=--cflags ; else A="" ; fi
  18852. NEON_INCLUDE=$(${CONFIG_NEON} $A)
  18853. NEON_INCLUDE=$(echo ${NEON_INCLUDE} | $SED -e "s|-I|-I${NEON_DIR}|g")
  18854. if test x"" = x ; then A=--libs ; else A="" ; fi
  18855. NEON_LIB=$(${CONFIG_NEON} $A)
  18856. NEON_LIB=$(echo ${NEON_LIB} | $SED -e "s|-L|-L${NEON_DIR}|g")
  18857. if test x"" != x ; then
  18858. saved_cppflags="${CPPFLAGS}"
  18859. CPPFLAGS="${CPPFLAGS} ${NEON_INCLUDE}"
  18860. saved_libs="${LIBS}"
  18861. LIBS=${NEON_LIB}
  18862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18863. /* end confdefs.h. */
  18864. int
  18865. main ()
  18866. {
  18867. ;
  18868. ;
  18869. return 0;
  18870. }
  18871. _ACEOF
  18872. if ac_fn_c_try_link "$LINENO"; then :
  18873. PBX_NEON=1
  18874. $as_echo "#define HAVE_NEON 1" >>confdefs.h
  18875. fi
  18876. rm -f core conftest.err conftest.$ac_objext \
  18877. conftest$ac_exeext conftest.$ac_ext
  18878. CPPFLAGS="${saved_cppflags}"
  18879. LIBS="${saved_libs}"
  18880. else
  18881. PBX_NEON=1
  18882. $as_echo "#define HAVE_NEON 1" >>confdefs.h
  18883. fi
  18884. fi
  18885. fi
  18886. if test "x${PBX_NEON29}" != "x1" -a "${USE_NEON29}" != "no"; then
  18887. PBX_NEON29=0
  18888. if test -n "$ac_tool_prefix"; then
  18889. # Extract the first word of "${ac_tool_prefix}neon-config", so it can be a program name with args.
  18890. set dummy ${ac_tool_prefix}neon-config; ac_word=$2
  18891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18892. $as_echo_n "checking for $ac_word... " >&6; }
  18893. if ${ac_cv_path_CONFIG_NEON29+:} false; then :
  18894. $as_echo_n "(cached) " >&6
  18895. else
  18896. case $CONFIG_NEON29 in
  18897. [\\/]* | ?:[\\/]*)
  18898. ac_cv_path_CONFIG_NEON29="$CONFIG_NEON29" # Let the user override the test with a path.
  18899. ;;
  18900. *)
  18901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18902. as_dummy="${NEON29_DIR}/bin:$PATH"
  18903. for as_dir in $as_dummy
  18904. do
  18905. IFS=$as_save_IFS
  18906. test -z "$as_dir" && as_dir=.
  18907. for ac_exec_ext in '' $ac_executable_extensions; do
  18908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18909. ac_cv_path_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  18910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18911. break 2
  18912. fi
  18913. done
  18914. done
  18915. IFS=$as_save_IFS
  18916. ;;
  18917. esac
  18918. fi
  18919. CONFIG_NEON29=$ac_cv_path_CONFIG_NEON29
  18920. if test -n "$CONFIG_NEON29"; then
  18921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NEON29" >&5
  18922. $as_echo "$CONFIG_NEON29" >&6; }
  18923. else
  18924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18925. $as_echo "no" >&6; }
  18926. fi
  18927. fi
  18928. if test -z "$ac_cv_path_CONFIG_NEON29"; then
  18929. ac_pt_CONFIG_NEON29=$CONFIG_NEON29
  18930. # Extract the first word of "neon-config", so it can be a program name with args.
  18931. set dummy neon-config; ac_word=$2
  18932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18933. $as_echo_n "checking for $ac_word... " >&6; }
  18934. if ${ac_cv_path_ac_pt_CONFIG_NEON29+:} false; then :
  18935. $as_echo_n "(cached) " >&6
  18936. else
  18937. case $ac_pt_CONFIG_NEON29 in
  18938. [\\/]* | ?:[\\/]*)
  18939. ac_cv_path_ac_pt_CONFIG_NEON29="$ac_pt_CONFIG_NEON29" # Let the user override the test with a path.
  18940. ;;
  18941. *)
  18942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18943. as_dummy="${NEON29_DIR}/bin:$PATH"
  18944. for as_dir in $as_dummy
  18945. do
  18946. IFS=$as_save_IFS
  18947. test -z "$as_dir" && as_dir=.
  18948. for ac_exec_ext in '' $ac_executable_extensions; do
  18949. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18950. ac_cv_path_ac_pt_CONFIG_NEON29="$as_dir/$ac_word$ac_exec_ext"
  18951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18952. break 2
  18953. fi
  18954. done
  18955. done
  18956. IFS=$as_save_IFS
  18957. ;;
  18958. esac
  18959. fi
  18960. ac_pt_CONFIG_NEON29=$ac_cv_path_ac_pt_CONFIG_NEON29
  18961. if test -n "$ac_pt_CONFIG_NEON29"; then
  18962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NEON29" >&5
  18963. $as_echo "$ac_pt_CONFIG_NEON29" >&6; }
  18964. else
  18965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18966. $as_echo "no" >&6; }
  18967. fi
  18968. if test "x$ac_pt_CONFIG_NEON29" = x; then
  18969. CONFIG_NEON29="No"
  18970. else
  18971. case $cross_compiling:$ac_tool_warned in
  18972. yes:)
  18973. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18974. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18975. ac_tool_warned=yes ;;
  18976. esac
  18977. CONFIG_NEON29=$ac_pt_CONFIG_NEON29
  18978. fi
  18979. else
  18980. CONFIG_NEON29="$ac_cv_path_CONFIG_NEON29"
  18981. fi
  18982. if test ! "x${CONFIG_NEON29}" = xNo; then
  18983. if test x"" = x ; then A=--cflags ; else A="" ; fi
  18984. NEON29_INCLUDE=$(${CONFIG_NEON29} $A)
  18985. NEON29_INCLUDE=$(echo ${NEON29_INCLUDE} | $SED -e "s|-I|-I${NEON29_DIR}|g")
  18986. if test x"--libs" = x ; then A=--libs ; else A="--libs" ; fi
  18987. NEON29_LIB=$(${CONFIG_NEON29} $A)
  18988. NEON29_LIB=$(echo ${NEON29_LIB} | $SED -e "s|-L|-L${NEON29_DIR}|g")
  18989. if test x"#include <ne_auth.h>" != x ; then
  18990. saved_cppflags="${CPPFLAGS}"
  18991. CPPFLAGS="${CPPFLAGS} ${NEON29_INCLUDE}"
  18992. saved_libs="${LIBS}"
  18993. LIBS=${NEON29_LIB}
  18994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18995. /* end confdefs.h. */
  18996. #include <ne_auth.h>
  18997. int
  18998. main ()
  18999. {
  19000. #ifndef NE_AUTH_NTLM
  19001. #error Need libneon >= 0.29.0
  19002. #endif;
  19003. ;
  19004. return 0;
  19005. }
  19006. _ACEOF
  19007. if ac_fn_c_try_link "$LINENO"; then :
  19008. PBX_NEON29=1
  19009. $as_echo "#define HAVE_NEON29 1" >>confdefs.h
  19010. fi
  19011. rm -f core conftest.err conftest.$ac_objext \
  19012. conftest$ac_exeext conftest.$ac_ext
  19013. CPPFLAGS="${saved_cppflags}"
  19014. LIBS="${saved_libs}"
  19015. else
  19016. PBX_NEON29=1
  19017. $as_echo "#define HAVE_NEON29 1" >>confdefs.h
  19018. fi
  19019. fi
  19020. fi
  19021. if test "x${PBX_NETSNMP}" != "x1" -a "${USE_NETSNMP}" != "no"; then
  19022. PBX_NETSNMP=0
  19023. if test -n "$ac_tool_prefix"; then
  19024. # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
  19025. set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
  19026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19027. $as_echo_n "checking for $ac_word... " >&6; }
  19028. if ${ac_cv_path_CONFIG_NETSNMP+:} false; then :
  19029. $as_echo_n "(cached) " >&6
  19030. else
  19031. case $CONFIG_NETSNMP in
  19032. [\\/]* | ?:[\\/]*)
  19033. ac_cv_path_CONFIG_NETSNMP="$CONFIG_NETSNMP" # Let the user override the test with a path.
  19034. ;;
  19035. *)
  19036. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19037. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  19038. for as_dir in $as_dummy
  19039. do
  19040. IFS=$as_save_IFS
  19041. test -z "$as_dir" && as_dir=.
  19042. for ac_exec_ext in '' $ac_executable_extensions; do
  19043. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19044. ac_cv_path_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  19045. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19046. break 2
  19047. fi
  19048. done
  19049. done
  19050. IFS=$as_save_IFS
  19051. ;;
  19052. esac
  19053. fi
  19054. CONFIG_NETSNMP=$ac_cv_path_CONFIG_NETSNMP
  19055. if test -n "$CONFIG_NETSNMP"; then
  19056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_NETSNMP" >&5
  19057. $as_echo "$CONFIG_NETSNMP" >&6; }
  19058. else
  19059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19060. $as_echo "no" >&6; }
  19061. fi
  19062. fi
  19063. if test -z "$ac_cv_path_CONFIG_NETSNMP"; then
  19064. ac_pt_CONFIG_NETSNMP=$CONFIG_NETSNMP
  19065. # Extract the first word of "net-snmp-config", so it can be a program name with args.
  19066. set dummy net-snmp-config; ac_word=$2
  19067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19068. $as_echo_n "checking for $ac_word... " >&6; }
  19069. if ${ac_cv_path_ac_pt_CONFIG_NETSNMP+:} false; then :
  19070. $as_echo_n "(cached) " >&6
  19071. else
  19072. case $ac_pt_CONFIG_NETSNMP in
  19073. [\\/]* | ?:[\\/]*)
  19074. ac_cv_path_ac_pt_CONFIG_NETSNMP="$ac_pt_CONFIG_NETSNMP" # Let the user override the test with a path.
  19075. ;;
  19076. *)
  19077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19078. as_dummy="${NETSNMP_DIR}/bin:$PATH"
  19079. for as_dir in $as_dummy
  19080. do
  19081. IFS=$as_save_IFS
  19082. test -z "$as_dir" && as_dir=.
  19083. for ac_exec_ext in '' $ac_executable_extensions; do
  19084. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19085. ac_cv_path_ac_pt_CONFIG_NETSNMP="$as_dir/$ac_word$ac_exec_ext"
  19086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19087. break 2
  19088. fi
  19089. done
  19090. done
  19091. IFS=$as_save_IFS
  19092. ;;
  19093. esac
  19094. fi
  19095. ac_pt_CONFIG_NETSNMP=$ac_cv_path_ac_pt_CONFIG_NETSNMP
  19096. if test -n "$ac_pt_CONFIG_NETSNMP"; then
  19097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_NETSNMP" >&5
  19098. $as_echo "$ac_pt_CONFIG_NETSNMP" >&6; }
  19099. else
  19100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19101. $as_echo "no" >&6; }
  19102. fi
  19103. if test "x$ac_pt_CONFIG_NETSNMP" = x; then
  19104. CONFIG_NETSNMP="No"
  19105. else
  19106. case $cross_compiling:$ac_tool_warned in
  19107. yes:)
  19108. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19109. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19110. ac_tool_warned=yes ;;
  19111. esac
  19112. CONFIG_NETSNMP=$ac_pt_CONFIG_NETSNMP
  19113. fi
  19114. else
  19115. CONFIG_NETSNMP="$ac_cv_path_CONFIG_NETSNMP"
  19116. fi
  19117. if test ! "x${CONFIG_NETSNMP}" = xNo; then
  19118. if test x"" = x ; then A=--cflags ; else A="" ; fi
  19119. NETSNMP_INCLUDE=$(${CONFIG_NETSNMP} $A)
  19120. NETSNMP_INCLUDE=$(echo ${NETSNMP_INCLUDE} | $SED -e "s|-I|-I${NETSNMP_DIR}|g")
  19121. if test x"--agent-libs" = x ; then A=--libs ; else A="--agent-libs" ; fi
  19122. NETSNMP_LIB=$(${CONFIG_NETSNMP} $A)
  19123. NETSNMP_LIB=$(echo ${NETSNMP_LIB} | $SED -e "s|-L|-L${NETSNMP_DIR}|g")
  19124. if test x"#include <net-snmp/net-snmp-config.h>
  19125. #include <net-snmp/net-snmp-includes.h>
  19126. #include <net-snmp/agent/net-snmp-agent-includes.h>" != x ; then
  19127. saved_cppflags="${CPPFLAGS}"
  19128. CPPFLAGS="${CPPFLAGS} ${NETSNMP_INCLUDE}"
  19129. saved_libs="${LIBS}"
  19130. LIBS=${NETSNMP_LIB}
  19131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19132. /* end confdefs.h. */
  19133. #include <net-snmp/net-snmp-config.h>
  19134. #include <net-snmp/net-snmp-includes.h>
  19135. #include <net-snmp/agent/net-snmp-agent-includes.h>
  19136. int
  19137. main ()
  19138. {
  19139. int callback = snmp_register_callback(0, 0, NULL, NULL);
  19140. ;
  19141. return 0;
  19142. }
  19143. _ACEOF
  19144. if ac_fn_c_try_link "$LINENO"; then :
  19145. PBX_NETSNMP=1
  19146. $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
  19147. fi
  19148. rm -f core conftest.err conftest.$ac_objext \
  19149. conftest$ac_exeext conftest.$ac_ext
  19150. CPPFLAGS="${saved_cppflags}"
  19151. LIBS="${saved_libs}"
  19152. else
  19153. PBX_NETSNMP=1
  19154. $as_echo "#define HAVE_NETSNMP 1" >>confdefs.h
  19155. fi
  19156. fi
  19157. fi
  19158. if test "x${PBX_NEWT}" != "x1" -a "${USE_NEWT}" != "no"; then
  19159. pbxlibdir=""
  19160. # if --with-NEWT=DIR has been specified, use it.
  19161. if test "x${NEWT_DIR}" != "x"; then
  19162. if test -d ${NEWT_DIR}/lib; then
  19163. pbxlibdir="-L${NEWT_DIR}/lib"
  19164. else
  19165. pbxlibdir="-L${NEWT_DIR}"
  19166. fi
  19167. fi
  19168. pbxfuncname="newtBell"
  19169. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19170. AST_NEWT_FOUND=yes
  19171. else
  19172. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19173. CFLAGS="${CFLAGS} "
  19174. as_ac_Lib=`$as_echo "ac_cv_lib_newt_${pbxfuncname}" | $as_tr_sh`
  19175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lnewt" >&5
  19176. $as_echo_n "checking for ${pbxfuncname} in -lnewt... " >&6; }
  19177. if eval \${$as_ac_Lib+:} false; then :
  19178. $as_echo_n "(cached) " >&6
  19179. else
  19180. ac_check_lib_save_LIBS=$LIBS
  19181. LIBS="-lnewt ${pbxlibdir} $LIBS"
  19182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19183. /* end confdefs.h. */
  19184. /* Override any GCC internal prototype to avoid an error.
  19185. Use char because int might match the return type of a GCC
  19186. builtin and then its argument prototype would still apply. */
  19187. #ifdef __cplusplus
  19188. extern "C"
  19189. #endif
  19190. char ${pbxfuncname} ();
  19191. int
  19192. main ()
  19193. {
  19194. return ${pbxfuncname} ();
  19195. ;
  19196. return 0;
  19197. }
  19198. _ACEOF
  19199. if ac_fn_c_try_link "$LINENO"; then :
  19200. eval "$as_ac_Lib=yes"
  19201. else
  19202. eval "$as_ac_Lib=no"
  19203. fi
  19204. rm -f core conftest.err conftest.$ac_objext \
  19205. conftest$ac_exeext conftest.$ac_ext
  19206. LIBS=$ac_check_lib_save_LIBS
  19207. fi
  19208. eval ac_res=\$$as_ac_Lib
  19209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19210. $as_echo "$ac_res" >&6; }
  19211. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19212. AST_NEWT_FOUND=yes
  19213. else
  19214. AST_NEWT_FOUND=no
  19215. fi
  19216. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19217. fi
  19218. # now check for the header.
  19219. if test "${AST_NEWT_FOUND}" = "yes"; then
  19220. NEWT_LIB="${pbxlibdir} -lnewt "
  19221. # if --with-NEWT=DIR has been specified, use it.
  19222. if test "x${NEWT_DIR}" != "x"; then
  19223. NEWT_INCLUDE="-I${NEWT_DIR}/include"
  19224. fi
  19225. NEWT_INCLUDE="${NEWT_INCLUDE} "
  19226. if test "xnewt.h" = "x" ; then # no header, assume found
  19227. NEWT_HEADER_FOUND="1"
  19228. else # check for the header
  19229. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19230. CPPFLAGS="${CPPFLAGS} ${NEWT_INCLUDE}"
  19231. ac_fn_c_check_header_mongrel "$LINENO" "newt.h" "ac_cv_header_newt_h" "$ac_includes_default"
  19232. if test "x$ac_cv_header_newt_h" = xyes; then :
  19233. NEWT_HEADER_FOUND=1
  19234. else
  19235. NEWT_HEADER_FOUND=0
  19236. fi
  19237. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19238. fi
  19239. if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
  19240. NEWT_LIB=""
  19241. NEWT_INCLUDE=""
  19242. else
  19243. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19244. NEWT_LIB=""
  19245. fi
  19246. PBX_NEWT=1
  19247. cat >>confdefs.h <<_ACEOF
  19248. #define HAVE_NEWT 1
  19249. _ACEOF
  19250. fi
  19251. fi
  19252. fi
  19253. if test "x${PBX_UNIXODBC}" != "x1" -a "${USE_UNIXODBC}" != "no"; then
  19254. pbxlibdir=""
  19255. # if --with-UNIXODBC=DIR has been specified, use it.
  19256. if test "x${UNIXODBC_DIR}" != "x"; then
  19257. if test -d ${UNIXODBC_DIR}/lib; then
  19258. pbxlibdir="-L${UNIXODBC_DIR}/lib"
  19259. else
  19260. pbxlibdir="-L${UNIXODBC_DIR}"
  19261. fi
  19262. fi
  19263. pbxfuncname="SQLConnect"
  19264. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19265. AST_UNIXODBC_FOUND=yes
  19266. else
  19267. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19268. CFLAGS="${CFLAGS} "
  19269. as_ac_Lib=`$as_echo "ac_cv_lib_odbc_${pbxfuncname}" | $as_tr_sh`
  19270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lodbc" >&5
  19271. $as_echo_n "checking for ${pbxfuncname} in -lodbc... " >&6; }
  19272. if eval \${$as_ac_Lib+:} false; then :
  19273. $as_echo_n "(cached) " >&6
  19274. else
  19275. ac_check_lib_save_LIBS=$LIBS
  19276. LIBS="-lodbc ${pbxlibdir} $LIBS"
  19277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19278. /* end confdefs.h. */
  19279. /* Override any GCC internal prototype to avoid an error.
  19280. Use char because int might match the return type of a GCC
  19281. builtin and then its argument prototype would still apply. */
  19282. #ifdef __cplusplus
  19283. extern "C"
  19284. #endif
  19285. char ${pbxfuncname} ();
  19286. int
  19287. main ()
  19288. {
  19289. return ${pbxfuncname} ();
  19290. ;
  19291. return 0;
  19292. }
  19293. _ACEOF
  19294. if ac_fn_c_try_link "$LINENO"; then :
  19295. eval "$as_ac_Lib=yes"
  19296. else
  19297. eval "$as_ac_Lib=no"
  19298. fi
  19299. rm -f core conftest.err conftest.$ac_objext \
  19300. conftest$ac_exeext conftest.$ac_ext
  19301. LIBS=$ac_check_lib_save_LIBS
  19302. fi
  19303. eval ac_res=\$$as_ac_Lib
  19304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19305. $as_echo "$ac_res" >&6; }
  19306. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19307. AST_UNIXODBC_FOUND=yes
  19308. else
  19309. AST_UNIXODBC_FOUND=no
  19310. fi
  19311. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19312. fi
  19313. # now check for the header.
  19314. if test "${AST_UNIXODBC_FOUND}" = "yes"; then
  19315. UNIXODBC_LIB="${pbxlibdir} -lodbc "
  19316. # if --with-UNIXODBC=DIR has been specified, use it.
  19317. if test "x${UNIXODBC_DIR}" != "x"; then
  19318. UNIXODBC_INCLUDE="-I${UNIXODBC_DIR}/include"
  19319. fi
  19320. UNIXODBC_INCLUDE="${UNIXODBC_INCLUDE} "
  19321. if test "xsql.h" = "x" ; then # no header, assume found
  19322. UNIXODBC_HEADER_FOUND="1"
  19323. else # check for the header
  19324. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19325. CPPFLAGS="${CPPFLAGS} ${UNIXODBC_INCLUDE}"
  19326. ac_fn_c_check_header_mongrel "$LINENO" "sql.h" "ac_cv_header_sql_h" "$ac_includes_default"
  19327. if test "x$ac_cv_header_sql_h" = xyes; then :
  19328. UNIXODBC_HEADER_FOUND=1
  19329. else
  19330. UNIXODBC_HEADER_FOUND=0
  19331. fi
  19332. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19333. fi
  19334. if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
  19335. UNIXODBC_LIB=""
  19336. UNIXODBC_INCLUDE=""
  19337. else
  19338. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19339. UNIXODBC_LIB=""
  19340. fi
  19341. PBX_UNIXODBC=1
  19342. cat >>confdefs.h <<_ACEOF
  19343. #define HAVE_UNIXODBC 1
  19344. _ACEOF
  19345. fi
  19346. fi
  19347. fi
  19348. if test "x${PBX_OGG}" != "x1" -a "${USE_OGG}" != "no"; then
  19349. pbxlibdir=""
  19350. # if --with-OGG=DIR has been specified, use it.
  19351. if test "x${OGG_DIR}" != "x"; then
  19352. if test -d ${OGG_DIR}/lib; then
  19353. pbxlibdir="-L${OGG_DIR}/lib"
  19354. else
  19355. pbxlibdir="-L${OGG_DIR}"
  19356. fi
  19357. fi
  19358. pbxfuncname="ogg_sync_init"
  19359. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19360. AST_OGG_FOUND=yes
  19361. else
  19362. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19363. CFLAGS="${CFLAGS} "
  19364. as_ac_Lib=`$as_echo "ac_cv_lib_ogg_${pbxfuncname}" | $as_tr_sh`
  19365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -logg" >&5
  19366. $as_echo_n "checking for ${pbxfuncname} in -logg... " >&6; }
  19367. if eval \${$as_ac_Lib+:} false; then :
  19368. $as_echo_n "(cached) " >&6
  19369. else
  19370. ac_check_lib_save_LIBS=$LIBS
  19371. LIBS="-logg ${pbxlibdir} $LIBS"
  19372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19373. /* end confdefs.h. */
  19374. /* Override any GCC internal prototype to avoid an error.
  19375. Use char because int might match the return type of a GCC
  19376. builtin and then its argument prototype would still apply. */
  19377. #ifdef __cplusplus
  19378. extern "C"
  19379. #endif
  19380. char ${pbxfuncname} ();
  19381. int
  19382. main ()
  19383. {
  19384. return ${pbxfuncname} ();
  19385. ;
  19386. return 0;
  19387. }
  19388. _ACEOF
  19389. if ac_fn_c_try_link "$LINENO"; then :
  19390. eval "$as_ac_Lib=yes"
  19391. else
  19392. eval "$as_ac_Lib=no"
  19393. fi
  19394. rm -f core conftest.err conftest.$ac_objext \
  19395. conftest$ac_exeext conftest.$ac_ext
  19396. LIBS=$ac_check_lib_save_LIBS
  19397. fi
  19398. eval ac_res=\$$as_ac_Lib
  19399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19400. $as_echo "$ac_res" >&6; }
  19401. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19402. AST_OGG_FOUND=yes
  19403. else
  19404. AST_OGG_FOUND=no
  19405. fi
  19406. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19407. fi
  19408. # now check for the header.
  19409. if test "${AST_OGG_FOUND}" = "yes"; then
  19410. OGG_LIB="${pbxlibdir} -logg "
  19411. # if --with-OGG=DIR has been specified, use it.
  19412. if test "x${OGG_DIR}" != "x"; then
  19413. OGG_INCLUDE="-I${OGG_DIR}/include"
  19414. fi
  19415. OGG_INCLUDE="${OGG_INCLUDE} "
  19416. if test "x" = "x" ; then # no header, assume found
  19417. OGG_HEADER_FOUND="1"
  19418. else # check for the header
  19419. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19420. CPPFLAGS="${CPPFLAGS} ${OGG_INCLUDE}"
  19421. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  19422. if test "x$ac_cv_header_" = xyes; then :
  19423. OGG_HEADER_FOUND=1
  19424. else
  19425. OGG_HEADER_FOUND=0
  19426. fi
  19427. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19428. fi
  19429. if test "x${OGG_HEADER_FOUND}" = "x0" ; then
  19430. OGG_LIB=""
  19431. OGG_INCLUDE=""
  19432. else
  19433. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19434. OGG_LIB=""
  19435. fi
  19436. PBX_OGG=1
  19437. cat >>confdefs.h <<_ACEOF
  19438. #define HAVE_OGG 1
  19439. _ACEOF
  19440. fi
  19441. fi
  19442. fi
  19443. # Non-glibc platforms require libexecinfo for backtrace support
  19444. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  19445. pbxlibdir=""
  19446. # if --with-BKTR=DIR has been specified, use it.
  19447. if test "x${BKTR_DIR}" != "x"; then
  19448. if test -d ${BKTR_DIR}/lib; then
  19449. pbxlibdir="-L${BKTR_DIR}/lib"
  19450. else
  19451. pbxlibdir="-L${BKTR_DIR}"
  19452. fi
  19453. fi
  19454. pbxfuncname="backtrace"
  19455. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19456. AST_BKTR_FOUND=yes
  19457. else
  19458. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19459. CFLAGS="${CFLAGS} "
  19460. as_ac_Lib=`$as_echo "ac_cv_lib_execinfo_${pbxfuncname}" | $as_tr_sh`
  19461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lexecinfo" >&5
  19462. $as_echo_n "checking for ${pbxfuncname} in -lexecinfo... " >&6; }
  19463. if eval \${$as_ac_Lib+:} false; then :
  19464. $as_echo_n "(cached) " >&6
  19465. else
  19466. ac_check_lib_save_LIBS=$LIBS
  19467. LIBS="-lexecinfo ${pbxlibdir} $LIBS"
  19468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19469. /* end confdefs.h. */
  19470. /* Override any GCC internal prototype to avoid an error.
  19471. Use char because int might match the return type of a GCC
  19472. builtin and then its argument prototype would still apply. */
  19473. #ifdef __cplusplus
  19474. extern "C"
  19475. #endif
  19476. char ${pbxfuncname} ();
  19477. int
  19478. main ()
  19479. {
  19480. return ${pbxfuncname} ();
  19481. ;
  19482. return 0;
  19483. }
  19484. _ACEOF
  19485. if ac_fn_c_try_link "$LINENO"; then :
  19486. eval "$as_ac_Lib=yes"
  19487. else
  19488. eval "$as_ac_Lib=no"
  19489. fi
  19490. rm -f core conftest.err conftest.$ac_objext \
  19491. conftest$ac_exeext conftest.$ac_ext
  19492. LIBS=$ac_check_lib_save_LIBS
  19493. fi
  19494. eval ac_res=\$$as_ac_Lib
  19495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19496. $as_echo "$ac_res" >&6; }
  19497. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19498. AST_BKTR_FOUND=yes
  19499. else
  19500. AST_BKTR_FOUND=no
  19501. fi
  19502. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19503. fi
  19504. # now check for the header.
  19505. if test "${AST_BKTR_FOUND}" = "yes"; then
  19506. BKTR_LIB="${pbxlibdir} -lexecinfo "
  19507. # if --with-BKTR=DIR has been specified, use it.
  19508. if test "x${BKTR_DIR}" != "x"; then
  19509. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  19510. fi
  19511. BKTR_INCLUDE="${BKTR_INCLUDE} "
  19512. if test "xexecinfo.h" = "x" ; then # no header, assume found
  19513. BKTR_HEADER_FOUND="1"
  19514. else # check for the header
  19515. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19516. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  19517. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  19518. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  19519. BKTR_HEADER_FOUND=1
  19520. else
  19521. BKTR_HEADER_FOUND=0
  19522. fi
  19523. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19524. fi
  19525. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  19526. BKTR_LIB=""
  19527. BKTR_INCLUDE=""
  19528. else
  19529. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19530. BKTR_LIB=""
  19531. fi
  19532. PBX_BKTR=1
  19533. cat >>confdefs.h <<_ACEOF
  19534. #define HAVE_BKTR 1
  19535. _ACEOF
  19536. fi
  19537. fi
  19538. fi
  19539. # Linux, however, has backtrace directly in glibc
  19540. if test "x${PBX_BKTR}" != "x1" -a "${USE_BKTR}" != "no"; then
  19541. pbxlibdir=""
  19542. # if --with-BKTR=DIR has been specified, use it.
  19543. if test "x${BKTR_DIR}" != "x"; then
  19544. if test -d ${BKTR_DIR}/lib; then
  19545. pbxlibdir="-L${BKTR_DIR}/lib"
  19546. else
  19547. pbxlibdir="-L${BKTR_DIR}"
  19548. fi
  19549. fi
  19550. pbxfuncname="backtrace"
  19551. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19552. AST_BKTR_FOUND=yes
  19553. else
  19554. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19555. CFLAGS="${CFLAGS} "
  19556. as_ac_Lib=`$as_echo "ac_cv_lib_c_${pbxfuncname}" | $as_tr_sh`
  19557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lc" >&5
  19558. $as_echo_n "checking for ${pbxfuncname} in -lc... " >&6; }
  19559. if eval \${$as_ac_Lib+:} false; then :
  19560. $as_echo_n "(cached) " >&6
  19561. else
  19562. ac_check_lib_save_LIBS=$LIBS
  19563. LIBS="-lc ${pbxlibdir} $LIBS"
  19564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19565. /* end confdefs.h. */
  19566. /* Override any GCC internal prototype to avoid an error.
  19567. Use char because int might match the return type of a GCC
  19568. builtin and then its argument prototype would still apply. */
  19569. #ifdef __cplusplus
  19570. extern "C"
  19571. #endif
  19572. char ${pbxfuncname} ();
  19573. int
  19574. main ()
  19575. {
  19576. return ${pbxfuncname} ();
  19577. ;
  19578. return 0;
  19579. }
  19580. _ACEOF
  19581. if ac_fn_c_try_link "$LINENO"; then :
  19582. eval "$as_ac_Lib=yes"
  19583. else
  19584. eval "$as_ac_Lib=no"
  19585. fi
  19586. rm -f core conftest.err conftest.$ac_objext \
  19587. conftest$ac_exeext conftest.$ac_ext
  19588. LIBS=$ac_check_lib_save_LIBS
  19589. fi
  19590. eval ac_res=\$$as_ac_Lib
  19591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19592. $as_echo "$ac_res" >&6; }
  19593. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19594. AST_BKTR_FOUND=yes
  19595. else
  19596. AST_BKTR_FOUND=no
  19597. fi
  19598. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19599. fi
  19600. # now check for the header.
  19601. if test "${AST_BKTR_FOUND}" = "yes"; then
  19602. BKTR_LIB="${pbxlibdir} -lc "
  19603. # if --with-BKTR=DIR has been specified, use it.
  19604. if test "x${BKTR_DIR}" != "x"; then
  19605. BKTR_INCLUDE="-I${BKTR_DIR}/include"
  19606. fi
  19607. BKTR_INCLUDE="${BKTR_INCLUDE} "
  19608. if test "xexecinfo.h" = "x" ; then # no header, assume found
  19609. BKTR_HEADER_FOUND="1"
  19610. else # check for the header
  19611. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19612. CPPFLAGS="${CPPFLAGS} ${BKTR_INCLUDE}"
  19613. ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  19614. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  19615. BKTR_HEADER_FOUND=1
  19616. else
  19617. BKTR_HEADER_FOUND=0
  19618. fi
  19619. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19620. fi
  19621. if test "x${BKTR_HEADER_FOUND}" = "x0" ; then
  19622. BKTR_LIB=""
  19623. BKTR_INCLUDE=""
  19624. else
  19625. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19626. BKTR_LIB=""
  19627. fi
  19628. PBX_BKTR=1
  19629. cat >>confdefs.h <<_ACEOF
  19630. #define HAVE_BKTR 1
  19631. _ACEOF
  19632. fi
  19633. fi
  19634. fi
  19635. if test "x${PBX_BLUETOOTH}" != "x1" -a "${USE_BLUETOOTH}" != "no"; then
  19636. pbxlibdir=""
  19637. # if --with-BLUETOOTH=DIR has been specified, use it.
  19638. if test "x${BLUETOOTH_DIR}" != "x"; then
  19639. if test -d ${BLUETOOTH_DIR}/lib; then
  19640. pbxlibdir="-L${BLUETOOTH_DIR}/lib"
  19641. else
  19642. pbxlibdir="-L${BLUETOOTH_DIR}"
  19643. fi
  19644. fi
  19645. pbxfuncname="ba2str"
  19646. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19647. AST_BLUETOOTH_FOUND=yes
  19648. else
  19649. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19650. CFLAGS="${CFLAGS} "
  19651. as_ac_Lib=`$as_echo "ac_cv_lib_bluetooth_${pbxfuncname}" | $as_tr_sh`
  19652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lbluetooth" >&5
  19653. $as_echo_n "checking for ${pbxfuncname} in -lbluetooth... " >&6; }
  19654. if eval \${$as_ac_Lib+:} false; then :
  19655. $as_echo_n "(cached) " >&6
  19656. else
  19657. ac_check_lib_save_LIBS=$LIBS
  19658. LIBS="-lbluetooth ${pbxlibdir} $LIBS"
  19659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19660. /* end confdefs.h. */
  19661. /* Override any GCC internal prototype to avoid an error.
  19662. Use char because int might match the return type of a GCC
  19663. builtin and then its argument prototype would still apply. */
  19664. #ifdef __cplusplus
  19665. extern "C"
  19666. #endif
  19667. char ${pbxfuncname} ();
  19668. int
  19669. main ()
  19670. {
  19671. return ${pbxfuncname} ();
  19672. ;
  19673. return 0;
  19674. }
  19675. _ACEOF
  19676. if ac_fn_c_try_link "$LINENO"; then :
  19677. eval "$as_ac_Lib=yes"
  19678. else
  19679. eval "$as_ac_Lib=no"
  19680. fi
  19681. rm -f core conftest.err conftest.$ac_objext \
  19682. conftest$ac_exeext conftest.$ac_ext
  19683. LIBS=$ac_check_lib_save_LIBS
  19684. fi
  19685. eval ac_res=\$$as_ac_Lib
  19686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19687. $as_echo "$ac_res" >&6; }
  19688. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19689. AST_BLUETOOTH_FOUND=yes
  19690. else
  19691. AST_BLUETOOTH_FOUND=no
  19692. fi
  19693. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19694. fi
  19695. # now check for the header.
  19696. if test "${AST_BLUETOOTH_FOUND}" = "yes"; then
  19697. BLUETOOTH_LIB="${pbxlibdir} -lbluetooth "
  19698. # if --with-BLUETOOTH=DIR has been specified, use it.
  19699. if test "x${BLUETOOTH_DIR}" != "x"; then
  19700. BLUETOOTH_INCLUDE="-I${BLUETOOTH_DIR}/include"
  19701. fi
  19702. BLUETOOTH_INCLUDE="${BLUETOOTH_INCLUDE} "
  19703. if test "xbluetooth/bluetooth.h" = "x" ; then # no header, assume found
  19704. BLUETOOTH_HEADER_FOUND="1"
  19705. else # check for the header
  19706. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19707. CPPFLAGS="${CPPFLAGS} ${BLUETOOTH_INCLUDE}"
  19708. ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
  19709. if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then :
  19710. BLUETOOTH_HEADER_FOUND=1
  19711. else
  19712. BLUETOOTH_HEADER_FOUND=0
  19713. fi
  19714. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19715. fi
  19716. if test "x${BLUETOOTH_HEADER_FOUND}" = "x0" ; then
  19717. BLUETOOTH_LIB=""
  19718. BLUETOOTH_INCLUDE=""
  19719. else
  19720. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19721. BLUETOOTH_LIB=""
  19722. fi
  19723. PBX_BLUETOOTH=1
  19724. cat >>confdefs.h <<_ACEOF
  19725. #define HAVE_BLUETOOTH 1
  19726. _ACEOF
  19727. fi
  19728. fi
  19729. fi
  19730. # possible places for oss definitions
  19731. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  19732. pbxlibdir=""
  19733. # if --with-OSS=DIR has been specified, use it.
  19734. if test "x${OSS_DIR}" != "x"; then
  19735. if test -d ${OSS_DIR}/lib; then
  19736. pbxlibdir="-L${OSS_DIR}/lib"
  19737. else
  19738. pbxlibdir="-L${OSS_DIR}"
  19739. fi
  19740. fi
  19741. pbxfuncname=""
  19742. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19743. AST_OSS_FOUND=yes
  19744. else
  19745. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19746. CFLAGS="${CFLAGS} "
  19747. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  19748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  19749. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  19750. if eval \${$as_ac_Lib+:} false; then :
  19751. $as_echo_n "(cached) " >&6
  19752. else
  19753. ac_check_lib_save_LIBS=$LIBS
  19754. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  19755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19756. /* end confdefs.h. */
  19757. /* Override any GCC internal prototype to avoid an error.
  19758. Use char because int might match the return type of a GCC
  19759. builtin and then its argument prototype would still apply. */
  19760. #ifdef __cplusplus
  19761. extern "C"
  19762. #endif
  19763. char ${pbxfuncname} ();
  19764. int
  19765. main ()
  19766. {
  19767. return ${pbxfuncname} ();
  19768. ;
  19769. return 0;
  19770. }
  19771. _ACEOF
  19772. if ac_fn_c_try_link "$LINENO"; then :
  19773. eval "$as_ac_Lib=yes"
  19774. else
  19775. eval "$as_ac_Lib=no"
  19776. fi
  19777. rm -f core conftest.err conftest.$ac_objext \
  19778. conftest$ac_exeext conftest.$ac_ext
  19779. LIBS=$ac_check_lib_save_LIBS
  19780. fi
  19781. eval ac_res=\$$as_ac_Lib
  19782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19783. $as_echo "$ac_res" >&6; }
  19784. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19785. AST_OSS_FOUND=yes
  19786. else
  19787. AST_OSS_FOUND=no
  19788. fi
  19789. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19790. fi
  19791. # now check for the header.
  19792. if test "${AST_OSS_FOUND}" = "yes"; then
  19793. OSS_LIB="${pbxlibdir} -lossaudio "
  19794. # if --with-OSS=DIR has been specified, use it.
  19795. if test "x${OSS_DIR}" != "x"; then
  19796. OSS_INCLUDE="-I${OSS_DIR}/include"
  19797. fi
  19798. OSS_INCLUDE="${OSS_INCLUDE} "
  19799. if test "xlinux/soundcard.h" = "x" ; then # no header, assume found
  19800. OSS_HEADER_FOUND="1"
  19801. else # check for the header
  19802. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19803. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  19804. ac_fn_c_check_header_mongrel "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
  19805. if test "x$ac_cv_header_linux_soundcard_h" = xyes; then :
  19806. OSS_HEADER_FOUND=1
  19807. else
  19808. OSS_HEADER_FOUND=0
  19809. fi
  19810. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19811. fi
  19812. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  19813. OSS_LIB=""
  19814. OSS_INCLUDE=""
  19815. else
  19816. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19817. OSS_LIB=""
  19818. fi
  19819. PBX_OSS=1
  19820. cat >>confdefs.h <<_ACEOF
  19821. #define HAVE_OSS 1
  19822. _ACEOF
  19823. fi
  19824. fi
  19825. fi
  19826. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  19827. pbxlibdir=""
  19828. # if --with-OSS=DIR has been specified, use it.
  19829. if test "x${OSS_DIR}" != "x"; then
  19830. if test -d ${OSS_DIR}/lib; then
  19831. pbxlibdir="-L${OSS_DIR}/lib"
  19832. else
  19833. pbxlibdir="-L${OSS_DIR}"
  19834. fi
  19835. fi
  19836. pbxfuncname=""
  19837. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19838. AST_OSS_FOUND=yes
  19839. else
  19840. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19841. CFLAGS="${CFLAGS} "
  19842. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  19843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  19844. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  19845. if eval \${$as_ac_Lib+:} false; then :
  19846. $as_echo_n "(cached) " >&6
  19847. else
  19848. ac_check_lib_save_LIBS=$LIBS
  19849. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  19850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19851. /* end confdefs.h. */
  19852. /* Override any GCC internal prototype to avoid an error.
  19853. Use char because int might match the return type of a GCC
  19854. builtin and then its argument prototype would still apply. */
  19855. #ifdef __cplusplus
  19856. extern "C"
  19857. #endif
  19858. char ${pbxfuncname} ();
  19859. int
  19860. main ()
  19861. {
  19862. return ${pbxfuncname} ();
  19863. ;
  19864. return 0;
  19865. }
  19866. _ACEOF
  19867. if ac_fn_c_try_link "$LINENO"; then :
  19868. eval "$as_ac_Lib=yes"
  19869. else
  19870. eval "$as_ac_Lib=no"
  19871. fi
  19872. rm -f core conftest.err conftest.$ac_objext \
  19873. conftest$ac_exeext conftest.$ac_ext
  19874. LIBS=$ac_check_lib_save_LIBS
  19875. fi
  19876. eval ac_res=\$$as_ac_Lib
  19877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19878. $as_echo "$ac_res" >&6; }
  19879. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19880. AST_OSS_FOUND=yes
  19881. else
  19882. AST_OSS_FOUND=no
  19883. fi
  19884. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19885. fi
  19886. # now check for the header.
  19887. if test "${AST_OSS_FOUND}" = "yes"; then
  19888. OSS_LIB="${pbxlibdir} -lossaudio "
  19889. # if --with-OSS=DIR has been specified, use it.
  19890. if test "x${OSS_DIR}" != "x"; then
  19891. OSS_INCLUDE="-I${OSS_DIR}/include"
  19892. fi
  19893. OSS_INCLUDE="${OSS_INCLUDE} "
  19894. if test "xsys/soundcard.h" = "x" ; then # no header, assume found
  19895. OSS_HEADER_FOUND="1"
  19896. else # check for the header
  19897. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19898. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  19899. ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
  19900. if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
  19901. OSS_HEADER_FOUND=1
  19902. else
  19903. OSS_HEADER_FOUND=0
  19904. fi
  19905. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  19906. fi
  19907. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  19908. OSS_LIB=""
  19909. OSS_INCLUDE=""
  19910. else
  19911. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  19912. OSS_LIB=""
  19913. fi
  19914. PBX_OSS=1
  19915. cat >>confdefs.h <<_ACEOF
  19916. #define HAVE_OSS 1
  19917. _ACEOF
  19918. fi
  19919. fi
  19920. fi
  19921. if test "x${PBX_OSS}" != "x1" -a "${USE_OSS}" != "no"; then
  19922. pbxlibdir=""
  19923. # if --with-OSS=DIR has been specified, use it.
  19924. if test "x${OSS_DIR}" != "x"; then
  19925. if test -d ${OSS_DIR}/lib; then
  19926. pbxlibdir="-L${OSS_DIR}/lib"
  19927. else
  19928. pbxlibdir="-L${OSS_DIR}"
  19929. fi
  19930. fi
  19931. pbxfuncname="oss_ioctl_mixer"
  19932. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  19933. AST_OSS_FOUND=yes
  19934. else
  19935. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  19936. CFLAGS="${CFLAGS} "
  19937. as_ac_Lib=`$as_echo "ac_cv_lib_ossaudio_${pbxfuncname}" | $as_tr_sh`
  19938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lossaudio" >&5
  19939. $as_echo_n "checking for ${pbxfuncname} in -lossaudio... " >&6; }
  19940. if eval \${$as_ac_Lib+:} false; then :
  19941. $as_echo_n "(cached) " >&6
  19942. else
  19943. ac_check_lib_save_LIBS=$LIBS
  19944. LIBS="-lossaudio ${pbxlibdir} $LIBS"
  19945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19946. /* end confdefs.h. */
  19947. /* Override any GCC internal prototype to avoid an error.
  19948. Use char because int might match the return type of a GCC
  19949. builtin and then its argument prototype would still apply. */
  19950. #ifdef __cplusplus
  19951. extern "C"
  19952. #endif
  19953. char ${pbxfuncname} ();
  19954. int
  19955. main ()
  19956. {
  19957. return ${pbxfuncname} ();
  19958. ;
  19959. return 0;
  19960. }
  19961. _ACEOF
  19962. if ac_fn_c_try_link "$LINENO"; then :
  19963. eval "$as_ac_Lib=yes"
  19964. else
  19965. eval "$as_ac_Lib=no"
  19966. fi
  19967. rm -f core conftest.err conftest.$ac_objext \
  19968. conftest$ac_exeext conftest.$ac_ext
  19969. LIBS=$ac_check_lib_save_LIBS
  19970. fi
  19971. eval ac_res=\$$as_ac_Lib
  19972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  19973. $as_echo "$ac_res" >&6; }
  19974. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  19975. AST_OSS_FOUND=yes
  19976. else
  19977. AST_OSS_FOUND=no
  19978. fi
  19979. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  19980. fi
  19981. # now check for the header.
  19982. if test "${AST_OSS_FOUND}" = "yes"; then
  19983. OSS_LIB="${pbxlibdir} -lossaudio "
  19984. # if --with-OSS=DIR has been specified, use it.
  19985. if test "x${OSS_DIR}" != "x"; then
  19986. OSS_INCLUDE="-I${OSS_DIR}/include"
  19987. fi
  19988. OSS_INCLUDE="${OSS_INCLUDE} "
  19989. if test "xsoundcard.h" = "x" ; then # no header, assume found
  19990. OSS_HEADER_FOUND="1"
  19991. else # check for the header
  19992. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  19993. CPPFLAGS="${CPPFLAGS} ${OSS_INCLUDE}"
  19994. ac_fn_c_check_header_mongrel "$LINENO" "soundcard.h" "ac_cv_header_soundcard_h" "$ac_includes_default"
  19995. if test "x$ac_cv_header_soundcard_h" = xyes; then :
  19996. OSS_HEADER_FOUND=1
  19997. else
  19998. OSS_HEADER_FOUND=0
  19999. fi
  20000. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20001. fi
  20002. if test "x${OSS_HEADER_FOUND}" = "x0" ; then
  20003. OSS_LIB=""
  20004. OSS_INCLUDE=""
  20005. else
  20006. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20007. OSS_LIB=""
  20008. fi
  20009. PBX_OSS=1
  20010. cat >>confdefs.h <<_ACEOF
  20011. #define HAVE_OSS 1
  20012. _ACEOF
  20013. fi
  20014. fi
  20015. fi
  20016. PG_CONFIG=No
  20017. if test "${USE_PGSQL}" != "no"; then
  20018. if test "x${PGSQL_DIR}" != "x"; then
  20019. if test -n "$ac_tool_prefix"; then
  20020. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  20021. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  20022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20023. $as_echo_n "checking for $ac_word... " >&6; }
  20024. if ${ac_cv_path_PG_CONFIG+:} false; then :
  20025. $as_echo_n "(cached) " >&6
  20026. else
  20027. case $PG_CONFIG in
  20028. [\\/]* | ?:[\\/]*)
  20029. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  20030. ;;
  20031. *)
  20032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20033. for as_dir in ${PGSQL_DIR}/bin
  20034. do
  20035. IFS=$as_save_IFS
  20036. test -z "$as_dir" && as_dir=.
  20037. for ac_exec_ext in '' $ac_executable_extensions; do
  20038. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20039. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20041. break 2
  20042. fi
  20043. done
  20044. done
  20045. IFS=$as_save_IFS
  20046. ;;
  20047. esac
  20048. fi
  20049. PG_CONFIG=$ac_cv_path_PG_CONFIG
  20050. if test -n "$PG_CONFIG"; then
  20051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  20052. $as_echo "$PG_CONFIG" >&6; }
  20053. else
  20054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20055. $as_echo "no" >&6; }
  20056. fi
  20057. fi
  20058. if test -z "$ac_cv_path_PG_CONFIG"; then
  20059. ac_pt_PG_CONFIG=$PG_CONFIG
  20060. # Extract the first word of "pg_config", so it can be a program name with args.
  20061. set dummy pg_config; ac_word=$2
  20062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20063. $as_echo_n "checking for $ac_word... " >&6; }
  20064. if ${ac_cv_path_ac_pt_PG_CONFIG+:} false; then :
  20065. $as_echo_n "(cached) " >&6
  20066. else
  20067. case $ac_pt_PG_CONFIG in
  20068. [\\/]* | ?:[\\/]*)
  20069. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  20070. ;;
  20071. *)
  20072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20073. for as_dir in ${PGSQL_DIR}/bin
  20074. do
  20075. IFS=$as_save_IFS
  20076. test -z "$as_dir" && as_dir=.
  20077. for ac_exec_ext in '' $ac_executable_extensions; do
  20078. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20079. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20080. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20081. break 2
  20082. fi
  20083. done
  20084. done
  20085. IFS=$as_save_IFS
  20086. ;;
  20087. esac
  20088. fi
  20089. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  20090. if test -n "$ac_pt_PG_CONFIG"; then
  20091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  20092. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  20093. else
  20094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20095. $as_echo "no" >&6; }
  20096. fi
  20097. if test "x$ac_pt_PG_CONFIG" = x; then
  20098. PG_CONFIG="No"
  20099. else
  20100. case $cross_compiling:$ac_tool_warned in
  20101. yes:)
  20102. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20103. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20104. ac_tool_warned=yes ;;
  20105. esac
  20106. PG_CONFIG=$ac_pt_PG_CONFIG
  20107. fi
  20108. else
  20109. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  20110. fi
  20111. if test x"${PG_CONFIG}" = xNo; then
  20112. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  20113. $as_echo "$as_me: ***" >&6;}
  20114. { $as_echo "$as_me:${as_lineno-$LINENO}: *** pg_config was not found in the path you specified:" >&5
  20115. $as_echo "$as_me: *** pg_config was not found in the path you specified:" >&6;}
  20116. { $as_echo "$as_me:${as_lineno-$LINENO}: *** ${PGSQL_DIR}/bin" >&5
  20117. $as_echo "$as_me: *** ${PGSQL_DIR}/bin" >&6;}
  20118. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  20119. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  20120. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  20121. $as_echo "$as_me: *** including --without-postgres" >&6;}
  20122. exit 1
  20123. fi
  20124. else
  20125. if test -n "$ac_tool_prefix"; then
  20126. # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
  20127. set dummy ${ac_tool_prefix}pg_config; ac_word=$2
  20128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20129. $as_echo_n "checking for $ac_word... " >&6; }
  20130. if ${ac_cv_path_PG_CONFIG+:} false; then :
  20131. $as_echo_n "(cached) " >&6
  20132. else
  20133. case $PG_CONFIG in
  20134. [\\/]* | ?:[\\/]*)
  20135. ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
  20136. ;;
  20137. *)
  20138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20139. for as_dir in $PATH
  20140. do
  20141. IFS=$as_save_IFS
  20142. test -z "$as_dir" && as_dir=.
  20143. for ac_exec_ext in '' $ac_executable_extensions; do
  20144. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20145. ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20146. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20147. break 2
  20148. fi
  20149. done
  20150. done
  20151. IFS=$as_save_IFS
  20152. ;;
  20153. esac
  20154. fi
  20155. PG_CONFIG=$ac_cv_path_PG_CONFIG
  20156. if test -n "$PG_CONFIG"; then
  20157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5
  20158. $as_echo "$PG_CONFIG" >&6; }
  20159. else
  20160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20161. $as_echo "no" >&6; }
  20162. fi
  20163. fi
  20164. if test -z "$ac_cv_path_PG_CONFIG"; then
  20165. ac_pt_PG_CONFIG=$PG_CONFIG
  20166. # Extract the first word of "pg_config", so it can be a program name with args.
  20167. set dummy pg_config; ac_word=$2
  20168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20169. $as_echo_n "checking for $ac_word... " >&6; }
  20170. if ${ac_cv_path_ac_pt_PG_CONFIG+:} false; then :
  20171. $as_echo_n "(cached) " >&6
  20172. else
  20173. case $ac_pt_PG_CONFIG in
  20174. [\\/]* | ?:[\\/]*)
  20175. ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
  20176. ;;
  20177. *)
  20178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20179. for as_dir in $PATH
  20180. do
  20181. IFS=$as_save_IFS
  20182. test -z "$as_dir" && as_dir=.
  20183. for ac_exec_ext in '' $ac_executable_extensions; do
  20184. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20185. ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  20186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20187. break 2
  20188. fi
  20189. done
  20190. done
  20191. IFS=$as_save_IFS
  20192. ;;
  20193. esac
  20194. fi
  20195. ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
  20196. if test -n "$ac_pt_PG_CONFIG"; then
  20197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PG_CONFIG" >&5
  20198. $as_echo "$ac_pt_PG_CONFIG" >&6; }
  20199. else
  20200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20201. $as_echo "no" >&6; }
  20202. fi
  20203. if test "x$ac_pt_PG_CONFIG" = x; then
  20204. PG_CONFIG="No"
  20205. else
  20206. case $cross_compiling:$ac_tool_warned in
  20207. yes:)
  20208. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20209. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20210. ac_tool_warned=yes ;;
  20211. esac
  20212. PG_CONFIG=$ac_pt_PG_CONFIG
  20213. fi
  20214. else
  20215. PG_CONFIG="$ac_cv_path_PG_CONFIG"
  20216. fi
  20217. fi
  20218. fi
  20219. if test "${PG_CONFIG}" != No; then
  20220. PGSQL_libdir=`${PG_CONFIG} --libdir`
  20221. PGSQL_includedir=`${PG_CONFIG} --includedir`
  20222. if test "x$?" != "x0" ; then
  20223. if test -n "${PGSQL_MANDATORY}" ; then
  20224. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  20225. $as_echo "$as_me: ***" >&6;}
  20226. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  20227. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  20228. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  20229. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  20230. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  20231. $as_echo "$as_me: *** including --without-postgres" >&6;}
  20232. exit 1
  20233. fi
  20234. else
  20235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQescapeStringConn in -lpq" >&5
  20236. $as_echo_n "checking for PQescapeStringConn in -lpq... " >&6; }
  20237. if ${ac_cv_lib_pq_PQescapeStringConn+:} false; then :
  20238. $as_echo_n "(cached) " >&6
  20239. else
  20240. ac_check_lib_save_LIBS=$LIBS
  20241. LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
  20242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20243. /* end confdefs.h. */
  20244. /* Override any GCC internal prototype to avoid an error.
  20245. Use char because int might match the return type of a GCC
  20246. builtin and then its argument prototype would still apply. */
  20247. #ifdef __cplusplus
  20248. extern "C"
  20249. #endif
  20250. char PQescapeStringConn ();
  20251. int
  20252. main ()
  20253. {
  20254. return PQescapeStringConn ();
  20255. ;
  20256. return 0;
  20257. }
  20258. _ACEOF
  20259. if ac_fn_c_try_link "$LINENO"; then :
  20260. ac_cv_lib_pq_PQescapeStringConn=yes
  20261. else
  20262. ac_cv_lib_pq_PQescapeStringConn=no
  20263. fi
  20264. rm -f core conftest.err conftest.$ac_objext \
  20265. conftest$ac_exeext conftest.$ac_ext
  20266. LIBS=$ac_check_lib_save_LIBS
  20267. fi
  20268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQescapeStringConn" >&5
  20269. $as_echo "$ac_cv_lib_pq_PQescapeStringConn" >&6; }
  20270. if test "x$ac_cv_lib_pq_PQescapeStringConn" = xyes; then :
  20271. cat >>confdefs.h <<_ACEOF
  20272. #define HAVE_PGSQL 1
  20273. _ACEOF
  20274. fi
  20275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pg_encoding_to_char within Postgres headers" >&5
  20276. $as_echo_n "checking for pg_encoding_to_char within Postgres headers... " >&6; }
  20277. old_CFLAGS=${CFLAGS}
  20278. CFLAGS="${CFLAGS} -I${PGSQL_includedir} -Werror"
  20279. old_LDFLAGS=${LDFLAGS}
  20280. LDFLAGS="${LDFLAGS} -L${PGSQL_libdir} -lpq -lz"
  20281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20282. /* end confdefs.h. */
  20283. #include <libpq-fe.h>
  20284. int
  20285. main ()
  20286. {
  20287. const char *foo = pg_encoding_to_char(1)
  20288. ;
  20289. return 0;
  20290. }
  20291. _ACEOF
  20292. if ac_fn_c_try_link "$LINENO"; then :
  20293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20294. $as_echo "yes" >&6; }
  20295. cat >>confdefs.h <<_ACEOF
  20296. #define HAVE_PGSQL_pg_encoding_to_char 1
  20297. _ACEOF
  20298. else
  20299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20300. $as_echo "no" >&6; }
  20301. fi
  20302. rm -f core conftest.err conftest.$ac_objext \
  20303. conftest$ac_exeext conftest.$ac_ext
  20304. CFLAGS=${old_CFLAGS}
  20305. LDFLAGS=${old_LDFLAGS}
  20306. if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
  20307. PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
  20308. PGSQL_INCLUDE="-I${PGSQL_includedir}"
  20309. PBX_PGSQL=1
  20310. elif test -n "${PGSQL_MANDATORY}";
  20311. then
  20312. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  20313. $as_echo "$as_me: ***" >&6;}
  20314. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The PostgreSQL installation on this system appears to be broken." >&5
  20315. $as_echo "$as_me: *** The PostgreSQL installation on this system appears to be broken." >&6;}
  20316. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  20317. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  20318. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-postgres" >&5
  20319. $as_echo "$as_me: *** including --without-postgres" >&6;}
  20320. exit 1
  20321. fi
  20322. fi
  20323. fi
  20324. if test "x${PBX_PJPROJECT}" != "x1" -a "${USE_PJPROJECT}" != "no"; then
  20325. pkg_failed=no
  20326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PJPROJECT" >&5
  20327. $as_echo_n "checking for PJPROJECT... " >&6; }
  20328. if test -n "$PJPROJECT_CFLAGS"; then
  20329. pkg_cv_PJPROJECT_CFLAGS="$PJPROJECT_CFLAGS"
  20330. elif test -n "$PKG_CONFIG"; then
  20331. if test -n "$PKG_CONFIG" && \
  20332. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpjproject\""; } >&5
  20333. ($PKG_CONFIG --exists --print-errors "libpjproject") 2>&5
  20334. ac_status=$?
  20335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20336. test $ac_status = 0; }; then
  20337. pkg_cv_PJPROJECT_CFLAGS=`$PKG_CONFIG --cflags "libpjproject" 2>/dev/null`
  20338. test "x$?" != "x0" && pkg_failed=yes
  20339. else
  20340. pkg_failed=yes
  20341. fi
  20342. else
  20343. pkg_failed=untried
  20344. fi
  20345. if test -n "$PJPROJECT_LIBS"; then
  20346. pkg_cv_PJPROJECT_LIBS="$PJPROJECT_LIBS"
  20347. elif test -n "$PKG_CONFIG"; then
  20348. if test -n "$PKG_CONFIG" && \
  20349. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpjproject\""; } >&5
  20350. ($PKG_CONFIG --exists --print-errors "libpjproject") 2>&5
  20351. ac_status=$?
  20352. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20353. test $ac_status = 0; }; then
  20354. pkg_cv_PJPROJECT_LIBS=`$PKG_CONFIG --libs "libpjproject" 2>/dev/null`
  20355. test "x$?" != "x0" && pkg_failed=yes
  20356. else
  20357. pkg_failed=yes
  20358. fi
  20359. else
  20360. pkg_failed=untried
  20361. fi
  20362. if test $pkg_failed = yes; then
  20363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20364. $as_echo "no" >&6; }
  20365. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  20366. _pkg_short_errors_supported=yes
  20367. else
  20368. _pkg_short_errors_supported=no
  20369. fi
  20370. if test $_pkg_short_errors_supported = yes; then
  20371. PJPROJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpjproject" 2>&1`
  20372. else
  20373. PJPROJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpjproject" 2>&1`
  20374. fi
  20375. # Put the nasty error message in config.log where it belongs
  20376. echo "$PJPROJECT_PKG_ERRORS" >&5
  20377. PBX_PJPROJECT=0
  20378. elif test $pkg_failed = untried; then
  20379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20380. $as_echo "no" >&6; }
  20381. PBX_PJPROJECT=0
  20382. else
  20383. PJPROJECT_CFLAGS=$pkg_cv_PJPROJECT_CFLAGS
  20384. PJPROJECT_LIBS=$pkg_cv_PJPROJECT_LIBS
  20385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20386. $as_echo "yes" >&6; }
  20387. PBX_PJPROJECT=1
  20388. PJPROJECT_INCLUDE="$PJPROJECT_CFLAGS"
  20389. PJPROJECT_LIB="$PJPROJECT_LIBS"
  20390. $as_echo "#define HAVE_PJPROJECT 1" >>confdefs.h
  20391. fi
  20392. fi
  20393. if test "x${PBX_PJ_TRANSACTION_GRP_LOCK}" != "x1" -a "${USE_PJ_TRANSACTION_GRP_LOCK}" != "no"; then
  20394. pbxlibdir=""
  20395. # if --with-PJ_TRANSACTION_GRP_LOCK=DIR has been specified, use it.
  20396. if test "x${PJ_TRANSACTION_GRP_LOCK_DIR}" != "x"; then
  20397. if test -d ${PJ_TRANSACTION_GRP_LOCK_DIR}/lib; then
  20398. pbxlibdir="-L${PJ_TRANSACTION_GRP_LOCK_DIR}/lib"
  20399. else
  20400. pbxlibdir="-L${PJ_TRANSACTION_GRP_LOCK_DIR}"
  20401. fi
  20402. fi
  20403. pbxfuncname="pjsip_tsx_create_uac2"
  20404. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20405. AST_PJ_TRANSACTION_GRP_LOCK_FOUND=yes
  20406. else
  20407. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20408. CFLAGS="${CFLAGS} $PJPROJECT_CFLAGS"
  20409. as_ac_Lib=`$as_echo "ac_cv_lib_pjsip_${pbxfuncname}" | $as_tr_sh`
  20410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpjsip" >&5
  20411. $as_echo_n "checking for ${pbxfuncname} in -lpjsip... " >&6; }
  20412. if eval \${$as_ac_Lib+:} false; then :
  20413. $as_echo_n "(cached) " >&6
  20414. else
  20415. ac_check_lib_save_LIBS=$LIBS
  20416. LIBS="-lpjsip ${pbxlibdir} $PJPROJECT_LIBS $LIBS"
  20417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20418. /* end confdefs.h. */
  20419. /* Override any GCC internal prototype to avoid an error.
  20420. Use char because int might match the return type of a GCC
  20421. builtin and then its argument prototype would still apply. */
  20422. #ifdef __cplusplus
  20423. extern "C"
  20424. #endif
  20425. char ${pbxfuncname} ();
  20426. int
  20427. main ()
  20428. {
  20429. return ${pbxfuncname} ();
  20430. ;
  20431. return 0;
  20432. }
  20433. _ACEOF
  20434. if ac_fn_c_try_link "$LINENO"; then :
  20435. eval "$as_ac_Lib=yes"
  20436. else
  20437. eval "$as_ac_Lib=no"
  20438. fi
  20439. rm -f core conftest.err conftest.$ac_objext \
  20440. conftest$ac_exeext conftest.$ac_ext
  20441. LIBS=$ac_check_lib_save_LIBS
  20442. fi
  20443. eval ac_res=\$$as_ac_Lib
  20444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20445. $as_echo "$ac_res" >&6; }
  20446. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20447. AST_PJ_TRANSACTION_GRP_LOCK_FOUND=yes
  20448. else
  20449. AST_PJ_TRANSACTION_GRP_LOCK_FOUND=no
  20450. fi
  20451. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20452. fi
  20453. # now check for the header.
  20454. if test "${AST_PJ_TRANSACTION_GRP_LOCK_FOUND}" = "yes"; then
  20455. PJ_TRANSACTION_GRP_LOCK_LIB="${pbxlibdir} -lpjsip $PJPROJECT_LIBS"
  20456. # if --with-PJ_TRANSACTION_GRP_LOCK=DIR has been specified, use it.
  20457. if test "x${PJ_TRANSACTION_GRP_LOCK_DIR}" != "x"; then
  20458. PJ_TRANSACTION_GRP_LOCK_INCLUDE="-I${PJ_TRANSACTION_GRP_LOCK_DIR}/include"
  20459. fi
  20460. PJ_TRANSACTION_GRP_LOCK_INCLUDE="${PJ_TRANSACTION_GRP_LOCK_INCLUDE} $PJPROJECT_CFLAGS"
  20461. if test "xpjsip.h" = "x" ; then # no header, assume found
  20462. PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND="1"
  20463. else # check for the header
  20464. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20465. CPPFLAGS="${CPPFLAGS} ${PJ_TRANSACTION_GRP_LOCK_INCLUDE}"
  20466. ac_fn_c_check_header_mongrel "$LINENO" "pjsip.h" "ac_cv_header_pjsip_h" "$ac_includes_default"
  20467. if test "x$ac_cv_header_pjsip_h" = xyes; then :
  20468. PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND=1
  20469. else
  20470. PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND=0
  20471. fi
  20472. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20473. fi
  20474. if test "x${PJ_TRANSACTION_GRP_LOCK_HEADER_FOUND}" = "x0" ; then
  20475. PJ_TRANSACTION_GRP_LOCK_LIB=""
  20476. PJ_TRANSACTION_GRP_LOCK_INCLUDE=""
  20477. else
  20478. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20479. PJ_TRANSACTION_GRP_LOCK_LIB=""
  20480. fi
  20481. PBX_PJ_TRANSACTION_GRP_LOCK=1
  20482. cat >>confdefs.h <<_ACEOF
  20483. #define HAVE_PJ_TRANSACTION_GRP_LOCK 1
  20484. _ACEOF
  20485. fi
  20486. fi
  20487. fi
  20488. saved_cppflags="${CPPFLAGS}"
  20489. saved_libs="${LIBS}"
  20490. CPPFLAGS="${CPPFLAGS} ${PJPROJECT_CFLAGS}"
  20491. LIBS="${LIBS} ${PJPROJECT_LIBS}"
  20492. if test "x${PBX_PJSIP_REPLACE_MEDIA_STREAM}" != "x1" -a "${USE_PJSIP_REPLACE_MEDIA_STREAM}" != "no"; then
  20493. if test "x" != "x"; then
  20494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for " >&5
  20495. $as_echo_n "checking for ... " >&6; }
  20496. else
  20497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE\" compiles using pjmedia.h" >&5
  20498. $as_echo_n "checking if \"pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE\" compiles using pjmedia.h... " >&6; }
  20499. fi
  20500. saved_cppflags="${CPPFLAGS}"
  20501. if test "x${PJSIP_REPLACE_MEDIA_STREAM_DIR}" != "x"; then
  20502. PJSIP_REPLACE_MEDIA_STREAM_INCLUDE="-I${PJSIP_REPLACE_MEDIA_STREAM_DIR}/include"
  20503. fi
  20504. CPPFLAGS="${CPPFLAGS} ${PJSIP_REPLACE_MEDIA_STREAM_INCLUDE}"
  20505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20506. /* end confdefs.h. */
  20507. #include <pjmedia.h>
  20508. int
  20509. main ()
  20510. {
  20511. pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE;
  20512. ;
  20513. return 0;
  20514. }
  20515. _ACEOF
  20516. if ac_fn_c_try_compile "$LINENO"; then :
  20517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20518. $as_echo "yes" >&6; }
  20519. PBX_PJSIP_REPLACE_MEDIA_STREAM=1
  20520. $as_echo "#define HAVE_PJSIP_REPLACE_MEDIA_STREAM 1" >>confdefs.h
  20521. else
  20522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20523. $as_echo "no" >&6; }
  20524. fi
  20525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20526. CPPFLAGS="${saved_cppflags}"
  20527. fi
  20528. LIBS="${saved_libs}"
  20529. CPPFLAGS="${saved_cppflags}"
  20530. if test "x${PBX_POPT}" != "x1" -a "${USE_POPT}" != "no"; then
  20531. pbxlibdir=""
  20532. # if --with-POPT=DIR has been specified, use it.
  20533. if test "x${POPT_DIR}" != "x"; then
  20534. if test -d ${POPT_DIR}/lib; then
  20535. pbxlibdir="-L${POPT_DIR}/lib"
  20536. else
  20537. pbxlibdir="-L${POPT_DIR}"
  20538. fi
  20539. fi
  20540. pbxfuncname="poptStrerror"
  20541. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20542. AST_POPT_FOUND=yes
  20543. else
  20544. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20545. CFLAGS="${CFLAGS} "
  20546. as_ac_Lib=`$as_echo "ac_cv_lib_popt_${pbxfuncname}" | $as_tr_sh`
  20547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpopt" >&5
  20548. $as_echo_n "checking for ${pbxfuncname} in -lpopt... " >&6; }
  20549. if eval \${$as_ac_Lib+:} false; then :
  20550. $as_echo_n "(cached) " >&6
  20551. else
  20552. ac_check_lib_save_LIBS=$LIBS
  20553. LIBS="-lpopt ${pbxlibdir} $LIBS"
  20554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20555. /* end confdefs.h. */
  20556. /* Override any GCC internal prototype to avoid an error.
  20557. Use char because int might match the return type of a GCC
  20558. builtin and then its argument prototype would still apply. */
  20559. #ifdef __cplusplus
  20560. extern "C"
  20561. #endif
  20562. char ${pbxfuncname} ();
  20563. int
  20564. main ()
  20565. {
  20566. return ${pbxfuncname} ();
  20567. ;
  20568. return 0;
  20569. }
  20570. _ACEOF
  20571. if ac_fn_c_try_link "$LINENO"; then :
  20572. eval "$as_ac_Lib=yes"
  20573. else
  20574. eval "$as_ac_Lib=no"
  20575. fi
  20576. rm -f core conftest.err conftest.$ac_objext \
  20577. conftest$ac_exeext conftest.$ac_ext
  20578. LIBS=$ac_check_lib_save_LIBS
  20579. fi
  20580. eval ac_res=\$$as_ac_Lib
  20581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20582. $as_echo "$ac_res" >&6; }
  20583. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20584. AST_POPT_FOUND=yes
  20585. else
  20586. AST_POPT_FOUND=no
  20587. fi
  20588. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20589. fi
  20590. # now check for the header.
  20591. if test "${AST_POPT_FOUND}" = "yes"; then
  20592. POPT_LIB="${pbxlibdir} -lpopt "
  20593. # if --with-POPT=DIR has been specified, use it.
  20594. if test "x${POPT_DIR}" != "x"; then
  20595. POPT_INCLUDE="-I${POPT_DIR}/include"
  20596. fi
  20597. POPT_INCLUDE="${POPT_INCLUDE} "
  20598. if test "xpopt.h" = "x" ; then # no header, assume found
  20599. POPT_HEADER_FOUND="1"
  20600. else # check for the header
  20601. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20602. CPPFLAGS="${CPPFLAGS} ${POPT_INCLUDE}"
  20603. ac_fn_c_check_header_mongrel "$LINENO" "popt.h" "ac_cv_header_popt_h" "$ac_includes_default"
  20604. if test "x$ac_cv_header_popt_h" = xyes; then :
  20605. POPT_HEADER_FOUND=1
  20606. else
  20607. POPT_HEADER_FOUND=0
  20608. fi
  20609. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20610. fi
  20611. if test "x${POPT_HEADER_FOUND}" = "x0" ; then
  20612. POPT_LIB=""
  20613. POPT_INCLUDE=""
  20614. else
  20615. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20616. POPT_LIB=""
  20617. fi
  20618. PBX_POPT=1
  20619. cat >>confdefs.h <<_ACEOF
  20620. #define HAVE_POPT 1
  20621. _ACEOF
  20622. fi
  20623. fi
  20624. fi
  20625. if test "x${PBX_PORTAUDIO}" != "x1" -a "${USE_PORTAUDIO}" != "no"; then
  20626. pbxlibdir=""
  20627. # if --with-PORTAUDIO=DIR has been specified, use it.
  20628. if test "x${PORTAUDIO_DIR}" != "x"; then
  20629. if test -d ${PORTAUDIO_DIR}/lib; then
  20630. pbxlibdir="-L${PORTAUDIO_DIR}/lib"
  20631. else
  20632. pbxlibdir="-L${PORTAUDIO_DIR}"
  20633. fi
  20634. fi
  20635. pbxfuncname="Pa_GetDeviceCount"
  20636. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20637. AST_PORTAUDIO_FOUND=yes
  20638. else
  20639. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20640. CFLAGS="${CFLAGS} "
  20641. as_ac_Lib=`$as_echo "ac_cv_lib_portaudio_${pbxfuncname}" | $as_tr_sh`
  20642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lportaudio" >&5
  20643. $as_echo_n "checking for ${pbxfuncname} in -lportaudio... " >&6; }
  20644. if eval \${$as_ac_Lib+:} false; then :
  20645. $as_echo_n "(cached) " >&6
  20646. else
  20647. ac_check_lib_save_LIBS=$LIBS
  20648. LIBS="-lportaudio ${pbxlibdir} $LIBS"
  20649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20650. /* end confdefs.h. */
  20651. /* Override any GCC internal prototype to avoid an error.
  20652. Use char because int might match the return type of a GCC
  20653. builtin and then its argument prototype would still apply. */
  20654. #ifdef __cplusplus
  20655. extern "C"
  20656. #endif
  20657. char ${pbxfuncname} ();
  20658. int
  20659. main ()
  20660. {
  20661. return ${pbxfuncname} ();
  20662. ;
  20663. return 0;
  20664. }
  20665. _ACEOF
  20666. if ac_fn_c_try_link "$LINENO"; then :
  20667. eval "$as_ac_Lib=yes"
  20668. else
  20669. eval "$as_ac_Lib=no"
  20670. fi
  20671. rm -f core conftest.err conftest.$ac_objext \
  20672. conftest$ac_exeext conftest.$ac_ext
  20673. LIBS=$ac_check_lib_save_LIBS
  20674. fi
  20675. eval ac_res=\$$as_ac_Lib
  20676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20677. $as_echo "$ac_res" >&6; }
  20678. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20679. AST_PORTAUDIO_FOUND=yes
  20680. else
  20681. AST_PORTAUDIO_FOUND=no
  20682. fi
  20683. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20684. fi
  20685. # now check for the header.
  20686. if test "${AST_PORTAUDIO_FOUND}" = "yes"; then
  20687. PORTAUDIO_LIB="${pbxlibdir} -lportaudio "
  20688. # if --with-PORTAUDIO=DIR has been specified, use it.
  20689. if test "x${PORTAUDIO_DIR}" != "x"; then
  20690. PORTAUDIO_INCLUDE="-I${PORTAUDIO_DIR}/include"
  20691. fi
  20692. PORTAUDIO_INCLUDE="${PORTAUDIO_INCLUDE} "
  20693. if test "xportaudio.h" = "x" ; then # no header, assume found
  20694. PORTAUDIO_HEADER_FOUND="1"
  20695. else # check for the header
  20696. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20697. CPPFLAGS="${CPPFLAGS} ${PORTAUDIO_INCLUDE}"
  20698. ac_fn_c_check_header_mongrel "$LINENO" "portaudio.h" "ac_cv_header_portaudio_h" "$ac_includes_default"
  20699. if test "x$ac_cv_header_portaudio_h" = xyes; then :
  20700. PORTAUDIO_HEADER_FOUND=1
  20701. else
  20702. PORTAUDIO_HEADER_FOUND=0
  20703. fi
  20704. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20705. fi
  20706. if test "x${PORTAUDIO_HEADER_FOUND}" = "x0" ; then
  20707. PORTAUDIO_LIB=""
  20708. PORTAUDIO_INCLUDE=""
  20709. else
  20710. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20711. PORTAUDIO_LIB=""
  20712. fi
  20713. PBX_PORTAUDIO=1
  20714. cat >>confdefs.h <<_ACEOF
  20715. #define HAVE_PORTAUDIO 1
  20716. _ACEOF
  20717. fi
  20718. fi
  20719. fi
  20720. if test "x${PBX_PRI}" != "x1" -a "${USE_PRI}" != "no"; then
  20721. pbxlibdir=""
  20722. # if --with-PRI=DIR has been specified, use it.
  20723. if test "x${PRI_DIR}" != "x"; then
  20724. if test -d ${PRI_DIR}/lib; then
  20725. pbxlibdir="-L${PRI_DIR}/lib"
  20726. else
  20727. pbxlibdir="-L${PRI_DIR}"
  20728. fi
  20729. fi
  20730. pbxfuncname="pri_connected_line_update"
  20731. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20732. AST_PRI_FOUND=yes
  20733. else
  20734. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20735. CFLAGS="${CFLAGS} "
  20736. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20738. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20739. if eval \${$as_ac_Lib+:} false; then :
  20740. $as_echo_n "(cached) " >&6
  20741. else
  20742. ac_check_lib_save_LIBS=$LIBS
  20743. LIBS="-lpri ${pbxlibdir} $LIBS"
  20744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20745. /* end confdefs.h. */
  20746. /* Override any GCC internal prototype to avoid an error.
  20747. Use char because int might match the return type of a GCC
  20748. builtin and then its argument prototype would still apply. */
  20749. #ifdef __cplusplus
  20750. extern "C"
  20751. #endif
  20752. char ${pbxfuncname} ();
  20753. int
  20754. main ()
  20755. {
  20756. return ${pbxfuncname} ();
  20757. ;
  20758. return 0;
  20759. }
  20760. _ACEOF
  20761. if ac_fn_c_try_link "$LINENO"; then :
  20762. eval "$as_ac_Lib=yes"
  20763. else
  20764. eval "$as_ac_Lib=no"
  20765. fi
  20766. rm -f core conftest.err conftest.$ac_objext \
  20767. conftest$ac_exeext conftest.$ac_ext
  20768. LIBS=$ac_check_lib_save_LIBS
  20769. fi
  20770. eval ac_res=\$$as_ac_Lib
  20771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20772. $as_echo "$ac_res" >&6; }
  20773. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20774. AST_PRI_FOUND=yes
  20775. else
  20776. AST_PRI_FOUND=no
  20777. fi
  20778. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20779. fi
  20780. # now check for the header.
  20781. if test "${AST_PRI_FOUND}" = "yes"; then
  20782. PRI_LIB="${pbxlibdir} -lpri "
  20783. # if --with-PRI=DIR has been specified, use it.
  20784. if test "x${PRI_DIR}" != "x"; then
  20785. PRI_INCLUDE="-I${PRI_DIR}/include"
  20786. fi
  20787. PRI_INCLUDE="${PRI_INCLUDE} "
  20788. if test "xlibpri.h" = "x" ; then # no header, assume found
  20789. PRI_HEADER_FOUND="1"
  20790. else # check for the header
  20791. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20792. CPPFLAGS="${CPPFLAGS} ${PRI_INCLUDE}"
  20793. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20794. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20795. PRI_HEADER_FOUND=1
  20796. else
  20797. PRI_HEADER_FOUND=0
  20798. fi
  20799. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20800. fi
  20801. if test "x${PRI_HEADER_FOUND}" = "x0" ; then
  20802. PRI_LIB=""
  20803. PRI_INCLUDE=""
  20804. else
  20805. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20806. PRI_LIB=""
  20807. fi
  20808. PBX_PRI=1
  20809. cat >>confdefs.h <<_ACEOF
  20810. #define HAVE_PRI 1
  20811. _ACEOF
  20812. fi
  20813. fi
  20814. fi
  20815. if test "x${PBX_PRI_SETUP_ACK_INBAND}" != "x1" -a "${USE_PRI_SETUP_ACK_INBAND}" != "no"; then
  20816. pbxlibdir=""
  20817. # if --with-PRI_SETUP_ACK_INBAND=DIR has been specified, use it.
  20818. if test "x${PRI_SETUP_ACK_INBAND_DIR}" != "x"; then
  20819. if test -d ${PRI_SETUP_ACK_INBAND_DIR}/lib; then
  20820. pbxlibdir="-L${PRI_SETUP_ACK_INBAND_DIR}/lib"
  20821. else
  20822. pbxlibdir="-L${PRI_SETUP_ACK_INBAND_DIR}"
  20823. fi
  20824. fi
  20825. pbxfuncname="pri_setup_ack"
  20826. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20827. AST_PRI_SETUP_ACK_INBAND_FOUND=yes
  20828. else
  20829. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20830. CFLAGS="${CFLAGS} "
  20831. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20833. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20834. if eval \${$as_ac_Lib+:} false; then :
  20835. $as_echo_n "(cached) " >&6
  20836. else
  20837. ac_check_lib_save_LIBS=$LIBS
  20838. LIBS="-lpri ${pbxlibdir} $LIBS"
  20839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20840. /* end confdefs.h. */
  20841. /* Override any GCC internal prototype to avoid an error.
  20842. Use char because int might match the return type of a GCC
  20843. builtin and then its argument prototype would still apply. */
  20844. #ifdef __cplusplus
  20845. extern "C"
  20846. #endif
  20847. char ${pbxfuncname} ();
  20848. int
  20849. main ()
  20850. {
  20851. return ${pbxfuncname} ();
  20852. ;
  20853. return 0;
  20854. }
  20855. _ACEOF
  20856. if ac_fn_c_try_link "$LINENO"; then :
  20857. eval "$as_ac_Lib=yes"
  20858. else
  20859. eval "$as_ac_Lib=no"
  20860. fi
  20861. rm -f core conftest.err conftest.$ac_objext \
  20862. conftest$ac_exeext conftest.$ac_ext
  20863. LIBS=$ac_check_lib_save_LIBS
  20864. fi
  20865. eval ac_res=\$$as_ac_Lib
  20866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20867. $as_echo "$ac_res" >&6; }
  20868. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20869. AST_PRI_SETUP_ACK_INBAND_FOUND=yes
  20870. else
  20871. AST_PRI_SETUP_ACK_INBAND_FOUND=no
  20872. fi
  20873. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20874. fi
  20875. # now check for the header.
  20876. if test "${AST_PRI_SETUP_ACK_INBAND_FOUND}" = "yes"; then
  20877. PRI_SETUP_ACK_INBAND_LIB="${pbxlibdir} -lpri "
  20878. # if --with-PRI_SETUP_ACK_INBAND=DIR has been specified, use it.
  20879. if test "x${PRI_SETUP_ACK_INBAND_DIR}" != "x"; then
  20880. PRI_SETUP_ACK_INBAND_INCLUDE="-I${PRI_SETUP_ACK_INBAND_DIR}/include"
  20881. fi
  20882. PRI_SETUP_ACK_INBAND_INCLUDE="${PRI_SETUP_ACK_INBAND_INCLUDE} "
  20883. if test "xlibpri.h" = "x" ; then # no header, assume found
  20884. PRI_SETUP_ACK_INBAND_HEADER_FOUND="1"
  20885. else # check for the header
  20886. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20887. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_ACK_INBAND_INCLUDE}"
  20888. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20889. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20890. PRI_SETUP_ACK_INBAND_HEADER_FOUND=1
  20891. else
  20892. PRI_SETUP_ACK_INBAND_HEADER_FOUND=0
  20893. fi
  20894. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20895. fi
  20896. if test "x${PRI_SETUP_ACK_INBAND_HEADER_FOUND}" = "x0" ; then
  20897. PRI_SETUP_ACK_INBAND_LIB=""
  20898. PRI_SETUP_ACK_INBAND_INCLUDE=""
  20899. else
  20900. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20901. PRI_SETUP_ACK_INBAND_LIB=""
  20902. fi
  20903. PBX_PRI_SETUP_ACK_INBAND=1
  20904. cat >>confdefs.h <<_ACEOF
  20905. #define HAVE_PRI_SETUP_ACK_INBAND 1
  20906. _ACEOF
  20907. fi
  20908. fi
  20909. fi
  20910. if test "x${PBX_PRI_L2_PERSISTENCE}" != "x1" -a "${USE_PRI_L2_PERSISTENCE}" != "no"; then
  20911. pbxlibdir=""
  20912. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  20913. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  20914. if test -d ${PRI_L2_PERSISTENCE_DIR}/lib; then
  20915. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}/lib"
  20916. else
  20917. pbxlibdir="-L${PRI_L2_PERSISTENCE_DIR}"
  20918. fi
  20919. fi
  20920. pbxfuncname="pri_persistent_layer2_option"
  20921. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  20922. AST_PRI_L2_PERSISTENCE_FOUND=yes
  20923. else
  20924. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  20925. CFLAGS="${CFLAGS} "
  20926. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  20927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  20928. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  20929. if eval \${$as_ac_Lib+:} false; then :
  20930. $as_echo_n "(cached) " >&6
  20931. else
  20932. ac_check_lib_save_LIBS=$LIBS
  20933. LIBS="-lpri ${pbxlibdir} $LIBS"
  20934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20935. /* end confdefs.h. */
  20936. /* Override any GCC internal prototype to avoid an error.
  20937. Use char because int might match the return type of a GCC
  20938. builtin and then its argument prototype would still apply. */
  20939. #ifdef __cplusplus
  20940. extern "C"
  20941. #endif
  20942. char ${pbxfuncname} ();
  20943. int
  20944. main ()
  20945. {
  20946. return ${pbxfuncname} ();
  20947. ;
  20948. return 0;
  20949. }
  20950. _ACEOF
  20951. if ac_fn_c_try_link "$LINENO"; then :
  20952. eval "$as_ac_Lib=yes"
  20953. else
  20954. eval "$as_ac_Lib=no"
  20955. fi
  20956. rm -f core conftest.err conftest.$ac_objext \
  20957. conftest$ac_exeext conftest.$ac_ext
  20958. LIBS=$ac_check_lib_save_LIBS
  20959. fi
  20960. eval ac_res=\$$as_ac_Lib
  20961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  20962. $as_echo "$ac_res" >&6; }
  20963. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  20964. AST_PRI_L2_PERSISTENCE_FOUND=yes
  20965. else
  20966. AST_PRI_L2_PERSISTENCE_FOUND=no
  20967. fi
  20968. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  20969. fi
  20970. # now check for the header.
  20971. if test "${AST_PRI_L2_PERSISTENCE_FOUND}" = "yes"; then
  20972. PRI_L2_PERSISTENCE_LIB="${pbxlibdir} -lpri "
  20973. # if --with-PRI_L2_PERSISTENCE=DIR has been specified, use it.
  20974. if test "x${PRI_L2_PERSISTENCE_DIR}" != "x"; then
  20975. PRI_L2_PERSISTENCE_INCLUDE="-I${PRI_L2_PERSISTENCE_DIR}/include"
  20976. fi
  20977. PRI_L2_PERSISTENCE_INCLUDE="${PRI_L2_PERSISTENCE_INCLUDE} "
  20978. if test "xlibpri.h" = "x" ; then # no header, assume found
  20979. PRI_L2_PERSISTENCE_HEADER_FOUND="1"
  20980. else # check for the header
  20981. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  20982. CPPFLAGS="${CPPFLAGS} ${PRI_L2_PERSISTENCE_INCLUDE}"
  20983. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  20984. if test "x$ac_cv_header_libpri_h" = xyes; then :
  20985. PRI_L2_PERSISTENCE_HEADER_FOUND=1
  20986. else
  20987. PRI_L2_PERSISTENCE_HEADER_FOUND=0
  20988. fi
  20989. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  20990. fi
  20991. if test "x${PRI_L2_PERSISTENCE_HEADER_FOUND}" = "x0" ; then
  20992. PRI_L2_PERSISTENCE_LIB=""
  20993. PRI_L2_PERSISTENCE_INCLUDE=""
  20994. else
  20995. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  20996. PRI_L2_PERSISTENCE_LIB=""
  20997. fi
  20998. PBX_PRI_L2_PERSISTENCE=1
  20999. cat >>confdefs.h <<_ACEOF
  21000. #define HAVE_PRI_L2_PERSISTENCE 1
  21001. _ACEOF
  21002. fi
  21003. fi
  21004. fi
  21005. if test "x${PBX_PRI_DATETIME_SEND}" != "x1" -a "${USE_PRI_DATETIME_SEND}" != "no"; then
  21006. pbxlibdir=""
  21007. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  21008. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  21009. if test -d ${PRI_DATETIME_SEND_DIR}/lib; then
  21010. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}/lib"
  21011. else
  21012. pbxlibdir="-L${PRI_DATETIME_SEND_DIR}"
  21013. fi
  21014. fi
  21015. pbxfuncname="pri_date_time_send_option"
  21016. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21017. AST_PRI_DATETIME_SEND_FOUND=yes
  21018. else
  21019. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21020. CFLAGS="${CFLAGS} "
  21021. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21023. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21024. if eval \${$as_ac_Lib+:} false; then :
  21025. $as_echo_n "(cached) " >&6
  21026. else
  21027. ac_check_lib_save_LIBS=$LIBS
  21028. LIBS="-lpri ${pbxlibdir} $LIBS"
  21029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21030. /* end confdefs.h. */
  21031. /* Override any GCC internal prototype to avoid an error.
  21032. Use char because int might match the return type of a GCC
  21033. builtin and then its argument prototype would still apply. */
  21034. #ifdef __cplusplus
  21035. extern "C"
  21036. #endif
  21037. char ${pbxfuncname} ();
  21038. int
  21039. main ()
  21040. {
  21041. return ${pbxfuncname} ();
  21042. ;
  21043. return 0;
  21044. }
  21045. _ACEOF
  21046. if ac_fn_c_try_link "$LINENO"; then :
  21047. eval "$as_ac_Lib=yes"
  21048. else
  21049. eval "$as_ac_Lib=no"
  21050. fi
  21051. rm -f core conftest.err conftest.$ac_objext \
  21052. conftest$ac_exeext conftest.$ac_ext
  21053. LIBS=$ac_check_lib_save_LIBS
  21054. fi
  21055. eval ac_res=\$$as_ac_Lib
  21056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21057. $as_echo "$ac_res" >&6; }
  21058. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21059. AST_PRI_DATETIME_SEND_FOUND=yes
  21060. else
  21061. AST_PRI_DATETIME_SEND_FOUND=no
  21062. fi
  21063. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21064. fi
  21065. # now check for the header.
  21066. if test "${AST_PRI_DATETIME_SEND_FOUND}" = "yes"; then
  21067. PRI_DATETIME_SEND_LIB="${pbxlibdir} -lpri "
  21068. # if --with-PRI_DATETIME_SEND=DIR has been specified, use it.
  21069. if test "x${PRI_DATETIME_SEND_DIR}" != "x"; then
  21070. PRI_DATETIME_SEND_INCLUDE="-I${PRI_DATETIME_SEND_DIR}/include"
  21071. fi
  21072. PRI_DATETIME_SEND_INCLUDE="${PRI_DATETIME_SEND_INCLUDE} "
  21073. if test "xlibpri.h" = "x" ; then # no header, assume found
  21074. PRI_DATETIME_SEND_HEADER_FOUND="1"
  21075. else # check for the header
  21076. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21077. CPPFLAGS="${CPPFLAGS} ${PRI_DATETIME_SEND_INCLUDE}"
  21078. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21079. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21080. PRI_DATETIME_SEND_HEADER_FOUND=1
  21081. else
  21082. PRI_DATETIME_SEND_HEADER_FOUND=0
  21083. fi
  21084. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21085. fi
  21086. if test "x${PRI_DATETIME_SEND_HEADER_FOUND}" = "x0" ; then
  21087. PRI_DATETIME_SEND_LIB=""
  21088. PRI_DATETIME_SEND_INCLUDE=""
  21089. else
  21090. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21091. PRI_DATETIME_SEND_LIB=""
  21092. fi
  21093. PBX_PRI_DATETIME_SEND=1
  21094. cat >>confdefs.h <<_ACEOF
  21095. #define HAVE_PRI_DATETIME_SEND 1
  21096. _ACEOF
  21097. fi
  21098. fi
  21099. fi
  21100. if test "x${PBX_PRI_MWI_V2}" != "x1" -a "${USE_PRI_MWI_V2}" != "no"; then
  21101. pbxlibdir=""
  21102. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  21103. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  21104. if test -d ${PRI_MWI_V2_DIR}/lib; then
  21105. pbxlibdir="-L${PRI_MWI_V2_DIR}/lib"
  21106. else
  21107. pbxlibdir="-L${PRI_MWI_V2_DIR}"
  21108. fi
  21109. fi
  21110. pbxfuncname="pri_mwi_indicate_v2"
  21111. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21112. AST_PRI_MWI_V2_FOUND=yes
  21113. else
  21114. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21115. CFLAGS="${CFLAGS} "
  21116. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21118. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21119. if eval \${$as_ac_Lib+:} false; then :
  21120. $as_echo_n "(cached) " >&6
  21121. else
  21122. ac_check_lib_save_LIBS=$LIBS
  21123. LIBS="-lpri ${pbxlibdir} $LIBS"
  21124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21125. /* end confdefs.h. */
  21126. /* Override any GCC internal prototype to avoid an error.
  21127. Use char because int might match the return type of a GCC
  21128. builtin and then its argument prototype would still apply. */
  21129. #ifdef __cplusplus
  21130. extern "C"
  21131. #endif
  21132. char ${pbxfuncname} ();
  21133. int
  21134. main ()
  21135. {
  21136. return ${pbxfuncname} ();
  21137. ;
  21138. return 0;
  21139. }
  21140. _ACEOF
  21141. if ac_fn_c_try_link "$LINENO"; then :
  21142. eval "$as_ac_Lib=yes"
  21143. else
  21144. eval "$as_ac_Lib=no"
  21145. fi
  21146. rm -f core conftest.err conftest.$ac_objext \
  21147. conftest$ac_exeext conftest.$ac_ext
  21148. LIBS=$ac_check_lib_save_LIBS
  21149. fi
  21150. eval ac_res=\$$as_ac_Lib
  21151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21152. $as_echo "$ac_res" >&6; }
  21153. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21154. AST_PRI_MWI_V2_FOUND=yes
  21155. else
  21156. AST_PRI_MWI_V2_FOUND=no
  21157. fi
  21158. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21159. fi
  21160. # now check for the header.
  21161. if test "${AST_PRI_MWI_V2_FOUND}" = "yes"; then
  21162. PRI_MWI_V2_LIB="${pbxlibdir} -lpri "
  21163. # if --with-PRI_MWI_V2=DIR has been specified, use it.
  21164. if test "x${PRI_MWI_V2_DIR}" != "x"; then
  21165. PRI_MWI_V2_INCLUDE="-I${PRI_MWI_V2_DIR}/include"
  21166. fi
  21167. PRI_MWI_V2_INCLUDE="${PRI_MWI_V2_INCLUDE} "
  21168. if test "xlibpri.h" = "x" ; then # no header, assume found
  21169. PRI_MWI_V2_HEADER_FOUND="1"
  21170. else # check for the header
  21171. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21172. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_V2_INCLUDE}"
  21173. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21174. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21175. PRI_MWI_V2_HEADER_FOUND=1
  21176. else
  21177. PRI_MWI_V2_HEADER_FOUND=0
  21178. fi
  21179. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21180. fi
  21181. if test "x${PRI_MWI_V2_HEADER_FOUND}" = "x0" ; then
  21182. PRI_MWI_V2_LIB=""
  21183. PRI_MWI_V2_INCLUDE=""
  21184. else
  21185. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21186. PRI_MWI_V2_LIB=""
  21187. fi
  21188. PBX_PRI_MWI_V2=1
  21189. cat >>confdefs.h <<_ACEOF
  21190. #define HAVE_PRI_MWI_V2 1
  21191. _ACEOF
  21192. fi
  21193. fi
  21194. fi
  21195. if test "x${PBX_PRI_DISPLAY_TEXT}" != "x1" -a "${USE_PRI_DISPLAY_TEXT}" != "no"; then
  21196. pbxlibdir=""
  21197. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  21198. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  21199. if test -d ${PRI_DISPLAY_TEXT_DIR}/lib; then
  21200. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}/lib"
  21201. else
  21202. pbxlibdir="-L${PRI_DISPLAY_TEXT_DIR}"
  21203. fi
  21204. fi
  21205. pbxfuncname="pri_display_text"
  21206. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21207. AST_PRI_DISPLAY_TEXT_FOUND=yes
  21208. else
  21209. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21210. CFLAGS="${CFLAGS} "
  21211. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21213. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21214. if eval \${$as_ac_Lib+:} false; then :
  21215. $as_echo_n "(cached) " >&6
  21216. else
  21217. ac_check_lib_save_LIBS=$LIBS
  21218. LIBS="-lpri ${pbxlibdir} $LIBS"
  21219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21220. /* end confdefs.h. */
  21221. /* Override any GCC internal prototype to avoid an error.
  21222. Use char because int might match the return type of a GCC
  21223. builtin and then its argument prototype would still apply. */
  21224. #ifdef __cplusplus
  21225. extern "C"
  21226. #endif
  21227. char ${pbxfuncname} ();
  21228. int
  21229. main ()
  21230. {
  21231. return ${pbxfuncname} ();
  21232. ;
  21233. return 0;
  21234. }
  21235. _ACEOF
  21236. if ac_fn_c_try_link "$LINENO"; then :
  21237. eval "$as_ac_Lib=yes"
  21238. else
  21239. eval "$as_ac_Lib=no"
  21240. fi
  21241. rm -f core conftest.err conftest.$ac_objext \
  21242. conftest$ac_exeext conftest.$ac_ext
  21243. LIBS=$ac_check_lib_save_LIBS
  21244. fi
  21245. eval ac_res=\$$as_ac_Lib
  21246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21247. $as_echo "$ac_res" >&6; }
  21248. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21249. AST_PRI_DISPLAY_TEXT_FOUND=yes
  21250. else
  21251. AST_PRI_DISPLAY_TEXT_FOUND=no
  21252. fi
  21253. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21254. fi
  21255. # now check for the header.
  21256. if test "${AST_PRI_DISPLAY_TEXT_FOUND}" = "yes"; then
  21257. PRI_DISPLAY_TEXT_LIB="${pbxlibdir} -lpri "
  21258. # if --with-PRI_DISPLAY_TEXT=DIR has been specified, use it.
  21259. if test "x${PRI_DISPLAY_TEXT_DIR}" != "x"; then
  21260. PRI_DISPLAY_TEXT_INCLUDE="-I${PRI_DISPLAY_TEXT_DIR}/include"
  21261. fi
  21262. PRI_DISPLAY_TEXT_INCLUDE="${PRI_DISPLAY_TEXT_INCLUDE} "
  21263. if test "xlibpri.h" = "x" ; then # no header, assume found
  21264. PRI_DISPLAY_TEXT_HEADER_FOUND="1"
  21265. else # check for the header
  21266. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21267. CPPFLAGS="${CPPFLAGS} ${PRI_DISPLAY_TEXT_INCLUDE}"
  21268. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21269. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21270. PRI_DISPLAY_TEXT_HEADER_FOUND=1
  21271. else
  21272. PRI_DISPLAY_TEXT_HEADER_FOUND=0
  21273. fi
  21274. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21275. fi
  21276. if test "x${PRI_DISPLAY_TEXT_HEADER_FOUND}" = "x0" ; then
  21277. PRI_DISPLAY_TEXT_LIB=""
  21278. PRI_DISPLAY_TEXT_INCLUDE=""
  21279. else
  21280. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21281. PRI_DISPLAY_TEXT_LIB=""
  21282. fi
  21283. PBX_PRI_DISPLAY_TEXT=1
  21284. cat >>confdefs.h <<_ACEOF
  21285. #define HAVE_PRI_DISPLAY_TEXT 1
  21286. _ACEOF
  21287. fi
  21288. fi
  21289. fi
  21290. if test "x${PBX_PRI_MWI}" != "x1" -a "${USE_PRI_MWI}" != "no"; then
  21291. pbxlibdir=""
  21292. # if --with-PRI_MWI=DIR has been specified, use it.
  21293. if test "x${PRI_MWI_DIR}" != "x"; then
  21294. if test -d ${PRI_MWI_DIR}/lib; then
  21295. pbxlibdir="-L${PRI_MWI_DIR}/lib"
  21296. else
  21297. pbxlibdir="-L${PRI_MWI_DIR}"
  21298. fi
  21299. fi
  21300. pbxfuncname="pri_mwi_indicate"
  21301. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21302. AST_PRI_MWI_FOUND=yes
  21303. else
  21304. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21305. CFLAGS="${CFLAGS} "
  21306. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21308. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21309. if eval \${$as_ac_Lib+:} false; then :
  21310. $as_echo_n "(cached) " >&6
  21311. else
  21312. ac_check_lib_save_LIBS=$LIBS
  21313. LIBS="-lpri ${pbxlibdir} $LIBS"
  21314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21315. /* end confdefs.h. */
  21316. /* Override any GCC internal prototype to avoid an error.
  21317. Use char because int might match the return type of a GCC
  21318. builtin and then its argument prototype would still apply. */
  21319. #ifdef __cplusplus
  21320. extern "C"
  21321. #endif
  21322. char ${pbxfuncname} ();
  21323. int
  21324. main ()
  21325. {
  21326. return ${pbxfuncname} ();
  21327. ;
  21328. return 0;
  21329. }
  21330. _ACEOF
  21331. if ac_fn_c_try_link "$LINENO"; then :
  21332. eval "$as_ac_Lib=yes"
  21333. else
  21334. eval "$as_ac_Lib=no"
  21335. fi
  21336. rm -f core conftest.err conftest.$ac_objext \
  21337. conftest$ac_exeext conftest.$ac_ext
  21338. LIBS=$ac_check_lib_save_LIBS
  21339. fi
  21340. eval ac_res=\$$as_ac_Lib
  21341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21342. $as_echo "$ac_res" >&6; }
  21343. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21344. AST_PRI_MWI_FOUND=yes
  21345. else
  21346. AST_PRI_MWI_FOUND=no
  21347. fi
  21348. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21349. fi
  21350. # now check for the header.
  21351. if test "${AST_PRI_MWI_FOUND}" = "yes"; then
  21352. PRI_MWI_LIB="${pbxlibdir} -lpri "
  21353. # if --with-PRI_MWI=DIR has been specified, use it.
  21354. if test "x${PRI_MWI_DIR}" != "x"; then
  21355. PRI_MWI_INCLUDE="-I${PRI_MWI_DIR}/include"
  21356. fi
  21357. PRI_MWI_INCLUDE="${PRI_MWI_INCLUDE} "
  21358. if test "xlibpri.h" = "x" ; then # no header, assume found
  21359. PRI_MWI_HEADER_FOUND="1"
  21360. else # check for the header
  21361. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21362. CPPFLAGS="${CPPFLAGS} ${PRI_MWI_INCLUDE}"
  21363. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21364. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21365. PRI_MWI_HEADER_FOUND=1
  21366. else
  21367. PRI_MWI_HEADER_FOUND=0
  21368. fi
  21369. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21370. fi
  21371. if test "x${PRI_MWI_HEADER_FOUND}" = "x0" ; then
  21372. PRI_MWI_LIB=""
  21373. PRI_MWI_INCLUDE=""
  21374. else
  21375. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21376. PRI_MWI_LIB=""
  21377. fi
  21378. PBX_PRI_MWI=1
  21379. cat >>confdefs.h <<_ACEOF
  21380. #define HAVE_PRI_MWI 1
  21381. _ACEOF
  21382. fi
  21383. fi
  21384. fi
  21385. if test "x${PBX_PRI_MCID}" != "x1" -a "${USE_PRI_MCID}" != "no"; then
  21386. pbxlibdir=""
  21387. # if --with-PRI_MCID=DIR has been specified, use it.
  21388. if test "x${PRI_MCID_DIR}" != "x"; then
  21389. if test -d ${PRI_MCID_DIR}/lib; then
  21390. pbxlibdir="-L${PRI_MCID_DIR}/lib"
  21391. else
  21392. pbxlibdir="-L${PRI_MCID_DIR}"
  21393. fi
  21394. fi
  21395. pbxfuncname="pri_mcid_enable"
  21396. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21397. AST_PRI_MCID_FOUND=yes
  21398. else
  21399. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21400. CFLAGS="${CFLAGS} "
  21401. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21403. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21404. if eval \${$as_ac_Lib+:} false; then :
  21405. $as_echo_n "(cached) " >&6
  21406. else
  21407. ac_check_lib_save_LIBS=$LIBS
  21408. LIBS="-lpri ${pbxlibdir} $LIBS"
  21409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21410. /* end confdefs.h. */
  21411. /* Override any GCC internal prototype to avoid an error.
  21412. Use char because int might match the return type of a GCC
  21413. builtin and then its argument prototype would still apply. */
  21414. #ifdef __cplusplus
  21415. extern "C"
  21416. #endif
  21417. char ${pbxfuncname} ();
  21418. int
  21419. main ()
  21420. {
  21421. return ${pbxfuncname} ();
  21422. ;
  21423. return 0;
  21424. }
  21425. _ACEOF
  21426. if ac_fn_c_try_link "$LINENO"; then :
  21427. eval "$as_ac_Lib=yes"
  21428. else
  21429. eval "$as_ac_Lib=no"
  21430. fi
  21431. rm -f core conftest.err conftest.$ac_objext \
  21432. conftest$ac_exeext conftest.$ac_ext
  21433. LIBS=$ac_check_lib_save_LIBS
  21434. fi
  21435. eval ac_res=\$$as_ac_Lib
  21436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21437. $as_echo "$ac_res" >&6; }
  21438. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21439. AST_PRI_MCID_FOUND=yes
  21440. else
  21441. AST_PRI_MCID_FOUND=no
  21442. fi
  21443. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21444. fi
  21445. # now check for the header.
  21446. if test "${AST_PRI_MCID_FOUND}" = "yes"; then
  21447. PRI_MCID_LIB="${pbxlibdir} -lpri "
  21448. # if --with-PRI_MCID=DIR has been specified, use it.
  21449. if test "x${PRI_MCID_DIR}" != "x"; then
  21450. PRI_MCID_INCLUDE="-I${PRI_MCID_DIR}/include"
  21451. fi
  21452. PRI_MCID_INCLUDE="${PRI_MCID_INCLUDE} "
  21453. if test "xlibpri.h" = "x" ; then # no header, assume found
  21454. PRI_MCID_HEADER_FOUND="1"
  21455. else # check for the header
  21456. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21457. CPPFLAGS="${CPPFLAGS} ${PRI_MCID_INCLUDE}"
  21458. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21459. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21460. PRI_MCID_HEADER_FOUND=1
  21461. else
  21462. PRI_MCID_HEADER_FOUND=0
  21463. fi
  21464. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21465. fi
  21466. if test "x${PRI_MCID_HEADER_FOUND}" = "x0" ; then
  21467. PRI_MCID_LIB=""
  21468. PRI_MCID_INCLUDE=""
  21469. else
  21470. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21471. PRI_MCID_LIB=""
  21472. fi
  21473. PBX_PRI_MCID=1
  21474. cat >>confdefs.h <<_ACEOF
  21475. #define HAVE_PRI_MCID 1
  21476. _ACEOF
  21477. fi
  21478. fi
  21479. fi
  21480. if test "x${PBX_PRI_CALL_WAITING}" != "x1" -a "${USE_PRI_CALL_WAITING}" != "no"; then
  21481. pbxlibdir=""
  21482. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  21483. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  21484. if test -d ${PRI_CALL_WAITING_DIR}/lib; then
  21485. pbxlibdir="-L${PRI_CALL_WAITING_DIR}/lib"
  21486. else
  21487. pbxlibdir="-L${PRI_CALL_WAITING_DIR}"
  21488. fi
  21489. fi
  21490. pbxfuncname="pri_connect_ack_enable"
  21491. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21492. AST_PRI_CALL_WAITING_FOUND=yes
  21493. else
  21494. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21495. CFLAGS="${CFLAGS} "
  21496. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21498. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21499. if eval \${$as_ac_Lib+:} false; then :
  21500. $as_echo_n "(cached) " >&6
  21501. else
  21502. ac_check_lib_save_LIBS=$LIBS
  21503. LIBS="-lpri ${pbxlibdir} $LIBS"
  21504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21505. /* end confdefs.h. */
  21506. /* Override any GCC internal prototype to avoid an error.
  21507. Use char because int might match the return type of a GCC
  21508. builtin and then its argument prototype would still apply. */
  21509. #ifdef __cplusplus
  21510. extern "C"
  21511. #endif
  21512. char ${pbxfuncname} ();
  21513. int
  21514. main ()
  21515. {
  21516. return ${pbxfuncname} ();
  21517. ;
  21518. return 0;
  21519. }
  21520. _ACEOF
  21521. if ac_fn_c_try_link "$LINENO"; then :
  21522. eval "$as_ac_Lib=yes"
  21523. else
  21524. eval "$as_ac_Lib=no"
  21525. fi
  21526. rm -f core conftest.err conftest.$ac_objext \
  21527. conftest$ac_exeext conftest.$ac_ext
  21528. LIBS=$ac_check_lib_save_LIBS
  21529. fi
  21530. eval ac_res=\$$as_ac_Lib
  21531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21532. $as_echo "$ac_res" >&6; }
  21533. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21534. AST_PRI_CALL_WAITING_FOUND=yes
  21535. else
  21536. AST_PRI_CALL_WAITING_FOUND=no
  21537. fi
  21538. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21539. fi
  21540. # now check for the header.
  21541. if test "${AST_PRI_CALL_WAITING_FOUND}" = "yes"; then
  21542. PRI_CALL_WAITING_LIB="${pbxlibdir} -lpri "
  21543. # if --with-PRI_CALL_WAITING=DIR has been specified, use it.
  21544. if test "x${PRI_CALL_WAITING_DIR}" != "x"; then
  21545. PRI_CALL_WAITING_INCLUDE="-I${PRI_CALL_WAITING_DIR}/include"
  21546. fi
  21547. PRI_CALL_WAITING_INCLUDE="${PRI_CALL_WAITING_INCLUDE} "
  21548. if test "xlibpri.h" = "x" ; then # no header, assume found
  21549. PRI_CALL_WAITING_HEADER_FOUND="1"
  21550. else # check for the header
  21551. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21552. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_WAITING_INCLUDE}"
  21553. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21554. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21555. PRI_CALL_WAITING_HEADER_FOUND=1
  21556. else
  21557. PRI_CALL_WAITING_HEADER_FOUND=0
  21558. fi
  21559. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21560. fi
  21561. if test "x${PRI_CALL_WAITING_HEADER_FOUND}" = "x0" ; then
  21562. PRI_CALL_WAITING_LIB=""
  21563. PRI_CALL_WAITING_INCLUDE=""
  21564. else
  21565. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21566. PRI_CALL_WAITING_LIB=""
  21567. fi
  21568. PBX_PRI_CALL_WAITING=1
  21569. cat >>confdefs.h <<_ACEOF
  21570. #define HAVE_PRI_CALL_WAITING 1
  21571. _ACEOF
  21572. fi
  21573. fi
  21574. fi
  21575. if test "x${PBX_PRI_AOC_EVENTS}" != "x1" -a "${USE_PRI_AOC_EVENTS}" != "no"; then
  21576. pbxlibdir=""
  21577. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  21578. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  21579. if test -d ${PRI_AOC_EVENTS_DIR}/lib; then
  21580. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}/lib"
  21581. else
  21582. pbxlibdir="-L${PRI_AOC_EVENTS_DIR}"
  21583. fi
  21584. fi
  21585. pbxfuncname="pri_aoc_events_enable"
  21586. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21587. AST_PRI_AOC_EVENTS_FOUND=yes
  21588. else
  21589. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21590. CFLAGS="${CFLAGS} "
  21591. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21593. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21594. if eval \${$as_ac_Lib+:} false; then :
  21595. $as_echo_n "(cached) " >&6
  21596. else
  21597. ac_check_lib_save_LIBS=$LIBS
  21598. LIBS="-lpri ${pbxlibdir} $LIBS"
  21599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21600. /* end confdefs.h. */
  21601. /* Override any GCC internal prototype to avoid an error.
  21602. Use char because int might match the return type of a GCC
  21603. builtin and then its argument prototype would still apply. */
  21604. #ifdef __cplusplus
  21605. extern "C"
  21606. #endif
  21607. char ${pbxfuncname} ();
  21608. int
  21609. main ()
  21610. {
  21611. return ${pbxfuncname} ();
  21612. ;
  21613. return 0;
  21614. }
  21615. _ACEOF
  21616. if ac_fn_c_try_link "$LINENO"; then :
  21617. eval "$as_ac_Lib=yes"
  21618. else
  21619. eval "$as_ac_Lib=no"
  21620. fi
  21621. rm -f core conftest.err conftest.$ac_objext \
  21622. conftest$ac_exeext conftest.$ac_ext
  21623. LIBS=$ac_check_lib_save_LIBS
  21624. fi
  21625. eval ac_res=\$$as_ac_Lib
  21626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21627. $as_echo "$ac_res" >&6; }
  21628. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21629. AST_PRI_AOC_EVENTS_FOUND=yes
  21630. else
  21631. AST_PRI_AOC_EVENTS_FOUND=no
  21632. fi
  21633. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21634. fi
  21635. # now check for the header.
  21636. if test "${AST_PRI_AOC_EVENTS_FOUND}" = "yes"; then
  21637. PRI_AOC_EVENTS_LIB="${pbxlibdir} -lpri "
  21638. # if --with-PRI_AOC_EVENTS=DIR has been specified, use it.
  21639. if test "x${PRI_AOC_EVENTS_DIR}" != "x"; then
  21640. PRI_AOC_EVENTS_INCLUDE="-I${PRI_AOC_EVENTS_DIR}/include"
  21641. fi
  21642. PRI_AOC_EVENTS_INCLUDE="${PRI_AOC_EVENTS_INCLUDE} "
  21643. if test "xlibpri.h" = "x" ; then # no header, assume found
  21644. PRI_AOC_EVENTS_HEADER_FOUND="1"
  21645. else # check for the header
  21646. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21647. CPPFLAGS="${CPPFLAGS} ${PRI_AOC_EVENTS_INCLUDE}"
  21648. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21649. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21650. PRI_AOC_EVENTS_HEADER_FOUND=1
  21651. else
  21652. PRI_AOC_EVENTS_HEADER_FOUND=0
  21653. fi
  21654. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21655. fi
  21656. if test "x${PRI_AOC_EVENTS_HEADER_FOUND}" = "x0" ; then
  21657. PRI_AOC_EVENTS_LIB=""
  21658. PRI_AOC_EVENTS_INCLUDE=""
  21659. else
  21660. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21661. PRI_AOC_EVENTS_LIB=""
  21662. fi
  21663. PBX_PRI_AOC_EVENTS=1
  21664. cat >>confdefs.h <<_ACEOF
  21665. #define HAVE_PRI_AOC_EVENTS 1
  21666. _ACEOF
  21667. fi
  21668. fi
  21669. fi
  21670. if test "x${PBX_PRI_TRANSFER}" != "x1" -a "${USE_PRI_TRANSFER}" != "no"; then
  21671. pbxlibdir=""
  21672. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  21673. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  21674. if test -d ${PRI_TRANSFER_DIR}/lib; then
  21675. pbxlibdir="-L${PRI_TRANSFER_DIR}/lib"
  21676. else
  21677. pbxlibdir="-L${PRI_TRANSFER_DIR}"
  21678. fi
  21679. fi
  21680. pbxfuncname="pri_transfer_enable"
  21681. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21682. AST_PRI_TRANSFER_FOUND=yes
  21683. else
  21684. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21685. CFLAGS="${CFLAGS} "
  21686. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21688. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21689. if eval \${$as_ac_Lib+:} false; then :
  21690. $as_echo_n "(cached) " >&6
  21691. else
  21692. ac_check_lib_save_LIBS=$LIBS
  21693. LIBS="-lpri ${pbxlibdir} $LIBS"
  21694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21695. /* end confdefs.h. */
  21696. /* Override any GCC internal prototype to avoid an error.
  21697. Use char because int might match the return type of a GCC
  21698. builtin and then its argument prototype would still apply. */
  21699. #ifdef __cplusplus
  21700. extern "C"
  21701. #endif
  21702. char ${pbxfuncname} ();
  21703. int
  21704. main ()
  21705. {
  21706. return ${pbxfuncname} ();
  21707. ;
  21708. return 0;
  21709. }
  21710. _ACEOF
  21711. if ac_fn_c_try_link "$LINENO"; then :
  21712. eval "$as_ac_Lib=yes"
  21713. else
  21714. eval "$as_ac_Lib=no"
  21715. fi
  21716. rm -f core conftest.err conftest.$ac_objext \
  21717. conftest$ac_exeext conftest.$ac_ext
  21718. LIBS=$ac_check_lib_save_LIBS
  21719. fi
  21720. eval ac_res=\$$as_ac_Lib
  21721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21722. $as_echo "$ac_res" >&6; }
  21723. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21724. AST_PRI_TRANSFER_FOUND=yes
  21725. else
  21726. AST_PRI_TRANSFER_FOUND=no
  21727. fi
  21728. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21729. fi
  21730. # now check for the header.
  21731. if test "${AST_PRI_TRANSFER_FOUND}" = "yes"; then
  21732. PRI_TRANSFER_LIB="${pbxlibdir} -lpri "
  21733. # if --with-PRI_TRANSFER=DIR has been specified, use it.
  21734. if test "x${PRI_TRANSFER_DIR}" != "x"; then
  21735. PRI_TRANSFER_INCLUDE="-I${PRI_TRANSFER_DIR}/include"
  21736. fi
  21737. PRI_TRANSFER_INCLUDE="${PRI_TRANSFER_INCLUDE} "
  21738. if test "xlibpri.h" = "x" ; then # no header, assume found
  21739. PRI_TRANSFER_HEADER_FOUND="1"
  21740. else # check for the header
  21741. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21742. CPPFLAGS="${CPPFLAGS} ${PRI_TRANSFER_INCLUDE}"
  21743. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21744. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21745. PRI_TRANSFER_HEADER_FOUND=1
  21746. else
  21747. PRI_TRANSFER_HEADER_FOUND=0
  21748. fi
  21749. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21750. fi
  21751. if test "x${PRI_TRANSFER_HEADER_FOUND}" = "x0" ; then
  21752. PRI_TRANSFER_LIB=""
  21753. PRI_TRANSFER_INCLUDE=""
  21754. else
  21755. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21756. PRI_TRANSFER_LIB=""
  21757. fi
  21758. PBX_PRI_TRANSFER=1
  21759. cat >>confdefs.h <<_ACEOF
  21760. #define HAVE_PRI_TRANSFER 1
  21761. _ACEOF
  21762. fi
  21763. fi
  21764. fi
  21765. if test "x${PBX_PRI_CCSS}" != "x1" -a "${USE_PRI_CCSS}" != "no"; then
  21766. pbxlibdir=""
  21767. # if --with-PRI_CCSS=DIR has been specified, use it.
  21768. if test "x${PRI_CCSS_DIR}" != "x"; then
  21769. if test -d ${PRI_CCSS_DIR}/lib; then
  21770. pbxlibdir="-L${PRI_CCSS_DIR}/lib"
  21771. else
  21772. pbxlibdir="-L${PRI_CCSS_DIR}"
  21773. fi
  21774. fi
  21775. pbxfuncname="pri_cc_enable"
  21776. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21777. AST_PRI_CCSS_FOUND=yes
  21778. else
  21779. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21780. CFLAGS="${CFLAGS} "
  21781. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21783. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21784. if eval \${$as_ac_Lib+:} false; then :
  21785. $as_echo_n "(cached) " >&6
  21786. else
  21787. ac_check_lib_save_LIBS=$LIBS
  21788. LIBS="-lpri ${pbxlibdir} $LIBS"
  21789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21790. /* end confdefs.h. */
  21791. /* Override any GCC internal prototype to avoid an error.
  21792. Use char because int might match the return type of a GCC
  21793. builtin and then its argument prototype would still apply. */
  21794. #ifdef __cplusplus
  21795. extern "C"
  21796. #endif
  21797. char ${pbxfuncname} ();
  21798. int
  21799. main ()
  21800. {
  21801. return ${pbxfuncname} ();
  21802. ;
  21803. return 0;
  21804. }
  21805. _ACEOF
  21806. if ac_fn_c_try_link "$LINENO"; then :
  21807. eval "$as_ac_Lib=yes"
  21808. else
  21809. eval "$as_ac_Lib=no"
  21810. fi
  21811. rm -f core conftest.err conftest.$ac_objext \
  21812. conftest$ac_exeext conftest.$ac_ext
  21813. LIBS=$ac_check_lib_save_LIBS
  21814. fi
  21815. eval ac_res=\$$as_ac_Lib
  21816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21817. $as_echo "$ac_res" >&6; }
  21818. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21819. AST_PRI_CCSS_FOUND=yes
  21820. else
  21821. AST_PRI_CCSS_FOUND=no
  21822. fi
  21823. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21824. fi
  21825. # now check for the header.
  21826. if test "${AST_PRI_CCSS_FOUND}" = "yes"; then
  21827. PRI_CCSS_LIB="${pbxlibdir} -lpri "
  21828. # if --with-PRI_CCSS=DIR has been specified, use it.
  21829. if test "x${PRI_CCSS_DIR}" != "x"; then
  21830. PRI_CCSS_INCLUDE="-I${PRI_CCSS_DIR}/include"
  21831. fi
  21832. PRI_CCSS_INCLUDE="${PRI_CCSS_INCLUDE} "
  21833. if test "xlibpri.h" = "x" ; then # no header, assume found
  21834. PRI_CCSS_HEADER_FOUND="1"
  21835. else # check for the header
  21836. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21837. CPPFLAGS="${CPPFLAGS} ${PRI_CCSS_INCLUDE}"
  21838. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21839. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21840. PRI_CCSS_HEADER_FOUND=1
  21841. else
  21842. PRI_CCSS_HEADER_FOUND=0
  21843. fi
  21844. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21845. fi
  21846. if test "x${PRI_CCSS_HEADER_FOUND}" = "x0" ; then
  21847. PRI_CCSS_LIB=""
  21848. PRI_CCSS_INCLUDE=""
  21849. else
  21850. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21851. PRI_CCSS_LIB=""
  21852. fi
  21853. PBX_PRI_CCSS=1
  21854. cat >>confdefs.h <<_ACEOF
  21855. #define HAVE_PRI_CCSS 1
  21856. _ACEOF
  21857. fi
  21858. fi
  21859. fi
  21860. if test "x${PBX_PRI_HANGUP_FIX}" != "x1" -a "${USE_PRI_HANGUP_FIX}" != "no"; then
  21861. pbxlibdir=""
  21862. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  21863. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  21864. if test -d ${PRI_HANGUP_FIX_DIR}/lib; then
  21865. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}/lib"
  21866. else
  21867. pbxlibdir="-L${PRI_HANGUP_FIX_DIR}"
  21868. fi
  21869. fi
  21870. pbxfuncname="pri_hangup_fix_enable"
  21871. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21872. AST_PRI_HANGUP_FIX_FOUND=yes
  21873. else
  21874. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21875. CFLAGS="${CFLAGS} "
  21876. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21878. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21879. if eval \${$as_ac_Lib+:} false; then :
  21880. $as_echo_n "(cached) " >&6
  21881. else
  21882. ac_check_lib_save_LIBS=$LIBS
  21883. LIBS="-lpri ${pbxlibdir} $LIBS"
  21884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21885. /* end confdefs.h. */
  21886. /* Override any GCC internal prototype to avoid an error.
  21887. Use char because int might match the return type of a GCC
  21888. builtin and then its argument prototype would still apply. */
  21889. #ifdef __cplusplus
  21890. extern "C"
  21891. #endif
  21892. char ${pbxfuncname} ();
  21893. int
  21894. main ()
  21895. {
  21896. return ${pbxfuncname} ();
  21897. ;
  21898. return 0;
  21899. }
  21900. _ACEOF
  21901. if ac_fn_c_try_link "$LINENO"; then :
  21902. eval "$as_ac_Lib=yes"
  21903. else
  21904. eval "$as_ac_Lib=no"
  21905. fi
  21906. rm -f core conftest.err conftest.$ac_objext \
  21907. conftest$ac_exeext conftest.$ac_ext
  21908. LIBS=$ac_check_lib_save_LIBS
  21909. fi
  21910. eval ac_res=\$$as_ac_Lib
  21911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  21912. $as_echo "$ac_res" >&6; }
  21913. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  21914. AST_PRI_HANGUP_FIX_FOUND=yes
  21915. else
  21916. AST_PRI_HANGUP_FIX_FOUND=no
  21917. fi
  21918. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  21919. fi
  21920. # now check for the header.
  21921. if test "${AST_PRI_HANGUP_FIX_FOUND}" = "yes"; then
  21922. PRI_HANGUP_FIX_LIB="${pbxlibdir} -lpri "
  21923. # if --with-PRI_HANGUP_FIX=DIR has been specified, use it.
  21924. if test "x${PRI_HANGUP_FIX_DIR}" != "x"; then
  21925. PRI_HANGUP_FIX_INCLUDE="-I${PRI_HANGUP_FIX_DIR}/include"
  21926. fi
  21927. PRI_HANGUP_FIX_INCLUDE="${PRI_HANGUP_FIX_INCLUDE} "
  21928. if test "xlibpri.h" = "x" ; then # no header, assume found
  21929. PRI_HANGUP_FIX_HEADER_FOUND="1"
  21930. else # check for the header
  21931. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  21932. CPPFLAGS="${CPPFLAGS} ${PRI_HANGUP_FIX_INCLUDE}"
  21933. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  21934. if test "x$ac_cv_header_libpri_h" = xyes; then :
  21935. PRI_HANGUP_FIX_HEADER_FOUND=1
  21936. else
  21937. PRI_HANGUP_FIX_HEADER_FOUND=0
  21938. fi
  21939. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  21940. fi
  21941. if test "x${PRI_HANGUP_FIX_HEADER_FOUND}" = "x0" ; then
  21942. PRI_HANGUP_FIX_LIB=""
  21943. PRI_HANGUP_FIX_INCLUDE=""
  21944. else
  21945. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  21946. PRI_HANGUP_FIX_LIB=""
  21947. fi
  21948. PBX_PRI_HANGUP_FIX=1
  21949. cat >>confdefs.h <<_ACEOF
  21950. #define HAVE_PRI_HANGUP_FIX 1
  21951. _ACEOF
  21952. fi
  21953. fi
  21954. fi
  21955. if test "x${PBX_PRI_SUBADDR}" != "x1" -a "${USE_PRI_SUBADDR}" != "no"; then
  21956. pbxlibdir=""
  21957. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  21958. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  21959. if test -d ${PRI_SUBADDR_DIR}/lib; then
  21960. pbxlibdir="-L${PRI_SUBADDR_DIR}/lib"
  21961. else
  21962. pbxlibdir="-L${PRI_SUBADDR_DIR}"
  21963. fi
  21964. fi
  21965. pbxfuncname="pri_sr_set_called_subaddress"
  21966. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  21967. AST_PRI_SUBADDR_FOUND=yes
  21968. else
  21969. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  21970. CFLAGS="${CFLAGS} "
  21971. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  21972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  21973. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  21974. if eval \${$as_ac_Lib+:} false; then :
  21975. $as_echo_n "(cached) " >&6
  21976. else
  21977. ac_check_lib_save_LIBS=$LIBS
  21978. LIBS="-lpri ${pbxlibdir} $LIBS"
  21979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21980. /* end confdefs.h. */
  21981. /* Override any GCC internal prototype to avoid an error.
  21982. Use char because int might match the return type of a GCC
  21983. builtin and then its argument prototype would still apply. */
  21984. #ifdef __cplusplus
  21985. extern "C"
  21986. #endif
  21987. char ${pbxfuncname} ();
  21988. int
  21989. main ()
  21990. {
  21991. return ${pbxfuncname} ();
  21992. ;
  21993. return 0;
  21994. }
  21995. _ACEOF
  21996. if ac_fn_c_try_link "$LINENO"; then :
  21997. eval "$as_ac_Lib=yes"
  21998. else
  21999. eval "$as_ac_Lib=no"
  22000. fi
  22001. rm -f core conftest.err conftest.$ac_objext \
  22002. conftest$ac_exeext conftest.$ac_ext
  22003. LIBS=$ac_check_lib_save_LIBS
  22004. fi
  22005. eval ac_res=\$$as_ac_Lib
  22006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22007. $as_echo "$ac_res" >&6; }
  22008. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22009. AST_PRI_SUBADDR_FOUND=yes
  22010. else
  22011. AST_PRI_SUBADDR_FOUND=no
  22012. fi
  22013. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22014. fi
  22015. # now check for the header.
  22016. if test "${AST_PRI_SUBADDR_FOUND}" = "yes"; then
  22017. PRI_SUBADDR_LIB="${pbxlibdir} -lpri "
  22018. # if --with-PRI_SUBADDR=DIR has been specified, use it.
  22019. if test "x${PRI_SUBADDR_DIR}" != "x"; then
  22020. PRI_SUBADDR_INCLUDE="-I${PRI_SUBADDR_DIR}/include"
  22021. fi
  22022. PRI_SUBADDR_INCLUDE="${PRI_SUBADDR_INCLUDE} "
  22023. if test "xlibpri.h" = "x" ; then # no header, assume found
  22024. PRI_SUBADDR_HEADER_FOUND="1"
  22025. else # check for the header
  22026. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22027. CPPFLAGS="${CPPFLAGS} ${PRI_SUBADDR_INCLUDE}"
  22028. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22029. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22030. PRI_SUBADDR_HEADER_FOUND=1
  22031. else
  22032. PRI_SUBADDR_HEADER_FOUND=0
  22033. fi
  22034. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22035. fi
  22036. if test "x${PRI_SUBADDR_HEADER_FOUND}" = "x0" ; then
  22037. PRI_SUBADDR_LIB=""
  22038. PRI_SUBADDR_INCLUDE=""
  22039. else
  22040. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22041. PRI_SUBADDR_LIB=""
  22042. fi
  22043. PBX_PRI_SUBADDR=1
  22044. cat >>confdefs.h <<_ACEOF
  22045. #define HAVE_PRI_SUBADDR 1
  22046. _ACEOF
  22047. fi
  22048. fi
  22049. fi
  22050. if test "x${PBX_PRI_CALL_HOLD}" != "x1" -a "${USE_PRI_CALL_HOLD}" != "no"; then
  22051. pbxlibdir=""
  22052. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  22053. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  22054. if test -d ${PRI_CALL_HOLD_DIR}/lib; then
  22055. pbxlibdir="-L${PRI_CALL_HOLD_DIR}/lib"
  22056. else
  22057. pbxlibdir="-L${PRI_CALL_HOLD_DIR}"
  22058. fi
  22059. fi
  22060. pbxfuncname="pri_hold_enable"
  22061. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22062. AST_PRI_CALL_HOLD_FOUND=yes
  22063. else
  22064. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22065. CFLAGS="${CFLAGS} "
  22066. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22068. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22069. if eval \${$as_ac_Lib+:} false; then :
  22070. $as_echo_n "(cached) " >&6
  22071. else
  22072. ac_check_lib_save_LIBS=$LIBS
  22073. LIBS="-lpri ${pbxlibdir} $LIBS"
  22074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22075. /* end confdefs.h. */
  22076. /* Override any GCC internal prototype to avoid an error.
  22077. Use char because int might match the return type of a GCC
  22078. builtin and then its argument prototype would still apply. */
  22079. #ifdef __cplusplus
  22080. extern "C"
  22081. #endif
  22082. char ${pbxfuncname} ();
  22083. int
  22084. main ()
  22085. {
  22086. return ${pbxfuncname} ();
  22087. ;
  22088. return 0;
  22089. }
  22090. _ACEOF
  22091. if ac_fn_c_try_link "$LINENO"; then :
  22092. eval "$as_ac_Lib=yes"
  22093. else
  22094. eval "$as_ac_Lib=no"
  22095. fi
  22096. rm -f core conftest.err conftest.$ac_objext \
  22097. conftest$ac_exeext conftest.$ac_ext
  22098. LIBS=$ac_check_lib_save_LIBS
  22099. fi
  22100. eval ac_res=\$$as_ac_Lib
  22101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22102. $as_echo "$ac_res" >&6; }
  22103. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22104. AST_PRI_CALL_HOLD_FOUND=yes
  22105. else
  22106. AST_PRI_CALL_HOLD_FOUND=no
  22107. fi
  22108. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22109. fi
  22110. # now check for the header.
  22111. if test "${AST_PRI_CALL_HOLD_FOUND}" = "yes"; then
  22112. PRI_CALL_HOLD_LIB="${pbxlibdir} -lpri "
  22113. # if --with-PRI_CALL_HOLD=DIR has been specified, use it.
  22114. if test "x${PRI_CALL_HOLD_DIR}" != "x"; then
  22115. PRI_CALL_HOLD_INCLUDE="-I${PRI_CALL_HOLD_DIR}/include"
  22116. fi
  22117. PRI_CALL_HOLD_INCLUDE="${PRI_CALL_HOLD_INCLUDE} "
  22118. if test "xlibpri.h" = "x" ; then # no header, assume found
  22119. PRI_CALL_HOLD_HEADER_FOUND="1"
  22120. else # check for the header
  22121. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22122. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_HOLD_INCLUDE}"
  22123. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22124. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22125. PRI_CALL_HOLD_HEADER_FOUND=1
  22126. else
  22127. PRI_CALL_HOLD_HEADER_FOUND=0
  22128. fi
  22129. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22130. fi
  22131. if test "x${PRI_CALL_HOLD_HEADER_FOUND}" = "x0" ; then
  22132. PRI_CALL_HOLD_LIB=""
  22133. PRI_CALL_HOLD_INCLUDE=""
  22134. else
  22135. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22136. PRI_CALL_HOLD_LIB=""
  22137. fi
  22138. PBX_PRI_CALL_HOLD=1
  22139. cat >>confdefs.h <<_ACEOF
  22140. #define HAVE_PRI_CALL_HOLD 1
  22141. _ACEOF
  22142. fi
  22143. fi
  22144. fi
  22145. if test "x${PBX_PRI_CALL_REROUTING}" != "x1" -a "${USE_PRI_CALL_REROUTING}" != "no"; then
  22146. pbxlibdir=""
  22147. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  22148. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  22149. if test -d ${PRI_CALL_REROUTING_DIR}/lib; then
  22150. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}/lib"
  22151. else
  22152. pbxlibdir="-L${PRI_CALL_REROUTING_DIR}"
  22153. fi
  22154. fi
  22155. pbxfuncname="pri_reroute_enable"
  22156. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22157. AST_PRI_CALL_REROUTING_FOUND=yes
  22158. else
  22159. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22160. CFLAGS="${CFLAGS} "
  22161. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22163. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22164. if eval \${$as_ac_Lib+:} false; then :
  22165. $as_echo_n "(cached) " >&6
  22166. else
  22167. ac_check_lib_save_LIBS=$LIBS
  22168. LIBS="-lpri ${pbxlibdir} $LIBS"
  22169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22170. /* end confdefs.h. */
  22171. /* Override any GCC internal prototype to avoid an error.
  22172. Use char because int might match the return type of a GCC
  22173. builtin and then its argument prototype would still apply. */
  22174. #ifdef __cplusplus
  22175. extern "C"
  22176. #endif
  22177. char ${pbxfuncname} ();
  22178. int
  22179. main ()
  22180. {
  22181. return ${pbxfuncname} ();
  22182. ;
  22183. return 0;
  22184. }
  22185. _ACEOF
  22186. if ac_fn_c_try_link "$LINENO"; then :
  22187. eval "$as_ac_Lib=yes"
  22188. else
  22189. eval "$as_ac_Lib=no"
  22190. fi
  22191. rm -f core conftest.err conftest.$ac_objext \
  22192. conftest$ac_exeext conftest.$ac_ext
  22193. LIBS=$ac_check_lib_save_LIBS
  22194. fi
  22195. eval ac_res=\$$as_ac_Lib
  22196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22197. $as_echo "$ac_res" >&6; }
  22198. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22199. AST_PRI_CALL_REROUTING_FOUND=yes
  22200. else
  22201. AST_PRI_CALL_REROUTING_FOUND=no
  22202. fi
  22203. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22204. fi
  22205. # now check for the header.
  22206. if test "${AST_PRI_CALL_REROUTING_FOUND}" = "yes"; then
  22207. PRI_CALL_REROUTING_LIB="${pbxlibdir} -lpri "
  22208. # if --with-PRI_CALL_REROUTING=DIR has been specified, use it.
  22209. if test "x${PRI_CALL_REROUTING_DIR}" != "x"; then
  22210. PRI_CALL_REROUTING_INCLUDE="-I${PRI_CALL_REROUTING_DIR}/include"
  22211. fi
  22212. PRI_CALL_REROUTING_INCLUDE="${PRI_CALL_REROUTING_INCLUDE} "
  22213. if test "xlibpri.h" = "x" ; then # no header, assume found
  22214. PRI_CALL_REROUTING_HEADER_FOUND="1"
  22215. else # check for the header
  22216. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22217. CPPFLAGS="${CPPFLAGS} ${PRI_CALL_REROUTING_INCLUDE}"
  22218. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22219. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22220. PRI_CALL_REROUTING_HEADER_FOUND=1
  22221. else
  22222. PRI_CALL_REROUTING_HEADER_FOUND=0
  22223. fi
  22224. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22225. fi
  22226. if test "x${PRI_CALL_REROUTING_HEADER_FOUND}" = "x0" ; then
  22227. PRI_CALL_REROUTING_LIB=""
  22228. PRI_CALL_REROUTING_INCLUDE=""
  22229. else
  22230. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22231. PRI_CALL_REROUTING_LIB=""
  22232. fi
  22233. PBX_PRI_CALL_REROUTING=1
  22234. cat >>confdefs.h <<_ACEOF
  22235. #define HAVE_PRI_CALL_REROUTING 1
  22236. _ACEOF
  22237. fi
  22238. fi
  22239. fi
  22240. if test "x${PBX_PRI_SETUP_KEYPAD}" != "x1" -a "${USE_PRI_SETUP_KEYPAD}" != "no"; then
  22241. pbxlibdir=""
  22242. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  22243. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  22244. if test -d ${PRI_SETUP_KEYPAD_DIR}/lib; then
  22245. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}/lib"
  22246. else
  22247. pbxlibdir="-L${PRI_SETUP_KEYPAD_DIR}"
  22248. fi
  22249. fi
  22250. pbxfuncname="pri_sr_set_keypad_digits"
  22251. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22252. AST_PRI_SETUP_KEYPAD_FOUND=yes
  22253. else
  22254. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22255. CFLAGS="${CFLAGS} "
  22256. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22258. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22259. if eval \${$as_ac_Lib+:} false; then :
  22260. $as_echo_n "(cached) " >&6
  22261. else
  22262. ac_check_lib_save_LIBS=$LIBS
  22263. LIBS="-lpri ${pbxlibdir} $LIBS"
  22264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22265. /* end confdefs.h. */
  22266. /* Override any GCC internal prototype to avoid an error.
  22267. Use char because int might match the return type of a GCC
  22268. builtin and then its argument prototype would still apply. */
  22269. #ifdef __cplusplus
  22270. extern "C"
  22271. #endif
  22272. char ${pbxfuncname} ();
  22273. int
  22274. main ()
  22275. {
  22276. return ${pbxfuncname} ();
  22277. ;
  22278. return 0;
  22279. }
  22280. _ACEOF
  22281. if ac_fn_c_try_link "$LINENO"; then :
  22282. eval "$as_ac_Lib=yes"
  22283. else
  22284. eval "$as_ac_Lib=no"
  22285. fi
  22286. rm -f core conftest.err conftest.$ac_objext \
  22287. conftest$ac_exeext conftest.$ac_ext
  22288. LIBS=$ac_check_lib_save_LIBS
  22289. fi
  22290. eval ac_res=\$$as_ac_Lib
  22291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22292. $as_echo "$ac_res" >&6; }
  22293. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22294. AST_PRI_SETUP_KEYPAD_FOUND=yes
  22295. else
  22296. AST_PRI_SETUP_KEYPAD_FOUND=no
  22297. fi
  22298. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22299. fi
  22300. # now check for the header.
  22301. if test "${AST_PRI_SETUP_KEYPAD_FOUND}" = "yes"; then
  22302. PRI_SETUP_KEYPAD_LIB="${pbxlibdir} -lpri "
  22303. # if --with-PRI_SETUP_KEYPAD=DIR has been specified, use it.
  22304. if test "x${PRI_SETUP_KEYPAD_DIR}" != "x"; then
  22305. PRI_SETUP_KEYPAD_INCLUDE="-I${PRI_SETUP_KEYPAD_DIR}/include"
  22306. fi
  22307. PRI_SETUP_KEYPAD_INCLUDE="${PRI_SETUP_KEYPAD_INCLUDE} "
  22308. if test "xlibpri.h" = "x" ; then # no header, assume found
  22309. PRI_SETUP_KEYPAD_HEADER_FOUND="1"
  22310. else # check for the header
  22311. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22312. CPPFLAGS="${CPPFLAGS} ${PRI_SETUP_KEYPAD_INCLUDE}"
  22313. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22314. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22315. PRI_SETUP_KEYPAD_HEADER_FOUND=1
  22316. else
  22317. PRI_SETUP_KEYPAD_HEADER_FOUND=0
  22318. fi
  22319. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22320. fi
  22321. if test "x${PRI_SETUP_KEYPAD_HEADER_FOUND}" = "x0" ; then
  22322. PRI_SETUP_KEYPAD_LIB=""
  22323. PRI_SETUP_KEYPAD_INCLUDE=""
  22324. else
  22325. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22326. PRI_SETUP_KEYPAD_LIB=""
  22327. fi
  22328. PBX_PRI_SETUP_KEYPAD=1
  22329. cat >>confdefs.h <<_ACEOF
  22330. #define HAVE_PRI_SETUP_KEYPAD 1
  22331. _ACEOF
  22332. fi
  22333. fi
  22334. fi
  22335. # ------------------------------------v
  22336. # TODO: The code can be changed to always include these features now.
  22337. # These features will always be present if pri_connected_line_update is available.
  22338. if test "x${PBX_PRI_PROG_W_CAUSE}" != "x1" -a "${USE_PRI_PROG_W_CAUSE}" != "no"; then
  22339. pbxlibdir=""
  22340. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  22341. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  22342. if test -d ${PRI_PROG_W_CAUSE_DIR}/lib; then
  22343. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}/lib"
  22344. else
  22345. pbxlibdir="-L${PRI_PROG_W_CAUSE_DIR}"
  22346. fi
  22347. fi
  22348. pbxfuncname="pri_progress_with_cause"
  22349. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22350. AST_PRI_PROG_W_CAUSE_FOUND=yes
  22351. else
  22352. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22353. CFLAGS="${CFLAGS} "
  22354. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22356. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22357. if eval \${$as_ac_Lib+:} false; then :
  22358. $as_echo_n "(cached) " >&6
  22359. else
  22360. ac_check_lib_save_LIBS=$LIBS
  22361. LIBS="-lpri ${pbxlibdir} $LIBS"
  22362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22363. /* end confdefs.h. */
  22364. /* Override any GCC internal prototype to avoid an error.
  22365. Use char because int might match the return type of a GCC
  22366. builtin and then its argument prototype would still apply. */
  22367. #ifdef __cplusplus
  22368. extern "C"
  22369. #endif
  22370. char ${pbxfuncname} ();
  22371. int
  22372. main ()
  22373. {
  22374. return ${pbxfuncname} ();
  22375. ;
  22376. return 0;
  22377. }
  22378. _ACEOF
  22379. if ac_fn_c_try_link "$LINENO"; then :
  22380. eval "$as_ac_Lib=yes"
  22381. else
  22382. eval "$as_ac_Lib=no"
  22383. fi
  22384. rm -f core conftest.err conftest.$ac_objext \
  22385. conftest$ac_exeext conftest.$ac_ext
  22386. LIBS=$ac_check_lib_save_LIBS
  22387. fi
  22388. eval ac_res=\$$as_ac_Lib
  22389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22390. $as_echo "$ac_res" >&6; }
  22391. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22392. AST_PRI_PROG_W_CAUSE_FOUND=yes
  22393. else
  22394. AST_PRI_PROG_W_CAUSE_FOUND=no
  22395. fi
  22396. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22397. fi
  22398. # now check for the header.
  22399. if test "${AST_PRI_PROG_W_CAUSE_FOUND}" = "yes"; then
  22400. PRI_PROG_W_CAUSE_LIB="${pbxlibdir} -lpri "
  22401. # if --with-PRI_PROG_W_CAUSE=DIR has been specified, use it.
  22402. if test "x${PRI_PROG_W_CAUSE_DIR}" != "x"; then
  22403. PRI_PROG_W_CAUSE_INCLUDE="-I${PRI_PROG_W_CAUSE_DIR}/include"
  22404. fi
  22405. PRI_PROG_W_CAUSE_INCLUDE="${PRI_PROG_W_CAUSE_INCLUDE} "
  22406. if test "xlibpri.h" = "x" ; then # no header, assume found
  22407. PRI_PROG_W_CAUSE_HEADER_FOUND="1"
  22408. else # check for the header
  22409. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22410. CPPFLAGS="${CPPFLAGS} ${PRI_PROG_W_CAUSE_INCLUDE}"
  22411. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22412. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22413. PRI_PROG_W_CAUSE_HEADER_FOUND=1
  22414. else
  22415. PRI_PROG_W_CAUSE_HEADER_FOUND=0
  22416. fi
  22417. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22418. fi
  22419. if test "x${PRI_PROG_W_CAUSE_HEADER_FOUND}" = "x0" ; then
  22420. PRI_PROG_W_CAUSE_LIB=""
  22421. PRI_PROG_W_CAUSE_INCLUDE=""
  22422. else
  22423. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22424. PRI_PROG_W_CAUSE_LIB=""
  22425. fi
  22426. PBX_PRI_PROG_W_CAUSE=1
  22427. cat >>confdefs.h <<_ACEOF
  22428. #define HAVE_PRI_PROG_W_CAUSE 1
  22429. _ACEOF
  22430. fi
  22431. fi
  22432. fi
  22433. if test "x${PBX_PRI_INBANDDISCONNECT}" != "x1" -a "${USE_PRI_INBANDDISCONNECT}" != "no"; then
  22434. pbxlibdir=""
  22435. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  22436. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  22437. if test -d ${PRI_INBANDDISCONNECT_DIR}/lib; then
  22438. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}/lib"
  22439. else
  22440. pbxlibdir="-L${PRI_INBANDDISCONNECT_DIR}"
  22441. fi
  22442. fi
  22443. pbxfuncname="pri_set_inbanddisconnect"
  22444. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22445. AST_PRI_INBANDDISCONNECT_FOUND=yes
  22446. else
  22447. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22448. CFLAGS="${CFLAGS} "
  22449. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22451. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22452. if eval \${$as_ac_Lib+:} false; then :
  22453. $as_echo_n "(cached) " >&6
  22454. else
  22455. ac_check_lib_save_LIBS=$LIBS
  22456. LIBS="-lpri ${pbxlibdir} $LIBS"
  22457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22458. /* end confdefs.h. */
  22459. /* Override any GCC internal prototype to avoid an error.
  22460. Use char because int might match the return type of a GCC
  22461. builtin and then its argument prototype would still apply. */
  22462. #ifdef __cplusplus
  22463. extern "C"
  22464. #endif
  22465. char ${pbxfuncname} ();
  22466. int
  22467. main ()
  22468. {
  22469. return ${pbxfuncname} ();
  22470. ;
  22471. return 0;
  22472. }
  22473. _ACEOF
  22474. if ac_fn_c_try_link "$LINENO"; then :
  22475. eval "$as_ac_Lib=yes"
  22476. else
  22477. eval "$as_ac_Lib=no"
  22478. fi
  22479. rm -f core conftest.err conftest.$ac_objext \
  22480. conftest$ac_exeext conftest.$ac_ext
  22481. LIBS=$ac_check_lib_save_LIBS
  22482. fi
  22483. eval ac_res=\$$as_ac_Lib
  22484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22485. $as_echo "$ac_res" >&6; }
  22486. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22487. AST_PRI_INBANDDISCONNECT_FOUND=yes
  22488. else
  22489. AST_PRI_INBANDDISCONNECT_FOUND=no
  22490. fi
  22491. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22492. fi
  22493. # now check for the header.
  22494. if test "${AST_PRI_INBANDDISCONNECT_FOUND}" = "yes"; then
  22495. PRI_INBANDDISCONNECT_LIB="${pbxlibdir} -lpri "
  22496. # if --with-PRI_INBANDDISCONNECT=DIR has been specified, use it.
  22497. if test "x${PRI_INBANDDISCONNECT_DIR}" != "x"; then
  22498. PRI_INBANDDISCONNECT_INCLUDE="-I${PRI_INBANDDISCONNECT_DIR}/include"
  22499. fi
  22500. PRI_INBANDDISCONNECT_INCLUDE="${PRI_INBANDDISCONNECT_INCLUDE} "
  22501. if test "xlibpri.h" = "x" ; then # no header, assume found
  22502. PRI_INBANDDISCONNECT_HEADER_FOUND="1"
  22503. else # check for the header
  22504. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22505. CPPFLAGS="${CPPFLAGS} ${PRI_INBANDDISCONNECT_INCLUDE}"
  22506. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22507. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22508. PRI_INBANDDISCONNECT_HEADER_FOUND=1
  22509. else
  22510. PRI_INBANDDISCONNECT_HEADER_FOUND=0
  22511. fi
  22512. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22513. fi
  22514. if test "x${PRI_INBANDDISCONNECT_HEADER_FOUND}" = "x0" ; then
  22515. PRI_INBANDDISCONNECT_LIB=""
  22516. PRI_INBANDDISCONNECT_INCLUDE=""
  22517. else
  22518. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22519. PRI_INBANDDISCONNECT_LIB=""
  22520. fi
  22521. PBX_PRI_INBANDDISCONNECT=1
  22522. cat >>confdefs.h <<_ACEOF
  22523. #define HAVE_PRI_INBANDDISCONNECT 1
  22524. _ACEOF
  22525. fi
  22526. fi
  22527. fi
  22528. if test "x${PBX_PRI_SERVICE_MESSAGES}" != "x1" -a "${USE_PRI_SERVICE_MESSAGES}" != "no"; then
  22529. pbxlibdir=""
  22530. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  22531. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  22532. if test -d ${PRI_SERVICE_MESSAGES_DIR}/lib; then
  22533. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}/lib"
  22534. else
  22535. pbxlibdir="-L${PRI_SERVICE_MESSAGES_DIR}"
  22536. fi
  22537. fi
  22538. pbxfuncname="pri_maintenance_service"
  22539. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22540. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  22541. else
  22542. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22543. CFLAGS="${CFLAGS} "
  22544. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22546. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22547. if eval \${$as_ac_Lib+:} false; then :
  22548. $as_echo_n "(cached) " >&6
  22549. else
  22550. ac_check_lib_save_LIBS=$LIBS
  22551. LIBS="-lpri ${pbxlibdir} $LIBS"
  22552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22553. /* end confdefs.h. */
  22554. /* Override any GCC internal prototype to avoid an error.
  22555. Use char because int might match the return type of a GCC
  22556. builtin and then its argument prototype would still apply. */
  22557. #ifdef __cplusplus
  22558. extern "C"
  22559. #endif
  22560. char ${pbxfuncname} ();
  22561. int
  22562. main ()
  22563. {
  22564. return ${pbxfuncname} ();
  22565. ;
  22566. return 0;
  22567. }
  22568. _ACEOF
  22569. if ac_fn_c_try_link "$LINENO"; then :
  22570. eval "$as_ac_Lib=yes"
  22571. else
  22572. eval "$as_ac_Lib=no"
  22573. fi
  22574. rm -f core conftest.err conftest.$ac_objext \
  22575. conftest$ac_exeext conftest.$ac_ext
  22576. LIBS=$ac_check_lib_save_LIBS
  22577. fi
  22578. eval ac_res=\$$as_ac_Lib
  22579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22580. $as_echo "$ac_res" >&6; }
  22581. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22582. AST_PRI_SERVICE_MESSAGES_FOUND=yes
  22583. else
  22584. AST_PRI_SERVICE_MESSAGES_FOUND=no
  22585. fi
  22586. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22587. fi
  22588. # now check for the header.
  22589. if test "${AST_PRI_SERVICE_MESSAGES_FOUND}" = "yes"; then
  22590. PRI_SERVICE_MESSAGES_LIB="${pbxlibdir} -lpri "
  22591. # if --with-PRI_SERVICE_MESSAGES=DIR has been specified, use it.
  22592. if test "x${PRI_SERVICE_MESSAGES_DIR}" != "x"; then
  22593. PRI_SERVICE_MESSAGES_INCLUDE="-I${PRI_SERVICE_MESSAGES_DIR}/include"
  22594. fi
  22595. PRI_SERVICE_MESSAGES_INCLUDE="${PRI_SERVICE_MESSAGES_INCLUDE} "
  22596. if test "xlibpri.h" = "x" ; then # no header, assume found
  22597. PRI_SERVICE_MESSAGES_HEADER_FOUND="1"
  22598. else # check for the header
  22599. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22600. CPPFLAGS="${CPPFLAGS} ${PRI_SERVICE_MESSAGES_INCLUDE}"
  22601. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22602. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22603. PRI_SERVICE_MESSAGES_HEADER_FOUND=1
  22604. else
  22605. PRI_SERVICE_MESSAGES_HEADER_FOUND=0
  22606. fi
  22607. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22608. fi
  22609. if test "x${PRI_SERVICE_MESSAGES_HEADER_FOUND}" = "x0" ; then
  22610. PRI_SERVICE_MESSAGES_LIB=""
  22611. PRI_SERVICE_MESSAGES_INCLUDE=""
  22612. else
  22613. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22614. PRI_SERVICE_MESSAGES_LIB=""
  22615. fi
  22616. PBX_PRI_SERVICE_MESSAGES=1
  22617. cat >>confdefs.h <<_ACEOF
  22618. #define HAVE_PRI_SERVICE_MESSAGES 1
  22619. _ACEOF
  22620. fi
  22621. fi
  22622. fi
  22623. if test "x${PBX_PRI_REVERSE_CHARGE}" != "x1" -a "${USE_PRI_REVERSE_CHARGE}" != "no"; then
  22624. pbxlibdir=""
  22625. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  22626. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  22627. if test -d ${PRI_REVERSE_CHARGE_DIR}/lib; then
  22628. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}/lib"
  22629. else
  22630. pbxlibdir="-L${PRI_REVERSE_CHARGE_DIR}"
  22631. fi
  22632. fi
  22633. pbxfuncname="pri_sr_set_reversecharge"
  22634. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22635. AST_PRI_REVERSE_CHARGE_FOUND=yes
  22636. else
  22637. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22638. CFLAGS="${CFLAGS} "
  22639. as_ac_Lib=`$as_echo "ac_cv_lib_pri_${pbxfuncname}" | $as_tr_sh`
  22640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lpri" >&5
  22641. $as_echo_n "checking for ${pbxfuncname} in -lpri... " >&6; }
  22642. if eval \${$as_ac_Lib+:} false; then :
  22643. $as_echo_n "(cached) " >&6
  22644. else
  22645. ac_check_lib_save_LIBS=$LIBS
  22646. LIBS="-lpri ${pbxlibdir} $LIBS"
  22647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22648. /* end confdefs.h. */
  22649. /* Override any GCC internal prototype to avoid an error.
  22650. Use char because int might match the return type of a GCC
  22651. builtin and then its argument prototype would still apply. */
  22652. #ifdef __cplusplus
  22653. extern "C"
  22654. #endif
  22655. char ${pbxfuncname} ();
  22656. int
  22657. main ()
  22658. {
  22659. return ${pbxfuncname} ();
  22660. ;
  22661. return 0;
  22662. }
  22663. _ACEOF
  22664. if ac_fn_c_try_link "$LINENO"; then :
  22665. eval "$as_ac_Lib=yes"
  22666. else
  22667. eval "$as_ac_Lib=no"
  22668. fi
  22669. rm -f core conftest.err conftest.$ac_objext \
  22670. conftest$ac_exeext conftest.$ac_ext
  22671. LIBS=$ac_check_lib_save_LIBS
  22672. fi
  22673. eval ac_res=\$$as_ac_Lib
  22674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22675. $as_echo "$ac_res" >&6; }
  22676. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22677. AST_PRI_REVERSE_CHARGE_FOUND=yes
  22678. else
  22679. AST_PRI_REVERSE_CHARGE_FOUND=no
  22680. fi
  22681. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22682. fi
  22683. # now check for the header.
  22684. if test "${AST_PRI_REVERSE_CHARGE_FOUND}" = "yes"; then
  22685. PRI_REVERSE_CHARGE_LIB="${pbxlibdir} -lpri "
  22686. # if --with-PRI_REVERSE_CHARGE=DIR has been specified, use it.
  22687. if test "x${PRI_REVERSE_CHARGE_DIR}" != "x"; then
  22688. PRI_REVERSE_CHARGE_INCLUDE="-I${PRI_REVERSE_CHARGE_DIR}/include"
  22689. fi
  22690. PRI_REVERSE_CHARGE_INCLUDE="${PRI_REVERSE_CHARGE_INCLUDE} "
  22691. if test "xlibpri.h" = "x" ; then # no header, assume found
  22692. PRI_REVERSE_CHARGE_HEADER_FOUND="1"
  22693. else # check for the header
  22694. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22695. CPPFLAGS="${CPPFLAGS} ${PRI_REVERSE_CHARGE_INCLUDE}"
  22696. ac_fn_c_check_header_mongrel "$LINENO" "libpri.h" "ac_cv_header_libpri_h" "$ac_includes_default"
  22697. if test "x$ac_cv_header_libpri_h" = xyes; then :
  22698. PRI_REVERSE_CHARGE_HEADER_FOUND=1
  22699. else
  22700. PRI_REVERSE_CHARGE_HEADER_FOUND=0
  22701. fi
  22702. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22703. fi
  22704. if test "x${PRI_REVERSE_CHARGE_HEADER_FOUND}" = "x0" ; then
  22705. PRI_REVERSE_CHARGE_LIB=""
  22706. PRI_REVERSE_CHARGE_INCLUDE=""
  22707. else
  22708. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22709. PRI_REVERSE_CHARGE_LIB=""
  22710. fi
  22711. PBX_PRI_REVERSE_CHARGE=1
  22712. cat >>confdefs.h <<_ACEOF
  22713. #define HAVE_PRI_REVERSE_CHARGE 1
  22714. _ACEOF
  22715. fi
  22716. fi
  22717. fi
  22718. # ------------------------------------^
  22719. if test "x${PBX_RESAMPLE}" != "x1" -a "${USE_RESAMPLE}" != "no"; then
  22720. pbxlibdir=""
  22721. # if --with-RESAMPLE=DIR has been specified, use it.
  22722. if test "x${RESAMPLE_DIR}" != "x"; then
  22723. if test -d ${RESAMPLE_DIR}/lib; then
  22724. pbxlibdir="-L${RESAMPLE_DIR}/lib"
  22725. else
  22726. pbxlibdir="-L${RESAMPLE_DIR}"
  22727. fi
  22728. fi
  22729. pbxfuncname="resample_open"
  22730. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22731. AST_RESAMPLE_FOUND=yes
  22732. else
  22733. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22734. CFLAGS="${CFLAGS} "
  22735. as_ac_Lib=`$as_echo "ac_cv_lib_resample_${pbxfuncname}" | $as_tr_sh`
  22736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lresample" >&5
  22737. $as_echo_n "checking for ${pbxfuncname} in -lresample... " >&6; }
  22738. if eval \${$as_ac_Lib+:} false; then :
  22739. $as_echo_n "(cached) " >&6
  22740. else
  22741. ac_check_lib_save_LIBS=$LIBS
  22742. LIBS="-lresample ${pbxlibdir} -lm $LIBS"
  22743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22744. /* end confdefs.h. */
  22745. /* Override any GCC internal prototype to avoid an error.
  22746. Use char because int might match the return type of a GCC
  22747. builtin and then its argument prototype would still apply. */
  22748. #ifdef __cplusplus
  22749. extern "C"
  22750. #endif
  22751. char ${pbxfuncname} ();
  22752. int
  22753. main ()
  22754. {
  22755. return ${pbxfuncname} ();
  22756. ;
  22757. return 0;
  22758. }
  22759. _ACEOF
  22760. if ac_fn_c_try_link "$LINENO"; then :
  22761. eval "$as_ac_Lib=yes"
  22762. else
  22763. eval "$as_ac_Lib=no"
  22764. fi
  22765. rm -f core conftest.err conftest.$ac_objext \
  22766. conftest$ac_exeext conftest.$ac_ext
  22767. LIBS=$ac_check_lib_save_LIBS
  22768. fi
  22769. eval ac_res=\$$as_ac_Lib
  22770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22771. $as_echo "$ac_res" >&6; }
  22772. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22773. AST_RESAMPLE_FOUND=yes
  22774. else
  22775. AST_RESAMPLE_FOUND=no
  22776. fi
  22777. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22778. fi
  22779. # now check for the header.
  22780. if test "${AST_RESAMPLE_FOUND}" = "yes"; then
  22781. RESAMPLE_LIB="${pbxlibdir} -lresample -lm"
  22782. # if --with-RESAMPLE=DIR has been specified, use it.
  22783. if test "x${RESAMPLE_DIR}" != "x"; then
  22784. RESAMPLE_INCLUDE="-I${RESAMPLE_DIR}/include"
  22785. fi
  22786. RESAMPLE_INCLUDE="${RESAMPLE_INCLUDE} "
  22787. if test "xlibresample.h" = "x" ; then # no header, assume found
  22788. RESAMPLE_HEADER_FOUND="1"
  22789. else # check for the header
  22790. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22791. CPPFLAGS="${CPPFLAGS} ${RESAMPLE_INCLUDE}"
  22792. ac_fn_c_check_header_mongrel "$LINENO" "libresample.h" "ac_cv_header_libresample_h" "$ac_includes_default"
  22793. if test "x$ac_cv_header_libresample_h" = xyes; then :
  22794. RESAMPLE_HEADER_FOUND=1
  22795. else
  22796. RESAMPLE_HEADER_FOUND=0
  22797. fi
  22798. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22799. fi
  22800. if test "x${RESAMPLE_HEADER_FOUND}" = "x0" ; then
  22801. RESAMPLE_LIB=""
  22802. RESAMPLE_INCLUDE=""
  22803. else
  22804. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22805. RESAMPLE_LIB=""
  22806. fi
  22807. PBX_RESAMPLE=1
  22808. cat >>confdefs.h <<_ACEOF
  22809. #define HAVE_RESAMPLE 1
  22810. _ACEOF
  22811. fi
  22812. fi
  22813. fi
  22814. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  22815. if test "xminimum version of SpanDSP" != "x"; then
  22816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum version of SpanDSP" >&5
  22817. $as_echo_n "checking for minimum version of SpanDSP... " >&6; }
  22818. else
  22819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \"
  22820. #if SPANDSP_RELEASE_DATE < 20080516
  22821. #error \"spandsp 0.0.5 or greater is required\"
  22822. #endif
  22823. \" compiles using spandsp/version.h" >&5
  22824. $as_echo_n "checking if \"
  22825. #if SPANDSP_RELEASE_DATE < 20080516
  22826. #error \"spandsp 0.0.5 or greater is required\"
  22827. #endif
  22828. \" compiles using spandsp/version.h... " >&6; }
  22829. fi
  22830. saved_cppflags="${CPPFLAGS}"
  22831. if test "x${SPANDSP_DIR}" != "x"; then
  22832. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  22833. fi
  22834. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  22835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22836. /* end confdefs.h. */
  22837. #include <spandsp/version.h>
  22838. int
  22839. main ()
  22840. {
  22841. #if SPANDSP_RELEASE_DATE < 20080516
  22842. #error "spandsp 0.0.5 or greater is required"
  22843. #endif
  22844. ;
  22845. ;
  22846. return 0;
  22847. }
  22848. _ACEOF
  22849. if ac_fn_c_try_compile "$LINENO"; then :
  22850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22851. $as_echo "yes" >&6; }
  22852. PBX_SPANDSP=1
  22853. $as_echo "#define HAVE_SPANDSP 1" >>confdefs.h
  22854. else
  22855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22856. $as_echo "no" >&6; }
  22857. fi
  22858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22859. CPPFLAGS="${saved_cppflags}"
  22860. fi
  22861. if test "x${PBX_SPANDSP}" = "x1" ; then
  22862. # We found the correct version in the header, now let's make sure it links
  22863. # properly, and that libtiff is available
  22864. PBX_SPANDSP=0
  22865. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  22866. pbxlibdir=""
  22867. # if --with-SPANDSP=DIR has been specified, use it.
  22868. if test "x${SPANDSP_DIR}" != "x"; then
  22869. if test -d ${SPANDSP_DIR}/lib; then
  22870. pbxlibdir="-L${SPANDSP_DIR}/lib"
  22871. else
  22872. pbxlibdir="-L${SPANDSP_DIR}"
  22873. fi
  22874. fi
  22875. pbxfuncname="span_set_message_handler"
  22876. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22877. AST_SPANDSP_FOUND=yes
  22878. else
  22879. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22880. CFLAGS="${CFLAGS} "
  22881. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  22882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspandsp" >&5
  22883. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  22884. if eval \${$as_ac_Lib+:} false; then :
  22885. $as_echo_n "(cached) " >&6
  22886. else
  22887. ac_check_lib_save_LIBS=$LIBS
  22888. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  22889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22890. /* end confdefs.h. */
  22891. /* Override any GCC internal prototype to avoid an error.
  22892. Use char because int might match the return type of a GCC
  22893. builtin and then its argument prototype would still apply. */
  22894. #ifdef __cplusplus
  22895. extern "C"
  22896. #endif
  22897. char ${pbxfuncname} ();
  22898. int
  22899. main ()
  22900. {
  22901. return ${pbxfuncname} ();
  22902. ;
  22903. return 0;
  22904. }
  22905. _ACEOF
  22906. if ac_fn_c_try_link "$LINENO"; then :
  22907. eval "$as_ac_Lib=yes"
  22908. else
  22909. eval "$as_ac_Lib=no"
  22910. fi
  22911. rm -f core conftest.err conftest.$ac_objext \
  22912. conftest$ac_exeext conftest.$ac_ext
  22913. LIBS=$ac_check_lib_save_LIBS
  22914. fi
  22915. eval ac_res=\$$as_ac_Lib
  22916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  22917. $as_echo "$ac_res" >&6; }
  22918. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  22919. AST_SPANDSP_FOUND=yes
  22920. else
  22921. AST_SPANDSP_FOUND=no
  22922. fi
  22923. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  22924. fi
  22925. # now check for the header.
  22926. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  22927. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  22928. # if --with-SPANDSP=DIR has been specified, use it.
  22929. if test "x${SPANDSP_DIR}" != "x"; then
  22930. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  22931. fi
  22932. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  22933. if test "xspandsp.h" = "x" ; then # no header, assume found
  22934. SPANDSP_HEADER_FOUND="1"
  22935. else # check for the header
  22936. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  22937. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  22938. ac_fn_c_check_header_mongrel "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
  22939. if test "x$ac_cv_header_spandsp_h" = xyes; then :
  22940. SPANDSP_HEADER_FOUND=1
  22941. else
  22942. SPANDSP_HEADER_FOUND=0
  22943. fi
  22944. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  22945. fi
  22946. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  22947. SPANDSP_LIB=""
  22948. SPANDSP_INCLUDE=""
  22949. else
  22950. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  22951. SPANDSP_LIB=""
  22952. fi
  22953. PBX_SPANDSP=1
  22954. cat >>confdefs.h <<_ACEOF
  22955. #define HAVE_SPANDSP 1
  22956. _ACEOF
  22957. fi
  22958. fi
  22959. fi
  22960. fi
  22961. if test "x${PBX_SPANDSP}" = "x1" ; then
  22962. # We also need t38_terminal_init()
  22963. PBX_SPANDSP=0
  22964. if test "x${PBX_SPANDSP}" != "x1" -a "${USE_SPANDSP}" != "no"; then
  22965. pbxlibdir=""
  22966. # if --with-SPANDSP=DIR has been specified, use it.
  22967. if test "x${SPANDSP_DIR}" != "x"; then
  22968. if test -d ${SPANDSP_DIR}/lib; then
  22969. pbxlibdir="-L${SPANDSP_DIR}/lib"
  22970. else
  22971. pbxlibdir="-L${SPANDSP_DIR}"
  22972. fi
  22973. fi
  22974. pbxfuncname="t38_terminal_init"
  22975. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  22976. AST_SPANDSP_FOUND=yes
  22977. else
  22978. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  22979. CFLAGS="${CFLAGS} "
  22980. as_ac_Lib=`$as_echo "ac_cv_lib_spandsp_${pbxfuncname}" | $as_tr_sh`
  22981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspandsp" >&5
  22982. $as_echo_n "checking for ${pbxfuncname} in -lspandsp... " >&6; }
  22983. if eval \${$as_ac_Lib+:} false; then :
  22984. $as_echo_n "(cached) " >&6
  22985. else
  22986. ac_check_lib_save_LIBS=$LIBS
  22987. LIBS="-lspandsp ${pbxlibdir} -ltiff $LIBS"
  22988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22989. /* end confdefs.h. */
  22990. /* Override any GCC internal prototype to avoid an error.
  22991. Use char because int might match the return type of a GCC
  22992. builtin and then its argument prototype would still apply. */
  22993. #ifdef __cplusplus
  22994. extern "C"
  22995. #endif
  22996. char ${pbxfuncname} ();
  22997. int
  22998. main ()
  22999. {
  23000. return ${pbxfuncname} ();
  23001. ;
  23002. return 0;
  23003. }
  23004. _ACEOF
  23005. if ac_fn_c_try_link "$LINENO"; then :
  23006. eval "$as_ac_Lib=yes"
  23007. else
  23008. eval "$as_ac_Lib=no"
  23009. fi
  23010. rm -f core conftest.err conftest.$ac_objext \
  23011. conftest$ac_exeext conftest.$ac_ext
  23012. LIBS=$ac_check_lib_save_LIBS
  23013. fi
  23014. eval ac_res=\$$as_ac_Lib
  23015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23016. $as_echo "$ac_res" >&6; }
  23017. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23018. AST_SPANDSP_FOUND=yes
  23019. else
  23020. AST_SPANDSP_FOUND=no
  23021. fi
  23022. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23023. fi
  23024. # now check for the header.
  23025. if test "${AST_SPANDSP_FOUND}" = "yes"; then
  23026. SPANDSP_LIB="${pbxlibdir} -lspandsp -ltiff"
  23027. # if --with-SPANDSP=DIR has been specified, use it.
  23028. if test "x${SPANDSP_DIR}" != "x"; then
  23029. SPANDSP_INCLUDE="-I${SPANDSP_DIR}/include"
  23030. fi
  23031. SPANDSP_INCLUDE="${SPANDSP_INCLUDE} "
  23032. if test "xspandsp.h" = "x" ; then # no header, assume found
  23033. SPANDSP_HEADER_FOUND="1"
  23034. else # check for the header
  23035. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23036. CPPFLAGS="${CPPFLAGS} ${SPANDSP_INCLUDE}"
  23037. ac_fn_c_check_header_mongrel "$LINENO" "spandsp.h" "ac_cv_header_spandsp_h" "$ac_includes_default"
  23038. if test "x$ac_cv_header_spandsp_h" = xyes; then :
  23039. SPANDSP_HEADER_FOUND=1
  23040. else
  23041. SPANDSP_HEADER_FOUND=0
  23042. fi
  23043. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23044. fi
  23045. if test "x${SPANDSP_HEADER_FOUND}" = "x0" ; then
  23046. SPANDSP_LIB=""
  23047. SPANDSP_INCLUDE=""
  23048. else
  23049. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23050. SPANDSP_LIB=""
  23051. fi
  23052. PBX_SPANDSP=1
  23053. cat >>confdefs.h <<_ACEOF
  23054. #define HAVE_SPANDSP 1
  23055. _ACEOF
  23056. fi
  23057. fi
  23058. fi
  23059. fi
  23060. # Check for libss7 v2.0 branch compatible version.
  23061. if test "x${PBX_SS7}" != "x1" -a "${USE_SS7}" != "no"; then
  23062. pbxlibdir=""
  23063. # if --with-SS7=DIR has been specified, use it.
  23064. if test "x${SS7_DIR}" != "x"; then
  23065. if test -d ${SS7_DIR}/lib; then
  23066. pbxlibdir="-L${SS7_DIR}/lib"
  23067. else
  23068. pbxlibdir="-L${SS7_DIR}"
  23069. fi
  23070. fi
  23071. pbxfuncname="ss7_set_isup_timer"
  23072. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23073. AST_SS7_FOUND=yes
  23074. else
  23075. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23076. CFLAGS="${CFLAGS} "
  23077. as_ac_Lib=`$as_echo "ac_cv_lib_ss7_${pbxfuncname}" | $as_tr_sh`
  23078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lss7" >&5
  23079. $as_echo_n "checking for ${pbxfuncname} in -lss7... " >&6; }
  23080. if eval \${$as_ac_Lib+:} false; then :
  23081. $as_echo_n "(cached) " >&6
  23082. else
  23083. ac_check_lib_save_LIBS=$LIBS
  23084. LIBS="-lss7 ${pbxlibdir} $LIBS"
  23085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23086. /* end confdefs.h. */
  23087. /* Override any GCC internal prototype to avoid an error.
  23088. Use char because int might match the return type of a GCC
  23089. builtin and then its argument prototype would still apply. */
  23090. #ifdef __cplusplus
  23091. extern "C"
  23092. #endif
  23093. char ${pbxfuncname} ();
  23094. int
  23095. main ()
  23096. {
  23097. return ${pbxfuncname} ();
  23098. ;
  23099. return 0;
  23100. }
  23101. _ACEOF
  23102. if ac_fn_c_try_link "$LINENO"; then :
  23103. eval "$as_ac_Lib=yes"
  23104. else
  23105. eval "$as_ac_Lib=no"
  23106. fi
  23107. rm -f core conftest.err conftest.$ac_objext \
  23108. conftest$ac_exeext conftest.$ac_ext
  23109. LIBS=$ac_check_lib_save_LIBS
  23110. fi
  23111. eval ac_res=\$$as_ac_Lib
  23112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23113. $as_echo "$ac_res" >&6; }
  23114. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23115. AST_SS7_FOUND=yes
  23116. else
  23117. AST_SS7_FOUND=no
  23118. fi
  23119. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23120. fi
  23121. # now check for the header.
  23122. if test "${AST_SS7_FOUND}" = "yes"; then
  23123. SS7_LIB="${pbxlibdir} -lss7 "
  23124. # if --with-SS7=DIR has been specified, use it.
  23125. if test "x${SS7_DIR}" != "x"; then
  23126. SS7_INCLUDE="-I${SS7_DIR}/include"
  23127. fi
  23128. SS7_INCLUDE="${SS7_INCLUDE} "
  23129. if test "xlibss7.h" = "x" ; then # no header, assume found
  23130. SS7_HEADER_FOUND="1"
  23131. else # check for the header
  23132. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23133. CPPFLAGS="${CPPFLAGS} ${SS7_INCLUDE}"
  23134. ac_fn_c_check_header_mongrel "$LINENO" "libss7.h" "ac_cv_header_libss7_h" "$ac_includes_default"
  23135. if test "x$ac_cv_header_libss7_h" = xyes; then :
  23136. SS7_HEADER_FOUND=1
  23137. else
  23138. SS7_HEADER_FOUND=0
  23139. fi
  23140. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23141. fi
  23142. if test "x${SS7_HEADER_FOUND}" = "x0" ; then
  23143. SS7_LIB=""
  23144. SS7_INCLUDE=""
  23145. else
  23146. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23147. SS7_LIB=""
  23148. fi
  23149. PBX_SS7=1
  23150. cat >>confdefs.h <<_ACEOF
  23151. #define HAVE_SS7 1
  23152. _ACEOF
  23153. fi
  23154. fi
  23155. fi
  23156. if test "x${PBX_OPENR2}" != "x1" -a "${USE_OPENR2}" != "no"; then
  23157. pbxlibdir=""
  23158. # if --with-OPENR2=DIR has been specified, use it.
  23159. if test "x${OPENR2_DIR}" != "x"; then
  23160. if test -d ${OPENR2_DIR}/lib; then
  23161. pbxlibdir="-L${OPENR2_DIR}/lib"
  23162. else
  23163. pbxlibdir="-L${OPENR2_DIR}"
  23164. fi
  23165. fi
  23166. pbxfuncname="openr2_chan_new"
  23167. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23168. AST_OPENR2_FOUND=yes
  23169. else
  23170. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23171. CFLAGS="${CFLAGS} "
  23172. as_ac_Lib=`$as_echo "ac_cv_lib_openr2_${pbxfuncname}" | $as_tr_sh`
  23173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lopenr2" >&5
  23174. $as_echo_n "checking for ${pbxfuncname} in -lopenr2... " >&6; }
  23175. if eval \${$as_ac_Lib+:} false; then :
  23176. $as_echo_n "(cached) " >&6
  23177. else
  23178. ac_check_lib_save_LIBS=$LIBS
  23179. LIBS="-lopenr2 ${pbxlibdir} $LIBS"
  23180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23181. /* end confdefs.h. */
  23182. /* Override any GCC internal prototype to avoid an error.
  23183. Use char because int might match the return type of a GCC
  23184. builtin and then its argument prototype would still apply. */
  23185. #ifdef __cplusplus
  23186. extern "C"
  23187. #endif
  23188. char ${pbxfuncname} ();
  23189. int
  23190. main ()
  23191. {
  23192. return ${pbxfuncname} ();
  23193. ;
  23194. return 0;
  23195. }
  23196. _ACEOF
  23197. if ac_fn_c_try_link "$LINENO"; then :
  23198. eval "$as_ac_Lib=yes"
  23199. else
  23200. eval "$as_ac_Lib=no"
  23201. fi
  23202. rm -f core conftest.err conftest.$ac_objext \
  23203. conftest$ac_exeext conftest.$ac_ext
  23204. LIBS=$ac_check_lib_save_LIBS
  23205. fi
  23206. eval ac_res=\$$as_ac_Lib
  23207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23208. $as_echo "$ac_res" >&6; }
  23209. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23210. AST_OPENR2_FOUND=yes
  23211. else
  23212. AST_OPENR2_FOUND=no
  23213. fi
  23214. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23215. fi
  23216. # now check for the header.
  23217. if test "${AST_OPENR2_FOUND}" = "yes"; then
  23218. OPENR2_LIB="${pbxlibdir} -lopenr2 "
  23219. # if --with-OPENR2=DIR has been specified, use it.
  23220. if test "x${OPENR2_DIR}" != "x"; then
  23221. OPENR2_INCLUDE="-I${OPENR2_DIR}/include"
  23222. fi
  23223. OPENR2_INCLUDE="${OPENR2_INCLUDE} "
  23224. if test "xopenr2.h" = "x" ; then # no header, assume found
  23225. OPENR2_HEADER_FOUND="1"
  23226. else # check for the header
  23227. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23228. CPPFLAGS="${CPPFLAGS} ${OPENR2_INCLUDE}"
  23229. ac_fn_c_check_header_mongrel "$LINENO" "openr2.h" "ac_cv_header_openr2_h" "$ac_includes_default"
  23230. if test "x$ac_cv_header_openr2_h" = xyes; then :
  23231. OPENR2_HEADER_FOUND=1
  23232. else
  23233. OPENR2_HEADER_FOUND=0
  23234. fi
  23235. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23236. fi
  23237. if test "x${OPENR2_HEADER_FOUND}" = "x0" ; then
  23238. OPENR2_LIB=""
  23239. OPENR2_INCLUDE=""
  23240. else
  23241. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23242. OPENR2_LIB=""
  23243. fi
  23244. PBX_OPENR2=1
  23245. cat >>confdefs.h <<_ACEOF
  23246. #define HAVE_OPENR2 1
  23247. _ACEOF
  23248. fi
  23249. fi
  23250. fi
  23251. if test "${USE_PWLIB}" != "no"; then
  23252. if test -n "${PWLIB_DIR}"; then
  23253. PWLIBDIR="${PWLIB_DIR}"
  23254. fi
  23255. PWLIB_INCDIR=
  23256. PWLIB_LIBDIR=
  23257. ac_ext=cpp
  23258. ac_cpp='$CXXCPP $CPPFLAGS'
  23259. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23260. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23261. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23262. if test "${PWLIBDIR:-unset}" != "unset" ; then
  23263. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/version.h" | $as_tr_sh`
  23264. ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/version.h" "$as_ac_Header" "$ac_includes_default"
  23265. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23266. HAS_PWLIB=1
  23267. fi
  23268. fi
  23269. if test "${HAS_PWLIB:-unset}" = "unset" ; then
  23270. if test "${OPENH323DIR:-unset}" != "unset"; then
  23271. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/../pwlib/version.h" | $as_tr_sh`
  23272. ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/../pwlib/version.h" "$as_ac_Header" "$ac_includes_default"
  23273. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23274. HAS_PWLIB=1
  23275. fi
  23276. fi
  23277. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  23278. PWLIBDIR="${OPENH323DIR}/../pwlib"
  23279. else
  23280. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/pwlib/include/ptlib.h" | $as_tr_sh`
  23281. ac_fn_cxx_check_header_mongrel "$LINENO" "${HOME}/pwlib/include/ptlib.h" "$as_ac_Header" "$ac_includes_default"
  23282. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23283. HAS_PWLIB=1
  23284. fi
  23285. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  23286. PWLIBDIR="${HOME}/pwlib"
  23287. else
  23288. ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/local/include/ptlib.h" "ac_cv_header__usr_local_include_ptlib_h" "$ac_includes_default"
  23289. if test "x$ac_cv_header__usr_local_include_ptlib_h" = xyes; then :
  23290. HAS_PWLIB=1
  23291. fi
  23292. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  23293. # Extract the first word of "ptlib-config", so it can be a program name with args.
  23294. set dummy ptlib-config; ac_word=$2
  23295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23296. $as_echo_n "checking for $ac_word... " >&6; }
  23297. if ${ac_cv_path_PTLIB_CONFIG+:} false; then :
  23298. $as_echo_n "(cached) " >&6
  23299. else
  23300. case $PTLIB_CONFIG in
  23301. [\\/]* | ?:[\\/]*)
  23302. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  23303. ;;
  23304. *)
  23305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23306. for as_dir in /usr/local/bin$PATH_SEPARATOR/usr/local/share/pwlib/make
  23307. do
  23308. IFS=$as_save_IFS
  23309. test -z "$as_dir" && as_dir=.
  23310. for ac_exec_ext in '' $ac_executable_extensions; do
  23311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23312. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23314. break 2
  23315. fi
  23316. done
  23317. done
  23318. IFS=$as_save_IFS
  23319. ;;
  23320. esac
  23321. fi
  23322. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  23323. if test -n "$PTLIB_CONFIG"; then
  23324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
  23325. $as_echo "$PTLIB_CONFIG" >&6; }
  23326. else
  23327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23328. $as_echo "no" >&6; }
  23329. fi
  23330. PWLIB_INCDIR="/usr/local/include"
  23331. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  23332. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  23333. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  23334. fi
  23335. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  23336. if test "x$LIB64" != "x"; then
  23337. PWLIB_LIBDIR="/usr/local/lib64"
  23338. else
  23339. PWLIB_LIBDIR="/usr/local/lib"
  23340. fi
  23341. fi
  23342. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  23343. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  23344. else
  23345. ac_fn_cxx_check_header_mongrel "$LINENO" "/usr/include/ptlib.h" "ac_cv_header__usr_include_ptlib_h" "$ac_includes_default"
  23346. if test "x$ac_cv_header__usr_include_ptlib_h" = xyes; then :
  23347. HAS_PWLIB=1
  23348. fi
  23349. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  23350. # Extract the first word of "ptlib-config", so it can be a program name with args.
  23351. set dummy ptlib-config; ac_word=$2
  23352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23353. $as_echo_n "checking for $ac_word... " >&6; }
  23354. if ${ac_cv_path_PTLIB_CONFIG+:} false; then :
  23355. $as_echo_n "(cached) " >&6
  23356. else
  23357. case $PTLIB_CONFIG in
  23358. [\\/]* | ?:[\\/]*)
  23359. ac_cv_path_PTLIB_CONFIG="$PTLIB_CONFIG" # Let the user override the test with a path.
  23360. ;;
  23361. *)
  23362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23363. for as_dir in /usr/bin$PATH_SEPARATOR/usr/share/pwlib/make
  23364. do
  23365. IFS=$as_save_IFS
  23366. test -z "$as_dir" && as_dir=.
  23367. for ac_exec_ext in '' $ac_executable_extensions; do
  23368. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23369. ac_cv_path_PTLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  23370. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23371. break 2
  23372. fi
  23373. done
  23374. done
  23375. IFS=$as_save_IFS
  23376. ;;
  23377. esac
  23378. fi
  23379. PTLIB_CONFIG=$ac_cv_path_PTLIB_CONFIG
  23380. if test -n "$PTLIB_CONFIG"; then
  23381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTLIB_CONFIG" >&5
  23382. $as_echo "$PTLIB_CONFIG" >&6; }
  23383. else
  23384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23385. $as_echo "no" >&6; }
  23386. fi
  23387. PWLIB_INCDIR="/usr/include"
  23388. PWLIB_LIBDIR=`${PTLIB_CONFIG} --pwlibdir 2>/dev/null`
  23389. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  23390. PWLIB_LIBDIR=`${PTLIB_CONFIG} --ptlibdir 2>/dev/null`
  23391. fi
  23392. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  23393. if test "x$LIB64" != "x"; then
  23394. PWLIB_LIBDIR="/usr/lib64"
  23395. else
  23396. PWLIB_LIBDIR="/usr/lib"
  23397. fi
  23398. fi
  23399. PWLIB_LIB=`${PTLIB_CONFIG} --ldflags --libs`
  23400. PWLIB_LIB="-L${PWLIB_LIBDIR} `echo ${PWLIB_LIB}`"
  23401. fi
  23402. fi
  23403. fi
  23404. fi
  23405. fi
  23406. #if test "${HAS_PWLIB:-unset}" = "unset" ; then
  23407. # echo "Cannot find pwlib - please install or set PWLIBDIR and try again"
  23408. # exit
  23409. #fi
  23410. if test "${HAS_PWLIB:-unset}" != "unset" ; then
  23411. if test "${PWLIBDIR:-unset}" = "unset" ; then
  23412. if test "${PTLIB_CONFIG:-unset}" != "unset" ; then
  23413. PWLIBDIR=`$PTLIB_CONFIG --prefix`
  23414. else
  23415. echo "Cannot find ptlib-config - please install and try again"
  23416. exit
  23417. fi
  23418. fi
  23419. if test "x$PWLIBDIR" = "x/usr" -o "x$PWLIBDIR" = "x/usr/"; then
  23420. PWLIBDIR="/usr/share/pwlib"
  23421. PWLIB_INCDIR="/usr/include"
  23422. if test "x$LIB64" != "x"; then
  23423. PWLIB_LIBDIR="/usr/lib64"
  23424. else
  23425. PWLIB_LIBDIR="/usr/lib"
  23426. fi
  23427. fi
  23428. if test "x$PWLIBDIR" = "x/usr/local" -o "x$PWLIBDIR" = "x/usr/"; then
  23429. PWLIBDIR="/usr/local/share/pwlib"
  23430. PWLIB_INCDIR="/usr/local/include"
  23431. if test "x$LIB64" != "x"; then
  23432. PWLIB_LIBDIR="/usr/local/lib64"
  23433. else
  23434. PWLIB_LIBDIR="/usr/local/lib"
  23435. fi
  23436. fi
  23437. if test "${PWLIB_INCDIR:-unset}" = "unset"; then
  23438. PWLIB_INCDIR="${PWLIBDIR}/include"
  23439. fi
  23440. if test "${PWLIB_LIBDIR:-unset}" = "unset"; then
  23441. PWLIB_LIBDIR="${PWLIBDIR}/lib"
  23442. fi
  23443. fi
  23444. ac_ext=c
  23445. ac_cpp='$CPP $CPPFLAGS'
  23446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23449. if test "xP[WT]LIB_VERSION" != "x"; then
  23450. VNAME="P[WT]LIB_VERSION"
  23451. else
  23452. VNAME="PWLIB_VERSION"
  23453. fi
  23454. if test "${HAS_PWLIB:-unset}" != "unset"; then
  23455. PWLIB_VERSION=`grep "$VNAME \"" ${PWLIB_INCDIR}/ptbuildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  23456. PWLIB_MAJOR_VERSION=`echo ${PWLIB_VERSION} | cut -f1 -d.`
  23457. PWLIB_MINOR_VERSION=`echo ${PWLIB_VERSION} | cut -f2 -d.`
  23458. PWLIB_BUILD_NUMBER=`echo ${PWLIB_VERSION} | cut -f3 -d.`
  23459. PWLIB_VER=$((${PWLIB_MAJOR_VERSION}*10000+${PWLIB_MINOR_VERSION}*100+${PWLIB_BUILD_NUMBER}))
  23460. PWLIB_REQ=$((1*10000+9*100+2))
  23461. if test "x" = "x"; then
  23462. PWLIB_MAX=9999999
  23463. else
  23464. PWLIB_MAX=$((*10000+*100+))
  23465. fi
  23466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323" >&5
  23467. $as_echo_n "checking if PWLib version ${PWLIB_VERSION} is compatible with chan_h323... " >&6; }
  23468. if test ${PWLIB_VER} -lt ${PWLIB_REQ}; then
  23469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23470. $as_echo "no" >&6; }
  23471. unset HAS_PWLIB
  23472. else
  23473. if test ${PWLIB_VER} -gt ${PWLIB_MAX}; then
  23474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23475. $as_echo "no" >&6; }
  23476. unset HAS_PWLIB
  23477. else
  23478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23479. $as_echo "yes" >&6; }
  23480. fi
  23481. fi
  23482. fi
  23483. if test "${HAS_PWLIB:-unset}" != "unset"; then
  23484. PWLIB_OSTYPE=
  23485. case "$host_os" in
  23486. linux*) PWLIB_OSTYPE=linux ;
  23487. ;;
  23488. freebsd* ) PWLIB_OSTYPE=FreeBSD ;
  23489. ;;
  23490. openbsd* ) PWLIB_OSTYPE=OpenBSD ;
  23491. ENDLDLIBS="-lossaudio" ;
  23492. ;;
  23493. netbsd* ) PWLIB_OSTYPE=NetBSD ;
  23494. ENDLDLIBS="-lossaudio" ;
  23495. ;;
  23496. solaris* | sunos* ) PWLIB_OSTYPE=solaris ;
  23497. ;;
  23498. darwin* ) PWLIB_OSTYPE=Darwin ;
  23499. ;;
  23500. beos*) PWLIB_OSTYPE=beos ;
  23501. STDCCFLAGS="$STDCCFLAGS -D__BEOS__"
  23502. ;;
  23503. cygwin*) PWLIB_OSTYPE=cygwin ;
  23504. ;;
  23505. mingw*) PWLIB_OSTYPE=mingw ;
  23506. STDCCFLAGS="$STDCCFLAGS -mms-bitfields" ;
  23507. ENDLDLIBS="-lwinmm -lwsock32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32" ;
  23508. ;;
  23509. * ) PWLIB_OSTYPE="$host_os" ;
  23510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&5
  23511. $as_echo "$as_me: WARNING: \"OS $PWLIB_OSTYPE not recognized - proceed with caution!\"" >&2;} ;
  23512. ;;
  23513. esac
  23514. PWLIB_MACHTYPE=
  23515. case "$host_cpu" in
  23516. x86 | i686 | i586 | i486 | i386 ) PWLIB_MACHTYPE=x86
  23517. ;;
  23518. x86_64) PWLIB_MACHTYPE=x86_64 ;
  23519. P_64BIT=1 ;
  23520. LIB64=1 ;
  23521. ;;
  23522. alpha | alphaev56 | alphaev6 | alphaev67 | alphaev7) PWLIB_MACHTYPE=alpha ;
  23523. P_64BIT=1 ;
  23524. ;;
  23525. sparc ) PWLIB_MACHTYPE=sparc ;
  23526. ;;
  23527. powerpc ) PWLIB_MACHTYPE=ppc ;
  23528. ;;
  23529. ppc ) PWLIB_MACHTYPE=ppc ;
  23530. ;;
  23531. powerpc64 ) PWLIB_MACHTYPE=ppc64 ;
  23532. P_64BIT=1 ;
  23533. LIB64=1 ;
  23534. ;;
  23535. ppc64 ) PWLIB_MACHTYPE=ppc64 ;
  23536. P_64BIT=1 ;
  23537. LIB64=1 ;
  23538. ;;
  23539. ia64) PWLIB_MACHTYPE=ia64 ;
  23540. P_64BIT=1 ;
  23541. ;;
  23542. s390x) PWLIB_MACHTYPE=s390x ;
  23543. P_64BIT=1 ;
  23544. LIB64=1 ;
  23545. ;;
  23546. s390) PWLIB_MACHTYPE=s390 ;
  23547. ;;
  23548. * ) PWLIB_MACHTYPE="$host_cpu";
  23549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&5
  23550. $as_echo "$as_me: WARNING: \"CPU $PWLIB_MACHTYPE not recognized - proceed with caution!\"" >&2;} ;;
  23551. esac
  23552. PWLIB_PLATFORM="${PWLIB_OSTYPE}_${PWLIB_MACHTYPE}"
  23553. PLATFORM_PWLIB="pt_${PWLIB_PLATFORM}_r"
  23554. if test "${HAS_PWLIB:-unset}" != "unset"; then
  23555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking PWLib installation validity" >&5
  23556. $as_echo_n "checking PWLib installation validity... " >&6; }
  23557. saved_cppflags="${CPPFLAGS}"
  23558. saved_libs="${LIBS}"
  23559. if test "${PWLIB_LIB:-unset}" != "unset"; then
  23560. LIBS="${LIBS} ${PWLIB_LIB} "
  23561. else
  23562. LIBS="${LIBS} -L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB} "
  23563. fi
  23564. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR} "
  23565. ac_ext=cpp
  23566. ac_cpp='$CXXCPP $CPPFLAGS'
  23567. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23568. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23569. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23571. /* end confdefs.h. */
  23572. #include "ptlib.h"
  23573. int
  23574. main ()
  23575. {
  23576. int q = (int) PTime::IsDaylightSavings();
  23577. ;
  23578. return 0;
  23579. }
  23580. _ACEOF
  23581. if ac_fn_cxx_try_link "$LINENO"; then :
  23582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23583. $as_echo "yes" >&6; }
  23584. ac_cv_lib_PWLIB="yes"
  23585. else
  23586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23587. $as_echo "no" >&6; }
  23588. ac_cv_lib_PWLIB="no"
  23589. fi
  23590. rm -f core conftest.err conftest.$ac_objext \
  23591. conftest$ac_exeext conftest.$ac_ext
  23592. ac_ext=c
  23593. ac_cpp='$CPP $CPPFLAGS'
  23594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23597. LIBS="${saved_libs}"
  23598. CPPFLAGS="${saved_cppflags}"
  23599. if test "${ac_cv_lib_PWLIB}" = "yes"; then
  23600. if test "${PWLIB_LIB:-undef}" = "undef"; then
  23601. if test "${PWLIB_LIBDIR}" != "" -a "${PWLIB_LIBDIR}" != "/usr/lib"; then
  23602. PWLIB_LIB="-L${PWLIB_LIBDIR} -l${PLATFORM_PWLIB}"
  23603. else
  23604. PWLIB_LIB="-l${PLATFORM_PWLIB}"
  23605. fi
  23606. fi
  23607. if test "${PWLIB_INCDIR}" != "" -a "${PWLIB_INCDIR}" != "/usr/include"; then
  23608. PWLIB_INCLUDE="-I${PWLIB_INCDIR}"
  23609. fi
  23610. PBX_PWLIB=1
  23611. $as_echo "#define HAVE_PWLIB 1" >>confdefs.h
  23612. fi
  23613. fi
  23614. fi
  23615. fi
  23616. if test "${PBX_PWLIB}" = "1" -a "${USE_OPENH323}" != "no" ; then
  23617. if test -n "${OPENH323_DIR}"; then
  23618. OPENH323DIR="${OPENH323_DIR}"
  23619. fi
  23620. OPENH323_INCDIR=
  23621. OPENH323_LIBDIR=
  23622. ac_ext=cpp
  23623. ac_cpp='$CXXCPP $CPPFLAGS'
  23624. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23625. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23626. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23627. if test "${OPENH323DIR:-unset}" != "unset" ; then
  23628. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/version.h" | $as_tr_sh`
  23629. ac_fn_cxx_check_header_mongrel "$LINENO" "${OPENH323DIR}/version.h" "$as_ac_Header" "$ac_includes_default"
  23630. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23631. HAS_OPENH323=1
  23632. fi
  23633. fi
  23634. if test "${HAS_OPENH323:-unset}" = "unset" ; then
  23635. as_ac_Header=`$as_echo "ac_cv_header_${PWLIBDIR}/../openh323/version.h" | $as_tr_sh`
  23636. ac_fn_cxx_check_header_mongrel "$LINENO" "${PWLIBDIR}/../openh323/version.h" "$as_ac_Header" "$ac_includes_default"
  23637. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23638. OPENH323DIR="${PWLIBDIR}/../openh323"; HAS_OPENH323=1
  23639. fi
  23640. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  23641. OPENH323DIR="${PWLIBDIR}/../openh323"
  23642. saved_cppflags="${CPPFLAGS}"
  23643. CPPFLAGS="${CPPFLAGS} -I${PWLIB_INCDIR}/openh323 -I${PWLIB_INCDIR}"
  23644. as_ac_Header=`$as_echo "ac_cv_header_${OPENH323DIR}/include/h323.h" | $as_tr_sh`
  23645. ac_fn_cxx_check_header_compile "$LINENO" "${OPENH323DIR}/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
  23646. "
  23647. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23648. else
  23649. OPENH323_INCDIR="${PWLIB_INCDIR}/openh323"; OPENH323_LIBDIR="${PWLIB_LIBDIR}"
  23650. fi
  23651. CPPFLAGS="${saved_cppflags}"
  23652. else
  23653. saved_cppflags="${CPPFLAGS}"
  23654. CPPFLAGS="${CPPFLAGS} -I${HOME}/openh323/include -I${PWLIB_INCDIR}"
  23655. as_ac_Header=`$as_echo "ac_cv_header_${HOME}/openh323/include/h323.h" | $as_tr_sh`
  23656. ac_fn_cxx_check_header_compile "$LINENO" "${HOME}/openh323/include/h323.h" "$as_ac_Header" "#include <ptlib.h>
  23657. "
  23658. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  23659. HAS_OPENH323=1
  23660. fi
  23661. CPPFLAGS="${saved_cppflags}"
  23662. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  23663. OPENH323DIR="${HOME}/openh323"
  23664. else
  23665. saved_cppflags="${CPPFLAGS}"
  23666. CPPFLAGS="${CPPFLAGS} -I/usr/local/include/openh323 -I${PWLIB_INCDIR}"
  23667. ac_fn_cxx_check_header_compile "$LINENO" "/usr/local/include/openh323/h323.h" "ac_cv_header__usr_local_include_openh323_h323_h" "#include <ptlib.h>
  23668. "
  23669. if test "x$ac_cv_header__usr_local_include_openh323_h323_h" = xyes; then :
  23670. HAS_OPENH323=1
  23671. fi
  23672. CPPFLAGS="${saved_cppflags}"
  23673. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  23674. OPENH323DIR="/usr/local/share/openh323"
  23675. OPENH323_INCDIR="/usr/local/include/openh323"
  23676. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  23677. OPENH323_LIBDIR="/usr/local/lib64"
  23678. else
  23679. OPENH323_LIBDIR="/usr/local/lib"
  23680. fi
  23681. else
  23682. saved_cppflags="${CPPFLAGS}"
  23683. CPPFLAGS="${CPPFLAGS} -I/usr/include/openh323 -I${PWLIB_INCDIR}"
  23684. ac_fn_cxx_check_header_compile "$LINENO" "/usr/include/openh323/h323.h" "ac_cv_header__usr_include_openh323_h323_h" "#include <ptlib.h>
  23685. "
  23686. if test "x$ac_cv_header__usr_include_openh323_h323_h" = xyes; then :
  23687. HAS_OPENH323=1
  23688. fi
  23689. CPPFLAGS="${saved_cppflags}"
  23690. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  23691. OPENH323DIR="/usr/share/openh323"
  23692. OPENH323_INCDIR="/usr/include/openh323"
  23693. if test "x$LIB64" != "x" && test -d "/usr/local/lib64"; then
  23694. OPENH323_LIBDIR="/usr/lib64"
  23695. else
  23696. OPENH323_LIBDIR="/usr/lib"
  23697. fi
  23698. fi
  23699. fi
  23700. fi
  23701. fi
  23702. fi
  23703. if test "${HAS_OPENH323:-unset}" != "unset" ; then
  23704. if test "${OPENH323_INCDIR:-unset}" = "unset"; then
  23705. OPENH323_INCDIR="${OPENH323DIR}/include"
  23706. fi
  23707. if test "${OPENH323_LIBDIR:-unset}" = "unset"; then
  23708. OPENH323_LIBDIR="${OPENH323DIR}/lib"
  23709. fi
  23710. OPENH323_LIBDIR="`cd ${OPENH323_LIBDIR}; pwd`"
  23711. OPENH323_INCDIR="`cd ${OPENH323_INCDIR}; pwd`"
  23712. OPENH323DIR="`cd ${OPENH323DIR}; pwd`"
  23713. fi
  23714. ac_ext=c
  23715. ac_cpp='$CPP $CPPFLAGS'
  23716. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23717. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23718. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23719. if test "x" != "x"; then
  23720. VNAME=""
  23721. else
  23722. VNAME="OPENH323_VERSION"
  23723. fi
  23724. if test "${HAS_OPENH323:-unset}" != "unset"; then
  23725. OPENH323_VERSION=`grep "$VNAME \"" ${OPENH323_INCDIR}/openh323buildopts.h | sed -e 's/[[:space:]]\{1,\}/ /g' | cut -f3 -d ' ' | sed -e 's/"//g'`
  23726. OPENH323_MAJOR_VERSION=`echo ${OPENH323_VERSION} | cut -f1 -d.`
  23727. OPENH323_MINOR_VERSION=`echo ${OPENH323_VERSION} | cut -f2 -d.`
  23728. OPENH323_BUILD_NUMBER=`echo ${OPENH323_VERSION} | cut -f3 -d.`
  23729. OPENH323_VER=$((${OPENH323_MAJOR_VERSION}*10000+${OPENH323_MINOR_VERSION}*100+${OPENH323_BUILD_NUMBER}))
  23730. OPENH323_REQ=$((1*10000+17*100+3))
  23731. if test "x0" = "x"; then
  23732. OPENH323_MAX=9999999
  23733. else
  23734. OPENH323_MAX=$((1*10000+19*100+0))
  23735. fi
  23736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323" >&5
  23737. $as_echo_n "checking if OpenH323 version ${OPENH323_VERSION} is compatible with chan_h323... " >&6; }
  23738. if test ${OPENH323_VER} -lt ${OPENH323_REQ}; then
  23739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23740. $as_echo "no" >&6; }
  23741. unset HAS_OPENH323
  23742. else
  23743. if test ${OPENH323_VER} -gt ${OPENH323_MAX}; then
  23744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23745. $as_echo "no" >&6; }
  23746. unset HAS_OPENH323
  23747. else
  23748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23749. $as_echo "yes" >&6; }
  23750. fi
  23751. fi
  23752. fi
  23753. if test "${HAS_OPENH323:-unset}" != "unset"; then
  23754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 build option" >&5
  23755. $as_echo_n "checking OpenH323 build option... " >&6; }
  23756. OPENH323_SUFFIX=
  23757. prefixes="h323_${PWLIB_PLATFORM}_ h323_ openh323"
  23758. for pfx in $prefixes; do
  23759. #files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  23760. files=`ls -l ${OPENH323_LIBDIR}/lib${pfx}*.so* 2>/dev/null`
  23761. if test -z "$files"; then
  23762. # check the default location
  23763. files=`ls -l /usr/local/lib/lib${pfx}*.so* 2>/dev/null`
  23764. fi
  23765. libfile=
  23766. if test -n "$files"; then
  23767. for f in $files; do
  23768. if test -f $f -a ! -L $f; then
  23769. libfile=`basename $f`
  23770. break;
  23771. fi
  23772. done
  23773. fi
  23774. if test -n "$libfile"; then
  23775. OPENH323_PREFIX=$pfx
  23776. break;
  23777. fi
  23778. done
  23779. if test "${libfile:-unset}" != "unset"; then
  23780. OPENH323_SUFFIX=`eval "echo ${libfile} | sed -e 's/lib${OPENH323_PREFIX}\([^.]*\)\..*/\1/'"`
  23781. fi
  23782. case "${OPENH323_SUFFIX}" in
  23783. n)
  23784. OPENH323_BUILD="notrace";;
  23785. r)
  23786. OPENH323_BUILD="opt";;
  23787. d)
  23788. OPENH323_BUILD="debug";;
  23789. *)
  23790. if test "${OPENH323_PREFIX:-undef}" = "openh323"; then
  23791. notrace=`eval "grep NOTRACE ${OPENH323DIR}/openh323u.mak | grep = | sed -e 's/[A-Z0-9_]*[ ]*=[ ]*//'"`
  23792. if test "x$notrace" = "x"; then
  23793. notrace="0"
  23794. fi
  23795. if test "$notrace" -ne 0; then
  23796. OPENH323_BUILD="notrace"
  23797. else
  23798. OPENH323_BUILD="opt"
  23799. fi
  23800. OPENH323_LIB="-l${OPENH323_PREFIX}"
  23801. else
  23802. OPENH323_BUILD="notrace"
  23803. fi
  23804. ;;
  23805. esac
  23806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${OPENH323_BUILD}" >&5
  23807. $as_echo "${OPENH323_BUILD}" >&6; }
  23808. fi
  23809. PLATFORM_OPENH323="h323_${PWLIB_PLATFORM}_${OPENH323_SUFFIX}"
  23810. if test "${HAS_OPENH323:-unset}" != "unset"; then
  23811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenH323 installation validity" >&5
  23812. $as_echo_n "checking OpenH323 installation validity... " >&6; }
  23813. saved_cppflags="${CPPFLAGS}"
  23814. saved_libs="${LIBS}"
  23815. if test "${OPENH323_LIB:-unset}" != "unset"; then
  23816. LIBS="${LIBS} ${OPENH323_LIB} ${PWLIB_LIB}"
  23817. else
  23818. LIBS="${LIBS} -L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323} ${PWLIB_LIB}"
  23819. fi
  23820. CPPFLAGS="${CPPFLAGS} -I${OPENH323_INCDIR} ${PWLIB_INCLUDE}"
  23821. ac_ext=cpp
  23822. ac_cpp='$CXXCPP $CPPFLAGS'
  23823. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23824. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23825. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23827. /* end confdefs.h. */
  23828. #include "ptlib.h"
  23829. #include "h323.h"
  23830. #include "h323ep.h"
  23831. int
  23832. main ()
  23833. {
  23834. H323EndPoint ep = H323EndPoint();
  23835. ;
  23836. return 0;
  23837. }
  23838. _ACEOF
  23839. if ac_fn_cxx_try_link "$LINENO"; then :
  23840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  23841. $as_echo "yes" >&6; }
  23842. ac_cv_lib_OPENH323="yes"
  23843. else
  23844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23845. $as_echo "no" >&6; }
  23846. ac_cv_lib_OPENH323="no"
  23847. fi
  23848. rm -f core conftest.err conftest.$ac_objext \
  23849. conftest$ac_exeext conftest.$ac_ext
  23850. ac_ext=c
  23851. ac_cpp='$CPP $CPPFLAGS'
  23852. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23853. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23854. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23855. LIBS="${saved_libs}"
  23856. CPPFLAGS="${saved_cppflags}"
  23857. if test "${ac_cv_lib_OPENH323}" = "yes"; then
  23858. if test "${OPENH323_LIB:-undef}" = "undef"; then
  23859. if test "${OPENH323_LIBDIR}" != "" -a "${OPENH323_LIBDIR}" != "/usr/lib"; then
  23860. OPENH323_LIB="-L${OPENH323_LIBDIR} -l${PLATFORM_OPENH323}"
  23861. else
  23862. OPENH323_LIB="-l${PLATFORM_OPENH323}"
  23863. fi
  23864. fi
  23865. if test "${OPENH323_INCDIR}" != "" -a "${OPENH323_INCDIR}" != "/usr/include"; then
  23866. OPENH323_INCLUDE="-I${OPENH323_INCDIR}"
  23867. fi
  23868. PBX_OPENH323=1
  23869. $as_echo "#define HAVE_OPENH323 1" >>confdefs.h
  23870. fi
  23871. fi
  23872. fi
  23873. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  23874. pbxlibdir=""
  23875. # if --with-LUA=DIR has been specified, use it.
  23876. if test "x${LUA_DIR}" != "x"; then
  23877. if test -d ${LUA_DIR}/lib; then
  23878. pbxlibdir="-L${LUA_DIR}/lib"
  23879. else
  23880. pbxlibdir="-L${LUA_DIR}"
  23881. fi
  23882. fi
  23883. pbxfuncname="luaL_newstate"
  23884. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23885. AST_LUA_FOUND=yes
  23886. else
  23887. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23888. CFLAGS="${CFLAGS} "
  23889. as_ac_Lib=`$as_echo "ac_cv_lib_lua5.2_${pbxfuncname}" | $as_tr_sh`
  23890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua5.2" >&5
  23891. $as_echo_n "checking for ${pbxfuncname} in -llua5.2... " >&6; }
  23892. if eval \${$as_ac_Lib+:} false; then :
  23893. $as_echo_n "(cached) " >&6
  23894. else
  23895. ac_check_lib_save_LIBS=$LIBS
  23896. LIBS="-llua5.2 ${pbxlibdir} -lm $LIBS"
  23897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23898. /* end confdefs.h. */
  23899. /* Override any GCC internal prototype to avoid an error.
  23900. Use char because int might match the return type of a GCC
  23901. builtin and then its argument prototype would still apply. */
  23902. #ifdef __cplusplus
  23903. extern "C"
  23904. #endif
  23905. char ${pbxfuncname} ();
  23906. int
  23907. main ()
  23908. {
  23909. return ${pbxfuncname} ();
  23910. ;
  23911. return 0;
  23912. }
  23913. _ACEOF
  23914. if ac_fn_c_try_link "$LINENO"; then :
  23915. eval "$as_ac_Lib=yes"
  23916. else
  23917. eval "$as_ac_Lib=no"
  23918. fi
  23919. rm -f core conftest.err conftest.$ac_objext \
  23920. conftest$ac_exeext conftest.$ac_ext
  23921. LIBS=$ac_check_lib_save_LIBS
  23922. fi
  23923. eval ac_res=\$$as_ac_Lib
  23924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  23925. $as_echo "$ac_res" >&6; }
  23926. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  23927. AST_LUA_FOUND=yes
  23928. else
  23929. AST_LUA_FOUND=no
  23930. fi
  23931. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  23932. fi
  23933. # now check for the header.
  23934. if test "${AST_LUA_FOUND}" = "yes"; then
  23935. LUA_LIB="${pbxlibdir} -llua5.2 -lm"
  23936. # if --with-LUA=DIR has been specified, use it.
  23937. if test "x${LUA_DIR}" != "x"; then
  23938. LUA_INCLUDE="-I${LUA_DIR}/include"
  23939. fi
  23940. LUA_INCLUDE="${LUA_INCLUDE} "
  23941. if test "xlua5.2/lua.h" = "x" ; then # no header, assume found
  23942. LUA_HEADER_FOUND="1"
  23943. else # check for the header
  23944. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  23945. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  23946. ac_fn_c_check_header_mongrel "$LINENO" "lua5.2/lua.h" "ac_cv_header_lua5_2_lua_h" "$ac_includes_default"
  23947. if test "x$ac_cv_header_lua5_2_lua_h" = xyes; then :
  23948. LUA_HEADER_FOUND=1
  23949. else
  23950. LUA_HEADER_FOUND=0
  23951. fi
  23952. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  23953. fi
  23954. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  23955. LUA_LIB=""
  23956. LUA_INCLUDE=""
  23957. else
  23958. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  23959. LUA_LIB=""
  23960. fi
  23961. PBX_LUA=1
  23962. cat >>confdefs.h <<_ACEOF
  23963. #define HAVE_LUA 1
  23964. _ACEOF
  23965. fi
  23966. fi
  23967. fi
  23968. if test "x${PBX_LUA}" = "x1" ; then
  23969. if test x"${LUA_DIR}" = x; then
  23970. LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.2"
  23971. else
  23972. LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.2"
  23973. fi
  23974. fi
  23975. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  23976. pbxlibdir=""
  23977. # if --with-LUA=DIR has been specified, use it.
  23978. if test "x${LUA_DIR}" != "x"; then
  23979. if test -d ${LUA_DIR}/lib; then
  23980. pbxlibdir="-L${LUA_DIR}/lib"
  23981. else
  23982. pbxlibdir="-L${LUA_DIR}"
  23983. fi
  23984. fi
  23985. pbxfuncname="luaL_newstate"
  23986. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  23987. AST_LUA_FOUND=yes
  23988. else
  23989. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  23990. CFLAGS="${CFLAGS} "
  23991. as_ac_Lib=`$as_echo "ac_cv_lib_lua5.1_${pbxfuncname}" | $as_tr_sh`
  23992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua5.1" >&5
  23993. $as_echo_n "checking for ${pbxfuncname} in -llua5.1... " >&6; }
  23994. if eval \${$as_ac_Lib+:} false; then :
  23995. $as_echo_n "(cached) " >&6
  23996. else
  23997. ac_check_lib_save_LIBS=$LIBS
  23998. LIBS="-llua5.1 ${pbxlibdir} -lm $LIBS"
  23999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24000. /* end confdefs.h. */
  24001. /* Override any GCC internal prototype to avoid an error.
  24002. Use char because int might match the return type of a GCC
  24003. builtin and then its argument prototype would still apply. */
  24004. #ifdef __cplusplus
  24005. extern "C"
  24006. #endif
  24007. char ${pbxfuncname} ();
  24008. int
  24009. main ()
  24010. {
  24011. return ${pbxfuncname} ();
  24012. ;
  24013. return 0;
  24014. }
  24015. _ACEOF
  24016. if ac_fn_c_try_link "$LINENO"; then :
  24017. eval "$as_ac_Lib=yes"
  24018. else
  24019. eval "$as_ac_Lib=no"
  24020. fi
  24021. rm -f core conftest.err conftest.$ac_objext \
  24022. conftest$ac_exeext conftest.$ac_ext
  24023. LIBS=$ac_check_lib_save_LIBS
  24024. fi
  24025. eval ac_res=\$$as_ac_Lib
  24026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24027. $as_echo "$ac_res" >&6; }
  24028. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24029. AST_LUA_FOUND=yes
  24030. else
  24031. AST_LUA_FOUND=no
  24032. fi
  24033. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24034. fi
  24035. # now check for the header.
  24036. if test "${AST_LUA_FOUND}" = "yes"; then
  24037. LUA_LIB="${pbxlibdir} -llua5.1 -lm"
  24038. # if --with-LUA=DIR has been specified, use it.
  24039. if test "x${LUA_DIR}" != "x"; then
  24040. LUA_INCLUDE="-I${LUA_DIR}/include"
  24041. fi
  24042. LUA_INCLUDE="${LUA_INCLUDE} "
  24043. if test "xlua5.1/lua.h" = "x" ; then # no header, assume found
  24044. LUA_HEADER_FOUND="1"
  24045. else # check for the header
  24046. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24047. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  24048. ac_fn_c_check_header_mongrel "$LINENO" "lua5.1/lua.h" "ac_cv_header_lua5_1_lua_h" "$ac_includes_default"
  24049. if test "x$ac_cv_header_lua5_1_lua_h" = xyes; then :
  24050. LUA_HEADER_FOUND=1
  24051. else
  24052. LUA_HEADER_FOUND=0
  24053. fi
  24054. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24055. fi
  24056. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  24057. LUA_LIB=""
  24058. LUA_INCLUDE=""
  24059. else
  24060. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24061. LUA_LIB=""
  24062. fi
  24063. PBX_LUA=1
  24064. cat >>confdefs.h <<_ACEOF
  24065. #define HAVE_LUA 1
  24066. _ACEOF
  24067. fi
  24068. fi
  24069. fi
  24070. if test "x${PBX_LUA}" = "x1" ; then
  24071. if test x"${LUA_DIR}" = x; then
  24072. LUA_INCLUDE="${LUA_INCLUDE} -I/usr/include/lua5.1"
  24073. else
  24074. LUA_INCLUDE="${LUA_INCLUDE} -I${LUA_DIR}/lua5.1"
  24075. fi
  24076. fi
  24077. # Some distributions (like SuSE) remove the 5.1 suffix.
  24078. if test "x${PBX_LUA}" != "x1" -a "${USE_LUA}" != "no"; then
  24079. pbxlibdir=""
  24080. # if --with-LUA=DIR has been specified, use it.
  24081. if test "x${LUA_DIR}" != "x"; then
  24082. if test -d ${LUA_DIR}/lib; then
  24083. pbxlibdir="-L${LUA_DIR}/lib"
  24084. else
  24085. pbxlibdir="-L${LUA_DIR}"
  24086. fi
  24087. fi
  24088. pbxfuncname="luaL_openlib"
  24089. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24090. AST_LUA_FOUND=yes
  24091. else
  24092. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24093. CFLAGS="${CFLAGS} "
  24094. as_ac_Lib=`$as_echo "ac_cv_lib_lua_${pbxfuncname}" | $as_tr_sh`
  24095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -llua" >&5
  24096. $as_echo_n "checking for ${pbxfuncname} in -llua... " >&6; }
  24097. if eval \${$as_ac_Lib+:} false; then :
  24098. $as_echo_n "(cached) " >&6
  24099. else
  24100. ac_check_lib_save_LIBS=$LIBS
  24101. LIBS="-llua ${pbxlibdir} -lm $LIBS"
  24102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24103. /* end confdefs.h. */
  24104. /* Override any GCC internal prototype to avoid an error.
  24105. Use char because int might match the return type of a GCC
  24106. builtin and then its argument prototype would still apply. */
  24107. #ifdef __cplusplus
  24108. extern "C"
  24109. #endif
  24110. char ${pbxfuncname} ();
  24111. int
  24112. main ()
  24113. {
  24114. return ${pbxfuncname} ();
  24115. ;
  24116. return 0;
  24117. }
  24118. _ACEOF
  24119. if ac_fn_c_try_link "$LINENO"; then :
  24120. eval "$as_ac_Lib=yes"
  24121. else
  24122. eval "$as_ac_Lib=no"
  24123. fi
  24124. rm -f core conftest.err conftest.$ac_objext \
  24125. conftest$ac_exeext conftest.$ac_ext
  24126. LIBS=$ac_check_lib_save_LIBS
  24127. fi
  24128. eval ac_res=\$$as_ac_Lib
  24129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24130. $as_echo "$ac_res" >&6; }
  24131. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24132. AST_LUA_FOUND=yes
  24133. else
  24134. AST_LUA_FOUND=no
  24135. fi
  24136. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24137. fi
  24138. # now check for the header.
  24139. if test "${AST_LUA_FOUND}" = "yes"; then
  24140. LUA_LIB="${pbxlibdir} -llua -lm"
  24141. # if --with-LUA=DIR has been specified, use it.
  24142. if test "x${LUA_DIR}" != "x"; then
  24143. LUA_INCLUDE="-I${LUA_DIR}/include"
  24144. fi
  24145. LUA_INCLUDE="${LUA_INCLUDE} "
  24146. if test "xlua.h" = "x" ; then # no header, assume found
  24147. LUA_HEADER_FOUND="1"
  24148. else # check for the header
  24149. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24150. CPPFLAGS="${CPPFLAGS} ${LUA_INCLUDE}"
  24151. ac_fn_c_check_header_mongrel "$LINENO" "lua.h" "ac_cv_header_lua_h" "$ac_includes_default"
  24152. if test "x$ac_cv_header_lua_h" = xyes; then :
  24153. LUA_HEADER_FOUND=1
  24154. else
  24155. LUA_HEADER_FOUND=0
  24156. fi
  24157. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24158. fi
  24159. if test "x${LUA_HEADER_FOUND}" = "x0" ; then
  24160. LUA_LIB=""
  24161. LUA_INCLUDE=""
  24162. else
  24163. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24164. LUA_LIB=""
  24165. fi
  24166. PBX_LUA=1
  24167. cat >>confdefs.h <<_ACEOF
  24168. #define HAVE_LUA 1
  24169. _ACEOF
  24170. fi
  24171. fi
  24172. fi
  24173. # Accept either RADIUS client library, their APIs are fully compatible,
  24174. # just different header filenames and different SONAMEs
  24175. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  24176. pbxlibdir=""
  24177. # if --with-RADIUS=DIR has been specified, use it.
  24178. if test "x${RADIUS_DIR}" != "x"; then
  24179. if test -d ${RADIUS_DIR}/lib; then
  24180. pbxlibdir="-L${RADIUS_DIR}/lib"
  24181. else
  24182. pbxlibdir="-L${RADIUS_DIR}"
  24183. fi
  24184. fi
  24185. pbxfuncname="rc_read_config"
  24186. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24187. AST_RADIUS_FOUND=yes
  24188. else
  24189. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24190. CFLAGS="${CFLAGS} "
  24191. as_ac_Lib=`$as_echo "ac_cv_lib_freeradius-client_${pbxfuncname}" | $as_tr_sh`
  24192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lfreeradius-client" >&5
  24193. $as_echo_n "checking for ${pbxfuncname} in -lfreeradius-client... " >&6; }
  24194. if eval \${$as_ac_Lib+:} false; then :
  24195. $as_echo_n "(cached) " >&6
  24196. else
  24197. ac_check_lib_save_LIBS=$LIBS
  24198. LIBS="-lfreeradius-client ${pbxlibdir} $LIBS"
  24199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24200. /* end confdefs.h. */
  24201. /* Override any GCC internal prototype to avoid an error.
  24202. Use char because int might match the return type of a GCC
  24203. builtin and then its argument prototype would still apply. */
  24204. #ifdef __cplusplus
  24205. extern "C"
  24206. #endif
  24207. char ${pbxfuncname} ();
  24208. int
  24209. main ()
  24210. {
  24211. return ${pbxfuncname} ();
  24212. ;
  24213. return 0;
  24214. }
  24215. _ACEOF
  24216. if ac_fn_c_try_link "$LINENO"; then :
  24217. eval "$as_ac_Lib=yes"
  24218. else
  24219. eval "$as_ac_Lib=no"
  24220. fi
  24221. rm -f core conftest.err conftest.$ac_objext \
  24222. conftest$ac_exeext conftest.$ac_ext
  24223. LIBS=$ac_check_lib_save_LIBS
  24224. fi
  24225. eval ac_res=\$$as_ac_Lib
  24226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24227. $as_echo "$ac_res" >&6; }
  24228. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24229. AST_RADIUS_FOUND=yes
  24230. else
  24231. AST_RADIUS_FOUND=no
  24232. fi
  24233. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24234. fi
  24235. # now check for the header.
  24236. if test "${AST_RADIUS_FOUND}" = "yes"; then
  24237. RADIUS_LIB="${pbxlibdir} -lfreeradius-client "
  24238. # if --with-RADIUS=DIR has been specified, use it.
  24239. if test "x${RADIUS_DIR}" != "x"; then
  24240. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  24241. fi
  24242. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  24243. if test "xfreeradius-client.h" = "x" ; then # no header, assume found
  24244. RADIUS_HEADER_FOUND="1"
  24245. else # check for the header
  24246. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24247. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  24248. ac_fn_c_check_header_mongrel "$LINENO" "freeradius-client.h" "ac_cv_header_freeradius_client_h" "$ac_includes_default"
  24249. if test "x$ac_cv_header_freeradius_client_h" = xyes; then :
  24250. RADIUS_HEADER_FOUND=1
  24251. else
  24252. RADIUS_HEADER_FOUND=0
  24253. fi
  24254. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24255. fi
  24256. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  24257. RADIUS_LIB=""
  24258. RADIUS_INCLUDE=""
  24259. else
  24260. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24261. RADIUS_LIB=""
  24262. fi
  24263. PBX_RADIUS=1
  24264. cat >>confdefs.h <<_ACEOF
  24265. #define HAVE_RADIUS 1
  24266. _ACEOF
  24267. fi
  24268. fi
  24269. fi
  24270. if test "x${PBX_RADIUS}" = "x1"; then
  24271. $as_echo "#define FREERADIUS_CLIENT /**/" >>confdefs.h
  24272. else
  24273. if test "x${PBX_RADIUS}" != "x1" -a "${USE_RADIUS}" != "no"; then
  24274. pbxlibdir=""
  24275. # if --with-RADIUS=DIR has been specified, use it.
  24276. if test "x${RADIUS_DIR}" != "x"; then
  24277. if test -d ${RADIUS_DIR}/lib; then
  24278. pbxlibdir="-L${RADIUS_DIR}/lib"
  24279. else
  24280. pbxlibdir="-L${RADIUS_DIR}"
  24281. fi
  24282. fi
  24283. pbxfuncname="rc_read_config"
  24284. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24285. AST_RADIUS_FOUND=yes
  24286. else
  24287. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24288. CFLAGS="${CFLAGS} "
  24289. as_ac_Lib=`$as_echo "ac_cv_lib_radiusclient-ng_${pbxfuncname}" | $as_tr_sh`
  24290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lradiusclient-ng" >&5
  24291. $as_echo_n "checking for ${pbxfuncname} in -lradiusclient-ng... " >&6; }
  24292. if eval \${$as_ac_Lib+:} false; then :
  24293. $as_echo_n "(cached) " >&6
  24294. else
  24295. ac_check_lib_save_LIBS=$LIBS
  24296. LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
  24297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24298. /* end confdefs.h. */
  24299. /* Override any GCC internal prototype to avoid an error.
  24300. Use char because int might match the return type of a GCC
  24301. builtin and then its argument prototype would still apply. */
  24302. #ifdef __cplusplus
  24303. extern "C"
  24304. #endif
  24305. char ${pbxfuncname} ();
  24306. int
  24307. main ()
  24308. {
  24309. return ${pbxfuncname} ();
  24310. ;
  24311. return 0;
  24312. }
  24313. _ACEOF
  24314. if ac_fn_c_try_link "$LINENO"; then :
  24315. eval "$as_ac_Lib=yes"
  24316. else
  24317. eval "$as_ac_Lib=no"
  24318. fi
  24319. rm -f core conftest.err conftest.$ac_objext \
  24320. conftest$ac_exeext conftest.$ac_ext
  24321. LIBS=$ac_check_lib_save_LIBS
  24322. fi
  24323. eval ac_res=\$$as_ac_Lib
  24324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24325. $as_echo "$ac_res" >&6; }
  24326. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24327. AST_RADIUS_FOUND=yes
  24328. else
  24329. AST_RADIUS_FOUND=no
  24330. fi
  24331. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24332. fi
  24333. # now check for the header.
  24334. if test "${AST_RADIUS_FOUND}" = "yes"; then
  24335. RADIUS_LIB="${pbxlibdir} -lradiusclient-ng "
  24336. # if --with-RADIUS=DIR has been specified, use it.
  24337. if test "x${RADIUS_DIR}" != "x"; then
  24338. RADIUS_INCLUDE="-I${RADIUS_DIR}/include"
  24339. fi
  24340. RADIUS_INCLUDE="${RADIUS_INCLUDE} "
  24341. if test "xradiusclient-ng.h" = "x" ; then # no header, assume found
  24342. RADIUS_HEADER_FOUND="1"
  24343. else # check for the header
  24344. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24345. CPPFLAGS="${CPPFLAGS} ${RADIUS_INCLUDE}"
  24346. ac_fn_c_check_header_mongrel "$LINENO" "radiusclient-ng.h" "ac_cv_header_radiusclient_ng_h" "$ac_includes_default"
  24347. if test "x$ac_cv_header_radiusclient_ng_h" = xyes; then :
  24348. RADIUS_HEADER_FOUND=1
  24349. else
  24350. RADIUS_HEADER_FOUND=0
  24351. fi
  24352. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24353. fi
  24354. if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
  24355. RADIUS_LIB=""
  24356. RADIUS_INCLUDE=""
  24357. else
  24358. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24359. RADIUS_LIB=""
  24360. fi
  24361. PBX_RADIUS=1
  24362. cat >>confdefs.h <<_ACEOF
  24363. #define HAVE_RADIUS 1
  24364. _ACEOF
  24365. fi
  24366. fi
  24367. fi
  24368. fi
  24369. if test "x${PBX_COROSYNC}" != "x1" -a "${USE_COROSYNC}" != "no"; then
  24370. pbxlibdir=""
  24371. # if --with-COROSYNC=DIR has been specified, use it.
  24372. if test "x${COROSYNC_DIR}" != "x"; then
  24373. if test -d ${COROSYNC_DIR}/lib; then
  24374. pbxlibdir="-L${COROSYNC_DIR}/lib"
  24375. else
  24376. pbxlibdir="-L${COROSYNC_DIR}"
  24377. fi
  24378. fi
  24379. pbxfuncname="cpg_join"
  24380. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24381. AST_COROSYNC_FOUND=yes
  24382. else
  24383. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24384. CFLAGS="${CFLAGS} "
  24385. as_ac_Lib=`$as_echo "ac_cv_lib_cpg_${pbxfuncname}" | $as_tr_sh`
  24386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcpg" >&5
  24387. $as_echo_n "checking for ${pbxfuncname} in -lcpg... " >&6; }
  24388. if eval \${$as_ac_Lib+:} false; then :
  24389. $as_echo_n "(cached) " >&6
  24390. else
  24391. ac_check_lib_save_LIBS=$LIBS
  24392. LIBS="-lcpg ${pbxlibdir} -lcfg $LIBS"
  24393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24394. /* end confdefs.h. */
  24395. /* Override any GCC internal prototype to avoid an error.
  24396. Use char because int might match the return type of a GCC
  24397. builtin and then its argument prototype would still apply. */
  24398. #ifdef __cplusplus
  24399. extern "C"
  24400. #endif
  24401. char ${pbxfuncname} ();
  24402. int
  24403. main ()
  24404. {
  24405. return ${pbxfuncname} ();
  24406. ;
  24407. return 0;
  24408. }
  24409. _ACEOF
  24410. if ac_fn_c_try_link "$LINENO"; then :
  24411. eval "$as_ac_Lib=yes"
  24412. else
  24413. eval "$as_ac_Lib=no"
  24414. fi
  24415. rm -f core conftest.err conftest.$ac_objext \
  24416. conftest$ac_exeext conftest.$ac_ext
  24417. LIBS=$ac_check_lib_save_LIBS
  24418. fi
  24419. eval ac_res=\$$as_ac_Lib
  24420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24421. $as_echo "$ac_res" >&6; }
  24422. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24423. AST_COROSYNC_FOUND=yes
  24424. else
  24425. AST_COROSYNC_FOUND=no
  24426. fi
  24427. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24428. fi
  24429. # now check for the header.
  24430. if test "${AST_COROSYNC_FOUND}" = "yes"; then
  24431. COROSYNC_LIB="${pbxlibdir} -lcpg -lcfg"
  24432. # if --with-COROSYNC=DIR has been specified, use it.
  24433. if test "x${COROSYNC_DIR}" != "x"; then
  24434. COROSYNC_INCLUDE="-I${COROSYNC_DIR}/include"
  24435. fi
  24436. COROSYNC_INCLUDE="${COROSYNC_INCLUDE} "
  24437. if test "xcorosync/cpg.h" = "x" ; then # no header, assume found
  24438. COROSYNC_HEADER_FOUND="1"
  24439. else # check for the header
  24440. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24441. CPPFLAGS="${CPPFLAGS} ${COROSYNC_INCLUDE}"
  24442. ac_fn_c_check_header_mongrel "$LINENO" "corosync/cpg.h" "ac_cv_header_corosync_cpg_h" "$ac_includes_default"
  24443. if test "x$ac_cv_header_corosync_cpg_h" = xyes; then :
  24444. COROSYNC_HEADER_FOUND=1
  24445. else
  24446. COROSYNC_HEADER_FOUND=0
  24447. fi
  24448. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24449. fi
  24450. if test "x${COROSYNC_HEADER_FOUND}" = "x0" ; then
  24451. COROSYNC_LIB=""
  24452. COROSYNC_INCLUDE=""
  24453. else
  24454. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24455. COROSYNC_LIB=""
  24456. fi
  24457. PBX_COROSYNC=1
  24458. cat >>confdefs.h <<_ACEOF
  24459. #define HAVE_COROSYNC 1
  24460. _ACEOF
  24461. fi
  24462. fi
  24463. fi
  24464. if test "x${PBX_COROSYNC_CFG_STATE_TRACK}" != "x1" -a "${USE_COROSYNC_CFG_STATE_TRACK}" != "no"; then
  24465. pbxlibdir=""
  24466. # if --with-COROSYNC_CFG_STATE_TRACK=DIR has been specified, use it.
  24467. if test "x${COROSYNC_CFG_STATE_TRACK_DIR}" != "x"; then
  24468. if test -d ${COROSYNC_CFG_STATE_TRACK_DIR}/lib; then
  24469. pbxlibdir="-L${COROSYNC_CFG_STATE_TRACK_DIR}/lib"
  24470. else
  24471. pbxlibdir="-L${COROSYNC_CFG_STATE_TRACK_DIR}"
  24472. fi
  24473. fi
  24474. pbxfuncname="corosync_cfg_state_track"
  24475. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24476. AST_COROSYNC_CFG_STATE_TRACK_FOUND=yes
  24477. else
  24478. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24479. CFLAGS="${CFLAGS} "
  24480. as_ac_Lib=`$as_echo "ac_cv_lib_cfg_${pbxfuncname}" | $as_tr_sh`
  24481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcfg" >&5
  24482. $as_echo_n "checking for ${pbxfuncname} in -lcfg... " >&6; }
  24483. if eval \${$as_ac_Lib+:} false; then :
  24484. $as_echo_n "(cached) " >&6
  24485. else
  24486. ac_check_lib_save_LIBS=$LIBS
  24487. LIBS="-lcfg ${pbxlibdir} -lcfg $LIBS"
  24488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24489. /* end confdefs.h. */
  24490. /* Override any GCC internal prototype to avoid an error.
  24491. Use char because int might match the return type of a GCC
  24492. builtin and then its argument prototype would still apply. */
  24493. #ifdef __cplusplus
  24494. extern "C"
  24495. #endif
  24496. char ${pbxfuncname} ();
  24497. int
  24498. main ()
  24499. {
  24500. return ${pbxfuncname} ();
  24501. ;
  24502. return 0;
  24503. }
  24504. _ACEOF
  24505. if ac_fn_c_try_link "$LINENO"; then :
  24506. eval "$as_ac_Lib=yes"
  24507. else
  24508. eval "$as_ac_Lib=no"
  24509. fi
  24510. rm -f core conftest.err conftest.$ac_objext \
  24511. conftest$ac_exeext conftest.$ac_ext
  24512. LIBS=$ac_check_lib_save_LIBS
  24513. fi
  24514. eval ac_res=\$$as_ac_Lib
  24515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24516. $as_echo "$ac_res" >&6; }
  24517. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24518. AST_COROSYNC_CFG_STATE_TRACK_FOUND=yes
  24519. else
  24520. AST_COROSYNC_CFG_STATE_TRACK_FOUND=no
  24521. fi
  24522. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24523. fi
  24524. # now check for the header.
  24525. if test "${AST_COROSYNC_CFG_STATE_TRACK_FOUND}" = "yes"; then
  24526. COROSYNC_CFG_STATE_TRACK_LIB="${pbxlibdir} -lcfg -lcfg"
  24527. # if --with-COROSYNC_CFG_STATE_TRACK=DIR has been specified, use it.
  24528. if test "x${COROSYNC_CFG_STATE_TRACK_DIR}" != "x"; then
  24529. COROSYNC_CFG_STATE_TRACK_INCLUDE="-I${COROSYNC_CFG_STATE_TRACK_DIR}/include"
  24530. fi
  24531. COROSYNC_CFG_STATE_TRACK_INCLUDE="${COROSYNC_CFG_STATE_TRACK_INCLUDE} "
  24532. if test "xcorosync/cfg.h" = "x" ; then # no header, assume found
  24533. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND="1"
  24534. else # check for the header
  24535. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24536. CPPFLAGS="${CPPFLAGS} ${COROSYNC_CFG_STATE_TRACK_INCLUDE}"
  24537. ac_fn_c_check_header_mongrel "$LINENO" "corosync/cfg.h" "ac_cv_header_corosync_cfg_h" "$ac_includes_default"
  24538. if test "x$ac_cv_header_corosync_cfg_h" = xyes; then :
  24539. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND=1
  24540. else
  24541. COROSYNC_CFG_STATE_TRACK_HEADER_FOUND=0
  24542. fi
  24543. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24544. fi
  24545. if test "x${COROSYNC_CFG_STATE_TRACK_HEADER_FOUND}" = "x0" ; then
  24546. COROSYNC_CFG_STATE_TRACK_LIB=""
  24547. COROSYNC_CFG_STATE_TRACK_INCLUDE=""
  24548. else
  24549. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24550. COROSYNC_CFG_STATE_TRACK_LIB=""
  24551. fi
  24552. PBX_COROSYNC_CFG_STATE_TRACK=1
  24553. cat >>confdefs.h <<_ACEOF
  24554. #define HAVE_COROSYNC_CFG_STATE_TRACK 1
  24555. _ACEOF
  24556. fi
  24557. fi
  24558. fi
  24559. if test "x${PBX_SPEEX}" != "x1" -a "${USE_SPEEX}" != "no"; then
  24560. pbxlibdir=""
  24561. # if --with-SPEEX=DIR has been specified, use it.
  24562. if test "x${SPEEX_DIR}" != "x"; then
  24563. if test -d ${SPEEX_DIR}/lib; then
  24564. pbxlibdir="-L${SPEEX_DIR}/lib"
  24565. else
  24566. pbxlibdir="-L${SPEEX_DIR}"
  24567. fi
  24568. fi
  24569. pbxfuncname="speex_encode"
  24570. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24571. AST_SPEEX_FOUND=yes
  24572. else
  24573. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24574. CFLAGS="${CFLAGS} "
  24575. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  24576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeex" >&5
  24577. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  24578. if eval \${$as_ac_Lib+:} false; then :
  24579. $as_echo_n "(cached) " >&6
  24580. else
  24581. ac_check_lib_save_LIBS=$LIBS
  24582. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  24583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24584. /* end confdefs.h. */
  24585. /* Override any GCC internal prototype to avoid an error.
  24586. Use char because int might match the return type of a GCC
  24587. builtin and then its argument prototype would still apply. */
  24588. #ifdef __cplusplus
  24589. extern "C"
  24590. #endif
  24591. char ${pbxfuncname} ();
  24592. int
  24593. main ()
  24594. {
  24595. return ${pbxfuncname} ();
  24596. ;
  24597. return 0;
  24598. }
  24599. _ACEOF
  24600. if ac_fn_c_try_link "$LINENO"; then :
  24601. eval "$as_ac_Lib=yes"
  24602. else
  24603. eval "$as_ac_Lib=no"
  24604. fi
  24605. rm -f core conftest.err conftest.$ac_objext \
  24606. conftest$ac_exeext conftest.$ac_ext
  24607. LIBS=$ac_check_lib_save_LIBS
  24608. fi
  24609. eval ac_res=\$$as_ac_Lib
  24610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24611. $as_echo "$ac_res" >&6; }
  24612. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24613. AST_SPEEX_FOUND=yes
  24614. else
  24615. AST_SPEEX_FOUND=no
  24616. fi
  24617. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24618. fi
  24619. # now check for the header.
  24620. if test "${AST_SPEEX_FOUND}" = "yes"; then
  24621. SPEEX_LIB="${pbxlibdir} -lspeex -lm"
  24622. # if --with-SPEEX=DIR has been specified, use it.
  24623. if test "x${SPEEX_DIR}" != "x"; then
  24624. SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
  24625. fi
  24626. SPEEX_INCLUDE="${SPEEX_INCLUDE} "
  24627. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  24628. SPEEX_HEADER_FOUND="1"
  24629. else # check for the header
  24630. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24631. CPPFLAGS="${CPPFLAGS} ${SPEEX_INCLUDE}"
  24632. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  24633. if test "x$ac_cv_header_speex_speex_h" = xyes; then :
  24634. SPEEX_HEADER_FOUND=1
  24635. else
  24636. SPEEX_HEADER_FOUND=0
  24637. fi
  24638. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24639. fi
  24640. if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
  24641. SPEEX_LIB=""
  24642. SPEEX_INCLUDE=""
  24643. else
  24644. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24645. SPEEX_LIB=""
  24646. fi
  24647. PBX_SPEEX=1
  24648. cat >>confdefs.h <<_ACEOF
  24649. #define HAVE_SPEEX 1
  24650. _ACEOF
  24651. fi
  24652. fi
  24653. fi
  24654. # See if the main speex library contains the preprocess functions
  24655. if test "x${PBX_SPEEX_PREPROCESS}" != "x1" -a "${USE_SPEEX_PREPROCESS}" != "no"; then
  24656. pbxlibdir=""
  24657. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  24658. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  24659. if test -d ${SPEEX_PREPROCESS_DIR}/lib; then
  24660. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}/lib"
  24661. else
  24662. pbxlibdir="-L${SPEEX_PREPROCESS_DIR}"
  24663. fi
  24664. fi
  24665. pbxfuncname="speex_preprocess_ctl"
  24666. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24667. AST_SPEEX_PREPROCESS_FOUND=yes
  24668. else
  24669. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24670. CFLAGS="${CFLAGS} "
  24671. as_ac_Lib=`$as_echo "ac_cv_lib_speex_${pbxfuncname}" | $as_tr_sh`
  24672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeex" >&5
  24673. $as_echo_n "checking for ${pbxfuncname} in -lspeex... " >&6; }
  24674. if eval \${$as_ac_Lib+:} false; then :
  24675. $as_echo_n "(cached) " >&6
  24676. else
  24677. ac_check_lib_save_LIBS=$LIBS
  24678. LIBS="-lspeex ${pbxlibdir} -lm $LIBS"
  24679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24680. /* end confdefs.h. */
  24681. /* Override any GCC internal prototype to avoid an error.
  24682. Use char because int might match the return type of a GCC
  24683. builtin and then its argument prototype would still apply. */
  24684. #ifdef __cplusplus
  24685. extern "C"
  24686. #endif
  24687. char ${pbxfuncname} ();
  24688. int
  24689. main ()
  24690. {
  24691. return ${pbxfuncname} ();
  24692. ;
  24693. return 0;
  24694. }
  24695. _ACEOF
  24696. if ac_fn_c_try_link "$LINENO"; then :
  24697. eval "$as_ac_Lib=yes"
  24698. else
  24699. eval "$as_ac_Lib=no"
  24700. fi
  24701. rm -f core conftest.err conftest.$ac_objext \
  24702. conftest$ac_exeext conftest.$ac_ext
  24703. LIBS=$ac_check_lib_save_LIBS
  24704. fi
  24705. eval ac_res=\$$as_ac_Lib
  24706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24707. $as_echo "$ac_res" >&6; }
  24708. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24709. AST_SPEEX_PREPROCESS_FOUND=yes
  24710. else
  24711. AST_SPEEX_PREPROCESS_FOUND=no
  24712. fi
  24713. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24714. fi
  24715. # now check for the header.
  24716. if test "${AST_SPEEX_PREPROCESS_FOUND}" = "yes"; then
  24717. SPEEX_PREPROCESS_LIB="${pbxlibdir} -lspeex -lm"
  24718. # if --with-SPEEX_PREPROCESS=DIR has been specified, use it.
  24719. if test "x${SPEEX_PREPROCESS_DIR}" != "x"; then
  24720. SPEEX_PREPROCESS_INCLUDE="-I${SPEEX_PREPROCESS_DIR}/include"
  24721. fi
  24722. SPEEX_PREPROCESS_INCLUDE="${SPEEX_PREPROCESS_INCLUDE} "
  24723. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  24724. SPEEX_PREPROCESS_HEADER_FOUND="1"
  24725. else # check for the header
  24726. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24727. CPPFLAGS="${CPPFLAGS} ${SPEEX_PREPROCESS_INCLUDE}"
  24728. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  24729. if test "x$ac_cv_header_speex_speex_h" = xyes; then :
  24730. SPEEX_PREPROCESS_HEADER_FOUND=1
  24731. else
  24732. SPEEX_PREPROCESS_HEADER_FOUND=0
  24733. fi
  24734. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24735. fi
  24736. if test "x${SPEEX_PREPROCESS_HEADER_FOUND}" = "x0" ; then
  24737. SPEEX_PREPROCESS_LIB=""
  24738. SPEEX_PREPROCESS_INCLUDE=""
  24739. else
  24740. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24741. SPEEX_PREPROCESS_LIB=""
  24742. fi
  24743. PBX_SPEEX_PREPROCESS=1
  24744. cat >>confdefs.h <<_ACEOF
  24745. #define HAVE_SPEEX_PREPROCESS 1
  24746. _ACEOF
  24747. fi
  24748. fi
  24749. fi
  24750. if test "${PBX_SPEEX_PREPROCESS}" = 1; then
  24751. PBX_SPEEX_PREPROCESS=1
  24752. fi
  24753. if test "x${PBX_SPEEXDSP}" != "x1" -a "${USE_SPEEXDSP}" != "no"; then
  24754. pbxlibdir=""
  24755. # if --with-SPEEXDSP=DIR has been specified, use it.
  24756. if test "x${SPEEXDSP_DIR}" != "x"; then
  24757. if test -d ${SPEEXDSP_DIR}/lib; then
  24758. pbxlibdir="-L${SPEEXDSP_DIR}/lib"
  24759. else
  24760. pbxlibdir="-L${SPEEXDSP_DIR}"
  24761. fi
  24762. fi
  24763. pbxfuncname="speex_preprocess_ctl"
  24764. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24765. AST_SPEEXDSP_FOUND=yes
  24766. else
  24767. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24768. CFLAGS="${CFLAGS} "
  24769. as_ac_Lib=`$as_echo "ac_cv_lib_speexdsp_${pbxfuncname}" | $as_tr_sh`
  24770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lspeexdsp" >&5
  24771. $as_echo_n "checking for ${pbxfuncname} in -lspeexdsp... " >&6; }
  24772. if eval \${$as_ac_Lib+:} false; then :
  24773. $as_echo_n "(cached) " >&6
  24774. else
  24775. ac_check_lib_save_LIBS=$LIBS
  24776. LIBS="-lspeexdsp ${pbxlibdir} -lm $LIBS"
  24777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24778. /* end confdefs.h. */
  24779. /* Override any GCC internal prototype to avoid an error.
  24780. Use char because int might match the return type of a GCC
  24781. builtin and then its argument prototype would still apply. */
  24782. #ifdef __cplusplus
  24783. extern "C"
  24784. #endif
  24785. char ${pbxfuncname} ();
  24786. int
  24787. main ()
  24788. {
  24789. return ${pbxfuncname} ();
  24790. ;
  24791. return 0;
  24792. }
  24793. _ACEOF
  24794. if ac_fn_c_try_link "$LINENO"; then :
  24795. eval "$as_ac_Lib=yes"
  24796. else
  24797. eval "$as_ac_Lib=no"
  24798. fi
  24799. rm -f core conftest.err conftest.$ac_objext \
  24800. conftest$ac_exeext conftest.$ac_ext
  24801. LIBS=$ac_check_lib_save_LIBS
  24802. fi
  24803. eval ac_res=\$$as_ac_Lib
  24804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24805. $as_echo "$ac_res" >&6; }
  24806. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24807. AST_SPEEXDSP_FOUND=yes
  24808. else
  24809. AST_SPEEXDSP_FOUND=no
  24810. fi
  24811. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24812. fi
  24813. # now check for the header.
  24814. if test "${AST_SPEEXDSP_FOUND}" = "yes"; then
  24815. SPEEXDSP_LIB="${pbxlibdir} -lspeexdsp -lm"
  24816. # if --with-SPEEXDSP=DIR has been specified, use it.
  24817. if test "x${SPEEXDSP_DIR}" != "x"; then
  24818. SPEEXDSP_INCLUDE="-I${SPEEXDSP_DIR}/include"
  24819. fi
  24820. SPEEXDSP_INCLUDE="${SPEEXDSP_INCLUDE} "
  24821. if test "xspeex/speex.h" = "x" ; then # no header, assume found
  24822. SPEEXDSP_HEADER_FOUND="1"
  24823. else # check for the header
  24824. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24825. CPPFLAGS="${CPPFLAGS} ${SPEEXDSP_INCLUDE}"
  24826. ac_fn_c_check_header_mongrel "$LINENO" "speex/speex.h" "ac_cv_header_speex_speex_h" "$ac_includes_default"
  24827. if test "x$ac_cv_header_speex_speex_h" = xyes; then :
  24828. SPEEXDSP_HEADER_FOUND=1
  24829. else
  24830. SPEEXDSP_HEADER_FOUND=0
  24831. fi
  24832. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24833. fi
  24834. if test "x${SPEEXDSP_HEADER_FOUND}" = "x0" ; then
  24835. SPEEXDSP_LIB=""
  24836. SPEEXDSP_INCLUDE=""
  24837. else
  24838. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24839. SPEEXDSP_LIB=""
  24840. fi
  24841. PBX_SPEEXDSP=1
  24842. cat >>confdefs.h <<_ACEOF
  24843. #define HAVE_SPEEXDSP 1
  24844. _ACEOF
  24845. fi
  24846. fi
  24847. fi
  24848. if test "${PBX_SPEEXDSP}" = 1; then
  24849. PBX_SPEEX_PREPROCESS=1
  24850. fi
  24851. if test "x${PBX_SQLITE}" != "x1" -a "${USE_SQLITE}" != "no"; then
  24852. pbxlibdir=""
  24853. # if --with-SQLITE=DIR has been specified, use it.
  24854. if test "x${SQLITE_DIR}" != "x"; then
  24855. if test -d ${SQLITE_DIR}/lib; then
  24856. pbxlibdir="-L${SQLITE_DIR}/lib"
  24857. else
  24858. pbxlibdir="-L${SQLITE_DIR}"
  24859. fi
  24860. fi
  24861. pbxfuncname="sqlite_exec"
  24862. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24863. AST_SQLITE_FOUND=yes
  24864. else
  24865. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24866. CFLAGS="${CFLAGS} "
  24867. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite_${pbxfuncname}" | $as_tr_sh`
  24868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite" >&5
  24869. $as_echo_n "checking for ${pbxfuncname} in -lsqlite... " >&6; }
  24870. if eval \${$as_ac_Lib+:} false; then :
  24871. $as_echo_n "(cached) " >&6
  24872. else
  24873. ac_check_lib_save_LIBS=$LIBS
  24874. LIBS="-lsqlite ${pbxlibdir} $LIBS"
  24875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24876. /* end confdefs.h. */
  24877. /* Override any GCC internal prototype to avoid an error.
  24878. Use char because int might match the return type of a GCC
  24879. builtin and then its argument prototype would still apply. */
  24880. #ifdef __cplusplus
  24881. extern "C"
  24882. #endif
  24883. char ${pbxfuncname} ();
  24884. int
  24885. main ()
  24886. {
  24887. return ${pbxfuncname} ();
  24888. ;
  24889. return 0;
  24890. }
  24891. _ACEOF
  24892. if ac_fn_c_try_link "$LINENO"; then :
  24893. eval "$as_ac_Lib=yes"
  24894. else
  24895. eval "$as_ac_Lib=no"
  24896. fi
  24897. rm -f core conftest.err conftest.$ac_objext \
  24898. conftest$ac_exeext conftest.$ac_ext
  24899. LIBS=$ac_check_lib_save_LIBS
  24900. fi
  24901. eval ac_res=\$$as_ac_Lib
  24902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24903. $as_echo "$ac_res" >&6; }
  24904. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  24905. AST_SQLITE_FOUND=yes
  24906. else
  24907. AST_SQLITE_FOUND=no
  24908. fi
  24909. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  24910. fi
  24911. # now check for the header.
  24912. if test "${AST_SQLITE_FOUND}" = "yes"; then
  24913. SQLITE_LIB="${pbxlibdir} -lsqlite "
  24914. # if --with-SQLITE=DIR has been specified, use it.
  24915. if test "x${SQLITE_DIR}" != "x"; then
  24916. SQLITE_INCLUDE="-I${SQLITE_DIR}/include"
  24917. fi
  24918. SQLITE_INCLUDE="${SQLITE_INCLUDE} "
  24919. if test "xsqlite.h" = "x" ; then # no header, assume found
  24920. SQLITE_HEADER_FOUND="1"
  24921. else # check for the header
  24922. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  24923. CPPFLAGS="${CPPFLAGS} ${SQLITE_INCLUDE}"
  24924. ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default"
  24925. if test "x$ac_cv_header_sqlite_h" = xyes; then :
  24926. SQLITE_HEADER_FOUND=1
  24927. else
  24928. SQLITE_HEADER_FOUND=0
  24929. fi
  24930. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  24931. fi
  24932. if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
  24933. SQLITE_LIB=""
  24934. SQLITE_INCLUDE=""
  24935. else
  24936. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  24937. SQLITE_LIB=""
  24938. fi
  24939. PBX_SQLITE=1
  24940. cat >>confdefs.h <<_ACEOF
  24941. #define HAVE_SQLITE 1
  24942. _ACEOF
  24943. fi
  24944. fi
  24945. fi
  24946. if test "x${PBX_SQLITE3}" != "x1" -a "${USE_SQLITE3}" != "no"; then
  24947. pbxlibdir=""
  24948. # if --with-SQLITE3=DIR has been specified, use it.
  24949. if test "x${SQLITE3_DIR}" != "x"; then
  24950. if test -d ${SQLITE3_DIR}/lib; then
  24951. pbxlibdir="-L${SQLITE3_DIR}/lib"
  24952. else
  24953. pbxlibdir="-L${SQLITE3_DIR}"
  24954. fi
  24955. fi
  24956. pbxfuncname="sqlite3_open"
  24957. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  24958. AST_SQLITE3_FOUND=yes
  24959. else
  24960. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  24961. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  24962. as_ac_Lib=`$as_echo "ac_cv_lib_sqlite3_${pbxfuncname}" | $as_tr_sh`
  24963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsqlite3" >&5
  24964. $as_echo_n "checking for ${pbxfuncname} in -lsqlite3... " >&6; }
  24965. if eval \${$as_ac_Lib+:} false; then :
  24966. $as_echo_n "(cached) " >&6
  24967. else
  24968. ac_check_lib_save_LIBS=$LIBS
  24969. LIBS="-lsqlite3 ${pbxlibdir} ${PTHREAD_LIBS} $LIBS"
  24970. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24971. /* end confdefs.h. */
  24972. /* Override any GCC internal prototype to avoid an error.
  24973. Use char because int might match the return type of a GCC
  24974. builtin and then its argument prototype would still apply. */
  24975. #ifdef __cplusplus
  24976. extern "C"
  24977. #endif
  24978. char ${pbxfuncname} ();
  24979. int
  24980. main ()
  24981. {
  24982. return ${pbxfuncname} ();
  24983. ;
  24984. return 0;
  24985. }
  24986. _ACEOF
  24987. if ac_fn_c_try_link "$LINENO"; then :
  24988. eval "$as_ac_Lib=yes"
  24989. else
  24990. eval "$as_ac_Lib=no"
  24991. fi
  24992. rm -f core conftest.err conftest.$ac_objext \
  24993. conftest$ac_exeext conftest.$ac_ext
  24994. LIBS=$ac_check_lib_save_LIBS
  24995. fi
  24996. eval ac_res=\$$as_ac_Lib
  24997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  24998. $as_echo "$ac_res" >&6; }
  24999. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25000. AST_SQLITE3_FOUND=yes
  25001. else
  25002. AST_SQLITE3_FOUND=no
  25003. fi
  25004. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25005. fi
  25006. # now check for the header.
  25007. if test "${AST_SQLITE3_FOUND}" = "yes"; then
  25008. SQLITE3_LIB="${pbxlibdir} -lsqlite3 ${PTHREAD_LIBS}"
  25009. # if --with-SQLITE3=DIR has been specified, use it.
  25010. if test "x${SQLITE3_DIR}" != "x"; then
  25011. SQLITE3_INCLUDE="-I${SQLITE3_DIR}/include"
  25012. fi
  25013. SQLITE3_INCLUDE="${SQLITE3_INCLUDE} ${PTHREAD_CFLAGS}"
  25014. if test "xsqlite3.h" = "x" ; then # no header, assume found
  25015. SQLITE3_HEADER_FOUND="1"
  25016. else # check for the header
  25017. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25018. CPPFLAGS="${CPPFLAGS} ${SQLITE3_INCLUDE}"
  25019. ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
  25020. if test "x$ac_cv_header_sqlite3_h" = xyes; then :
  25021. SQLITE3_HEADER_FOUND=1
  25022. else
  25023. SQLITE3_HEADER_FOUND=0
  25024. fi
  25025. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25026. fi
  25027. if test "x${SQLITE3_HEADER_FOUND}" = "x0" ; then
  25028. SQLITE3_LIB=""
  25029. SQLITE3_INCLUDE=""
  25030. else
  25031. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25032. SQLITE3_LIB=""
  25033. fi
  25034. PBX_SQLITE3=1
  25035. cat >>confdefs.h <<_ACEOF
  25036. #define HAVE_SQLITE3 1
  25037. _ACEOF
  25038. fi
  25039. fi
  25040. fi
  25041. if test "${PBX_SQLITE3}" != 1; then
  25042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database." >&5
  25043. $as_echo "$as_me: WARNING: *** Asterisk now uses SQLite3 for the internal Asterisk database." >&2;}
  25044. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please install the SQLite3 development package." >&5
  25045. $as_echo "$as_me: WARNING: *** Please install the SQLite3 development package." >&2;}
  25046. exit 1
  25047. fi
  25048. # Find crypt support
  25049. # * -lcrypt on *NIX
  25050. # * in libsystem on OS X
  25051. if test "x${PBX_LIBCRYPT}" != "x1" -a "${USE_LIBCRYPT}" != "no"; then
  25052. pbxlibdir=""
  25053. # if --with-LIBCRYPT=DIR has been specified, use it.
  25054. if test "x${LIBCRYPT_DIR}" != "x"; then
  25055. if test -d ${LIBCRYPT_DIR}/lib; then
  25056. pbxlibdir="-L${LIBCRYPT_DIR}/lib"
  25057. else
  25058. pbxlibdir="-L${LIBCRYPT_DIR}"
  25059. fi
  25060. fi
  25061. pbxfuncname="crypt"
  25062. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25063. AST_LIBCRYPT_FOUND=yes
  25064. else
  25065. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25066. CFLAGS="${CFLAGS} "
  25067. as_ac_Lib=`$as_echo "ac_cv_lib_crypt_${pbxfuncname}" | $as_tr_sh`
  25068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcrypt" >&5
  25069. $as_echo_n "checking for ${pbxfuncname} in -lcrypt... " >&6; }
  25070. if eval \${$as_ac_Lib+:} false; then :
  25071. $as_echo_n "(cached) " >&6
  25072. else
  25073. ac_check_lib_save_LIBS=$LIBS
  25074. LIBS="-lcrypt ${pbxlibdir} $LIBS"
  25075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25076. /* end confdefs.h. */
  25077. /* Override any GCC internal prototype to avoid an error.
  25078. Use char because int might match the return type of a GCC
  25079. builtin and then its argument prototype would still apply. */
  25080. #ifdef __cplusplus
  25081. extern "C"
  25082. #endif
  25083. char ${pbxfuncname} ();
  25084. int
  25085. main ()
  25086. {
  25087. return ${pbxfuncname} ();
  25088. ;
  25089. return 0;
  25090. }
  25091. _ACEOF
  25092. if ac_fn_c_try_link "$LINENO"; then :
  25093. eval "$as_ac_Lib=yes"
  25094. else
  25095. eval "$as_ac_Lib=no"
  25096. fi
  25097. rm -f core conftest.err conftest.$ac_objext \
  25098. conftest$ac_exeext conftest.$ac_ext
  25099. LIBS=$ac_check_lib_save_LIBS
  25100. fi
  25101. eval ac_res=\$$as_ac_Lib
  25102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25103. $as_echo "$ac_res" >&6; }
  25104. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25105. AST_LIBCRYPT_FOUND=yes
  25106. else
  25107. AST_LIBCRYPT_FOUND=no
  25108. fi
  25109. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25110. fi
  25111. # now check for the header.
  25112. if test "${AST_LIBCRYPT_FOUND}" = "yes"; then
  25113. LIBCRYPT_LIB="${pbxlibdir} -lcrypt "
  25114. # if --with-LIBCRYPT=DIR has been specified, use it.
  25115. if test "x${LIBCRYPT_DIR}" != "x"; then
  25116. LIBCRYPT_INCLUDE="-I${LIBCRYPT_DIR}/include"
  25117. fi
  25118. LIBCRYPT_INCLUDE="${LIBCRYPT_INCLUDE} "
  25119. if test "xcrypt.h" = "x" ; then # no header, assume found
  25120. LIBCRYPT_HEADER_FOUND="1"
  25121. else # check for the header
  25122. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25123. CPPFLAGS="${CPPFLAGS} ${LIBCRYPT_INCLUDE}"
  25124. ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
  25125. if test "x$ac_cv_header_crypt_h" = xyes; then :
  25126. LIBCRYPT_HEADER_FOUND=1
  25127. else
  25128. LIBCRYPT_HEADER_FOUND=0
  25129. fi
  25130. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25131. fi
  25132. if test "x${LIBCRYPT_HEADER_FOUND}" = "x0" ; then
  25133. LIBCRYPT_LIB=""
  25134. LIBCRYPT_INCLUDE=""
  25135. else
  25136. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25137. LIBCRYPT_LIB=""
  25138. fi
  25139. PBX_LIBCRYPT=1
  25140. cat >>confdefs.h <<_ACEOF
  25141. #define HAVE_LIBCRYPT 1
  25142. _ACEOF
  25143. fi
  25144. fi
  25145. fi
  25146. ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
  25147. if test "x$ac_cv_func_crypt" = xyes; then :
  25148. SYSCRYPT=true
  25149. else
  25150. SYSCRYPT=""
  25151. fi
  25152. if test "x$LIBCRYPT_LIB" != "x" ; then
  25153. CRYPT_LIB="$LIBCRYPT_LIB"
  25154. CRYPT_INCLUDE="$LIBCRYPT_INCLUDE"
  25155. $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
  25156. elif test "x$SYSCRYPT" != "x" ; then
  25157. CRYPT_LIB=""
  25158. CRYPT_INCLUDE=""
  25159. $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
  25160. fi
  25161. # Find crypt_r support
  25162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt_r in -lcrypt" >&5
  25163. $as_echo_n "checking for crypt_r in -lcrypt... " >&6; }
  25164. if ${ac_cv_lib_crypt_crypt_r+:} false; then :
  25165. $as_echo_n "(cached) " >&6
  25166. else
  25167. ac_check_lib_save_LIBS=$LIBS
  25168. LIBS="-lcrypt $LIBS"
  25169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25170. /* end confdefs.h. */
  25171. /* Override any GCC internal prototype to avoid an error.
  25172. Use char because int might match the return type of a GCC
  25173. builtin and then its argument prototype would still apply. */
  25174. #ifdef __cplusplus
  25175. extern "C"
  25176. #endif
  25177. char crypt_r ();
  25178. int
  25179. main ()
  25180. {
  25181. return crypt_r ();
  25182. ;
  25183. return 0;
  25184. }
  25185. _ACEOF
  25186. if ac_fn_c_try_link "$LINENO"; then :
  25187. ac_cv_lib_crypt_crypt_r=yes
  25188. else
  25189. ac_cv_lib_crypt_crypt_r=no
  25190. fi
  25191. rm -f core conftest.err conftest.$ac_objext \
  25192. conftest$ac_exeext conftest.$ac_ext
  25193. LIBS=$ac_check_lib_save_LIBS
  25194. fi
  25195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt_r" >&5
  25196. $as_echo "$ac_cv_lib_crypt_crypt_r" >&6; }
  25197. if test "x$ac_cv_lib_crypt_crypt_r" = xyes; then :
  25198. $as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
  25199. fi
  25200. if test "x${PBX_CRYPTO}" != "x1" -a "${USE_CRYPTO}" != "no"; then
  25201. pbxlibdir=""
  25202. # if --with-CRYPTO=DIR has been specified, use it.
  25203. if test "x${CRYPTO_DIR}" != "x"; then
  25204. if test -d ${CRYPTO_DIR}/lib; then
  25205. pbxlibdir="-L${CRYPTO_DIR}/lib"
  25206. else
  25207. pbxlibdir="-L${CRYPTO_DIR}"
  25208. fi
  25209. fi
  25210. pbxfuncname="AES_encrypt"
  25211. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25212. AST_CRYPTO_FOUND=yes
  25213. else
  25214. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25215. CFLAGS="${CFLAGS} "
  25216. as_ac_Lib=`$as_echo "ac_cv_lib_crypto_${pbxfuncname}" | $as_tr_sh`
  25217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lcrypto" >&5
  25218. $as_echo_n "checking for ${pbxfuncname} in -lcrypto... " >&6; }
  25219. if eval \${$as_ac_Lib+:} false; then :
  25220. $as_echo_n "(cached) " >&6
  25221. else
  25222. ac_check_lib_save_LIBS=$LIBS
  25223. LIBS="-lcrypto ${pbxlibdir} $LIBS"
  25224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25225. /* end confdefs.h. */
  25226. /* Override any GCC internal prototype to avoid an error.
  25227. Use char because int might match the return type of a GCC
  25228. builtin and then its argument prototype would still apply. */
  25229. #ifdef __cplusplus
  25230. extern "C"
  25231. #endif
  25232. char ${pbxfuncname} ();
  25233. int
  25234. main ()
  25235. {
  25236. return ${pbxfuncname} ();
  25237. ;
  25238. return 0;
  25239. }
  25240. _ACEOF
  25241. if ac_fn_c_try_link "$LINENO"; then :
  25242. eval "$as_ac_Lib=yes"
  25243. else
  25244. eval "$as_ac_Lib=no"
  25245. fi
  25246. rm -f core conftest.err conftest.$ac_objext \
  25247. conftest$ac_exeext conftest.$ac_ext
  25248. LIBS=$ac_check_lib_save_LIBS
  25249. fi
  25250. eval ac_res=\$$as_ac_Lib
  25251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25252. $as_echo "$ac_res" >&6; }
  25253. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25254. AST_CRYPTO_FOUND=yes
  25255. else
  25256. AST_CRYPTO_FOUND=no
  25257. fi
  25258. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25259. fi
  25260. # now check for the header.
  25261. if test "${AST_CRYPTO_FOUND}" = "yes"; then
  25262. CRYPTO_LIB="${pbxlibdir} -lcrypto "
  25263. # if --with-CRYPTO=DIR has been specified, use it.
  25264. if test "x${CRYPTO_DIR}" != "x"; then
  25265. CRYPTO_INCLUDE="-I${CRYPTO_DIR}/include"
  25266. fi
  25267. CRYPTO_INCLUDE="${CRYPTO_INCLUDE} "
  25268. if test "xopenssl/aes.h" = "x" ; then # no header, assume found
  25269. CRYPTO_HEADER_FOUND="1"
  25270. else # check for the header
  25271. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25272. CPPFLAGS="${CPPFLAGS} ${CRYPTO_INCLUDE}"
  25273. ac_fn_c_check_header_mongrel "$LINENO" "openssl/aes.h" "ac_cv_header_openssl_aes_h" "$ac_includes_default"
  25274. if test "x$ac_cv_header_openssl_aes_h" = xyes; then :
  25275. CRYPTO_HEADER_FOUND=1
  25276. else
  25277. CRYPTO_HEADER_FOUND=0
  25278. fi
  25279. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25280. fi
  25281. if test "x${CRYPTO_HEADER_FOUND}" = "x0" ; then
  25282. CRYPTO_LIB=""
  25283. CRYPTO_INCLUDE=""
  25284. else
  25285. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25286. CRYPTO_LIB=""
  25287. fi
  25288. PBX_CRYPTO=1
  25289. cat >>confdefs.h <<_ACEOF
  25290. #define HAVE_CRYPTO 1
  25291. _ACEOF
  25292. fi
  25293. fi
  25294. fi
  25295. if test "$PBX_CRYPTO" = "1";
  25296. then
  25297. if test "x${PBX_OPENSSL}" != "x1" -a "${USE_OPENSSL}" != "no"; then
  25298. pbxlibdir=""
  25299. # if --with-OPENSSL=DIR has been specified, use it.
  25300. if test "x${OPENSSL_DIR}" != "x"; then
  25301. if test -d ${OPENSSL_DIR}/lib; then
  25302. pbxlibdir="-L${OPENSSL_DIR}/lib"
  25303. else
  25304. pbxlibdir="-L${OPENSSL_DIR}"
  25305. fi
  25306. fi
  25307. pbxfuncname="SSL_connect"
  25308. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25309. AST_OPENSSL_FOUND=yes
  25310. else
  25311. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25312. CFLAGS="${CFLAGS} "
  25313. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  25314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
  25315. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  25316. if eval \${$as_ac_Lib+:} false; then :
  25317. $as_echo_n "(cached) " >&6
  25318. else
  25319. ac_check_lib_save_LIBS=$LIBS
  25320. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  25321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25322. /* end confdefs.h. */
  25323. /* Override any GCC internal prototype to avoid an error.
  25324. Use char because int might match the return type of a GCC
  25325. builtin and then its argument prototype would still apply. */
  25326. #ifdef __cplusplus
  25327. extern "C"
  25328. #endif
  25329. char ${pbxfuncname} ();
  25330. int
  25331. main ()
  25332. {
  25333. return ${pbxfuncname} ();
  25334. ;
  25335. return 0;
  25336. }
  25337. _ACEOF
  25338. if ac_fn_c_try_link "$LINENO"; then :
  25339. eval "$as_ac_Lib=yes"
  25340. else
  25341. eval "$as_ac_Lib=no"
  25342. fi
  25343. rm -f core conftest.err conftest.$ac_objext \
  25344. conftest$ac_exeext conftest.$ac_ext
  25345. LIBS=$ac_check_lib_save_LIBS
  25346. fi
  25347. eval ac_res=\$$as_ac_Lib
  25348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25349. $as_echo "$ac_res" >&6; }
  25350. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25351. AST_OPENSSL_FOUND=yes
  25352. else
  25353. AST_OPENSSL_FOUND=no
  25354. fi
  25355. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25356. fi
  25357. # now check for the header.
  25358. if test "${AST_OPENSSL_FOUND}" = "yes"; then
  25359. OPENSSL_LIB="${pbxlibdir} -lssl -lcrypto"
  25360. # if --with-OPENSSL=DIR has been specified, use it.
  25361. if test "x${OPENSSL_DIR}" != "x"; then
  25362. OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
  25363. fi
  25364. OPENSSL_INCLUDE="${OPENSSL_INCLUDE} "
  25365. if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
  25366. OPENSSL_HEADER_FOUND="1"
  25367. else # check for the header
  25368. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25369. CPPFLAGS="${CPPFLAGS} ${OPENSSL_INCLUDE}"
  25370. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  25371. if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
  25372. OPENSSL_HEADER_FOUND=1
  25373. else
  25374. OPENSSL_HEADER_FOUND=0
  25375. fi
  25376. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25377. fi
  25378. if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
  25379. OPENSSL_LIB=""
  25380. OPENSSL_INCLUDE=""
  25381. else
  25382. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25383. OPENSSL_LIB=""
  25384. fi
  25385. PBX_OPENSSL=1
  25386. cat >>confdefs.h <<_ACEOF
  25387. #define HAVE_OPENSSL 1
  25388. _ACEOF
  25389. fi
  25390. fi
  25391. fi
  25392. fi
  25393. if test "$PBX_OPENSSL" = "1";
  25394. then
  25395. # if OSPTK has not been checked and is not excluded
  25396. if test "x${PBX_OSPTK}" != "x1" -a "${USE_OSPTK}" != "no"; then
  25397. # if --with-osptk=DIR has been specified, use it.
  25398. if test "x${OSPTK_DIR}" != "x"; then
  25399. osptk_cflags="-I${OSPTK_DIR}/include"
  25400. osptk_ldflags="-L${OSPTK_DIR}/lib"
  25401. else
  25402. osptk_cflags=""
  25403. osptk_ldflags=""
  25404. fi
  25405. # check for the header
  25406. osptk_saved_cppflags="${CPPFLAGS}"
  25407. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  25408. ac_fn_c_check_header_mongrel "$LINENO" "osp/osp.h" "ac_cv_header_osp_osp_h" "$ac_includes_default"
  25409. if test "x$ac_cv_header_osp_osp_h" = xyes; then :
  25410. osptk_header_found=yes
  25411. else
  25412. osptk_header_found=no
  25413. fi
  25414. CPPFLAGS="${osptk_saved_cppflags}"
  25415. # check for the library
  25416. if test "${osptk_header_found}" = "yes"; then
  25417. osptk_extralibs="-lssl -lcrypto"
  25418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSPPInit in -losptk" >&5
  25419. $as_echo_n "checking for OSPPInit in -losptk... " >&6; }
  25420. if ${ac_cv_lib_osptk_OSPPInit+:} false; then :
  25421. $as_echo_n "(cached) " >&6
  25422. else
  25423. ac_check_lib_save_LIBS=$LIBS
  25424. LIBS="-losptk ${osptk_ldflags} ${osptk_extralibs} $LIBS"
  25425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25426. /* end confdefs.h. */
  25427. /* Override any GCC internal prototype to avoid an error.
  25428. Use char because int might match the return type of a GCC
  25429. builtin and then its argument prototype would still apply. */
  25430. #ifdef __cplusplus
  25431. extern "C"
  25432. #endif
  25433. char OSPPInit ();
  25434. int
  25435. main ()
  25436. {
  25437. return OSPPInit ();
  25438. ;
  25439. return 0;
  25440. }
  25441. _ACEOF
  25442. if ac_fn_c_try_link "$LINENO"; then :
  25443. ac_cv_lib_osptk_OSPPInit=yes
  25444. else
  25445. ac_cv_lib_osptk_OSPPInit=no
  25446. fi
  25447. rm -f core conftest.err conftest.$ac_objext \
  25448. conftest$ac_exeext conftest.$ac_ext
  25449. LIBS=$ac_check_lib_save_LIBS
  25450. fi
  25451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osptk_OSPPInit" >&5
  25452. $as_echo "$ac_cv_lib_osptk_OSPPInit" >&6; }
  25453. if test "x$ac_cv_lib_osptk_OSPPInit" = xyes; then :
  25454. osptk_library_found=yes
  25455. else
  25456. osptk_library_found=no
  25457. fi
  25458. # check OSP Toolkit version
  25459. if test "${osptk_library_found}" = "yes"; then
  25460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OSP Toolkit version is compatible with app_osplookup" >&5
  25461. $as_echo_n "checking if OSP Toolkit version is compatible with app_osplookup... " >&6; }
  25462. osptk_saved_cppflags="${CPPFLAGS}"
  25463. CPPFLAGS="${CPPFLAGS} ${osptk_cflags}"
  25464. if test "$cross_compiling" = yes; then :
  25465. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25466. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25467. as_fn_error $? "cannot run test program while cross compiling
  25468. See \`config.log' for more details" "$LINENO" 5; }
  25469. else
  25470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25471. /* end confdefs.h. */
  25472. #include <osp/osp.h>
  25473. int main(void) {
  25474. int ver = OSP_CLIENT_TOOLKIT_VERSION_MAJOR * 10000 + OSP_CLIENT_TOOLKIT_VERSION_MINOR * 100 + OSP_CLIENT_TOOLKIT_VERSION_BUGFIX;
  25475. int req = 4 * 10000 + 0 * 100 + 0;
  25476. return (ver < req) ? 1 : 0;
  25477. }
  25478. _ACEOF
  25479. if ac_fn_c_try_run "$LINENO"; then :
  25480. osptk_compatible=yes
  25481. else
  25482. osptk_compatible=no
  25483. fi
  25484. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25485. conftest.$ac_objext conftest.beam conftest.$ac_ext
  25486. fi
  25487. CPPFLAGS="${osptk_saved_cppflags}"
  25488. if test "${osptk_compatible}" = "yes"; then
  25489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25490. $as_echo "yes" >&6; }
  25491. PBX_OSPTK=1
  25492. OSPTK_INCLUDE="${osptk_cflags}"
  25493. OSPTK_LIB="${osptk_ldflags} -losptk ${osptk_extralibs}"
  25494. cat >>confdefs.h <<_ACEOF
  25495. #define HAVE_OSPTK 1
  25496. _ACEOF
  25497. else
  25498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25499. $as_echo "no" >&6; }
  25500. fi
  25501. fi
  25502. fi
  25503. fi
  25504. if test "x${PBX_OPENSSL_SRTP}" != "x1" -a "${USE_OPENSSL_SRTP}" != "no"; then
  25505. pbxlibdir=""
  25506. # if --with-OPENSSL_SRTP=DIR has been specified, use it.
  25507. if test "x${OPENSSL_SRTP_DIR}" != "x"; then
  25508. if test -d ${OPENSSL_SRTP_DIR}/lib; then
  25509. pbxlibdir="-L${OPENSSL_SRTP_DIR}/lib"
  25510. else
  25511. pbxlibdir="-L${OPENSSL_SRTP_DIR}"
  25512. fi
  25513. fi
  25514. pbxfuncname="SSL_CTX_set_tlsext_use_srtp"
  25515. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25516. AST_OPENSSL_SRTP_FOUND=yes
  25517. else
  25518. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25519. CFLAGS="${CFLAGS} "
  25520. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  25521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
  25522. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  25523. if eval \${$as_ac_Lib+:} false; then :
  25524. $as_echo_n "(cached) " >&6
  25525. else
  25526. ac_check_lib_save_LIBS=$LIBS
  25527. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  25528. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25529. /* end confdefs.h. */
  25530. /* Override any GCC internal prototype to avoid an error.
  25531. Use char because int might match the return type of a GCC
  25532. builtin and then its argument prototype would still apply. */
  25533. #ifdef __cplusplus
  25534. extern "C"
  25535. #endif
  25536. char ${pbxfuncname} ();
  25537. int
  25538. main ()
  25539. {
  25540. return ${pbxfuncname} ();
  25541. ;
  25542. return 0;
  25543. }
  25544. _ACEOF
  25545. if ac_fn_c_try_link "$LINENO"; then :
  25546. eval "$as_ac_Lib=yes"
  25547. else
  25548. eval "$as_ac_Lib=no"
  25549. fi
  25550. rm -f core conftest.err conftest.$ac_objext \
  25551. conftest$ac_exeext conftest.$ac_ext
  25552. LIBS=$ac_check_lib_save_LIBS
  25553. fi
  25554. eval ac_res=\$$as_ac_Lib
  25555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25556. $as_echo "$ac_res" >&6; }
  25557. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25558. AST_OPENSSL_SRTP_FOUND=yes
  25559. else
  25560. AST_OPENSSL_SRTP_FOUND=no
  25561. fi
  25562. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25563. fi
  25564. # now check for the header.
  25565. if test "${AST_OPENSSL_SRTP_FOUND}" = "yes"; then
  25566. OPENSSL_SRTP_LIB="${pbxlibdir} -lssl -lcrypto"
  25567. # if --with-OPENSSL_SRTP=DIR has been specified, use it.
  25568. if test "x${OPENSSL_SRTP_DIR}" != "x"; then
  25569. OPENSSL_SRTP_INCLUDE="-I${OPENSSL_SRTP_DIR}/include"
  25570. fi
  25571. OPENSSL_SRTP_INCLUDE="${OPENSSL_SRTP_INCLUDE} "
  25572. if test "xopenssl/ssl.h" = "x" ; then # no header, assume found
  25573. OPENSSL_SRTP_HEADER_FOUND="1"
  25574. else # check for the header
  25575. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25576. CPPFLAGS="${CPPFLAGS} ${OPENSSL_SRTP_INCLUDE}"
  25577. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
  25578. if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
  25579. OPENSSL_SRTP_HEADER_FOUND=1
  25580. else
  25581. OPENSSL_SRTP_HEADER_FOUND=0
  25582. fi
  25583. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25584. fi
  25585. if test "x${OPENSSL_SRTP_HEADER_FOUND}" = "x0" ; then
  25586. OPENSSL_SRTP_LIB=""
  25587. OPENSSL_SRTP_INCLUDE=""
  25588. else
  25589. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25590. OPENSSL_SRTP_LIB=""
  25591. fi
  25592. PBX_OPENSSL_SRTP=1
  25593. cat >>confdefs.h <<_ACEOF
  25594. #define HAVE_OPENSSL_SRTP 1
  25595. _ACEOF
  25596. fi
  25597. fi
  25598. fi
  25599. fi
  25600. if test "$PBX_OPENSSL" = "1";
  25601. then
  25602. if test "x${PBX_OPENSSL_EC}" != "x1" -a "${USE_OPENSSL_EC}" != "no"; then
  25603. pbxlibdir=""
  25604. # if --with-OPENSSL_EC=DIR has been specified, use it.
  25605. if test "x${OPENSSL_EC_DIR}" != "x"; then
  25606. if test -d ${OPENSSL_EC_DIR}/lib; then
  25607. pbxlibdir="-L${OPENSSL_EC_DIR}/lib"
  25608. else
  25609. pbxlibdir="-L${OPENSSL_EC_DIR}"
  25610. fi
  25611. fi
  25612. pbxfuncname="EC_KEY_new_by_curve_name"
  25613. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25614. AST_OPENSSL_EC_FOUND=yes
  25615. else
  25616. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25617. CFLAGS="${CFLAGS} "
  25618. as_ac_Lib=`$as_echo "ac_cv_lib_ssl_${pbxfuncname}" | $as_tr_sh`
  25619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lssl" >&5
  25620. $as_echo_n "checking for ${pbxfuncname} in -lssl... " >&6; }
  25621. if eval \${$as_ac_Lib+:} false; then :
  25622. $as_echo_n "(cached) " >&6
  25623. else
  25624. ac_check_lib_save_LIBS=$LIBS
  25625. LIBS="-lssl ${pbxlibdir} -lcrypto $LIBS"
  25626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25627. /* end confdefs.h. */
  25628. /* Override any GCC internal prototype to avoid an error.
  25629. Use char because int might match the return type of a GCC
  25630. builtin and then its argument prototype would still apply. */
  25631. #ifdef __cplusplus
  25632. extern "C"
  25633. #endif
  25634. char ${pbxfuncname} ();
  25635. int
  25636. main ()
  25637. {
  25638. return ${pbxfuncname} ();
  25639. ;
  25640. return 0;
  25641. }
  25642. _ACEOF
  25643. if ac_fn_c_try_link "$LINENO"; then :
  25644. eval "$as_ac_Lib=yes"
  25645. else
  25646. eval "$as_ac_Lib=no"
  25647. fi
  25648. rm -f core conftest.err conftest.$ac_objext \
  25649. conftest$ac_exeext conftest.$ac_ext
  25650. LIBS=$ac_check_lib_save_LIBS
  25651. fi
  25652. eval ac_res=\$$as_ac_Lib
  25653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25654. $as_echo "$ac_res" >&6; }
  25655. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25656. AST_OPENSSL_EC_FOUND=yes
  25657. else
  25658. AST_OPENSSL_EC_FOUND=no
  25659. fi
  25660. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25661. fi
  25662. # now check for the header.
  25663. if test "${AST_OPENSSL_EC_FOUND}" = "yes"; then
  25664. OPENSSL_EC_LIB="${pbxlibdir} -lssl -lcrypto"
  25665. # if --with-OPENSSL_EC=DIR has been specified, use it.
  25666. if test "x${OPENSSL_EC_DIR}" != "x"; then
  25667. OPENSSL_EC_INCLUDE="-I${OPENSSL_EC_DIR}/include"
  25668. fi
  25669. OPENSSL_EC_INCLUDE="${OPENSSL_EC_INCLUDE} "
  25670. if test "xopenssl/ec.h" = "x" ; then # no header, assume found
  25671. OPENSSL_EC_HEADER_FOUND="1"
  25672. else # check for the header
  25673. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25674. CPPFLAGS="${CPPFLAGS} ${OPENSSL_EC_INCLUDE}"
  25675. ac_fn_c_check_header_mongrel "$LINENO" "openssl/ec.h" "ac_cv_header_openssl_ec_h" "$ac_includes_default"
  25676. if test "x$ac_cv_header_openssl_ec_h" = xyes; then :
  25677. OPENSSL_EC_HEADER_FOUND=1
  25678. else
  25679. OPENSSL_EC_HEADER_FOUND=0
  25680. fi
  25681. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25682. fi
  25683. if test "x${OPENSSL_EC_HEADER_FOUND}" = "x0" ; then
  25684. OPENSSL_EC_LIB=""
  25685. OPENSSL_EC_INCLUDE=""
  25686. else
  25687. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25688. OPENSSL_EC_LIB=""
  25689. fi
  25690. PBX_OPENSSL_EC=1
  25691. cat >>confdefs.h <<_ACEOF
  25692. #define HAVE_OPENSSL_EC 1
  25693. _ACEOF
  25694. fi
  25695. fi
  25696. fi
  25697. fi
  25698. if test "x${PBX_SRTP}" != "x1" -a "${USE_SRTP}" != "no"; then
  25699. pbxlibdir=""
  25700. # if --with-SRTP=DIR has been specified, use it.
  25701. if test "x${SRTP_DIR}" != "x"; then
  25702. if test -d ${SRTP_DIR}/lib; then
  25703. pbxlibdir="-L${SRTP_DIR}/lib"
  25704. else
  25705. pbxlibdir="-L${SRTP_DIR}"
  25706. fi
  25707. fi
  25708. pbxfuncname="srtp_init"
  25709. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25710. AST_SRTP_FOUND=yes
  25711. else
  25712. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25713. CFLAGS="${CFLAGS} "
  25714. as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
  25715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsrtp" >&5
  25716. $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
  25717. if eval \${$as_ac_Lib+:} false; then :
  25718. $as_echo_n "(cached) " >&6
  25719. else
  25720. ac_check_lib_save_LIBS=$LIBS
  25721. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  25722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25723. /* end confdefs.h. */
  25724. /* Override any GCC internal prototype to avoid an error.
  25725. Use char because int might match the return type of a GCC
  25726. builtin and then its argument prototype would still apply. */
  25727. #ifdef __cplusplus
  25728. extern "C"
  25729. #endif
  25730. char ${pbxfuncname} ();
  25731. int
  25732. main ()
  25733. {
  25734. return ${pbxfuncname} ();
  25735. ;
  25736. return 0;
  25737. }
  25738. _ACEOF
  25739. if ac_fn_c_try_link "$LINENO"; then :
  25740. eval "$as_ac_Lib=yes"
  25741. else
  25742. eval "$as_ac_Lib=no"
  25743. fi
  25744. rm -f core conftest.err conftest.$ac_objext \
  25745. conftest$ac_exeext conftest.$ac_ext
  25746. LIBS=$ac_check_lib_save_LIBS
  25747. fi
  25748. eval ac_res=\$$as_ac_Lib
  25749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25750. $as_echo "$ac_res" >&6; }
  25751. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25752. AST_SRTP_FOUND=yes
  25753. else
  25754. AST_SRTP_FOUND=no
  25755. fi
  25756. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25757. fi
  25758. # now check for the header.
  25759. if test "${AST_SRTP_FOUND}" = "yes"; then
  25760. SRTP_LIB="${pbxlibdir} -lsrtp "
  25761. # if --with-SRTP=DIR has been specified, use it.
  25762. if test "x${SRTP_DIR}" != "x"; then
  25763. SRTP_INCLUDE="-I${SRTP_DIR}/include"
  25764. fi
  25765. SRTP_INCLUDE="${SRTP_INCLUDE} "
  25766. if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
  25767. SRTP_HEADER_FOUND="1"
  25768. else # check for the header
  25769. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25770. CPPFLAGS="${CPPFLAGS} ${SRTP_INCLUDE}"
  25771. ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
  25772. if test "x$ac_cv_header_srtp_srtp_h" = xyes; then :
  25773. SRTP_HEADER_FOUND=1
  25774. else
  25775. SRTP_HEADER_FOUND=0
  25776. fi
  25777. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25778. fi
  25779. if test "x${SRTP_HEADER_FOUND}" = "x0" ; then
  25780. SRTP_LIB=""
  25781. SRTP_INCLUDE=""
  25782. else
  25783. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25784. SRTP_LIB=""
  25785. fi
  25786. PBX_SRTP=1
  25787. cat >>confdefs.h <<_ACEOF
  25788. #define HAVE_SRTP 1
  25789. _ACEOF
  25790. fi
  25791. fi
  25792. fi
  25793. if test "$PBX_SRTP" = "1";
  25794. then
  25795. saved_libs="${LIBS}"
  25796. saved_ldflags="${LDFLAGS}"
  25797. saved_cflags="${CFLAGS}"
  25798. LIBS="${LIBS} ${SRTP_LIB}"
  25799. LDFLAGS="${LDFLAGS} -shared -fPIC"
  25800. CFLAGS="${CFLAGS} ${SRTP_INCLUDE}"
  25801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ability of -lsrtp to be linked in a shared object" >&5
  25802. $as_echo_n "checking for the ability of -lsrtp to be linked in a shared object... " >&6; }
  25803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25804. /* end confdefs.h. */
  25805. #include <srtp/srtp.h>
  25806. int
  25807. main ()
  25808. {
  25809. srtp_init();
  25810. ;
  25811. return 0;
  25812. }
  25813. _ACEOF
  25814. if ac_fn_c_try_link "$LINENO"; then :
  25815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  25816. $as_echo "yes" >&6; }
  25817. else
  25818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25819. $as_echo "no" >&6; }
  25820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  25821. $as_echo "$as_me: WARNING: ***" >&2;}
  25822. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** libsrtp could not be linked as a shared object." >&5
  25823. $as_echo "$as_me: WARNING: *** libsrtp could not be linked as a shared object." >&2;}
  25824. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&5
  25825. $as_echo "$as_me: WARNING: *** Try compiling libsrtp manually. Configure libsrtp" >&2;}
  25826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&5
  25827. $as_echo "$as_me: WARNING: *** with ./configure CFLAGS=-fPIC --prefix=/usr" >&2;}
  25828. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** replacing /usr with the prefix of your choice." >&5
  25829. $as_echo "$as_me: WARNING: *** replacing /usr with the prefix of your choice." >&2;}
  25830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** After re-installing libsrtp" >&5
  25831. $as_echo "$as_me: WARNING: *** After re-installing libsrtp" >&2;}
  25832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** configure script." >&5
  25833. $as_echo "$as_me: WARNING: *** configure script." >&2;}
  25834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
  25835. $as_echo "$as_me: WARNING: ***" >&2;}
  25836. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** If you do not need SRTP support re-run configure" >&5
  25837. $as_echo "$as_me: WARNING: *** If you do not need SRTP support re-run configure" >&2;}
  25838. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** with the --without-srtp option." >&5
  25839. $as_echo "$as_me: WARNING: *** with the --without-srtp option." >&2;}
  25840. exit 1
  25841. fi
  25842. rm -f core conftest.err conftest.$ac_objext \
  25843. conftest$ac_exeext conftest.$ac_ext
  25844. LIBS="${saved_libs}"
  25845. LDFLAGS="${saved_ldflags}"
  25846. CFLAGS="${saved_cflags}"
  25847. fi
  25848. if test "x${PBX_SRTP_SHUTDOWN}" != "x1" -a "${USE_SRTP_SHUTDOWN}" != "no"; then
  25849. pbxlibdir=""
  25850. # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
  25851. if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
  25852. if test -d ${SRTP_SHUTDOWN_DIR}/lib; then
  25853. pbxlibdir="-L${SRTP_SHUTDOWN_DIR}/lib"
  25854. else
  25855. pbxlibdir="-L${SRTP_SHUTDOWN_DIR}"
  25856. fi
  25857. fi
  25858. pbxfuncname="srtp_shutdown"
  25859. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  25860. AST_SRTP_SHUTDOWN_FOUND=yes
  25861. else
  25862. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  25863. CFLAGS="${CFLAGS} "
  25864. as_ac_Lib=`$as_echo "ac_cv_lib_srtp_${pbxfuncname}" | $as_tr_sh`
  25865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsrtp" >&5
  25866. $as_echo_n "checking for ${pbxfuncname} in -lsrtp... " >&6; }
  25867. if eval \${$as_ac_Lib+:} false; then :
  25868. $as_echo_n "(cached) " >&6
  25869. else
  25870. ac_check_lib_save_LIBS=$LIBS
  25871. LIBS="-lsrtp ${pbxlibdir} $LIBS"
  25872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25873. /* end confdefs.h. */
  25874. /* Override any GCC internal prototype to avoid an error.
  25875. Use char because int might match the return type of a GCC
  25876. builtin and then its argument prototype would still apply. */
  25877. #ifdef __cplusplus
  25878. extern "C"
  25879. #endif
  25880. char ${pbxfuncname} ();
  25881. int
  25882. main ()
  25883. {
  25884. return ${pbxfuncname} ();
  25885. ;
  25886. return 0;
  25887. }
  25888. _ACEOF
  25889. if ac_fn_c_try_link "$LINENO"; then :
  25890. eval "$as_ac_Lib=yes"
  25891. else
  25892. eval "$as_ac_Lib=no"
  25893. fi
  25894. rm -f core conftest.err conftest.$ac_objext \
  25895. conftest$ac_exeext conftest.$ac_ext
  25896. LIBS=$ac_check_lib_save_LIBS
  25897. fi
  25898. eval ac_res=\$$as_ac_Lib
  25899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  25900. $as_echo "$ac_res" >&6; }
  25901. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  25902. AST_SRTP_SHUTDOWN_FOUND=yes
  25903. else
  25904. AST_SRTP_SHUTDOWN_FOUND=no
  25905. fi
  25906. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  25907. fi
  25908. # now check for the header.
  25909. if test "${AST_SRTP_SHUTDOWN_FOUND}" = "yes"; then
  25910. SRTP_SHUTDOWN_LIB="${pbxlibdir} -lsrtp "
  25911. # if --with-SRTP_SHUTDOWN=DIR has been specified, use it.
  25912. if test "x${SRTP_SHUTDOWN_DIR}" != "x"; then
  25913. SRTP_SHUTDOWN_INCLUDE="-I${SRTP_SHUTDOWN_DIR}/include"
  25914. fi
  25915. SRTP_SHUTDOWN_INCLUDE="${SRTP_SHUTDOWN_INCLUDE} "
  25916. if test "xsrtp/srtp.h" = "x" ; then # no header, assume found
  25917. SRTP_SHUTDOWN_HEADER_FOUND="1"
  25918. else # check for the header
  25919. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  25920. CPPFLAGS="${CPPFLAGS} ${SRTP_SHUTDOWN_INCLUDE}"
  25921. ac_fn_c_check_header_mongrel "$LINENO" "srtp/srtp.h" "ac_cv_header_srtp_srtp_h" "$ac_includes_default"
  25922. if test "x$ac_cv_header_srtp_srtp_h" = xyes; then :
  25923. SRTP_SHUTDOWN_HEADER_FOUND=1
  25924. else
  25925. SRTP_SHUTDOWN_HEADER_FOUND=0
  25926. fi
  25927. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  25928. fi
  25929. if test "x${SRTP_SHUTDOWN_HEADER_FOUND}" = "x0" ; then
  25930. SRTP_SHUTDOWN_LIB=""
  25931. SRTP_SHUTDOWN_INCLUDE=""
  25932. else
  25933. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  25934. SRTP_SHUTDOWN_LIB=""
  25935. fi
  25936. PBX_SRTP_SHUTDOWN=1
  25937. cat >>confdefs.h <<_ACEOF
  25938. #define HAVE_SRTP_SHUTDOWN 1
  25939. _ACEOF
  25940. fi
  25941. fi
  25942. fi
  25943. for ver in 2.0 2.2 2.4 2.6; do
  25944. if test "x${PBX_GMIME}" != "x1" -a "${USE_GMIME}" != "no"; then
  25945. pkg_failed=no
  25946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMIME" >&5
  25947. $as_echo_n "checking for GMIME... " >&6; }
  25948. if test -n "$GMIME_CFLAGS"; then
  25949. pkg_cv_GMIME_CFLAGS="$GMIME_CFLAGS"
  25950. elif test -n "$PKG_CONFIG"; then
  25951. if test -n "$PKG_CONFIG" && \
  25952. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmime-\$ver\""; } >&5
  25953. ($PKG_CONFIG --exists --print-errors "gmime-$ver") 2>&5
  25954. ac_status=$?
  25955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25956. test $ac_status = 0; }; then
  25957. pkg_cv_GMIME_CFLAGS=`$PKG_CONFIG --cflags "gmime-$ver" 2>/dev/null`
  25958. test "x$?" != "x0" && pkg_failed=yes
  25959. else
  25960. pkg_failed=yes
  25961. fi
  25962. else
  25963. pkg_failed=untried
  25964. fi
  25965. if test -n "$GMIME_LIBS"; then
  25966. pkg_cv_GMIME_LIBS="$GMIME_LIBS"
  25967. elif test -n "$PKG_CONFIG"; then
  25968. if test -n "$PKG_CONFIG" && \
  25969. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmime-\$ver\""; } >&5
  25970. ($PKG_CONFIG --exists --print-errors "gmime-$ver") 2>&5
  25971. ac_status=$?
  25972. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  25973. test $ac_status = 0; }; then
  25974. pkg_cv_GMIME_LIBS=`$PKG_CONFIG --libs "gmime-$ver" 2>/dev/null`
  25975. test "x$?" != "x0" && pkg_failed=yes
  25976. else
  25977. pkg_failed=yes
  25978. fi
  25979. else
  25980. pkg_failed=untried
  25981. fi
  25982. if test $pkg_failed = yes; then
  25983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25984. $as_echo "no" >&6; }
  25985. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  25986. _pkg_short_errors_supported=yes
  25987. else
  25988. _pkg_short_errors_supported=no
  25989. fi
  25990. if test $_pkg_short_errors_supported = yes; then
  25991. GMIME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmime-$ver" 2>&1`
  25992. else
  25993. GMIME_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmime-$ver" 2>&1`
  25994. fi
  25995. # Put the nasty error message in config.log where it belongs
  25996. echo "$GMIME_PKG_ERRORS" >&5
  25997. PBX_GMIME=0
  25998. elif test $pkg_failed = untried; then
  25999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26000. $as_echo "no" >&6; }
  26001. PBX_GMIME=0
  26002. else
  26003. GMIME_CFLAGS=$pkg_cv_GMIME_CFLAGS
  26004. GMIME_LIBS=$pkg_cv_GMIME_LIBS
  26005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26006. $as_echo "yes" >&6; }
  26007. PBX_GMIME=1
  26008. GMIME_INCLUDE="$GMIME_CFLAGS"
  26009. GMIME_LIB="$GMIME_LIBS"
  26010. $as_echo "#define HAVE_GMIME 1" >>confdefs.h
  26011. fi
  26012. fi
  26013. if test "$PBX_GMIME" = 1; then
  26014. break;
  26015. fi
  26016. done
  26017. if test "x${PBX_HOARD}" != "x1" -a "${USE_HOARD}" != "no"; then
  26018. pbxlibdir=""
  26019. # if --with-HOARD=DIR has been specified, use it.
  26020. if test "x${HOARD_DIR}" != "x"; then
  26021. if test -d ${HOARD_DIR}/lib; then
  26022. pbxlibdir="-L${HOARD_DIR}/lib"
  26023. else
  26024. pbxlibdir="-L${HOARD_DIR}"
  26025. fi
  26026. fi
  26027. pbxfuncname="malloc"
  26028. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26029. AST_HOARD_FOUND=yes
  26030. else
  26031. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26032. CFLAGS="${CFLAGS} "
  26033. as_ac_Lib=`$as_echo "ac_cv_lib_hoard_${pbxfuncname}" | $as_tr_sh`
  26034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lhoard" >&5
  26035. $as_echo_n "checking for ${pbxfuncname} in -lhoard... " >&6; }
  26036. if eval \${$as_ac_Lib+:} false; then :
  26037. $as_echo_n "(cached) " >&6
  26038. else
  26039. ac_check_lib_save_LIBS=$LIBS
  26040. LIBS="-lhoard ${pbxlibdir} $LIBS"
  26041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26042. /* end confdefs.h. */
  26043. /* Override any GCC internal prototype to avoid an error.
  26044. Use char because int might match the return type of a GCC
  26045. builtin and then its argument prototype would still apply. */
  26046. #ifdef __cplusplus
  26047. extern "C"
  26048. #endif
  26049. char ${pbxfuncname} ();
  26050. int
  26051. main ()
  26052. {
  26053. return ${pbxfuncname} ();
  26054. ;
  26055. return 0;
  26056. }
  26057. _ACEOF
  26058. if ac_fn_c_try_link "$LINENO"; then :
  26059. eval "$as_ac_Lib=yes"
  26060. else
  26061. eval "$as_ac_Lib=no"
  26062. fi
  26063. rm -f core conftest.err conftest.$ac_objext \
  26064. conftest$ac_exeext conftest.$ac_ext
  26065. LIBS=$ac_check_lib_save_LIBS
  26066. fi
  26067. eval ac_res=\$$as_ac_Lib
  26068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26069. $as_echo "$ac_res" >&6; }
  26070. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26071. AST_HOARD_FOUND=yes
  26072. else
  26073. AST_HOARD_FOUND=no
  26074. fi
  26075. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26076. fi
  26077. # now check for the header.
  26078. if test "${AST_HOARD_FOUND}" = "yes"; then
  26079. HOARD_LIB="${pbxlibdir} -lhoard "
  26080. # if --with-HOARD=DIR has been specified, use it.
  26081. if test "x${HOARD_DIR}" != "x"; then
  26082. HOARD_INCLUDE="-I${HOARD_DIR}/include"
  26083. fi
  26084. HOARD_INCLUDE="${HOARD_INCLUDE} "
  26085. if test "x" = "x" ; then # no header, assume found
  26086. HOARD_HEADER_FOUND="1"
  26087. else # check for the header
  26088. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26089. CPPFLAGS="${CPPFLAGS} ${HOARD_INCLUDE}"
  26090. ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
  26091. if test "x$ac_cv_header_" = xyes; then :
  26092. HOARD_HEADER_FOUND=1
  26093. else
  26094. HOARD_HEADER_FOUND=0
  26095. fi
  26096. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26097. fi
  26098. if test "x${HOARD_HEADER_FOUND}" = "x0" ; then
  26099. HOARD_LIB=""
  26100. HOARD_INCLUDE=""
  26101. else
  26102. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26103. HOARD_LIB=""
  26104. fi
  26105. PBX_HOARD=1
  26106. cat >>confdefs.h <<_ACEOF
  26107. #define HAVE_HOARD 1
  26108. _ACEOF
  26109. fi
  26110. fi
  26111. fi
  26112. if test "x${PBX_FREETDS}" != "x1" -a "${USE_FREETDS}" != "no"; then
  26113. pbxlibdir=""
  26114. # if --with-FREETDS=DIR has been specified, use it.
  26115. if test "x${FREETDS_DIR}" != "x"; then
  26116. if test -d ${FREETDS_DIR}/lib; then
  26117. pbxlibdir="-L${FREETDS_DIR}/lib"
  26118. else
  26119. pbxlibdir="-L${FREETDS_DIR}"
  26120. fi
  26121. fi
  26122. pbxfuncname="dbinit"
  26123. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26124. AST_FREETDS_FOUND=yes
  26125. else
  26126. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26127. CFLAGS="${CFLAGS} "
  26128. as_ac_Lib=`$as_echo "ac_cv_lib_sybdb_${pbxfuncname}" | $as_tr_sh`
  26129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lsybdb" >&5
  26130. $as_echo_n "checking for ${pbxfuncname} in -lsybdb... " >&6; }
  26131. if eval \${$as_ac_Lib+:} false; then :
  26132. $as_echo_n "(cached) " >&6
  26133. else
  26134. ac_check_lib_save_LIBS=$LIBS
  26135. LIBS="-lsybdb ${pbxlibdir} $LIBS"
  26136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26137. /* end confdefs.h. */
  26138. /* Override any GCC internal prototype to avoid an error.
  26139. Use char because int might match the return type of a GCC
  26140. builtin and then its argument prototype would still apply. */
  26141. #ifdef __cplusplus
  26142. extern "C"
  26143. #endif
  26144. char ${pbxfuncname} ();
  26145. int
  26146. main ()
  26147. {
  26148. return ${pbxfuncname} ();
  26149. ;
  26150. return 0;
  26151. }
  26152. _ACEOF
  26153. if ac_fn_c_try_link "$LINENO"; then :
  26154. eval "$as_ac_Lib=yes"
  26155. else
  26156. eval "$as_ac_Lib=no"
  26157. fi
  26158. rm -f core conftest.err conftest.$ac_objext \
  26159. conftest$ac_exeext conftest.$ac_ext
  26160. LIBS=$ac_check_lib_save_LIBS
  26161. fi
  26162. eval ac_res=\$$as_ac_Lib
  26163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26164. $as_echo "$ac_res" >&6; }
  26165. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26166. AST_FREETDS_FOUND=yes
  26167. else
  26168. AST_FREETDS_FOUND=no
  26169. fi
  26170. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26171. fi
  26172. # now check for the header.
  26173. if test "${AST_FREETDS_FOUND}" = "yes"; then
  26174. FREETDS_LIB="${pbxlibdir} -lsybdb "
  26175. # if --with-FREETDS=DIR has been specified, use it.
  26176. if test "x${FREETDS_DIR}" != "x"; then
  26177. FREETDS_INCLUDE="-I${FREETDS_DIR}/include"
  26178. fi
  26179. FREETDS_INCLUDE="${FREETDS_INCLUDE} "
  26180. if test "xsybdb.h" = "x" ; then # no header, assume found
  26181. FREETDS_HEADER_FOUND="1"
  26182. else # check for the header
  26183. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26184. CPPFLAGS="${CPPFLAGS} ${FREETDS_INCLUDE}"
  26185. ac_fn_c_check_header_mongrel "$LINENO" "sybdb.h" "ac_cv_header_sybdb_h" "$ac_includes_default"
  26186. if test "x$ac_cv_header_sybdb_h" = xyes; then :
  26187. FREETDS_HEADER_FOUND=1
  26188. else
  26189. FREETDS_HEADER_FOUND=0
  26190. fi
  26191. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26192. fi
  26193. if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
  26194. FREETDS_LIB=""
  26195. FREETDS_INCLUDE=""
  26196. else
  26197. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26198. FREETDS_LIB=""
  26199. fi
  26200. PBX_FREETDS=1
  26201. cat >>confdefs.h <<_ACEOF
  26202. #define HAVE_FREETDS 1
  26203. _ACEOF
  26204. fi
  26205. fi
  26206. fi
  26207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tone_zone_find_by_num in -ltonezone" >&5
  26208. $as_echo_n "checking for tone_zone_find_by_num in -ltonezone... " >&6; }
  26209. if ${ac_cv_lib_tonezone_tone_zone_find_by_num+:} false; then :
  26210. $as_echo_n "(cached) " >&6
  26211. else
  26212. ac_check_lib_save_LIBS=$LIBS
  26213. LIBS="-ltonezone $LIBS"
  26214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26215. /* end confdefs.h. */
  26216. /* Override any GCC internal prototype to avoid an error.
  26217. Use char because int might match the return type of a GCC
  26218. builtin and then its argument prototype would still apply. */
  26219. #ifdef __cplusplus
  26220. extern "C"
  26221. #endif
  26222. char tone_zone_find_by_num ();
  26223. int
  26224. main ()
  26225. {
  26226. return tone_zone_find_by_num ();
  26227. ;
  26228. return 0;
  26229. }
  26230. _ACEOF
  26231. if ac_fn_c_try_link "$LINENO"; then :
  26232. ac_cv_lib_tonezone_tone_zone_find_by_num=yes
  26233. else
  26234. ac_cv_lib_tonezone_tone_zone_find_by_num=no
  26235. fi
  26236. rm -f core conftest.err conftest.$ac_objext \
  26237. conftest$ac_exeext conftest.$ac_ext
  26238. LIBS=$ac_check_lib_save_LIBS
  26239. fi
  26240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tonezone_tone_zone_find_by_num" >&5
  26241. $as_echo "$ac_cv_lib_tonezone_tone_zone_find_by_num" >&6; }
  26242. if test "x$ac_cv_lib_tonezone_tone_zone_find_by_num" = xyes; then :
  26243. tonezone_does_not_need_lm=yes
  26244. else
  26245. tonezone_does_not_need_lm=no
  26246. fi
  26247. if test "${tonezone_does_not_need_lm}" = "no" ; then
  26248. tonezone_extra="-lm"
  26249. fi
  26250. if test "x${PBX_TONEZONE}" != "x1" -a "${USE_TONEZONE}" != "no"; then
  26251. pbxlibdir=""
  26252. # if --with-TONEZONE=DIR has been specified, use it.
  26253. if test "x${TONEZONE_DIR}" != "x"; then
  26254. if test -d ${TONEZONE_DIR}/lib; then
  26255. pbxlibdir="-L${TONEZONE_DIR}/lib"
  26256. else
  26257. pbxlibdir="-L${TONEZONE_DIR}"
  26258. fi
  26259. fi
  26260. pbxfuncname="tone_zone_find"
  26261. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26262. AST_TONEZONE_FOUND=yes
  26263. else
  26264. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26265. CFLAGS="${CFLAGS} "
  26266. as_ac_Lib=`$as_echo "ac_cv_lib_tonezone_${pbxfuncname}" | $as_tr_sh`
  26267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -ltonezone" >&5
  26268. $as_echo_n "checking for ${pbxfuncname} in -ltonezone... " >&6; }
  26269. if eval \${$as_ac_Lib+:} false; then :
  26270. $as_echo_n "(cached) " >&6
  26271. else
  26272. ac_check_lib_save_LIBS=$LIBS
  26273. LIBS="-ltonezone ${pbxlibdir} ${tonezone_extra} ${DAHDI_INCLUDE} $LIBS"
  26274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26275. /* end confdefs.h. */
  26276. /* Override any GCC internal prototype to avoid an error.
  26277. Use char because int might match the return type of a GCC
  26278. builtin and then its argument prototype would still apply. */
  26279. #ifdef __cplusplus
  26280. extern "C"
  26281. #endif
  26282. char ${pbxfuncname} ();
  26283. int
  26284. main ()
  26285. {
  26286. return ${pbxfuncname} ();
  26287. ;
  26288. return 0;
  26289. }
  26290. _ACEOF
  26291. if ac_fn_c_try_link "$LINENO"; then :
  26292. eval "$as_ac_Lib=yes"
  26293. else
  26294. eval "$as_ac_Lib=no"
  26295. fi
  26296. rm -f core conftest.err conftest.$ac_objext \
  26297. conftest$ac_exeext conftest.$ac_ext
  26298. LIBS=$ac_check_lib_save_LIBS
  26299. fi
  26300. eval ac_res=\$$as_ac_Lib
  26301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26302. $as_echo "$ac_res" >&6; }
  26303. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26304. AST_TONEZONE_FOUND=yes
  26305. else
  26306. AST_TONEZONE_FOUND=no
  26307. fi
  26308. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26309. fi
  26310. # now check for the header.
  26311. if test "${AST_TONEZONE_FOUND}" = "yes"; then
  26312. TONEZONE_LIB="${pbxlibdir} -ltonezone ${tonezone_extra} ${DAHDI_INCLUDE}"
  26313. # if --with-TONEZONE=DIR has been specified, use it.
  26314. if test "x${TONEZONE_DIR}" != "x"; then
  26315. TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
  26316. fi
  26317. TONEZONE_INCLUDE="${TONEZONE_INCLUDE} "
  26318. if test "xdahdi/tonezone.h" = "x" ; then # no header, assume found
  26319. TONEZONE_HEADER_FOUND="1"
  26320. else # check for the header
  26321. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26322. CPPFLAGS="${CPPFLAGS} ${TONEZONE_INCLUDE}"
  26323. ac_fn_c_check_header_mongrel "$LINENO" "dahdi/tonezone.h" "ac_cv_header_dahdi_tonezone_h" "$ac_includes_default"
  26324. if test "x$ac_cv_header_dahdi_tonezone_h" = xyes; then :
  26325. TONEZONE_HEADER_FOUND=1
  26326. else
  26327. TONEZONE_HEADER_FOUND=0
  26328. fi
  26329. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26330. fi
  26331. if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
  26332. TONEZONE_LIB=""
  26333. TONEZONE_INCLUDE=""
  26334. else
  26335. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26336. TONEZONE_LIB=""
  26337. fi
  26338. PBX_TONEZONE=1
  26339. cat >>confdefs.h <<_ACEOF
  26340. #define HAVE_TONEZONE 1
  26341. _ACEOF
  26342. fi
  26343. fi
  26344. fi
  26345. if test "${OSARCH}" = "OpenBSD";
  26346. then
  26347. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  26348. pbxlibdir=""
  26349. # if --with-VORBIS=DIR has been specified, use it.
  26350. if test "x${VORBIS_DIR}" != "x"; then
  26351. if test -d ${VORBIS_DIR}/lib; then
  26352. pbxlibdir="-L${VORBIS_DIR}/lib"
  26353. else
  26354. pbxlibdir="-L${VORBIS_DIR}"
  26355. fi
  26356. fi
  26357. pbxfuncname="vorbis_info_init"
  26358. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26359. AST_VORBIS_FOUND=yes
  26360. else
  26361. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26362. CFLAGS="${CFLAGS} "
  26363. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  26364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lvorbis" >&5
  26365. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  26366. if eval \${$as_ac_Lib+:} false; then :
  26367. $as_echo_n "(cached) " >&6
  26368. else
  26369. ac_check_lib_save_LIBS=$LIBS
  26370. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile -logg $LIBS"
  26371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26372. /* end confdefs.h. */
  26373. /* Override any GCC internal prototype to avoid an error.
  26374. Use char because int might match the return type of a GCC
  26375. builtin and then its argument prototype would still apply. */
  26376. #ifdef __cplusplus
  26377. extern "C"
  26378. #endif
  26379. char ${pbxfuncname} ();
  26380. int
  26381. main ()
  26382. {
  26383. return ${pbxfuncname} ();
  26384. ;
  26385. return 0;
  26386. }
  26387. _ACEOF
  26388. if ac_fn_c_try_link "$LINENO"; then :
  26389. eval "$as_ac_Lib=yes"
  26390. else
  26391. eval "$as_ac_Lib=no"
  26392. fi
  26393. rm -f core conftest.err conftest.$ac_objext \
  26394. conftest$ac_exeext conftest.$ac_ext
  26395. LIBS=$ac_check_lib_save_LIBS
  26396. fi
  26397. eval ac_res=\$$as_ac_Lib
  26398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26399. $as_echo "$ac_res" >&6; }
  26400. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26401. AST_VORBIS_FOUND=yes
  26402. else
  26403. AST_VORBIS_FOUND=no
  26404. fi
  26405. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26406. fi
  26407. # now check for the header.
  26408. if test "${AST_VORBIS_FOUND}" = "yes"; then
  26409. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile -logg"
  26410. # if --with-VORBIS=DIR has been specified, use it.
  26411. if test "x${VORBIS_DIR}" != "x"; then
  26412. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  26413. fi
  26414. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  26415. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  26416. VORBIS_HEADER_FOUND="1"
  26417. else # check for the header
  26418. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26419. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  26420. ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
  26421. if test "x$ac_cv_header_vorbis_codec_h" = xyes; then :
  26422. VORBIS_HEADER_FOUND=1
  26423. else
  26424. VORBIS_HEADER_FOUND=0
  26425. fi
  26426. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26427. fi
  26428. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  26429. VORBIS_LIB=""
  26430. VORBIS_INCLUDE=""
  26431. else
  26432. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26433. VORBIS_LIB=""
  26434. fi
  26435. PBX_VORBIS=1
  26436. cat >>confdefs.h <<_ACEOF
  26437. #define HAVE_VORBIS 1
  26438. _ACEOF
  26439. fi
  26440. fi
  26441. fi
  26442. else
  26443. if test "x${PBX_VORBIS}" != "x1" -a "${USE_VORBIS}" != "no"; then
  26444. pbxlibdir=""
  26445. # if --with-VORBIS=DIR has been specified, use it.
  26446. if test "x${VORBIS_DIR}" != "x"; then
  26447. if test -d ${VORBIS_DIR}/lib; then
  26448. pbxlibdir="-L${VORBIS_DIR}/lib"
  26449. else
  26450. pbxlibdir="-L${VORBIS_DIR}"
  26451. fi
  26452. fi
  26453. pbxfuncname="vorbis_info_init"
  26454. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26455. AST_VORBIS_FOUND=yes
  26456. else
  26457. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26458. CFLAGS="${CFLAGS} "
  26459. as_ac_Lib=`$as_echo "ac_cv_lib_vorbis_${pbxfuncname}" | $as_tr_sh`
  26460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lvorbis" >&5
  26461. $as_echo_n "checking for ${pbxfuncname} in -lvorbis... " >&6; }
  26462. if eval \${$as_ac_Lib+:} false; then :
  26463. $as_echo_n "(cached) " >&6
  26464. else
  26465. ac_check_lib_save_LIBS=$LIBS
  26466. LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc -lvorbisfile $LIBS"
  26467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26468. /* end confdefs.h. */
  26469. /* Override any GCC internal prototype to avoid an error.
  26470. Use char because int might match the return type of a GCC
  26471. builtin and then its argument prototype would still apply. */
  26472. #ifdef __cplusplus
  26473. extern "C"
  26474. #endif
  26475. char ${pbxfuncname} ();
  26476. int
  26477. main ()
  26478. {
  26479. return ${pbxfuncname} ();
  26480. ;
  26481. return 0;
  26482. }
  26483. _ACEOF
  26484. if ac_fn_c_try_link "$LINENO"; then :
  26485. eval "$as_ac_Lib=yes"
  26486. else
  26487. eval "$as_ac_Lib=no"
  26488. fi
  26489. rm -f core conftest.err conftest.$ac_objext \
  26490. conftest$ac_exeext conftest.$ac_ext
  26491. LIBS=$ac_check_lib_save_LIBS
  26492. fi
  26493. eval ac_res=\$$as_ac_Lib
  26494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26495. $as_echo "$ac_res" >&6; }
  26496. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26497. AST_VORBIS_FOUND=yes
  26498. else
  26499. AST_VORBIS_FOUND=no
  26500. fi
  26501. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26502. fi
  26503. # now check for the header.
  26504. if test "${AST_VORBIS_FOUND}" = "yes"; then
  26505. VORBIS_LIB="${pbxlibdir} -lvorbis -lm -lvorbisenc -lvorbisfile"
  26506. # if --with-VORBIS=DIR has been specified, use it.
  26507. if test "x${VORBIS_DIR}" != "x"; then
  26508. VORBIS_INCLUDE="-I${VORBIS_DIR}/include"
  26509. fi
  26510. VORBIS_INCLUDE="${VORBIS_INCLUDE} "
  26511. if test "xvorbis/codec.h" = "x" ; then # no header, assume found
  26512. VORBIS_HEADER_FOUND="1"
  26513. else # check for the header
  26514. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26515. CPPFLAGS="${CPPFLAGS} ${VORBIS_INCLUDE}"
  26516. ac_fn_c_check_header_mongrel "$LINENO" "vorbis/codec.h" "ac_cv_header_vorbis_codec_h" "$ac_includes_default"
  26517. if test "x$ac_cv_header_vorbis_codec_h" = xyes; then :
  26518. VORBIS_HEADER_FOUND=1
  26519. else
  26520. VORBIS_HEADER_FOUND=0
  26521. fi
  26522. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26523. fi
  26524. if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
  26525. VORBIS_LIB=""
  26526. VORBIS_INCLUDE=""
  26527. else
  26528. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26529. VORBIS_LIB=""
  26530. fi
  26531. PBX_VORBIS=1
  26532. cat >>confdefs.h <<_ACEOF
  26533. #define HAVE_VORBIS 1
  26534. _ACEOF
  26535. fi
  26536. fi
  26537. fi
  26538. fi
  26539. if test "x${PBX_VORBIS_OPEN_CALLBACKS}" != "x1" -a "${USE_VORBIS_OPEN_CALLBACKS}" != "no"; then
  26540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h" >&5
  26541. $as_echo_n "checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h... " >&6; }
  26542. saved_cppflags="${CPPFLAGS}"
  26543. if test "x${VORBIS_OPEN_CALLBACKS_DIR}" != "x"; then
  26544. VORBIS_OPEN_CALLBACKS_INCLUDE="-I${VORBIS_OPEN_CALLBACKS_DIR}/include"
  26545. fi
  26546. CPPFLAGS="${CPPFLAGS} ${VORBIS_OPEN_CALLBACKS_INCLUDE}"
  26547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26548. /* end confdefs.h. */
  26549. #include <vorbis/vorbisfile.h>
  26550. int
  26551. main ()
  26552. {
  26553. #if !defined(OV_CALLBACKS_NOCLOSE)
  26554. (void) OV_CALLBACKS_NOCLOSE;
  26555. #endif
  26556. ;
  26557. return 0;
  26558. }
  26559. _ACEOF
  26560. if ac_fn_c_try_compile "$LINENO"; then :
  26561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26562. $as_echo "yes" >&6; }
  26563. PBX_VORBIS_OPEN_CALLBACKS=1
  26564. $as_echo "#define HAVE_VORBIS_OPEN_CALLBACKS 1" >>confdefs.h
  26565. else
  26566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26567. $as_echo "no" >&6; }
  26568. fi
  26569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26570. CPPFLAGS="${saved_cppflags}"
  26571. fi
  26572. ac_ext=cpp
  26573. ac_cpp='$CXXCPP $CPPFLAGS'
  26574. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26575. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26576. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26577. if test "${USE_VPB}" != "no"; then
  26578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpb_open in -lvpb" >&5
  26579. $as_echo_n "checking for vpb_open in -lvpb... " >&6; }
  26580. saved_libs="${LIBS}"
  26581. saved_cppflags="${CPPFLAGS}"
  26582. if test "x${VPB_DIR}" != "x"; then
  26583. if test -d ${VPB_DIR}/lib; then
  26584. vpblibdir=${VPB_DIR}/lib
  26585. else
  26586. vpblibdir=${VPB_DIR}
  26587. fi
  26588. LIBS="${LIBS} -L${vpblibdir}"
  26589. CPPFLAGS="${CPPFLAGS} -I${VPB_DIR}/include"
  26590. fi
  26591. LIBS="${PTHREAD_LIBS} ${LIBS} -lvpb"
  26592. CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS}"
  26593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26594. /* end confdefs.h. */
  26595. #include <vpbapi.h>
  26596. int
  26597. main ()
  26598. {
  26599. int q = vpb_open(0,0);
  26600. ;
  26601. return 0;
  26602. }
  26603. _ACEOF
  26604. if ac_fn_cxx_try_link "$LINENO"; then :
  26605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26606. $as_echo "yes" >&6; }
  26607. ac_cv_lib_vpb_vpb_open="yes"
  26608. else
  26609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26610. $as_echo "no" >&6; }
  26611. ac_cv_lib_vpb_vpb_open="no"
  26612. fi
  26613. rm -f core conftest.err conftest.$ac_objext \
  26614. conftest$ac_exeext conftest.$ac_ext
  26615. LIBS="${saved_libs}"
  26616. CPPFLAGS="${saved_cppflags}"
  26617. if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
  26618. VPB_LIB="-lvpb"
  26619. if test "${VPB_DIR}" != ""; then
  26620. VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
  26621. VPB_INCLUDE="-I${VPB_DIR}/include"
  26622. fi
  26623. PBX_VPB=1
  26624. $as_echo "#define HAVE_VPB 1" >>confdefs.h
  26625. fi
  26626. fi
  26627. ac_ext=c
  26628. ac_cpp='$CPP $CPPFLAGS'
  26629. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26630. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26631. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26632. if test "x${PBX_ZLIB}" != "x1" -a "${USE_ZLIB}" != "no"; then
  26633. pbxlibdir=""
  26634. # if --with-ZLIB=DIR has been specified, use it.
  26635. if test "x${ZLIB_DIR}" != "x"; then
  26636. if test -d ${ZLIB_DIR}/lib; then
  26637. pbxlibdir="-L${ZLIB_DIR}/lib"
  26638. else
  26639. pbxlibdir="-L${ZLIB_DIR}"
  26640. fi
  26641. fi
  26642. pbxfuncname="compress"
  26643. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26644. AST_ZLIB_FOUND=yes
  26645. else
  26646. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26647. CFLAGS="${CFLAGS} "
  26648. as_ac_Lib=`$as_echo "ac_cv_lib_z_${pbxfuncname}" | $as_tr_sh`
  26649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lz" >&5
  26650. $as_echo_n "checking for ${pbxfuncname} in -lz... " >&6; }
  26651. if eval \${$as_ac_Lib+:} false; then :
  26652. $as_echo_n "(cached) " >&6
  26653. else
  26654. ac_check_lib_save_LIBS=$LIBS
  26655. LIBS="-lz ${pbxlibdir} $LIBS"
  26656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26657. /* end confdefs.h. */
  26658. /* Override any GCC internal prototype to avoid an error.
  26659. Use char because int might match the return type of a GCC
  26660. builtin and then its argument prototype would still apply. */
  26661. #ifdef __cplusplus
  26662. extern "C"
  26663. #endif
  26664. char ${pbxfuncname} ();
  26665. int
  26666. main ()
  26667. {
  26668. return ${pbxfuncname} ();
  26669. ;
  26670. return 0;
  26671. }
  26672. _ACEOF
  26673. if ac_fn_c_try_link "$LINENO"; then :
  26674. eval "$as_ac_Lib=yes"
  26675. else
  26676. eval "$as_ac_Lib=no"
  26677. fi
  26678. rm -f core conftest.err conftest.$ac_objext \
  26679. conftest$ac_exeext conftest.$ac_ext
  26680. LIBS=$ac_check_lib_save_LIBS
  26681. fi
  26682. eval ac_res=\$$as_ac_Lib
  26683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  26684. $as_echo "$ac_res" >&6; }
  26685. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  26686. AST_ZLIB_FOUND=yes
  26687. else
  26688. AST_ZLIB_FOUND=no
  26689. fi
  26690. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  26691. fi
  26692. # now check for the header.
  26693. if test "${AST_ZLIB_FOUND}" = "yes"; then
  26694. ZLIB_LIB="${pbxlibdir} -lz "
  26695. # if --with-ZLIB=DIR has been specified, use it.
  26696. if test "x${ZLIB_DIR}" != "x"; then
  26697. ZLIB_INCLUDE="-I${ZLIB_DIR}/include"
  26698. fi
  26699. ZLIB_INCLUDE="${ZLIB_INCLUDE} "
  26700. if test "xzlib.h" = "x" ; then # no header, assume found
  26701. ZLIB_HEADER_FOUND="1"
  26702. else # check for the header
  26703. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  26704. CPPFLAGS="${CPPFLAGS} ${ZLIB_INCLUDE}"
  26705. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  26706. if test "x$ac_cv_header_zlib_h" = xyes; then :
  26707. ZLIB_HEADER_FOUND=1
  26708. else
  26709. ZLIB_HEADER_FOUND=0
  26710. fi
  26711. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  26712. fi
  26713. if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
  26714. ZLIB_LIB=""
  26715. ZLIB_INCLUDE=""
  26716. else
  26717. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  26718. ZLIB_LIB=""
  26719. fi
  26720. PBX_ZLIB=1
  26721. cat >>confdefs.h <<_ACEOF
  26722. #define HAVE_ZLIB 1
  26723. _ACEOF
  26724. fi
  26725. fi
  26726. fi
  26727. if test "x${PBX_UNIXODBC}" = "x1" -o "x${PBX_IODBC}" = "x1"; then
  26728. # Does ODBC support wide characters?
  26729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ODBC has support for Unicode types" >&5
  26730. $as_echo_n "checking whether ODBC has support for Unicode types... " >&6; }
  26731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26732. /* end confdefs.h. */
  26733. #include <sql.h>
  26734. #include <sqlext.h>
  26735. int
  26736. main ()
  26737. {
  26738. int foo = SQL_WCHAR
  26739. ;
  26740. return 0;
  26741. }
  26742. _ACEOF
  26743. if ac_fn_c_try_link "$LINENO"; then :
  26744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26745. $as_echo "yes" >&6; }
  26746. $as_echo "#define HAVE_ODBC_WCHAR 1" >>confdefs.h
  26747. else
  26748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26749. $as_echo "no" >&6; }
  26750. fi
  26751. rm -f core conftest.err conftest.$ac_objext \
  26752. conftest$ac_exeext conftest.$ac_ext
  26753. fi
  26754. ac_fn_c_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
  26755. if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
  26756. cat >>confdefs.h <<_ACEOF
  26757. #define HAVE_LINUX_COMPILER_H 1
  26758. _ACEOF
  26759. fi
  26760. ac_fn_c_check_header_compile "$LINENO" "linux/ixjuser.h" "ac_cv_header_linux_ixjuser_h" "
  26761. #include <linux/version.h>
  26762. #ifdef HAVE_LINUX_COMPILER_H
  26763. #include <linux/compiler.h>
  26764. #endif
  26765. "
  26766. if test "x$ac_cv_header_linux_ixjuser_h" = xyes; then :
  26767. PBX_IXJUSER=1
  26768. else
  26769. PBX_IXJUSER=0
  26770. fi
  26771. # Used in res/res_pktccops
  26772. if test "x${PBX_MSG_NOSIGNAL}" != "x1"; then
  26773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL in sys/socket.h" >&5
  26774. $as_echo_n "checking for MSG_NOSIGNAL in sys/socket.h... " >&6; }
  26775. saved_cppflags="${CPPFLAGS}"
  26776. if test "x${MSG_NOSIGNAL_DIR}" != "x"; then
  26777. MSG_NOSIGNAL_INCLUDE="-I${MSG_NOSIGNAL_DIR}/include"
  26778. fi
  26779. CPPFLAGS="${CPPFLAGS} ${MSG_NOSIGNAL_INCLUDE}"
  26780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26781. /* end confdefs.h. */
  26782. #include <sys/socket.h>
  26783. int
  26784. main ()
  26785. {
  26786. #if defined(MSG_NOSIGNAL)
  26787. int foo = 0;
  26788. #else
  26789. int foo = bar;
  26790. #endif
  26791. 0
  26792. ;
  26793. return 0;
  26794. }
  26795. _ACEOF
  26796. if ac_fn_c_try_compile "$LINENO"; then :
  26797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26798. $as_echo "yes" >&6; }
  26799. PBX_MSG_NOSIGNAL=1
  26800. $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
  26801. else
  26802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26803. $as_echo "no" >&6; }
  26804. fi
  26805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26806. CPPFLAGS="${saved_cppflags}"
  26807. fi
  26808. if test "x${PBX_SO_NOSIGPIPE}" != "x1"; then
  26809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE in sys/socket.h" >&5
  26810. $as_echo_n "checking for SO_NOSIGPIPE in sys/socket.h... " >&6; }
  26811. saved_cppflags="${CPPFLAGS}"
  26812. if test "x${SO_NOSIGPIPE_DIR}" != "x"; then
  26813. SO_NOSIGPIPE_INCLUDE="-I${SO_NOSIGPIPE_DIR}/include"
  26814. fi
  26815. CPPFLAGS="${CPPFLAGS} ${SO_NOSIGPIPE_INCLUDE}"
  26816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26817. /* end confdefs.h. */
  26818. #include <sys/socket.h>
  26819. int
  26820. main ()
  26821. {
  26822. #if defined(SO_NOSIGPIPE)
  26823. int foo = 0;
  26824. #else
  26825. int foo = bar;
  26826. #endif
  26827. 0
  26828. ;
  26829. return 0;
  26830. }
  26831. _ACEOF
  26832. if ac_fn_c_try_compile "$LINENO"; then :
  26833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  26834. $as_echo "yes" >&6; }
  26835. PBX_SO_NOSIGPIPE=1
  26836. $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
  26837. else
  26838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26839. $as_echo "no" >&6; }
  26840. fi
  26841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  26842. CPPFLAGS="${saved_cppflags}"
  26843. fi
  26844. if test "x${PBX_SDL}" != "x1" -a "${USE_SDL}" != "no"; then
  26845. PBX_SDL=0
  26846. if test -n "$ac_tool_prefix"; then
  26847. # Extract the first word of "${ac_tool_prefix}sdl-config", so it can be a program name with args.
  26848. set dummy ${ac_tool_prefix}sdl-config; ac_word=$2
  26849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26850. $as_echo_n "checking for $ac_word... " >&6; }
  26851. if ${ac_cv_path_CONFIG_SDL+:} false; then :
  26852. $as_echo_n "(cached) " >&6
  26853. else
  26854. case $CONFIG_SDL in
  26855. [\\/]* | ?:[\\/]*)
  26856. ac_cv_path_CONFIG_SDL="$CONFIG_SDL" # Let the user override the test with a path.
  26857. ;;
  26858. *)
  26859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26860. as_dummy="${SDL_DIR}/bin:$PATH"
  26861. for as_dir in $as_dummy
  26862. do
  26863. IFS=$as_save_IFS
  26864. test -z "$as_dir" && as_dir=.
  26865. for ac_exec_ext in '' $ac_executable_extensions; do
  26866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26867. ac_cv_path_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  26868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26869. break 2
  26870. fi
  26871. done
  26872. done
  26873. IFS=$as_save_IFS
  26874. ;;
  26875. esac
  26876. fi
  26877. CONFIG_SDL=$ac_cv_path_CONFIG_SDL
  26878. if test -n "$CONFIG_SDL"; then
  26879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONFIG_SDL" >&5
  26880. $as_echo "$CONFIG_SDL" >&6; }
  26881. else
  26882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26883. $as_echo "no" >&6; }
  26884. fi
  26885. fi
  26886. if test -z "$ac_cv_path_CONFIG_SDL"; then
  26887. ac_pt_CONFIG_SDL=$CONFIG_SDL
  26888. # Extract the first word of "sdl-config", so it can be a program name with args.
  26889. set dummy sdl-config; ac_word=$2
  26890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  26891. $as_echo_n "checking for $ac_word... " >&6; }
  26892. if ${ac_cv_path_ac_pt_CONFIG_SDL+:} false; then :
  26893. $as_echo_n "(cached) " >&6
  26894. else
  26895. case $ac_pt_CONFIG_SDL in
  26896. [\\/]* | ?:[\\/]*)
  26897. ac_cv_path_ac_pt_CONFIG_SDL="$ac_pt_CONFIG_SDL" # Let the user override the test with a path.
  26898. ;;
  26899. *)
  26900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26901. as_dummy="${SDL_DIR}/bin:$PATH"
  26902. for as_dir in $as_dummy
  26903. do
  26904. IFS=$as_save_IFS
  26905. test -z "$as_dir" && as_dir=.
  26906. for ac_exec_ext in '' $ac_executable_extensions; do
  26907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26908. ac_cv_path_ac_pt_CONFIG_SDL="$as_dir/$ac_word$ac_exec_ext"
  26909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  26910. break 2
  26911. fi
  26912. done
  26913. done
  26914. IFS=$as_save_IFS
  26915. ;;
  26916. esac
  26917. fi
  26918. ac_pt_CONFIG_SDL=$ac_cv_path_ac_pt_CONFIG_SDL
  26919. if test -n "$ac_pt_CONFIG_SDL"; then
  26920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CONFIG_SDL" >&5
  26921. $as_echo "$ac_pt_CONFIG_SDL" >&6; }
  26922. else
  26923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26924. $as_echo "no" >&6; }
  26925. fi
  26926. if test "x$ac_pt_CONFIG_SDL" = x; then
  26927. CONFIG_SDL="No"
  26928. else
  26929. case $cross_compiling:$ac_tool_warned in
  26930. yes:)
  26931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  26932. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  26933. ac_tool_warned=yes ;;
  26934. esac
  26935. CONFIG_SDL=$ac_pt_CONFIG_SDL
  26936. fi
  26937. else
  26938. CONFIG_SDL="$ac_cv_path_CONFIG_SDL"
  26939. fi
  26940. if test ! "x${CONFIG_SDL}" = xNo; then
  26941. if test x"" = x ; then A=--cflags ; else A="" ; fi
  26942. SDL_INCLUDE=$(${CONFIG_SDL} $A)
  26943. SDL_INCLUDE=$(echo ${SDL_INCLUDE} | $SED -e "s|-I|-I${SDL_DIR}|g")
  26944. if test x"" = x ; then A=--libs ; else A="" ; fi
  26945. SDL_LIB=$(${CONFIG_SDL} $A)
  26946. SDL_LIB=$(echo ${SDL_LIB} | $SED -e "s|-L|-L${SDL_DIR}|g")
  26947. if test x"" != x ; then
  26948. saved_cppflags="${CPPFLAGS}"
  26949. CPPFLAGS="${CPPFLAGS} ${SDL_INCLUDE}"
  26950. saved_libs="${LIBS}"
  26951. LIBS=${SDL_LIB}
  26952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  26953. /* end confdefs.h. */
  26954. int
  26955. main ()
  26956. {
  26957. ;
  26958. ;
  26959. return 0;
  26960. }
  26961. _ACEOF
  26962. if ac_fn_c_try_link "$LINENO"; then :
  26963. PBX_SDL=1
  26964. $as_echo "#define HAVE_SDL 1" >>confdefs.h
  26965. fi
  26966. rm -f core conftest.err conftest.$ac_objext \
  26967. conftest$ac_exeext conftest.$ac_ext
  26968. CPPFLAGS="${saved_cppflags}"
  26969. LIBS="${saved_libs}"
  26970. else
  26971. PBX_SDL=1
  26972. $as_echo "#define HAVE_SDL 1" >>confdefs.h
  26973. fi
  26974. fi
  26975. fi
  26976. if test "x${PBX_SDL_IMAGE}" != "x1" -a "${USE_SDL_IMAGE}" != "no"; then
  26977. pbxlibdir=""
  26978. # if --with-SDL_IMAGE=DIR has been specified, use it.
  26979. if test "x${SDL_IMAGE_DIR}" != "x"; then
  26980. if test -d ${SDL_IMAGE_DIR}/lib; then
  26981. pbxlibdir="-L${SDL_IMAGE_DIR}/lib"
  26982. else
  26983. pbxlibdir="-L${SDL_IMAGE_DIR}"
  26984. fi
  26985. fi
  26986. pbxfuncname="IMG_Load"
  26987. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  26988. AST_SDL_IMAGE_FOUND=yes
  26989. else
  26990. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  26991. CFLAGS="${CFLAGS} ${SDL_INCLUDE}"
  26992. as_ac_Lib=`$as_echo "ac_cv_lib_SDL_image_${pbxfuncname}" | $as_tr_sh`
  26993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lSDL_image" >&5
  26994. $as_echo_n "checking for ${pbxfuncname} in -lSDL_image... " >&6; }
  26995. if eval \${$as_ac_Lib+:} false; then :
  26996. $as_echo_n "(cached) " >&6
  26997. else
  26998. ac_check_lib_save_LIBS=$LIBS
  26999. LIBS="-lSDL_image ${pbxlibdir} ${SDL_LIB} $LIBS"
  27000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27001. /* end confdefs.h. */
  27002. /* Override any GCC internal prototype to avoid an error.
  27003. Use char because int might match the return type of a GCC
  27004. builtin and then its argument prototype would still apply. */
  27005. #ifdef __cplusplus
  27006. extern "C"
  27007. #endif
  27008. char ${pbxfuncname} ();
  27009. int
  27010. main ()
  27011. {
  27012. return ${pbxfuncname} ();
  27013. ;
  27014. return 0;
  27015. }
  27016. _ACEOF
  27017. if ac_fn_c_try_link "$LINENO"; then :
  27018. eval "$as_ac_Lib=yes"
  27019. else
  27020. eval "$as_ac_Lib=no"
  27021. fi
  27022. rm -f core conftest.err conftest.$ac_objext \
  27023. conftest$ac_exeext conftest.$ac_ext
  27024. LIBS=$ac_check_lib_save_LIBS
  27025. fi
  27026. eval ac_res=\$$as_ac_Lib
  27027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27028. $as_echo "$ac_res" >&6; }
  27029. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  27030. AST_SDL_IMAGE_FOUND=yes
  27031. else
  27032. AST_SDL_IMAGE_FOUND=no
  27033. fi
  27034. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27035. fi
  27036. # now check for the header.
  27037. if test "${AST_SDL_IMAGE_FOUND}" = "yes"; then
  27038. SDL_IMAGE_LIB="${pbxlibdir} -lSDL_image ${SDL_LIB}"
  27039. # if --with-SDL_IMAGE=DIR has been specified, use it.
  27040. if test "x${SDL_IMAGE_DIR}" != "x"; then
  27041. SDL_IMAGE_INCLUDE="-I${SDL_IMAGE_DIR}/include"
  27042. fi
  27043. SDL_IMAGE_INCLUDE="${SDL_IMAGE_INCLUDE} ${SDL_INCLUDE}"
  27044. if test "xSDL_image.h" = "x" ; then # no header, assume found
  27045. SDL_IMAGE_HEADER_FOUND="1"
  27046. else # check for the header
  27047. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27048. CPPFLAGS="${CPPFLAGS} ${SDL_IMAGE_INCLUDE}"
  27049. ac_fn_c_check_header_mongrel "$LINENO" "SDL_image.h" "ac_cv_header_SDL_image_h" "$ac_includes_default"
  27050. if test "x$ac_cv_header_SDL_image_h" = xyes; then :
  27051. SDL_IMAGE_HEADER_FOUND=1
  27052. else
  27053. SDL_IMAGE_HEADER_FOUND=0
  27054. fi
  27055. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27056. fi
  27057. if test "x${SDL_IMAGE_HEADER_FOUND}" = "x0" ; then
  27058. SDL_IMAGE_LIB=""
  27059. SDL_IMAGE_INCLUDE=""
  27060. else
  27061. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27062. SDL_IMAGE_LIB=""
  27063. fi
  27064. PBX_SDL_IMAGE=1
  27065. cat >>confdefs.h <<_ACEOF
  27066. #define HAVE_SDL_IMAGE 1
  27067. _ACEOF
  27068. fi
  27069. fi
  27070. fi
  27071. if test "x${PBX_FFMPEG}" != "x1" -a "${USE_FFMPEG}" != "no"; then
  27072. pbxlibdir=""
  27073. # if --with-FFMPEG=DIR has been specified, use it.
  27074. if test "x${FFMPEG_DIR}" != "x"; then
  27075. if test -d ${FFMPEG_DIR}/lib; then
  27076. pbxlibdir="-L${FFMPEG_DIR}/lib"
  27077. else
  27078. pbxlibdir="-L${FFMPEG_DIR}"
  27079. fi
  27080. fi
  27081. pbxfuncname="sws_getContext"
  27082. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27083. AST_FFMPEG_FOUND=yes
  27084. else
  27085. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27086. CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
  27087. as_ac_Lib=`$as_echo "ac_cv_lib_avcodec_${pbxfuncname}" | $as_tr_sh`
  27088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lavcodec" >&5
  27089. $as_echo_n "checking for ${pbxfuncname} in -lavcodec... " >&6; }
  27090. if eval \${$as_ac_Lib+:} false; then :
  27091. $as_echo_n "(cached) " >&6
  27092. else
  27093. ac_check_lib_save_LIBS=$LIBS
  27094. LIBS="-lavcodec ${pbxlibdir} ${PTHREAD_LIBS} -lz -lm $LIBS"
  27095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27096. /* end confdefs.h. */
  27097. /* Override any GCC internal prototype to avoid an error.
  27098. Use char because int might match the return type of a GCC
  27099. builtin and then its argument prototype would still apply. */
  27100. #ifdef __cplusplus
  27101. extern "C"
  27102. #endif
  27103. char ${pbxfuncname} ();
  27104. int
  27105. main ()
  27106. {
  27107. return ${pbxfuncname} ();
  27108. ;
  27109. return 0;
  27110. }
  27111. _ACEOF
  27112. if ac_fn_c_try_link "$LINENO"; then :
  27113. eval "$as_ac_Lib=yes"
  27114. else
  27115. eval "$as_ac_Lib=no"
  27116. fi
  27117. rm -f core conftest.err conftest.$ac_objext \
  27118. conftest$ac_exeext conftest.$ac_ext
  27119. LIBS=$ac_check_lib_save_LIBS
  27120. fi
  27121. eval ac_res=\$$as_ac_Lib
  27122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27123. $as_echo "$ac_res" >&6; }
  27124. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  27125. AST_FFMPEG_FOUND=yes
  27126. else
  27127. AST_FFMPEG_FOUND=no
  27128. fi
  27129. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27130. fi
  27131. # now check for the header.
  27132. if test "${AST_FFMPEG_FOUND}" = "yes"; then
  27133. FFMPEG_LIB="${pbxlibdir} -lavcodec ${PTHREAD_LIBS} -lz -lm"
  27134. # if --with-FFMPEG=DIR has been specified, use it.
  27135. if test "x${FFMPEG_DIR}" != "x"; then
  27136. FFMPEG_INCLUDE="-I${FFMPEG_DIR}/include"
  27137. fi
  27138. FFMPEG_INCLUDE="${FFMPEG_INCLUDE} ${PTHREAD_CFLAGS}"
  27139. if test "xffmpeg/avcodec.h" = "x" ; then # no header, assume found
  27140. FFMPEG_HEADER_FOUND="1"
  27141. else # check for the header
  27142. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27143. CPPFLAGS="${CPPFLAGS} ${FFMPEG_INCLUDE}"
  27144. ac_fn_c_check_header_mongrel "$LINENO" "ffmpeg/avcodec.h" "ac_cv_header_ffmpeg_avcodec_h" "$ac_includes_default"
  27145. if test "x$ac_cv_header_ffmpeg_avcodec_h" = xyes; then :
  27146. FFMPEG_HEADER_FOUND=1
  27147. else
  27148. FFMPEG_HEADER_FOUND=0
  27149. fi
  27150. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27151. fi
  27152. if test "x${FFMPEG_HEADER_FOUND}" = "x0" ; then
  27153. FFMPEG_LIB=""
  27154. FFMPEG_INCLUDE=""
  27155. else
  27156. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27157. FFMPEG_LIB=""
  27158. fi
  27159. PBX_FFMPEG=1
  27160. cat >>confdefs.h <<_ACEOF
  27161. #define HAVE_FFMPEG 1
  27162. _ACEOF
  27163. fi
  27164. fi
  27165. fi
  27166. # possible places for video4linux version 1
  27167. ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
  27168. if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
  27169. cat >>confdefs.h <<_ACEOF
  27170. #define HAVE_VIDEODEV_H 1
  27171. _ACEOF
  27172. fi
  27173. # possible places for X11
  27174. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  27175. pbxlibdir=""
  27176. # if --with-X11=DIR has been specified, use it.
  27177. if test "x${X11_DIR}" != "x"; then
  27178. if test -d ${X11_DIR}/lib; then
  27179. pbxlibdir="-L${X11_DIR}/lib"
  27180. else
  27181. pbxlibdir="-L${X11_DIR}"
  27182. fi
  27183. fi
  27184. pbxfuncname="XOpenDisplay"
  27185. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27186. AST_X11_FOUND=yes
  27187. else
  27188. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27189. CFLAGS="${CFLAGS} "
  27190. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  27191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lX11" >&5
  27192. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  27193. if eval \${$as_ac_Lib+:} false; then :
  27194. $as_echo_n "(cached) " >&6
  27195. else
  27196. ac_check_lib_save_LIBS=$LIBS
  27197. LIBS="-lX11 ${pbxlibdir} $LIBS"
  27198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27199. /* end confdefs.h. */
  27200. /* Override any GCC internal prototype to avoid an error.
  27201. Use char because int might match the return type of a GCC
  27202. builtin and then its argument prototype would still apply. */
  27203. #ifdef __cplusplus
  27204. extern "C"
  27205. #endif
  27206. char ${pbxfuncname} ();
  27207. int
  27208. main ()
  27209. {
  27210. return ${pbxfuncname} ();
  27211. ;
  27212. return 0;
  27213. }
  27214. _ACEOF
  27215. if ac_fn_c_try_link "$LINENO"; then :
  27216. eval "$as_ac_Lib=yes"
  27217. else
  27218. eval "$as_ac_Lib=no"
  27219. fi
  27220. rm -f core conftest.err conftest.$ac_objext \
  27221. conftest$ac_exeext conftest.$ac_ext
  27222. LIBS=$ac_check_lib_save_LIBS
  27223. fi
  27224. eval ac_res=\$$as_ac_Lib
  27225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27226. $as_echo "$ac_res" >&6; }
  27227. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  27228. AST_X11_FOUND=yes
  27229. else
  27230. AST_X11_FOUND=no
  27231. fi
  27232. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27233. fi
  27234. # now check for the header.
  27235. if test "${AST_X11_FOUND}" = "yes"; then
  27236. X11_LIB="${pbxlibdir} -lX11 "
  27237. # if --with-X11=DIR has been specified, use it.
  27238. if test "x${X11_DIR}" != "x"; then
  27239. X11_INCLUDE="-I${X11_DIR}/include"
  27240. fi
  27241. X11_INCLUDE="${X11_INCLUDE} "
  27242. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  27243. X11_HEADER_FOUND="1"
  27244. else # check for the header
  27245. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27246. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  27247. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
  27248. if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
  27249. X11_HEADER_FOUND=1
  27250. else
  27251. X11_HEADER_FOUND=0
  27252. fi
  27253. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27254. fi
  27255. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  27256. X11_LIB=""
  27257. X11_INCLUDE=""
  27258. else
  27259. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27260. X11_LIB=""
  27261. fi
  27262. PBX_X11=1
  27263. cat >>confdefs.h <<_ACEOF
  27264. #define HAVE_X11 1
  27265. _ACEOF
  27266. cat >>confdefs.h <<_ACEOF
  27267. #define HAVE_X11_VERSION standard_path
  27268. _ACEOF
  27269. fi
  27270. fi
  27271. fi
  27272. if test "x${PBX_X11}" != "x1" -a "${USE_X11}" != "no"; then
  27273. pbxlibdir=""
  27274. # if --with-X11=DIR has been specified, use it.
  27275. if test "x${X11_DIR}" != "x"; then
  27276. if test -d ${X11_DIR}/lib; then
  27277. pbxlibdir="-L${X11_DIR}/lib"
  27278. else
  27279. pbxlibdir="-L${X11_DIR}"
  27280. fi
  27281. fi
  27282. pbxfuncname="XOpenDisplay"
  27283. if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
  27284. AST_X11_FOUND=yes
  27285. else
  27286. ast_ext_lib_check_save_CFLAGS="${CFLAGS}"
  27287. CFLAGS="${CFLAGS} -I/usr/X11R6/include"
  27288. as_ac_Lib=`$as_echo "ac_cv_lib_X11_${pbxfuncname}" | $as_tr_sh`
  27289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${pbxfuncname} in -lX11" >&5
  27290. $as_echo_n "checking for ${pbxfuncname} in -lX11... " >&6; }
  27291. if eval \${$as_ac_Lib+:} false; then :
  27292. $as_echo_n "(cached) " >&6
  27293. else
  27294. ac_check_lib_save_LIBS=$LIBS
  27295. LIBS="-lX11 ${pbxlibdir} $LIBS"
  27296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27297. /* end confdefs.h. */
  27298. /* Override any GCC internal prototype to avoid an error.
  27299. Use char because int might match the return type of a GCC
  27300. builtin and then its argument prototype would still apply. */
  27301. #ifdef __cplusplus
  27302. extern "C"
  27303. #endif
  27304. char ${pbxfuncname} ();
  27305. int
  27306. main ()
  27307. {
  27308. return ${pbxfuncname} ();
  27309. ;
  27310. return 0;
  27311. }
  27312. _ACEOF
  27313. if ac_fn_c_try_link "$LINENO"; then :
  27314. eval "$as_ac_Lib=yes"
  27315. else
  27316. eval "$as_ac_Lib=no"
  27317. fi
  27318. rm -f core conftest.err conftest.$ac_objext \
  27319. conftest$ac_exeext conftest.$ac_ext
  27320. LIBS=$ac_check_lib_save_LIBS
  27321. fi
  27322. eval ac_res=\$$as_ac_Lib
  27323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  27324. $as_echo "$ac_res" >&6; }
  27325. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  27326. AST_X11_FOUND=yes
  27327. else
  27328. AST_X11_FOUND=no
  27329. fi
  27330. CFLAGS="${ast_ext_lib_check_save_CFLAGS}"
  27331. fi
  27332. # now check for the header.
  27333. if test "${AST_X11_FOUND}" = "yes"; then
  27334. X11_LIB="${pbxlibdir} -lX11 "
  27335. # if --with-X11=DIR has been specified, use it.
  27336. if test "x${X11_DIR}" != "x"; then
  27337. X11_INCLUDE="-I${X11_DIR}/include"
  27338. fi
  27339. X11_INCLUDE="${X11_INCLUDE} -I/usr/X11R6/include"
  27340. if test "xX11/Xlib.h" = "x" ; then # no header, assume found
  27341. X11_HEADER_FOUND="1"
  27342. else # check for the header
  27343. ast_ext_lib_check_saved_CPPFLAGS="${CPPFLAGS}"
  27344. CPPFLAGS="${CPPFLAGS} ${X11_INCLUDE}"
  27345. ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default"
  27346. if test "x$ac_cv_header_X11_Xlib_h" = xyes; then :
  27347. X11_HEADER_FOUND=1
  27348. else
  27349. X11_HEADER_FOUND=0
  27350. fi
  27351. CPPFLAGS="${ast_ext_lib_check_saved_CPPFLAGS}"
  27352. fi
  27353. if test "x${X11_HEADER_FOUND}" = "x0" ; then
  27354. X11_LIB=""
  27355. X11_INCLUDE=""
  27356. else
  27357. if test "x${pbxfuncname}" = "x" ; then # only checking headers -> no library
  27358. X11_LIB=""
  27359. fi
  27360. PBX_X11=1
  27361. cat >>confdefs.h <<_ACEOF
  27362. #define HAVE_X11 1
  27363. _ACEOF
  27364. cat >>confdefs.h <<_ACEOF
  27365. #define HAVE_X11_VERSION X11R6
  27366. _ACEOF
  27367. fi
  27368. fi
  27369. fi
  27370. PBX_LAUNCHD=0
  27371. if test "${cross_compiling}" = "no";
  27372. then
  27373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /sbin/launchd" >&5
  27374. $as_echo_n "checking for /sbin/launchd... " >&6; }
  27375. if ${ac_cv_file__sbin_launchd+:} false; then :
  27376. $as_echo_n "(cached) " >&6
  27377. else
  27378. test "$cross_compiling" = yes &&
  27379. as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
  27380. if test -r "/sbin/launchd"; then
  27381. ac_cv_file__sbin_launchd=yes
  27382. else
  27383. ac_cv_file__sbin_launchd=no
  27384. fi
  27385. fi
  27386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__sbin_launchd" >&5
  27387. $as_echo "$ac_cv_file__sbin_launchd" >&6; }
  27388. if test "x$ac_cv_file__sbin_launchd" = xyes; then :
  27389. $as_echo "#define HAVE_SBIN_LAUNCHD 1" >>confdefs.h
  27390. fi
  27391. if test "${HAVE_SBIN_LAUNCHD}" = 1; then
  27392. PBX_LAUNCHD=1
  27393. fi
  27394. fi
  27395. if test "x${PBX_GTK2}" != "x1" -a "${USE_GTK2}" != "no"; then
  27396. pkg_failed=no
  27397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK2" >&5
  27398. $as_echo_n "checking for GTK2... " >&6; }
  27399. if test -n "$GTK2_CFLAGS"; then
  27400. pkg_cv_GTK2_CFLAGS="$GTK2_CFLAGS"
  27401. elif test -n "$PKG_CONFIG"; then
  27402. if test -n "$PKG_CONFIG" && \
  27403. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  27404. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  27405. ac_status=$?
  27406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27407. test $ac_status = 0; }; then
  27408. pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
  27409. test "x$?" != "x0" && pkg_failed=yes
  27410. else
  27411. pkg_failed=yes
  27412. fi
  27413. else
  27414. pkg_failed=untried
  27415. fi
  27416. if test -n "$GTK2_LIBS"; then
  27417. pkg_cv_GTK2_LIBS="$GTK2_LIBS"
  27418. elif test -n "$PKG_CONFIG"; then
  27419. if test -n "$PKG_CONFIG" && \
  27420. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
  27421. ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
  27422. ac_status=$?
  27423. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  27424. test $ac_status = 0; }; then
  27425. pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
  27426. test "x$?" != "x0" && pkg_failed=yes
  27427. else
  27428. pkg_failed=yes
  27429. fi
  27430. else
  27431. pkg_failed=untried
  27432. fi
  27433. if test $pkg_failed = yes; then
  27434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27435. $as_echo "no" >&6; }
  27436. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  27437. _pkg_short_errors_supported=yes
  27438. else
  27439. _pkg_short_errors_supported=no
  27440. fi
  27441. if test $_pkg_short_errors_supported = yes; then
  27442. GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
  27443. else
  27444. GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
  27445. fi
  27446. # Put the nasty error message in config.log where it belongs
  27447. echo "$GTK2_PKG_ERRORS" >&5
  27448. PBX_GTK2=0
  27449. elif test $pkg_failed = untried; then
  27450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27451. $as_echo "no" >&6; }
  27452. PBX_GTK2=0
  27453. else
  27454. GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
  27455. GTK2_LIBS=$pkg_cv_GTK2_LIBS
  27456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27457. $as_echo "yes" >&6; }
  27458. PBX_GTK2=1
  27459. GTK2_INCLUDE="$GTK2_CFLAGS"
  27460. GTK2_LIB="$GTK2_LIBS"
  27461. $as_echo "#define HAVE_GTK2 1" >>confdefs.h
  27462. fi
  27463. fi
  27464. # build a GENERIC_ODBC result based on the presence of either UnixODBC (preferred)
  27465. # or iODBC
  27466. PBX_GENERIC_ODBC=0
  27467. if test "${PBX_UNIXODBC}" = 1; then
  27468. PBX_GENERIC_ODBC=1
  27469. GENERIC_ODBC_LIB="${UNIXODBC_LIB}"
  27470. GENERIC_ODBC_INCLUDE="${UNIXODBC_INCLUDE}"
  27471. elif test "${PBX_IODBC}" = 1; then
  27472. PBX_GENERIC_ODBC=1
  27473. GENERIC_ODBC_LIB="${IODBC_LIB}"
  27474. GENERIC_ODBC_INCLUDE="${IODBC_INCLUDE}"
  27475. fi
  27476. PBX_SYSLOG=0
  27477. if test "${ac_cv_header_syslog_h}" = "yes"; then
  27478. # syslog facilities
  27479. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTH}" != "x1"; then
  27480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTH in syslog.h" >&5
  27481. $as_echo_n "checking for LOG_AUTH in syslog.h... " >&6; }
  27482. saved_cppflags="${CPPFLAGS}"
  27483. if test "x${SYSLOG_FACILITY_LOG_AUTH_DIR}" != "x"; then
  27484. SYSLOG_FACILITY_LOG_AUTH_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTH_DIR}/include"
  27485. fi
  27486. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTH_INCLUDE}"
  27487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27488. /* end confdefs.h. */
  27489. #include <syslog.h>
  27490. int
  27491. main ()
  27492. {
  27493. #if defined(LOG_AUTH)
  27494. int foo = 0;
  27495. #else
  27496. int foo = bar;
  27497. #endif
  27498. 0
  27499. ;
  27500. return 0;
  27501. }
  27502. _ACEOF
  27503. if ac_fn_c_try_compile "$LINENO"; then :
  27504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27505. $as_echo "yes" >&6; }
  27506. PBX_SYSLOG_FACILITY_LOG_AUTH=1
  27507. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_AUTH 1" >>confdefs.h
  27508. else
  27509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27510. $as_echo "no" >&6; }
  27511. fi
  27512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27513. CPPFLAGS="${saved_cppflags}"
  27514. fi
  27515. if test "x${PBX_SYSLOG_FACILITY_LOG_AUTHPRIV}" != "x1"; then
  27516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_AUTHPRIV in syslog.h" >&5
  27517. $as_echo_n "checking for LOG_AUTHPRIV in syslog.h... " >&6; }
  27518. saved_cppflags="${CPPFLAGS}"
  27519. if test "x${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}" != "x"; then
  27520. SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE="-I${SYSLOG_FACILITY_LOG_AUTHPRIV_DIR}/include"
  27521. fi
  27522. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_AUTHPRIV_INCLUDE}"
  27523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27524. /* end confdefs.h. */
  27525. #include <syslog.h>
  27526. int
  27527. main ()
  27528. {
  27529. #if defined(LOG_AUTHPRIV)
  27530. int foo = 0;
  27531. #else
  27532. int foo = bar;
  27533. #endif
  27534. 0
  27535. ;
  27536. return 0;
  27537. }
  27538. _ACEOF
  27539. if ac_fn_c_try_compile "$LINENO"; then :
  27540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27541. $as_echo "yes" >&6; }
  27542. PBX_SYSLOG_FACILITY_LOG_AUTHPRIV=1
  27543. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_AUTHPRIV 1" >>confdefs.h
  27544. else
  27545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27546. $as_echo "no" >&6; }
  27547. fi
  27548. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27549. CPPFLAGS="${saved_cppflags}"
  27550. fi
  27551. if test "x${PBX_SYSLOG_FACILITY_LOG_CRON}" != "x1"; then
  27552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_CRON in syslog.h" >&5
  27553. $as_echo_n "checking for LOG_CRON in syslog.h... " >&6; }
  27554. saved_cppflags="${CPPFLAGS}"
  27555. if test "x${SYSLOG_FACILITY_LOG_CRON_DIR}" != "x"; then
  27556. SYSLOG_FACILITY_LOG_CRON_INCLUDE="-I${SYSLOG_FACILITY_LOG_CRON_DIR}/include"
  27557. fi
  27558. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_CRON_INCLUDE}"
  27559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27560. /* end confdefs.h. */
  27561. #include <syslog.h>
  27562. int
  27563. main ()
  27564. {
  27565. #if defined(LOG_CRON)
  27566. int foo = 0;
  27567. #else
  27568. int foo = bar;
  27569. #endif
  27570. 0
  27571. ;
  27572. return 0;
  27573. }
  27574. _ACEOF
  27575. if ac_fn_c_try_compile "$LINENO"; then :
  27576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27577. $as_echo "yes" >&6; }
  27578. PBX_SYSLOG_FACILITY_LOG_CRON=1
  27579. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_CRON 1" >>confdefs.h
  27580. else
  27581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27582. $as_echo "no" >&6; }
  27583. fi
  27584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27585. CPPFLAGS="${saved_cppflags}"
  27586. fi
  27587. if test "x${PBX_SYSLOG_FACILITY_LOG_DAEMON}" != "x1"; then
  27588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_DAEMON in syslog.h" >&5
  27589. $as_echo_n "checking for LOG_DAEMON in syslog.h... " >&6; }
  27590. saved_cppflags="${CPPFLAGS}"
  27591. if test "x${SYSLOG_FACILITY_LOG_DAEMON_DIR}" != "x"; then
  27592. SYSLOG_FACILITY_LOG_DAEMON_INCLUDE="-I${SYSLOG_FACILITY_LOG_DAEMON_DIR}/include"
  27593. fi
  27594. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_DAEMON_INCLUDE}"
  27595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27596. /* end confdefs.h. */
  27597. #include <syslog.h>
  27598. int
  27599. main ()
  27600. {
  27601. #if defined(LOG_DAEMON)
  27602. int foo = 0;
  27603. #else
  27604. int foo = bar;
  27605. #endif
  27606. 0
  27607. ;
  27608. return 0;
  27609. }
  27610. _ACEOF
  27611. if ac_fn_c_try_compile "$LINENO"; then :
  27612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27613. $as_echo "yes" >&6; }
  27614. PBX_SYSLOG_FACILITY_LOG_DAEMON=1
  27615. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_DAEMON 1" >>confdefs.h
  27616. else
  27617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27618. $as_echo "no" >&6; }
  27619. fi
  27620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27621. CPPFLAGS="${saved_cppflags}"
  27622. fi
  27623. if test "x${PBX_SYSLOG_FACILITY_LOG_FTP}" != "x1"; then
  27624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_FTP in syslog.h" >&5
  27625. $as_echo_n "checking for LOG_FTP in syslog.h... " >&6; }
  27626. saved_cppflags="${CPPFLAGS}"
  27627. if test "x${SYSLOG_FACILITY_LOG_FTP_DIR}" != "x"; then
  27628. SYSLOG_FACILITY_LOG_FTP_INCLUDE="-I${SYSLOG_FACILITY_LOG_FTP_DIR}/include"
  27629. fi
  27630. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_FTP_INCLUDE}"
  27631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27632. /* end confdefs.h. */
  27633. #include <syslog.h>
  27634. int
  27635. main ()
  27636. {
  27637. #if defined(LOG_FTP)
  27638. int foo = 0;
  27639. #else
  27640. int foo = bar;
  27641. #endif
  27642. 0
  27643. ;
  27644. return 0;
  27645. }
  27646. _ACEOF
  27647. if ac_fn_c_try_compile "$LINENO"; then :
  27648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27649. $as_echo "yes" >&6; }
  27650. PBX_SYSLOG_FACILITY_LOG_FTP=1
  27651. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_FTP 1" >>confdefs.h
  27652. else
  27653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27654. $as_echo "no" >&6; }
  27655. fi
  27656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27657. CPPFLAGS="${saved_cppflags}"
  27658. fi
  27659. if test "x${PBX_SYSLOG_FACILITY_LOG_KERN}" != "x1"; then
  27660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_KERN in syslog.h" >&5
  27661. $as_echo_n "checking for LOG_KERN in syslog.h... " >&6; }
  27662. saved_cppflags="${CPPFLAGS}"
  27663. if test "x${SYSLOG_FACILITY_LOG_KERN_DIR}" != "x"; then
  27664. SYSLOG_FACILITY_LOG_KERN_INCLUDE="-I${SYSLOG_FACILITY_LOG_KERN_DIR}/include"
  27665. fi
  27666. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_KERN_INCLUDE}"
  27667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27668. /* end confdefs.h. */
  27669. #include <syslog.h>
  27670. int
  27671. main ()
  27672. {
  27673. #if defined(LOG_KERN)
  27674. int foo = 0;
  27675. #else
  27676. int foo = bar;
  27677. #endif
  27678. 0
  27679. ;
  27680. return 0;
  27681. }
  27682. _ACEOF
  27683. if ac_fn_c_try_compile "$LINENO"; then :
  27684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27685. $as_echo "yes" >&6; }
  27686. PBX_SYSLOG_FACILITY_LOG_KERN=1
  27687. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_KERN 1" >>confdefs.h
  27688. else
  27689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27690. $as_echo "no" >&6; }
  27691. fi
  27692. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27693. CPPFLAGS="${saved_cppflags}"
  27694. fi
  27695. if test "x${PBX_SYSLOG_FACILITY_LOG_LPR}" != "x1"; then
  27696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_LPR in syslog.h" >&5
  27697. $as_echo_n "checking for LOG_LPR in syslog.h... " >&6; }
  27698. saved_cppflags="${CPPFLAGS}"
  27699. if test "x${SYSLOG_FACILITY_LOG_LPR_DIR}" != "x"; then
  27700. SYSLOG_FACILITY_LOG_LPR_INCLUDE="-I${SYSLOG_FACILITY_LOG_LPR_DIR}/include"
  27701. fi
  27702. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_LPR_INCLUDE}"
  27703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27704. /* end confdefs.h. */
  27705. #include <syslog.h>
  27706. int
  27707. main ()
  27708. {
  27709. #if defined(LOG_LPR)
  27710. int foo = 0;
  27711. #else
  27712. int foo = bar;
  27713. #endif
  27714. 0
  27715. ;
  27716. return 0;
  27717. }
  27718. _ACEOF
  27719. if ac_fn_c_try_compile "$LINENO"; then :
  27720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27721. $as_echo "yes" >&6; }
  27722. PBX_SYSLOG_FACILITY_LOG_LPR=1
  27723. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_LPR 1" >>confdefs.h
  27724. else
  27725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27726. $as_echo "no" >&6; }
  27727. fi
  27728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27729. CPPFLAGS="${saved_cppflags}"
  27730. fi
  27731. if test "x${PBX_SYSLOG_FACILITY_LOG_MAIL}" != "x1"; then
  27732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_MAIL in syslog.h" >&5
  27733. $as_echo_n "checking for LOG_MAIL in syslog.h... " >&6; }
  27734. saved_cppflags="${CPPFLAGS}"
  27735. if test "x${SYSLOG_FACILITY_LOG_MAIL_DIR}" != "x"; then
  27736. SYSLOG_FACILITY_LOG_MAIL_INCLUDE="-I${SYSLOG_FACILITY_LOG_MAIL_DIR}/include"
  27737. fi
  27738. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_MAIL_INCLUDE}"
  27739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27740. /* end confdefs.h. */
  27741. #include <syslog.h>
  27742. int
  27743. main ()
  27744. {
  27745. #if defined(LOG_MAIL)
  27746. int foo = 0;
  27747. #else
  27748. int foo = bar;
  27749. #endif
  27750. 0
  27751. ;
  27752. return 0;
  27753. }
  27754. _ACEOF
  27755. if ac_fn_c_try_compile "$LINENO"; then :
  27756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27757. $as_echo "yes" >&6; }
  27758. PBX_SYSLOG_FACILITY_LOG_MAIL=1
  27759. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_MAIL 1" >>confdefs.h
  27760. else
  27761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27762. $as_echo "no" >&6; }
  27763. fi
  27764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27765. CPPFLAGS="${saved_cppflags}"
  27766. fi
  27767. if test "x${PBX_SYSLOG_FACILITY_LOG_NEWS}" != "x1"; then
  27768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_NEWS in syslog.h" >&5
  27769. $as_echo_n "checking for LOG_NEWS in syslog.h... " >&6; }
  27770. saved_cppflags="${CPPFLAGS}"
  27771. if test "x${SYSLOG_FACILITY_LOG_NEWS_DIR}" != "x"; then
  27772. SYSLOG_FACILITY_LOG_NEWS_INCLUDE="-I${SYSLOG_FACILITY_LOG_NEWS_DIR}/include"
  27773. fi
  27774. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_NEWS_INCLUDE}"
  27775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27776. /* end confdefs.h. */
  27777. #include <syslog.h>
  27778. int
  27779. main ()
  27780. {
  27781. #if defined(LOG_NEWS)
  27782. int foo = 0;
  27783. #else
  27784. int foo = bar;
  27785. #endif
  27786. 0
  27787. ;
  27788. return 0;
  27789. }
  27790. _ACEOF
  27791. if ac_fn_c_try_compile "$LINENO"; then :
  27792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27793. $as_echo "yes" >&6; }
  27794. PBX_SYSLOG_FACILITY_LOG_NEWS=1
  27795. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_NEWS 1" >>confdefs.h
  27796. else
  27797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27798. $as_echo "no" >&6; }
  27799. fi
  27800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27801. CPPFLAGS="${saved_cppflags}"
  27802. fi
  27803. if test "x${PBX_SYSLOG_FACILITY_LOG_SYSLOG}" != "x1"; then
  27804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_SYSLOG in syslog.h" >&5
  27805. $as_echo_n "checking for LOG_SYSLOG in syslog.h... " >&6; }
  27806. saved_cppflags="${CPPFLAGS}"
  27807. if test "x${SYSLOG_FACILITY_LOG_SYSLOG_DIR}" != "x"; then
  27808. SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE="-I${SYSLOG_FACILITY_LOG_SYSLOG_DIR}/include"
  27809. fi
  27810. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_SYSLOG_INCLUDE}"
  27811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27812. /* end confdefs.h. */
  27813. #include <syslog.h>
  27814. int
  27815. main ()
  27816. {
  27817. #if defined(LOG_SYSLOG)
  27818. int foo = 0;
  27819. #else
  27820. int foo = bar;
  27821. #endif
  27822. 0
  27823. ;
  27824. return 0;
  27825. }
  27826. _ACEOF
  27827. if ac_fn_c_try_compile "$LINENO"; then :
  27828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27829. $as_echo "yes" >&6; }
  27830. PBX_SYSLOG_FACILITY_LOG_SYSLOG=1
  27831. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_SYSLOG 1" >>confdefs.h
  27832. else
  27833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27834. $as_echo "no" >&6; }
  27835. fi
  27836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27837. CPPFLAGS="${saved_cppflags}"
  27838. fi
  27839. if test "x${PBX_SYSLOG_FACILITY_LOG_UUCP}" != "x1"; then
  27840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOG_UUCP in syslog.h" >&5
  27841. $as_echo_n "checking for LOG_UUCP in syslog.h... " >&6; }
  27842. saved_cppflags="${CPPFLAGS}"
  27843. if test "x${SYSLOG_FACILITY_LOG_UUCP_DIR}" != "x"; then
  27844. SYSLOG_FACILITY_LOG_UUCP_INCLUDE="-I${SYSLOG_FACILITY_LOG_UUCP_DIR}/include"
  27845. fi
  27846. CPPFLAGS="${CPPFLAGS} ${SYSLOG_FACILITY_LOG_UUCP_INCLUDE}"
  27847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27848. /* end confdefs.h. */
  27849. #include <syslog.h>
  27850. int
  27851. main ()
  27852. {
  27853. #if defined(LOG_UUCP)
  27854. int foo = 0;
  27855. #else
  27856. int foo = bar;
  27857. #endif
  27858. 0
  27859. ;
  27860. return 0;
  27861. }
  27862. _ACEOF
  27863. if ac_fn_c_try_compile "$LINENO"; then :
  27864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  27865. $as_echo "yes" >&6; }
  27866. PBX_SYSLOG_FACILITY_LOG_UUCP=1
  27867. $as_echo "#define HAVE_SYSLOG_FACILITY_LOG_UUCP 1" >>confdefs.h
  27868. else
  27869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27870. $as_echo "no" >&6; }
  27871. fi
  27872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  27873. CPPFLAGS="${saved_cppflags}"
  27874. fi
  27875. PBX_SYSLOG=1
  27876. fi
  27877. if test -f makeopts; then
  27878. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak
  27879. else
  27880. touch makeopts.acbak
  27881. fi
  27882. ac_config_files="$ac_config_files build_tools/menuselect-deps makeopts"
  27883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mandatory modules: ${ac_mandatory_list}" >&5
  27884. $as_echo_n "checking for mandatory modules: ${ac_mandatory_list}... " >&6; }
  27885. err=0;
  27886. for i in ${ac_mandatory_list}; do
  27887. eval "a=\${PBX_$i}"
  27888. if test "x${a}" = "x1" ; then continue; fi
  27889. if test ${err} = "0" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5
  27890. $as_echo "fail" >&6; } ; fi
  27891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
  27892. $as_echo "" >&6; }
  27893. eval "a=\${${i}_OPTION}"
  27894. { $as_echo "$as_me:${as_lineno-$LINENO}: ***" >&5
  27895. $as_echo "$as_me: ***" >&6;}
  27896. { $as_echo "$as_me:${as_lineno-$LINENO}: *** The $i installation appears to be missing or broken." >&5
  27897. $as_echo "$as_me: *** The $i installation appears to be missing or broken." >&6;}
  27898. { $as_echo "$as_me:${as_lineno-$LINENO}: *** Either correct the installation, or run configure" >&5
  27899. $as_echo "$as_me: *** Either correct the installation, or run configure" >&6;}
  27900. { $as_echo "$as_me:${as_lineno-$LINENO}: *** including --without-${a}." >&5
  27901. $as_echo "$as_me: *** including --without-${a}." >&6;}
  27902. err=1
  27903. done
  27904. if test $err = 1 ; then exit 1; fi
  27905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  27906. $as_echo "ok" >&6; }
  27907. if test -f build_tools/menuselect-deps; then
  27908. # extract old values of all PBX_ variables from menuselect-deps
  27909. # and preserve them so that menuselect can determine whether
  27910. # any previously-met dependencies are no longer met and warn
  27911. # the user appropriately
  27912. while IFS="=:" read var val old_val; do
  27913. eval "PBX_${var}=\${PBX_${var}}:${val}"
  27914. done < build_tools/menuselect-deps
  27915. fi
  27916. cat >confcache <<\_ACEOF
  27917. # This file is a shell script that caches the results of configure
  27918. # tests run on this system so they can be shared between configure
  27919. # scripts and configure runs, see configure's option --config-cache.
  27920. # It is not useful on other systems. If it contains results you don't
  27921. # want to keep, you may remove or edit it.
  27922. #
  27923. # config.status only pays attention to the cache file if you give it
  27924. # the --recheck option to rerun configure.
  27925. #
  27926. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  27927. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  27928. # following values.
  27929. _ACEOF
  27930. # The following way of writing the cache mishandles newlines in values,
  27931. # but we know of no workaround that is simple, portable, and efficient.
  27932. # So, we kill variables containing newlines.
  27933. # Ultrix sh set writes to stderr and can't be redirected directly,
  27934. # and sets the high bit in the cache file unless we assign to the vars.
  27935. (
  27936. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  27937. eval ac_val=\$$ac_var
  27938. case $ac_val in #(
  27939. *${as_nl}*)
  27940. case $ac_var in #(
  27941. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  27942. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  27943. esac
  27944. case $ac_var in #(
  27945. _ | IFS | as_nl) ;; #(
  27946. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  27947. *) { eval $ac_var=; unset $ac_var;} ;;
  27948. esac ;;
  27949. esac
  27950. done
  27951. (set) 2>&1 |
  27952. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  27953. *${as_nl}ac_space=\ *)
  27954. # `set' does not quote correctly, so add quotes: double-quote
  27955. # substitution turns \\\\ into \\, and sed turns \\ into \.
  27956. sed -n \
  27957. "s/'/'\\\\''/g;
  27958. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  27959. ;; #(
  27960. *)
  27961. # `set' quotes correctly as required by POSIX, so do not add quotes.
  27962. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  27963. ;;
  27964. esac |
  27965. sort
  27966. ) |
  27967. sed '
  27968. /^ac_cv_env_/b end
  27969. t clear
  27970. :clear
  27971. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  27972. t end
  27973. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  27974. :end' >>confcache
  27975. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  27976. if test -w "$cache_file"; then
  27977. if test "x$cache_file" != "x/dev/null"; then
  27978. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  27979. $as_echo "$as_me: updating cache $cache_file" >&6;}
  27980. if test ! -f "$cache_file" || test -h "$cache_file"; then
  27981. cat confcache >"$cache_file"
  27982. else
  27983. case $cache_file in #(
  27984. */* | ?:*)
  27985. mv -f confcache "$cache_file"$$ &&
  27986. mv -f "$cache_file"$$ "$cache_file" ;; #(
  27987. *)
  27988. mv -f confcache "$cache_file" ;;
  27989. esac
  27990. fi
  27991. fi
  27992. else
  27993. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  27994. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  27995. fi
  27996. fi
  27997. rm -f confcache
  27998. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  27999. # Let make expand exec_prefix.
  28000. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  28001. DEFS=-DHAVE_CONFIG_H
  28002. ac_libobjs=
  28003. ac_ltlibobjs=
  28004. U=
  28005. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  28006. # 1. Remove the extension, and $U if already installed.
  28007. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  28008. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  28009. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  28010. # will be set to the directory where LIBOBJS objects are built.
  28011. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  28012. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  28013. done
  28014. LIBOBJS=$ac_libobjs
  28015. LTLIBOBJS=$ac_ltlibobjs
  28016. : "${CONFIG_STATUS=./config.status}"
  28017. ac_write_fail=0
  28018. ac_clean_files_save=$ac_clean_files
  28019. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  28020. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  28021. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  28022. as_write_fail=0
  28023. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  28024. #! $SHELL
  28025. # Generated by $as_me.
  28026. # Run this file to recreate the current configuration.
  28027. # Compiler output produced by configure, useful for debugging
  28028. # configure, is in config.log if it exists.
  28029. debug=false
  28030. ac_cs_recheck=false
  28031. ac_cs_silent=false
  28032. SHELL=\${CONFIG_SHELL-$SHELL}
  28033. export SHELL
  28034. _ASEOF
  28035. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  28036. ## -------------------- ##
  28037. ## M4sh Initialization. ##
  28038. ## -------------------- ##
  28039. # Be more Bourne compatible
  28040. DUALCASE=1; export DUALCASE # for MKS sh
  28041. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  28042. emulate sh
  28043. NULLCMD=:
  28044. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  28045. # is contrary to our usage. Disable this feature.
  28046. alias -g '${1+"$@"}'='"$@"'
  28047. setopt NO_GLOB_SUBST
  28048. else
  28049. case `(set -o) 2>/dev/null` in #(
  28050. *posix*) :
  28051. set -o posix ;; #(
  28052. *) :
  28053. ;;
  28054. esac
  28055. fi
  28056. as_nl='
  28057. '
  28058. export as_nl
  28059. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  28060. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  28061. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  28062. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  28063. # Prefer a ksh shell builtin over an external printf program on Solaris,
  28064. # but without wasting forks for bash or zsh.
  28065. if test -z "$BASH_VERSION$ZSH_VERSION" \
  28066. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  28067. as_echo='print -r --'
  28068. as_echo_n='print -rn --'
  28069. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  28070. as_echo='printf %s\n'
  28071. as_echo_n='printf %s'
  28072. else
  28073. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  28074. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  28075. as_echo_n='/usr/ucb/echo -n'
  28076. else
  28077. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  28078. as_echo_n_body='eval
  28079. arg=$1;
  28080. case $arg in #(
  28081. *"$as_nl"*)
  28082. expr "X$arg" : "X\\(.*\\)$as_nl";
  28083. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  28084. esac;
  28085. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  28086. '
  28087. export as_echo_n_body
  28088. as_echo_n='sh -c $as_echo_n_body as_echo'
  28089. fi
  28090. export as_echo_body
  28091. as_echo='sh -c $as_echo_body as_echo'
  28092. fi
  28093. # The user is always right.
  28094. if test "${PATH_SEPARATOR+set}" != set; then
  28095. PATH_SEPARATOR=:
  28096. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  28097. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  28098. PATH_SEPARATOR=';'
  28099. }
  28100. fi
  28101. # IFS
  28102. # We need space, tab and new line, in precisely that order. Quoting is
  28103. # there to prevent editors from complaining about space-tab.
  28104. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  28105. # splitting by setting IFS to empty value.)
  28106. IFS=" "" $as_nl"
  28107. # Find who we are. Look in the path if we contain no directory separator.
  28108. as_myself=
  28109. case $0 in #((
  28110. *[\\/]* ) as_myself=$0 ;;
  28111. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  28112. for as_dir in $PATH
  28113. do
  28114. IFS=$as_save_IFS
  28115. test -z "$as_dir" && as_dir=.
  28116. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  28117. done
  28118. IFS=$as_save_IFS
  28119. ;;
  28120. esac
  28121. # We did not find ourselves, most probably we were run as `sh COMMAND'
  28122. # in which case we are not to be found in the path.
  28123. if test "x$as_myself" = x; then
  28124. as_myself=$0
  28125. fi
  28126. if test ! -f "$as_myself"; then
  28127. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  28128. exit 1
  28129. fi
  28130. # Unset variables that we do not need and which cause bugs (e.g. in
  28131. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  28132. # suppresses any "Segmentation fault" message there. '((' could
  28133. # trigger a bug in pdksh 5.2.14.
  28134. for as_var in BASH_ENV ENV MAIL MAILPATH
  28135. do eval test x\${$as_var+set} = xset \
  28136. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  28137. done
  28138. PS1='$ '
  28139. PS2='> '
  28140. PS4='+ '
  28141. # NLS nuisances.
  28142. LC_ALL=C
  28143. export LC_ALL
  28144. LANGUAGE=C
  28145. export LANGUAGE
  28146. # CDPATH.
  28147. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  28148. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  28149. # ----------------------------------------
  28150. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  28151. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  28152. # script with STATUS, using 1 if that was 0.
  28153. as_fn_error ()
  28154. {
  28155. as_status=$1; test $as_status -eq 0 && as_status=1
  28156. if test "$4"; then
  28157. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  28158. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  28159. fi
  28160. $as_echo "$as_me: error: $2" >&2
  28161. as_fn_exit $as_status
  28162. } # as_fn_error
  28163. # as_fn_set_status STATUS
  28164. # -----------------------
  28165. # Set $? to STATUS, without forking.
  28166. as_fn_set_status ()
  28167. {
  28168. return $1
  28169. } # as_fn_set_status
  28170. # as_fn_exit STATUS
  28171. # -----------------
  28172. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  28173. as_fn_exit ()
  28174. {
  28175. set +e
  28176. as_fn_set_status $1
  28177. exit $1
  28178. } # as_fn_exit
  28179. # as_fn_unset VAR
  28180. # ---------------
  28181. # Portably unset VAR.
  28182. as_fn_unset ()
  28183. {
  28184. { eval $1=; unset $1;}
  28185. }
  28186. as_unset=as_fn_unset
  28187. # as_fn_append VAR VALUE
  28188. # ----------------------
  28189. # Append the text in VALUE to the end of the definition contained in VAR. Take
  28190. # advantage of any shell optimizations that allow amortized linear growth over
  28191. # repeated appends, instead of the typical quadratic growth present in naive
  28192. # implementations.
  28193. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  28194. eval 'as_fn_append ()
  28195. {
  28196. eval $1+=\$2
  28197. }'
  28198. else
  28199. as_fn_append ()
  28200. {
  28201. eval $1=\$$1\$2
  28202. }
  28203. fi # as_fn_append
  28204. # as_fn_arith ARG...
  28205. # ------------------
  28206. # Perform arithmetic evaluation on the ARGs, and store the result in the
  28207. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  28208. # must be portable across $(()) and expr.
  28209. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  28210. eval 'as_fn_arith ()
  28211. {
  28212. as_val=$(( $* ))
  28213. }'
  28214. else
  28215. as_fn_arith ()
  28216. {
  28217. as_val=`expr "$@" || test $? -eq 1`
  28218. }
  28219. fi # as_fn_arith
  28220. if expr a : '\(a\)' >/dev/null 2>&1 &&
  28221. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  28222. as_expr=expr
  28223. else
  28224. as_expr=false
  28225. fi
  28226. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  28227. as_basename=basename
  28228. else
  28229. as_basename=false
  28230. fi
  28231. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  28232. as_dirname=dirname
  28233. else
  28234. as_dirname=false
  28235. fi
  28236. as_me=`$as_basename -- "$0" ||
  28237. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  28238. X"$0" : 'X\(//\)$' \| \
  28239. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  28240. $as_echo X/"$0" |
  28241. sed '/^.*\/\([^/][^/]*\)\/*$/{
  28242. s//\1/
  28243. q
  28244. }
  28245. /^X\/\(\/\/\)$/{
  28246. s//\1/
  28247. q
  28248. }
  28249. /^X\/\(\/\).*/{
  28250. s//\1/
  28251. q
  28252. }
  28253. s/.*/./; q'`
  28254. # Avoid depending upon Character Ranges.
  28255. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  28256. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  28257. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  28258. as_cr_digits='0123456789'
  28259. as_cr_alnum=$as_cr_Letters$as_cr_digits
  28260. ECHO_C= ECHO_N= ECHO_T=
  28261. case `echo -n x` in #(((((
  28262. -n*)
  28263. case `echo 'xy\c'` in
  28264. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  28265. xy) ECHO_C='\c';;
  28266. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  28267. ECHO_T=' ';;
  28268. esac;;
  28269. *)
  28270. ECHO_N='-n';;
  28271. esac
  28272. rm -f conf$$ conf$$.exe conf$$.file
  28273. if test -d conf$$.dir; then
  28274. rm -f conf$$.dir/conf$$.file
  28275. else
  28276. rm -f conf$$.dir
  28277. mkdir conf$$.dir 2>/dev/null
  28278. fi
  28279. if (echo >conf$$.file) 2>/dev/null; then
  28280. if ln -s conf$$.file conf$$ 2>/dev/null; then
  28281. as_ln_s='ln -s'
  28282. # ... but there are two gotchas:
  28283. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  28284. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  28285. # In both cases, we have to default to `cp -pR'.
  28286. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  28287. as_ln_s='cp -pR'
  28288. elif ln conf$$.file conf$$ 2>/dev/null; then
  28289. as_ln_s=ln
  28290. else
  28291. as_ln_s='cp -pR'
  28292. fi
  28293. else
  28294. as_ln_s='cp -pR'
  28295. fi
  28296. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  28297. rmdir conf$$.dir 2>/dev/null
  28298. # as_fn_mkdir_p
  28299. # -------------
  28300. # Create "$as_dir" as a directory, including parents if necessary.
  28301. as_fn_mkdir_p ()
  28302. {
  28303. case $as_dir in #(
  28304. -*) as_dir=./$as_dir;;
  28305. esac
  28306. test -d "$as_dir" || eval $as_mkdir_p || {
  28307. as_dirs=
  28308. while :; do
  28309. case $as_dir in #(
  28310. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  28311. *) as_qdir=$as_dir;;
  28312. esac
  28313. as_dirs="'$as_qdir' $as_dirs"
  28314. as_dir=`$as_dirname -- "$as_dir" ||
  28315. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28316. X"$as_dir" : 'X\(//\)[^/]' \| \
  28317. X"$as_dir" : 'X\(//\)$' \| \
  28318. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  28319. $as_echo X"$as_dir" |
  28320. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28321. s//\1/
  28322. q
  28323. }
  28324. /^X\(\/\/\)[^/].*/{
  28325. s//\1/
  28326. q
  28327. }
  28328. /^X\(\/\/\)$/{
  28329. s//\1/
  28330. q
  28331. }
  28332. /^X\(\/\).*/{
  28333. s//\1/
  28334. q
  28335. }
  28336. s/.*/./; q'`
  28337. test -d "$as_dir" && break
  28338. done
  28339. test -z "$as_dirs" || eval "mkdir $as_dirs"
  28340. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  28341. } # as_fn_mkdir_p
  28342. if mkdir -p . 2>/dev/null; then
  28343. as_mkdir_p='mkdir -p "$as_dir"'
  28344. else
  28345. test -d ./-p && rmdir ./-p
  28346. as_mkdir_p=false
  28347. fi
  28348. # as_fn_executable_p FILE
  28349. # -----------------------
  28350. # Test if FILE is an executable regular file.
  28351. as_fn_executable_p ()
  28352. {
  28353. test -f "$1" && test -x "$1"
  28354. } # as_fn_executable_p
  28355. as_test_x='test -x'
  28356. as_executable_p=as_fn_executable_p
  28357. # Sed expression to map a string onto a valid CPP name.
  28358. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  28359. # Sed expression to map a string onto a valid variable name.
  28360. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  28361. exec 6>&1
  28362. ## ----------------------------------- ##
  28363. ## Main body of $CONFIG_STATUS script. ##
  28364. ## ----------------------------------- ##
  28365. _ASEOF
  28366. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  28367. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28368. # Save the log message, to keep $0 and so on meaningful, and to
  28369. # report actual input values of CONFIG_FILES etc. instead of their
  28370. # values after options handling.
  28371. ac_log="
  28372. This file was extended by asterisk $as_me trunk, which was
  28373. generated by GNU Autoconf 2.69. Invocation command line was
  28374. CONFIG_FILES = $CONFIG_FILES
  28375. CONFIG_HEADERS = $CONFIG_HEADERS
  28376. CONFIG_LINKS = $CONFIG_LINKS
  28377. CONFIG_COMMANDS = $CONFIG_COMMANDS
  28378. $ $0 $@
  28379. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  28380. "
  28381. _ACEOF
  28382. case $ac_config_files in *"
  28383. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  28384. esac
  28385. case $ac_config_headers in *"
  28386. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  28387. esac
  28388. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28389. # Files that config.status was made for.
  28390. config_files="$ac_config_files"
  28391. config_headers="$ac_config_headers"
  28392. _ACEOF
  28393. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28394. ac_cs_usage="\
  28395. \`$as_me' instantiates files and other configuration actions
  28396. from templates according to the current configuration. Unless the files
  28397. and actions are specified as TAGs, all are instantiated by default.
  28398. Usage: $0 [OPTION]... [TAG]...
  28399. -h, --help print this help, then exit
  28400. -V, --version print version number and configuration settings, then exit
  28401. --config print configuration, then exit
  28402. -q, --quiet, --silent
  28403. do not print progress messages
  28404. -d, --debug don't remove temporary files
  28405. --recheck update $as_me by reconfiguring in the same conditions
  28406. --file=FILE[:TEMPLATE]
  28407. instantiate the configuration file FILE
  28408. --header=FILE[:TEMPLATE]
  28409. instantiate the configuration header FILE
  28410. Configuration files:
  28411. $config_files
  28412. Configuration headers:
  28413. $config_headers
  28414. Report bugs to <https://issues.asterisk.org>."
  28415. _ACEOF
  28416. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28417. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  28418. ac_cs_version="\\
  28419. asterisk config.status trunk
  28420. configured by $0, generated by GNU Autoconf 2.69,
  28421. with options \\"\$ac_cs_config\\"
  28422. Copyright (C) 2012 Free Software Foundation, Inc.
  28423. This config.status script is free software; the Free Software Foundation
  28424. gives unlimited permission to copy, distribute and modify it."
  28425. ac_pwd='$ac_pwd'
  28426. srcdir='$srcdir'
  28427. INSTALL='$INSTALL'
  28428. AWK='$AWK'
  28429. test -n "\$AWK" || AWK=awk
  28430. _ACEOF
  28431. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28432. # The default lists apply if the user does not specify any file.
  28433. ac_need_defaults=:
  28434. while test $# != 0
  28435. do
  28436. case $1 in
  28437. --*=?*)
  28438. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  28439. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  28440. ac_shift=:
  28441. ;;
  28442. --*=)
  28443. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  28444. ac_optarg=
  28445. ac_shift=:
  28446. ;;
  28447. *)
  28448. ac_option=$1
  28449. ac_optarg=$2
  28450. ac_shift=shift
  28451. ;;
  28452. esac
  28453. case $ac_option in
  28454. # Handling of the options.
  28455. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  28456. ac_cs_recheck=: ;;
  28457. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  28458. $as_echo "$ac_cs_version"; exit ;;
  28459. --config | --confi | --conf | --con | --co | --c )
  28460. $as_echo "$ac_cs_config"; exit ;;
  28461. --debug | --debu | --deb | --de | --d | -d )
  28462. debug=: ;;
  28463. --file | --fil | --fi | --f )
  28464. $ac_shift
  28465. case $ac_optarg in
  28466. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  28467. '') as_fn_error $? "missing file argument" ;;
  28468. esac
  28469. as_fn_append CONFIG_FILES " '$ac_optarg'"
  28470. ac_need_defaults=false;;
  28471. --header | --heade | --head | --hea )
  28472. $ac_shift
  28473. case $ac_optarg in
  28474. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  28475. esac
  28476. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  28477. ac_need_defaults=false;;
  28478. --he | --h)
  28479. # Conflict between --help and --header
  28480. as_fn_error $? "ambiguous option: \`$1'
  28481. Try \`$0 --help' for more information.";;
  28482. --help | --hel | -h )
  28483. $as_echo "$ac_cs_usage"; exit ;;
  28484. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  28485. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  28486. ac_cs_silent=: ;;
  28487. # This is an error.
  28488. -*) as_fn_error $? "unrecognized option: \`$1'
  28489. Try \`$0 --help' for more information." ;;
  28490. *) as_fn_append ac_config_targets " $1"
  28491. ac_need_defaults=false ;;
  28492. esac
  28493. shift
  28494. done
  28495. ac_configure_extra_args=
  28496. if $ac_cs_silent; then
  28497. exec 6>/dev/null
  28498. ac_configure_extra_args="$ac_configure_extra_args --silent"
  28499. fi
  28500. _ACEOF
  28501. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28502. if \$ac_cs_recheck; then
  28503. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  28504. shift
  28505. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  28506. CONFIG_SHELL='$SHELL'
  28507. export CONFIG_SHELL
  28508. exec "\$@"
  28509. fi
  28510. _ACEOF
  28511. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28512. exec 5>>config.log
  28513. {
  28514. echo
  28515. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  28516. ## Running $as_me. ##
  28517. _ASBOX
  28518. $as_echo "$ac_log"
  28519. } >&5
  28520. _ACEOF
  28521. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28522. _ACEOF
  28523. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28524. # Handling of arguments.
  28525. for ac_config_target in $ac_config_targets
  28526. do
  28527. case $ac_config_target in
  28528. "include/asterisk/autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
  28529. "build_tools/menuselect-deps") CONFIG_FILES="$CONFIG_FILES build_tools/menuselect-deps" ;;
  28530. "makeopts") CONFIG_FILES="$CONFIG_FILES makeopts" ;;
  28531. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  28532. esac
  28533. done
  28534. # If the user did not use the arguments to specify the items to instantiate,
  28535. # then the envvar interface is used. Set only those that are not.
  28536. # We use the long form for the default assignment because of an extremely
  28537. # bizarre bug on SunOS 4.1.3.
  28538. if $ac_need_defaults; then
  28539. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  28540. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  28541. fi
  28542. # Have a temporary directory for convenience. Make it in the build tree
  28543. # simply because there is no reason against having it here, and in addition,
  28544. # creating and moving files from /tmp can sometimes cause problems.
  28545. # Hook for its removal unless debugging.
  28546. # Note that there is a small window in which the directory will not be cleaned:
  28547. # after its creation but before its name has been assigned to `$tmp'.
  28548. $debug ||
  28549. {
  28550. tmp= ac_tmp=
  28551. trap 'exit_status=$?
  28552. : "${ac_tmp:=$tmp}"
  28553. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  28554. ' 0
  28555. trap 'as_fn_exit 1' 1 2 13 15
  28556. }
  28557. # Create a (secure) tmp directory for tmp files.
  28558. {
  28559. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  28560. test -d "$tmp"
  28561. } ||
  28562. {
  28563. tmp=./conf$$-$RANDOM
  28564. (umask 077 && mkdir "$tmp")
  28565. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  28566. ac_tmp=$tmp
  28567. # Set up the scripts for CONFIG_FILES section.
  28568. # No need to generate them if there are no CONFIG_FILES.
  28569. # This happens for instance with `./config.status config.h'.
  28570. if test -n "$CONFIG_FILES"; then
  28571. ac_cr=`echo X | tr X '\015'`
  28572. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  28573. # But we know of no other shell where ac_cr would be empty at this
  28574. # point, so we can use a bashism as a fallback.
  28575. if test "x$ac_cr" = x; then
  28576. eval ac_cr=\$\'\\r\'
  28577. fi
  28578. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  28579. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  28580. ac_cs_awk_cr='\\r'
  28581. else
  28582. ac_cs_awk_cr=$ac_cr
  28583. fi
  28584. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  28585. _ACEOF
  28586. {
  28587. echo "cat >conf$$subs.awk <<_ACEOF" &&
  28588. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  28589. echo "_ACEOF"
  28590. } >conf$$subs.sh ||
  28591. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  28592. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  28593. ac_delim='%!_!# '
  28594. for ac_last_try in false false false false false :; do
  28595. . ./conf$$subs.sh ||
  28596. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  28597. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  28598. if test $ac_delim_n = $ac_delim_num; then
  28599. break
  28600. elif $ac_last_try; then
  28601. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  28602. else
  28603. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  28604. fi
  28605. done
  28606. rm -f conf$$subs.sh
  28607. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28608. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  28609. _ACEOF
  28610. sed -n '
  28611. h
  28612. s/^/S["/; s/!.*/"]=/
  28613. p
  28614. g
  28615. s/^[^!]*!//
  28616. :repl
  28617. t repl
  28618. s/'"$ac_delim"'$//
  28619. t delim
  28620. :nl
  28621. h
  28622. s/\(.\{148\}\)..*/\1/
  28623. t more1
  28624. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  28625. p
  28626. n
  28627. b repl
  28628. :more1
  28629. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  28630. p
  28631. g
  28632. s/.\{148\}//
  28633. t nl
  28634. :delim
  28635. h
  28636. s/\(.\{148\}\)..*/\1/
  28637. t more2
  28638. s/["\\]/\\&/g; s/^/"/; s/$/"/
  28639. p
  28640. b
  28641. :more2
  28642. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  28643. p
  28644. g
  28645. s/.\{148\}//
  28646. t delim
  28647. ' <conf$$subs.awk | sed '
  28648. /^[^""]/{
  28649. N
  28650. s/\n//
  28651. }
  28652. ' >>$CONFIG_STATUS || ac_write_fail=1
  28653. rm -f conf$$subs.awk
  28654. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28655. _ACAWK
  28656. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  28657. for (key in S) S_is_set[key] = 1
  28658. FS = ""
  28659. }
  28660. {
  28661. line = $ 0
  28662. nfields = split(line, field, "@")
  28663. substed = 0
  28664. len = length(field[1])
  28665. for (i = 2; i < nfields; i++) {
  28666. key = field[i]
  28667. keylen = length(key)
  28668. if (S_is_set[key]) {
  28669. value = S[key]
  28670. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  28671. len += length(value) + length(field[++i])
  28672. substed = 1
  28673. } else
  28674. len += 1 + keylen
  28675. }
  28676. print line
  28677. }
  28678. _ACAWK
  28679. _ACEOF
  28680. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28681. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  28682. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  28683. else
  28684. cat
  28685. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  28686. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  28687. _ACEOF
  28688. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  28689. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  28690. # trailing colons and then remove the whole line if VPATH becomes empty
  28691. # (actually we leave an empty line to preserve line numbers).
  28692. if test "x$srcdir" = x.; then
  28693. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  28694. h
  28695. s///
  28696. s/^/:/
  28697. s/[ ]*$/:/
  28698. s/:\$(srcdir):/:/g
  28699. s/:\${srcdir}:/:/g
  28700. s/:@srcdir@:/:/g
  28701. s/^:*//
  28702. s/:*$//
  28703. x
  28704. s/\(=[ ]*\).*/\1/
  28705. G
  28706. s/\n//
  28707. s/^[^=]*=[ ]*$//
  28708. }'
  28709. fi
  28710. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28711. fi # test -n "$CONFIG_FILES"
  28712. # Set up the scripts for CONFIG_HEADERS section.
  28713. # No need to generate them if there are no CONFIG_HEADERS.
  28714. # This happens for instance with `./config.status Makefile'.
  28715. if test -n "$CONFIG_HEADERS"; then
  28716. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  28717. BEGIN {
  28718. _ACEOF
  28719. # Transform confdefs.h into an awk script `defines.awk', embedded as
  28720. # here-document in config.status, that substitutes the proper values into
  28721. # config.h.in to produce config.h.
  28722. # Create a delimiter string that does not exist in confdefs.h, to ease
  28723. # handling of long lines.
  28724. ac_delim='%!_!# '
  28725. for ac_last_try in false false :; do
  28726. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  28727. if test -z "$ac_tt"; then
  28728. break
  28729. elif $ac_last_try; then
  28730. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  28731. else
  28732. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  28733. fi
  28734. done
  28735. # For the awk script, D is an array of macro values keyed by name,
  28736. # likewise P contains macro parameters if any. Preserve backslash
  28737. # newline sequences.
  28738. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  28739. sed -n '
  28740. s/.\{148\}/&'"$ac_delim"'/g
  28741. t rset
  28742. :rset
  28743. s/^[ ]*#[ ]*define[ ][ ]*/ /
  28744. t def
  28745. d
  28746. :def
  28747. s/\\$//
  28748. t bsnl
  28749. s/["\\]/\\&/g
  28750. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  28751. D["\1"]=" \3"/p
  28752. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  28753. d
  28754. :bsnl
  28755. s/["\\]/\\&/g
  28756. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  28757. D["\1"]=" \3\\\\\\n"\\/p
  28758. t cont
  28759. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  28760. t cont
  28761. d
  28762. :cont
  28763. n
  28764. s/.\{148\}/&'"$ac_delim"'/g
  28765. t clear
  28766. :clear
  28767. s/\\$//
  28768. t bsnlc
  28769. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  28770. d
  28771. :bsnlc
  28772. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  28773. b cont
  28774. ' <confdefs.h | sed '
  28775. s/'"$ac_delim"'/"\\\
  28776. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  28777. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28778. for (key in D) D_is_set[key] = 1
  28779. FS = ""
  28780. }
  28781. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  28782. line = \$ 0
  28783. split(line, arg, " ")
  28784. if (arg[1] == "#") {
  28785. defundef = arg[2]
  28786. mac1 = arg[3]
  28787. } else {
  28788. defundef = substr(arg[1], 2)
  28789. mac1 = arg[2]
  28790. }
  28791. split(mac1, mac2, "(") #)
  28792. macro = mac2[1]
  28793. prefix = substr(line, 1, index(line, defundef) - 1)
  28794. if (D_is_set[macro]) {
  28795. # Preserve the white space surrounding the "#".
  28796. print prefix "define", macro P[macro] D[macro]
  28797. next
  28798. } else {
  28799. # Replace #undef with comments. This is necessary, for example,
  28800. # in the case of _POSIX_SOURCE, which is predefined and required
  28801. # on some systems where configure will not decide to define it.
  28802. if (defundef == "undef") {
  28803. print "/*", prefix defundef, macro, "*/"
  28804. next
  28805. }
  28806. }
  28807. }
  28808. { print }
  28809. _ACAWK
  28810. _ACEOF
  28811. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28812. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  28813. fi # test -n "$CONFIG_HEADERS"
  28814. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  28815. shift
  28816. for ac_tag
  28817. do
  28818. case $ac_tag in
  28819. :[FHLC]) ac_mode=$ac_tag; continue;;
  28820. esac
  28821. case $ac_mode$ac_tag in
  28822. :[FHL]*:*);;
  28823. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  28824. :[FH]-) ac_tag=-:-;;
  28825. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  28826. esac
  28827. ac_save_IFS=$IFS
  28828. IFS=:
  28829. set x $ac_tag
  28830. IFS=$ac_save_IFS
  28831. shift
  28832. ac_file=$1
  28833. shift
  28834. case $ac_mode in
  28835. :L) ac_source=$1;;
  28836. :[FH])
  28837. ac_file_inputs=
  28838. for ac_f
  28839. do
  28840. case $ac_f in
  28841. -) ac_f="$ac_tmp/stdin";;
  28842. *) # Look for the file first in the build tree, then in the source tree
  28843. # (if the path is not absolute). The absolute path cannot be DOS-style,
  28844. # because $ac_f cannot contain `:'.
  28845. test -f "$ac_f" ||
  28846. case $ac_f in
  28847. [\\/$]*) false;;
  28848. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  28849. esac ||
  28850. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  28851. esac
  28852. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  28853. as_fn_append ac_file_inputs " '$ac_f'"
  28854. done
  28855. # Let's still pretend it is `configure' which instantiates (i.e., don't
  28856. # use $as_me), people would be surprised to read:
  28857. # /* config.h. Generated by config.status. */
  28858. configure_input='Generated from '`
  28859. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  28860. `' by configure.'
  28861. if test x"$ac_file" != x-; then
  28862. configure_input="$ac_file. $configure_input"
  28863. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  28864. $as_echo "$as_me: creating $ac_file" >&6;}
  28865. fi
  28866. # Neutralize special characters interpreted by sed in replacement strings.
  28867. case $configure_input in #(
  28868. *\&* | *\|* | *\\* )
  28869. ac_sed_conf_input=`$as_echo "$configure_input" |
  28870. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  28871. *) ac_sed_conf_input=$configure_input;;
  28872. esac
  28873. case $ac_tag in
  28874. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  28875. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  28876. esac
  28877. ;;
  28878. esac
  28879. ac_dir=`$as_dirname -- "$ac_file" ||
  28880. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  28881. X"$ac_file" : 'X\(//\)[^/]' \| \
  28882. X"$ac_file" : 'X\(//\)$' \| \
  28883. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  28884. $as_echo X"$ac_file" |
  28885. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  28886. s//\1/
  28887. q
  28888. }
  28889. /^X\(\/\/\)[^/].*/{
  28890. s//\1/
  28891. q
  28892. }
  28893. /^X\(\/\/\)$/{
  28894. s//\1/
  28895. q
  28896. }
  28897. /^X\(\/\).*/{
  28898. s//\1/
  28899. q
  28900. }
  28901. s/.*/./; q'`
  28902. as_dir="$ac_dir"; as_fn_mkdir_p
  28903. ac_builddir=.
  28904. case "$ac_dir" in
  28905. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  28906. *)
  28907. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  28908. # A ".." for each directory in $ac_dir_suffix.
  28909. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  28910. case $ac_top_builddir_sub in
  28911. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  28912. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  28913. esac ;;
  28914. esac
  28915. ac_abs_top_builddir=$ac_pwd
  28916. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  28917. # for backward compatibility:
  28918. ac_top_builddir=$ac_top_build_prefix
  28919. case $srcdir in
  28920. .) # We are building in place.
  28921. ac_srcdir=.
  28922. ac_top_srcdir=$ac_top_builddir_sub
  28923. ac_abs_top_srcdir=$ac_pwd ;;
  28924. [\\/]* | ?:[\\/]* ) # Absolute name.
  28925. ac_srcdir=$srcdir$ac_dir_suffix;
  28926. ac_top_srcdir=$srcdir
  28927. ac_abs_top_srcdir=$srcdir ;;
  28928. *) # Relative name.
  28929. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  28930. ac_top_srcdir=$ac_top_build_prefix$srcdir
  28931. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  28932. esac
  28933. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  28934. case $ac_mode in
  28935. :F)
  28936. #
  28937. # CONFIG_FILE
  28938. #
  28939. case $INSTALL in
  28940. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  28941. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  28942. esac
  28943. _ACEOF
  28944. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28945. # If the template does not know about datarootdir, expand it.
  28946. # FIXME: This hack should be removed a few years after 2.60.
  28947. ac_datarootdir_hack=; ac_datarootdir_seen=
  28948. ac_sed_dataroot='
  28949. /datarootdir/ {
  28950. p
  28951. q
  28952. }
  28953. /@datadir@/p
  28954. /@docdir@/p
  28955. /@infodir@/p
  28956. /@localedir@/p
  28957. /@mandir@/p'
  28958. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  28959. *datarootdir*) ac_datarootdir_seen=yes;;
  28960. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  28961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  28962. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  28963. _ACEOF
  28964. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28965. ac_datarootdir_hack='
  28966. s&@datadir@&$datadir&g
  28967. s&@docdir@&$docdir&g
  28968. s&@infodir@&$infodir&g
  28969. s&@localedir@&$localedir&g
  28970. s&@mandir@&$mandir&g
  28971. s&\\\${datarootdir}&$datarootdir&g' ;;
  28972. esac
  28973. _ACEOF
  28974. # Neutralize VPATH when `$srcdir' = `.'.
  28975. # Shell code in configure.ac might set extrasub.
  28976. # FIXME: do we really want to maintain this feature?
  28977. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  28978. ac_sed_extra="$ac_vpsub
  28979. $extrasub
  28980. _ACEOF
  28981. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  28982. :t
  28983. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  28984. s|@configure_input@|$ac_sed_conf_input|;t t
  28985. s&@top_builddir@&$ac_top_builddir_sub&;t t
  28986. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  28987. s&@srcdir@&$ac_srcdir&;t t
  28988. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  28989. s&@top_srcdir@&$ac_top_srcdir&;t t
  28990. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  28991. s&@builddir@&$ac_builddir&;t t
  28992. s&@abs_builddir@&$ac_abs_builddir&;t t
  28993. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  28994. s&@INSTALL@&$ac_INSTALL&;t t
  28995. $ac_datarootdir_hack
  28996. "
  28997. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  28998. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  28999. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  29000. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  29001. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  29002. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  29003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  29004. which seems to be undefined. Please make sure it is defined" >&5
  29005. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  29006. which seems to be undefined. Please make sure it is defined" >&2;}
  29007. rm -f "$ac_tmp/stdin"
  29008. case $ac_file in
  29009. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  29010. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  29011. esac \
  29012. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  29013. ;;
  29014. :H)
  29015. #
  29016. # CONFIG_HEADER
  29017. #
  29018. if test x"$ac_file" != x-; then
  29019. {
  29020. $as_echo "/* $configure_input */" \
  29021. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  29022. } >"$ac_tmp/config.h" \
  29023. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  29024. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  29025. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  29026. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  29027. else
  29028. rm -f "$ac_file"
  29029. mv "$ac_tmp/config.h" "$ac_file" \
  29030. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  29031. fi
  29032. else
  29033. $as_echo "/* $configure_input */" \
  29034. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  29035. || as_fn_error $? "could not create -" "$LINENO" 5
  29036. fi
  29037. ;;
  29038. esac
  29039. done # for ac_tag
  29040. as_fn_exit 0
  29041. _ACEOF
  29042. ac_clean_files=$ac_clean_files_save
  29043. test $ac_write_fail = 0 ||
  29044. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  29045. # configure is writing to config.log, and then calls config.status.
  29046. # config.status does its own redirection, appending to config.log.
  29047. # Unfortunately, on DOS this fails, as config.log is still kept open
  29048. # by configure, so config.status won't be able to write to it; its
  29049. # output is simply discarded. So we exec the FD to /dev/null,
  29050. # effectively closing config.log, so it can be properly (re)opened and
  29051. # appended to by config.status. When coming back to configure, we
  29052. # need to make the FD available again.
  29053. if test "$no_create" != yes; then
  29054. ac_cs_success=:
  29055. ac_config_status_args=
  29056. test "$silent" = yes &&
  29057. ac_config_status_args="$ac_config_status_args --quiet"
  29058. exec 5>/dev/null
  29059. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  29060. exec 5>>config.log
  29061. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  29062. # would make configure fail if this is the last instruction.
  29063. $ac_cs_success || as_fn_exit 1
  29064. fi
  29065. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  29066. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  29067. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  29068. fi
  29069. ${ac_cv_path_EGREP} 'CURSES|GTK2|OSARCH|NEWT' makeopts > makeopts.acbak2
  29070. if test "x${ac_cv_path_CMP}" = "x:"; then
  29071. ( cd `pwd`/menuselect && ./configure )
  29072. else if ${ac_cv_path_CMP} -s makeopts.acbak makeopts.acbak2; then : ; else
  29073. ( cd `pwd`/menuselect && ./configure )
  29074. fi ; fi
  29075. rm makeopts.acbak makeopts.acbak2
  29076. if test "x${silent}" != "xyes" ; then
  29077. echo
  29078. echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
  29079. echo " .\$7\$7.. .7\$\$7:. "
  29080. echo " .\$\$:. ,\$7.7 "
  29081. echo " .\$7. 7\$\$\$\$ .\$\$77 "
  29082. echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
  29083. echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
  29084. echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
  29085. echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
  29086. echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
  29087. echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
  29088. echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
  29089. echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
  29090. echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
  29091. echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
  29092. echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
  29093. echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
  29094. echo " \$\$\$\$\$ \$\$\$ "
  29095. echo " \$\$\$\$7. \$\$ (TM) "
  29096. echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
  29097. echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
  29098. echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
  29099. echo
  29100. fi
  29101. if test "x${AST_IODBC_FOUND}" = "xyes"; then
  29102. echo "WARNING: iodbc libs/headers found!"
  29103. echo
  29104. echo " If you plan to use ODBC functionality, you should consider"
  29105. echo " switching to unixodbc instead."
  29106. echo " See: https://issues.asterisk.org/jira/browse/ASTERISK-22459"
  29107. echo
  29108. fi
  29109. { $as_echo "$as_me:${as_lineno-$LINENO}: Package configured for: " >&5
  29110. $as_echo "$as_me: Package configured for: " >&6;}
  29111. { $as_echo "$as_me:${as_lineno-$LINENO}: OS type : $host_os" >&5
  29112. $as_echo "$as_me: OS type : $host_os" >&6;}
  29113. { $as_echo "$as_me:${as_lineno-$LINENO}: Host CPU : $host_cpu" >&5
  29114. $as_echo "$as_me: Host CPU : $host_cpu" >&6;}
  29115. { $as_echo "$as_me:${as_lineno-$LINENO}: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&5
  29116. $as_echo "$as_me: build-cpu:vendor:os: $build_cpu : $build_vendor : $build_os :" >&6;}
  29117. { $as_echo "$as_me:${as_lineno-$LINENO}: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&5
  29118. $as_echo "$as_me: host-cpu:vendor:os: $host_cpu : $host_vendor : $host_os :" >&6;}
  29119. if test "${cross_compiling}" = "yes"; then
  29120. { $as_echo "$as_me:${as_lineno-$LINENO}: Cross Compilation = YES" >&5
  29121. $as_echo "$as_me: Cross Compilation = YES" >&6;}
  29122. fi